/* Product Cards Container */
.pe-product-cards-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Product Card */
.produtSingle {
    position: relative;
    margin-bottom: 30px;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Column Layout */
.columns-1 .produtSingle { width: 100%; }
.columns-2 .produtSingle { width: 50%; }
.columns-3 .produtSingle { width: 33.333%; }
.columns-4 .produtSingle { width: 25%; }

/* Responsive Layout */
@media (max-width: 991px) {
    .columns-4 .produtSingle { width: 33.333%; }
}

@media (max-width: 767px) {
    .columns-3 .produtSingle,
    .columns-4 .produtSingle { width: 50%; }
}

@media (max-width: 480px) {
    .columns-2 .produtSingle,
    .columns-3 .produtSingle,
    .columns-4 .produtSingle { width: 100%; }
}

/* Product Image */
.produtImage, .produtImage img {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio:4/3;

    width: 100%!important;
    height: auto!important;
    object-fit: cover;
    overflow: center;
    overflow: hidden;
}

.produtImage img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

/* Product Mask (Hover Effect) */
.productMask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.produtSingle:hover .productMask {
    opacity: 1;
}

/* Product Options */
.productOption {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.productOption li {
    margin: 0 5px;
}

.productOption li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.productOption li a:hover {
    background-color: #f5f5f5;
    color: #000;
}

/* Product Caption */
.productCaption {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 275px;
}

.productCaption h2 {
    font-size: 16px;
    margin-bottom: 10px;
    min-height: 70px
}

.productCaption h2 a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.productCaption h2 a:hover {
    color: #000;
}

.productCaption h3 {
    font-size: 12px;
    color: #666;
}

/* Variations Panel */
.variations-panel {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.variations-panel h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

/* Variation Select */
.variation-select {
    margin-bottom: 15px;
}

.variation-select label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 16px;
}

.variation-select select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
}

/* Variation Details */
.variation-details {
    margin-bottom: 15px;
}

.variation-price {
    font-weight: bold;
    margin-bottom: 5px;
}

.variation-status {
    margin-bottom: 10px;
}

.variation-status p {
    margin: 0;
    padding: 5px 0;
}

.variation-status .in-stock {
    color: #28a745;
}

.variation-status .out-of-stock {
    color: #dc3545;
}

.variation-status .error {
    color: #dc3545;
}

.sale-price {
    font-weight: bold;
    color: #dc3545!important;
    margin-bottom: 5px;
    text-decoration: line-through;
    /*  */
}

.product-title  a{
    font-size: 16px;
    margin-bottom: 10px;
    min-height: 70px;
    font-weight: 600!important;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: #fff;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    text-align: end;
    flex-direction: column;
    border: 2px solid #000;
    z-index: 1;
}
/* Variation Actions */
.variation-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart-variation {
    padding: 8px 15px;
    background: #ea005f !important;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-variation:not(:disabled):hover {
    background: #ea005f !important;
}

.add-to-cart-variation:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.woocommerce .cart .button, .woocommerce .cart input.button{
    color: #fff;
}
.woocommerce .cart .button, .woocommerce .cart input.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt{
    background: #ea005f !important;
}
.cancel-variation {
    color: #666;
    text-decoration: none;
    font-size: 16px;
}

.cancel-variation:hover {
    color: #333;
    text-decoration: underline;
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success Message */
.success-message {
    color: #28a745;
    margin-top: 10px;
    font-size: 16px;
}
/* Ajuste de altura y alineación de la variaciones */
.variations-panel {
    min-height: 160px; /* Ajusta este valor según tu diseño */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 20px;
}

.variations-panel .variation-select {
    width: 100%;
    margin-bottom: 10px;
}

.variations-panel .variation-details,
.variations-panel .variation-actions {
    margin-top: auto;
}

@media (min-width: 576px) {
    .variations-panel .variation-select {
        margin-bottom: 0;
    }
}