/* =======================================================
   ACODESIGN PRO: ESTILOS GLOBALES (VISTA RÃPIDA Y SINGLE)
   Aplica a todos los estilos de loop de la tienda
======================================================= */

/* =======================================================
   ACODESIGN PRO: SISTEMA DUAL (QUICK ADD vs QUICK VIEW)
======================================================= */

.summary.entry-summary table.variations,
.summary.entry-summary table.variations tr,
.summary.entry-summary table.variations th.label,
.summary.entry-summary table.variations td.value {
    background-color: transparent !important;
    border: none !important;
}
.acd-btn-loading {
    position: relative !important;
    color: transparent !important;
    pointer-events: none !important;
}
.acd-btn-loading::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important; left: 50% !important;
    width: 16px !important; height: 16px !important;
    margin: -8px 0 0 -8px !important;
    border: 2px solid rgba(0,0,0,0.2) !important;
    border-top-color: #333 !important;
    border-radius: 50% !important;
    animation: acd-spin 1s linear infinite !important;
    display: block !important;
}
@keyframes acd-spin { 100% { transform: rotate(360deg); } }

#acd-quick-add-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 999999; display: none; 
}
.acd-modal-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); cursor: pointer;
}
.acd-modal-wrapper {
    position: relative; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box; pointer-events: none;
}
.acd-modal-box {
    pointer-events: auto;
    background: #fff; 
    border-radius: 4px !important;
    width: 100%; 
    position: relative; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    box-sizing: border-box; max-height: 90vh; overflow-y: auto; cursor: default;
}

.acd-modal-box.acd-qa-box { max-width: 420px !important; padding: 25px; } 
.acd-modal-box.acd-qv-box { max-width: 900px !important; padding: 30px; } 

.acd-modal-close {
    position: absolute; top: 10px; right: 10px; 
    background: transparent !important; 
    border: none !important;
    font-size: 24px; line-height: 1; cursor: pointer; 
    color: #333 !important;
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    padding: 0; z-index: 10;
    box-shadow: none !important; outline: none !important;
}
.acd-modal-close:hover, .acd-modal-close:focus { 
    color: #d63638 !important; 
    background-color: transparent !important; 
    box-shadow: none !important; border: none !important; outline: none !important;
}

/* =======================================================
   DISEÃO 1: COMPRA RÃPIDA (Modal PequeÃ±o)
======================================================= */
.acd-qa-header { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.acd-qa-image { width: 80px; flex-shrink: 0; }
.acd-qa-image img { width: 100%; height: auto; border-radius: 6px; display: block; margin: 0; }

.acd-qa-info { flex-grow: 1; }
.acd-qa-title { font-size: 18px; font-weight: 600; margin: 0 0 5px; line-height: 1.2; color: var(--acd-title-color, #131728); }

.acd-qa-price { font-size: 18px; font-weight: 600; color: var(--acd-title-color, #131728); }
.acd-qa-price del { opacity: 0.6; margin-right: 5px; }

.acd-qa-form { margin-bottom: 20px; }
.acd-qa-form .variations { width: 100%; margin-bottom: 15px; border: none; }
.acd-qa-form .variations td, .acd-qa-form .variations th { display: block; padding: 0; text-align: left; background: transparent; border: none; }
.acd-qa-form .variations th { padding-bottom: 5px; font-weight: 600; font-size: 13px; color: #333; }
.acd-qa-form .variations td { padding-bottom: 15px; }
.acd-qa-form .variations select { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.acd-qa-form .single_variation_wrap { margin-top: 15px; }

.acd-qa-form .woocommerce-variation-price { margin-bottom: 15px; font-weight: 600; font-size: 18px; color: var(--acd-title-color, #131728); }

.acd-qa-form form.cart:not(.variations_form),
.acd-qa-form .woocommerce-variation-add-to-cart { 
    display: flex !important; 
    flex-wrap: nowrap !important; 
    gap: 10px !important; 
    align-items: stretch !important; 
}

.acd-qa-form .quantity { flex-shrink: 0 !important; display: flex !important; align-items: center !important; margin: 0 !important; }
.acd-qa-form .quantity input.qty { width: 60px !important; height: 42px !important; padding: 0 10px !important; border: 1px solid #ddd !important; border-radius: 4px !important; text-align: center !important; background: #f2f2f2 !important; margin:0 !important; box-sizing: border-box !important;}

.acd-qa-form .single_add_to_cart_button { 
    flex-grow: 1 !important; width: auto !important; padding: 0 20px !important; height: 42px !important; line-height: 42px !important; border-radius: 4px !important; 
    background-color: var(--acd-modal-btn-bg, #131728) !important; 
    color: var(--acd-modal-btn-text, #ffffff) !important; 
    border: none !important; font-weight: 600 !important; text-transform: uppercase !important; cursor: pointer !important; transition: all 0.3s !important; margin:0 !important; box-sizing: border-box !important;
}
.acd-qa-form .single_add_to_cart_button:hover { 
    background-color: var(--acd-modal-btn-hover-bg, #131728) !important; 
    color: var(--acd-modal-btn-hover-text, #ffffff) !important; 
}

.acd-qa-form .cfvsw-swatches-container { justify-content: flex-start !important; margin-left: 0 !important; }

/* =======================================================
   DISEÃO 2: VISTA RÃPIDA (Modal Grande con GalerÃ­a)
======================================================= */
.acd-qv-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.acd-qv-gallery {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.acd-qv-swiper {
    width: 100%;
    border-radius: 8px;
}
.acd-qv-swiper img.acd-qv-main-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.swiper-button-next, .swiper-button-prev {
    color: #131728 !important;
    background: rgba(255,255,255,0.8);
    width: 35px !important;
    height: 35px !important;
    border-radius: 50%;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 14px !important;
    font-weight: bold;
}
.swiper-pagination-bullet-active {
    background: #131728 !important;
}

.acd-qv-info { 
    display: flex; 
    flex-direction: column; 
}
.acd-qv-title { 
    font-size: 24px; 
    font-weight: 600; 
    margin: 0 0 10px; 
    line-height: 1.2; 
    color: var(--acd-title-color, #131728); 
}

.acd-qv-price { 
    font-size: 22px; 
    font-weight: 600; 
    color: var(--acd-title-color, #131728); 
    margin-bottom: 20px; 
}
.acd-qv-price del { opacity: 0.6; margin-right: 5px; }

.acd-qv-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.acd-qv-meta span {
    display: block;
    margin-bottom: 5px;
}
.acd-qv-meta span.sku_wrapper { color: #555; }
.acd-qv-meta span.posted_in a { color: var(--acd-title-color, #131728); text-decoration: none; }
.acd-qv-meta span.posted_in a:hover { text-decoration: underline; }

.acd-qv-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .acd-qv-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .acd-modal-box.acd-qv-box { padding: 20px; }
    .acd-qv-title { font-size: 20px; }
    .acd-qv-price { font-size: 18px; }
    #acd-quick-add-modal .acodesign-badges-wrapper {
        top: 20px !important;
        left: 20px !important;
    }
}

/* =======================================================
   ESTILOS COMPARTIDOS DEL MODAL
======================================================= */
#acd-quick-add-modal .acodesign-badges-wrapper {
    position: absolute !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    top: 25px !important;
    left: 25px !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 15 !important;
    pointer-events: none !important;
}

#acd-quick-add-modal .acd-qa-box .acodesign-badges-wrapper {
    position: relative !important;
    top: auto !important; left: auto !important;
    margin: 0 0 10px 0 !important;
}

#acd-quick-add-modal .acodesign-badges-wrapper span.acodesign-onsale,
#acd-quick-add-modal .acodesign-badges-wrapper .acodesign-out-of-stock,
#acd-quick-add-modal .acodesign-badges-wrapper .acodesign-custom-badge {
    position: relative !important;
    margin: 0 !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 5px 10px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border: none !important;
    min-height: 0 !important; 
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    letter-spacing: 0.5px !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

#acd-quick-add-modal .acodesign-badges-wrapper span.acodesign-onsale {
    background-color: var(--acd-sale-bg, #131728) !important;
    color: var(--acd-sale-text, #ffffff) !important;
}
#acd-quick-add-modal .acodesign-badges-wrapper .acodesign-out-of-stock {
    background-color: var(--acd-oos-bg, #131728) !important;
    color: var(--acd-oos-text, #ffffff) !important;
}
#acd-quick-add-modal .acodesign-badges-wrapper .acodesign-custom-badge {
    background-color: var(--acd-custom-bg, #e63946) !important;
    color: var(--acd-custom-text, #ffffff) !important;
}

#acd-quick-add-modal span.price {
    color: var(--acd-title-color, #131728) !important;
}
#acd-quick-add-modal .woocommerce div.product span.price ins,
#acd-quick-add-modal span.price ins {
    text-decoration: none !important;
}

.acd-qa-view-details {
    text-align: center !important;
    margin-top: 15px !important;
    width: 100% !important;
    clear: both !important;
}

.acd-qa-view-details a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--acd-title-color, #131728) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.acd-qa-view-details a:hover {
    opacity: 0.7 !important;
}

.acd-qa-view-details a svg {
    transition: transform 0.3s ease !important;
}

.acd-qa-view-details a:hover svg {
    transform: translateX(4px) !important;
}

/* =======================================================
   ACODESIGN PRO: ALINEACIÃN PERFECTA ICONOS FLOTANTES
======================================================= */
html body ul.products li.product .acodesign-floating-icons-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important; 
    align-items: center !important;
}

/* FIX: PERMITIR TODOS LOS BOTONES */
html body ul.products li.product .acodesign-floating-icons-wrapper > a:not(.acodesign-native-qv-button):not(.compare):not(.acodesign-native-wishlist-btn):not(.acodesign-native-compare-btn) {
    display: contents !important;
}

html body ul.products li.product .acodesign-floating-icons-wrapper > *,
html body ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-qv-button,
html body ul.products li.product .acodesign-floating-icons-wrapper .compare,
html body ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-wishlist-btn,
html body ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-compare-btn,
html body ul.products li.product .acodesign-floating-icons-wrapper .yith-add-to-wishlist-button-block,
html body ul.products li.product .acodesign-floating-icons-wrapper .yith-add-to-wishlist-button-block--single {
    margin: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* =======================================================
   ACODESIGN PRO: ESTILOS ICONOS FLOTANTES (WISHLIST + COMPARE NATIVOS)
======================================================= */
html body ul.products li.product .acodesign-floating-icons-wrapper .yith-add-to-wishlist-button-block,
html body ul.products li.product .acodesign-floating-icons-wrapper .yith-add-to-wishlist-button-block--single,
html body ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-wishlist-btn,
html body ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-compare-btn {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    display: block !important;
    position: relative !important;
    clear: none !important;
}

html body ul.products li.product .acodesign-floating-icons-wrapper .yith-wcwl-add-to-wishlist-button__label,
html body ul.products li.product .acodesign-floating-icons-wrapper .yith-wcwl-icon,
html body ul.products li.product .acodesign-floating-icons-wrapper .yith-wcwl-add-to-wishlist-button i {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* WISHLIST NATIVO Y YITH */
html body ul.products li.product .acodesign-floating-icons-wrapper a.yith-wcwl-add-to-wishlist-button,
html body ul.products li.product .acodesign-floating-icons-wrapper a.yith-wcwl-add-to-wishlist-button--single,
html body ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-wishlist-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 100% !important;
    background-color: var(--acd-icon-bg) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-size: 18px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important; 
    color: transparent !important;
    line-height: 0 !important;
    position: relative !important; 
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

html body ul.products li.product .acodesign-floating-icons-wrapper a.yith-wcwl-add-to-wishlist-button:hover,
html body ul.products li.product .acodesign-floating-icons-wrapper a.yith-wcwl-add-to-wishlist-button--single:hover,
html body ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-wishlist-btn:hover {
    background-color: var(--acd-icon-hover-bg) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E") !important;
}

html body ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-wishlist-btn.acd-wishlist-added {
    background-color: #f5f5f5 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23131728' stroke='%23131728' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E") !important;
}

html body ul.products li.product .acodesign-floating-icons-wrapper .yith-add-to-wishlist-button-block {
    display: none !important;
}

html body ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-compare-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    background-color: var(--acd-icon-bg, #ffffff) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 3 21 3 21 8'%3E%3C/polyline%3E%3Cline x1='4' y1='20' x2='21' y2='3'%3E%3C/line%3E%3Cpolyline points='21 16 21 21 16 21'%3E%3C/polyline%3E%3Cline x1='15' y1='15' x2='21' y2='21'%3E%3C/line%3E%3C/svg%3E") !important;
    background-size: 18px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important; 
    color: transparent !important;
    line-height: 0 !important;
    position: relative !important;
    clear: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-indent: -9999px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    cursor: pointer !important;
    z-index: 50 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html body ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-compare-btn:hover {
    background-color: var(--acd-icon-hover-bg, #131728) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 3 21 3 21 8'%3E%3C/polyline%3E%3Cline x1='4' y1='20' x2='21' y2='3'%3E%3C/line%3E%3Cpolyline points='21 16 21 21 16 21'%3E%3C/polyline%3E%3Cline x1='15' y1='15' x2='21' y2='21'%3E%3C/line%3E%3C/svg%3E") !important;
}

html body ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-compare-btn.acd-compare-added {
    background-color: #f5f5f5 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23131728' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 3 21 3 21 8'%3E%3C/polyline%3E%3Cline x1='4' y1='20' x2='21' y2='3'%3E%3C/line%3E%3Cpolyline points='21 16 21 21 16 21'%3E%3C/polyline%3E%3Cline x1='15' y1='15' x2='21' y2='21'%3E%3C/line%3E%3C/svg%3E") !important;
}

html body ul.products li.product .acodesign-floating-icons-wrapper a.compare:not(.acodesign-native-compare-btn) {
    display: none !important;
}

/* =======================================================
   ACODESIGN PRO: TOOLTIPS PARA ICONOS FLOTANTES
======================================================= */
html body ul.products li.product .acodesign-floating-icons-wrapper a[aria-label] {
    overflow: visible !important;
}
html body ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]::after {
    content: attr(aria-label);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #131728;
    color: #fff !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, right 0.2s ease;
    pointer-events: none;
    z-index: 100;
    line-height: 1.2 !important;
    text-indent: 0 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-shadow: none !important;
    text-decoration: none !important;
    -webkit-text-stroke: 0 transparent !important;
    box-shadow: none !important;
    -webkit-font-smoothing: antialiased !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
html body ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]::before {
    content: '';
    position: absolute;
    right: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #131728;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, right 0.2s ease;
    pointer-events: none;
    z-index: 100;
}
html body ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]:hover::after {
    opacity: 1;
    visibility: visible;
    right: calc(100% + 8px);
}
html body ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]:hover::before {
    opacity: 1;
    visibility: visible;
    right: calc(100% + 2px);
}

@media (max-width: 768px) {
    html body ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]::after,
    html body ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]::before {
        display: none !important;
    }
}

/* =======================================================
   REPARACIÃN AGRESIVA PARA MÃVILES (Fuerza la visualizaciÃ³n)
======================================================= */
@media (max-width: 768px) {
    html body ul.products li.product .acodesign-floating-icons-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        overflow: visible !important;
        z-index: 99 !important;
    }
    
    html body ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-compare-btn,
    html body ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-wishlist-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        background-size: 16px !important;
        position: relative !important; 
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        transform: none !important;
    }
}

/* =======================================================
   FIX EXTREMO: SISTEMA DE VIDEO (AUTOPLAY VS HOVER)
======================================================= */
ul.products li.product .acodesign-hover-video {
    position: absolute !important;
    top: 0 !important; 
    left: 0 !important;
    width: 100% !important; 
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease !important;
    z-index: 2 !important;
    pointer-events: none !important; 
}

ul.products li.product:hover .acodesign-hover-video {
    transform: scale(1.08) !important;
}

/* --- MODO: AUTOPLAY CONTINUO --- */
ul.products li.acodesign-video-mode-autoplay .acodesign-hover-video {
    opacity: 1 !important;
    visibility: visible !important;
}
ul.products li.acodesign-video-mode-autoplay .acodesign-gallery-slider {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
ul.products li.acodesign-video-mode-autoplay .acodesign-hover-img {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Hover */
ul.products li.acodesign-video-mode-autoplay:hover .acodesign-hover-video {
    opacity: 0 !important;
    visibility: hidden !important;
}
ul.products li.acodesign-video-mode-autoplay:hover .acodesign-gallery-slider {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
ul.products li.acodesign-video-mode-autoplay:hover .acodesign-hover-img {
    opacity: 1 !important;
    visibility: visible !important;
}
ul.products li.acodesign-video-mode-autoplay:hover .acodesign-video-indicator {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* --- MODO: HOVER (ESTILO TIKTOK/REELS) --- */
ul.products li.acodesign-video-mode-hover .acodesign-image-wrapper img.attachment-woocommerce_thumbnail {
    transition: opacity 0.3s ease !important;
}



ul.products li.acodesign-video-mode-hover:hover .acodesign-hover-video,
ul.products li.acodesign-video-mode-hover.acodesign-video-playing .acodesign-hover-video {
    opacity: 1 !important;
    visibility: visible !important;
}

/* =======================================================
   ACODESIGN PRO: INDICADOR DE VIDEO (ESTILO REELS)
======================================================= */
.acodesign-video-indicator {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 28px !important;
    height: 28px !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    backdrop-filter: blur(2px) !important;
}

.acodesign-video-indicator svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
}

/* Se oculta solo cuando el video estÃ¡ verdaderamente reproduciÃ©ndose */
ul.products li.acodesign-video-mode-hover.acodesign-video-playing .acodesign-video-indicator {
    opacity: 0 !important;
    visibility: hidden !important;
}

@media (max-width: 768px) {
    .acodesign-video-indicator {
        right: auto !important;
        left: 10px !important;
        top: auto !important;
        bottom: 10px !important;
    }
}

/* =======================================================
   ACODESIGN PRO: SELECTOR DE COLUMNAS GRID GLOBAL (PUNTOS)
======================================================= */
.acodesign-grid-selector {
    display: inline-flex;
    align-items: center;
    gap: 12px; 
    margin: 8px 0 20px 15px; 
    vertical-align: middle;
    float: right; 
}

.acodesign-grid-selector .acd-grid-btn {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important; 
    border-radius: 0 !important; 
    width: auto;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 !important; 
    color: #b0b0b0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: none !important; 
    outline: none !important;
}

.acodesign-grid-selector .acd-grid-btn svg {
    height: 100%;
    width: auto;
    transition: transform 0.3s ease;
}

.acodesign-grid-selector .acd-grid-btn:hover,
.acodesign-grid-selector .acd-grid-btn:focus,
.acodesign-grid-selector .acd-grid-btn.active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #131728;
}

.acodesign-grid-selector .acd-grid-btn:hover svg {
    transform: scale(1.08); 
}

.acodesign-grid-selector .acd-grid-btn.active svg {
    transform: scale(1);
}

.woocommerce::after, .woocommerce-page::after {
    content: "";
    display: table;
    clear: both;
}

/* =======================================================
   4. GRID Y COLUMNAS (ESTRUCTURA CORE)
======================================================= */
.woocommerce ul.products::before, .woocommerce ul.products::after, .woocommerce-page ul.products::before, .woocommerce-page ul.products::after { display: none !important; content: none !important; }

/* FIX: Excluir .swiper-wrapper (nuestro plugin) y .splide__list (Kadence) para no romper los carruseles */
.woocommerce ul.products:not(.swiper-wrapper):not(.splide__list), .woocommerce-page ul.products:not(.swiper-wrapper):not(.splide__list), html body .elementor-widget-wc-archive-products ul.products:not(.swiper-wrapper):not(.splide__list) { display: grid !important; gap: 10px !important; margin-right: 0 !important; margin-left: 0 !important; float: none !important; width: 100% !important; }

.woocommerce ul.products.columns-3, .woocommerce-page ul.products.columns-3 { grid-template-columns: repeat(3, 1fr) !important; }
.woocommerce ul.products.columns-4, .woocommerce-page ul.products.columns-4 { grid-template-columns: repeat(4, 1fr) !important; }
.woocommerce ul.products.columns-5, .woocommerce-page ul.products.columns-5 { grid-template-columns: repeat(5, 1fr) !important; }
.woocommerce ul.products.columns-6, .woocommerce-page ul.products.columns-6 { grid-template-columns: repeat(6, 1fr) !important; }

/* FIX: Excluir .swiper-slide (nuestro plugin) y .splide__slide (Kadence) para no forzar width: 100% en las tarjetas */
.woocommerce ul.products li.product:not(.swiper-slide):not(.splide__slide), .woocommerce-page ul.products li.product:not(.swiper-slide):not(.splide__slide) { width: 100% !important; margin: 0 !important; float: none !important; padding: 0 !important; background: var(--acd-card-bg, #ffffff) !important; }

/* ð¨ FIX: Aplicamos las columnas seleccionadas SÃLO en Escritorio (PC) ð¨ */
@media (min-width: 1025px) {
    /* Definir los anchos de columnas especÃ­ficos del grid con especificidad ultra-alta para que los shortcodes y rejillas personalizadas (ej: [products columns="2"]) nunca sean anulados por la configuraciÃ³n global del catÃ¡logo */
    html body.woocommerce ul.products.columns-1, html body.woocommerce-page ul.products.columns-1, html[data-acd-columns] body.woocommerce ul.products.columns-1, html[data-acd-columns] body.woocommerce-page ul.products.columns-1 { grid-template-columns: repeat(1, 1fr) !important; }
    html body.woocommerce ul.products.columns-2, html body.woocommerce-page ul.products.columns-2, html[data-acd-columns] body.woocommerce ul.products.columns-2, html[data-acd-columns] body.woocommerce-page ul.products.columns-2 { grid-template-columns: repeat(2, 1fr) !important; }
    html body.woocommerce ul.products.columns-3, html body.woocommerce-page ul.products.columns-3, html[data-acd-columns] body.woocommerce ul.products.columns-3, html[data-acd-columns] body.woocommerce-page ul.products.columns-3 { grid-template-columns: repeat(3, 1fr) !important; }
    html body.woocommerce ul.products.columns-4, html body.woocommerce-page ul.products.columns-4, html[data-acd-columns] body.woocommerce ul.products.columns-4, html[data-acd-columns] body.woocommerce-page ul.products.columns-4 { grid-template-columns: repeat(4, 1fr) !important; }
    html body.woocommerce ul.products.columns-5, html body.woocommerce-page ul.products.columns-5, html[data-acd-columns] body.woocommerce ul.products.columns-5, html[data-acd-columns] body.woocommerce-page ul.products.columns-5 { grid-template-columns: repeat(5, 1fr) !important; }
    html body.woocommerce ul.products.columns-6, html body.woocommerce-page ul.products.columns-6, html[data-acd-columns] body.woocommerce ul.products.columns-6, html[data-acd-columns] body.woocommerce-page ul.products.columns-6 { grid-template-columns: repeat(6, 1fr) !important; }

    /* ConfiguraciÃ³n de columnas global del catÃ¡logo (controlado por el selector de grid) */
    html[data-acd-columns="2"] body.woocommerce ul.products, html[data-acd-columns="2"] body.woocommerce-page ul.products, html[data-acd-columns="2"] .related.products ul.products, html[data-acd-columns="2"] .up-sells.products ul.products { grid-template-columns: repeat(2, 1fr) !important; }
    html[data-acd-columns="3"] body.woocommerce ul.products, html[data-acd-columns="3"] body.woocommerce-page ul.products, html[data-acd-columns="3"] .related.products ul.products, html[data-acd-columns="3"] .up-sells.products ul.products { grid-template-columns: repeat(3, 1fr) !important; }
    html[data-acd-columns="4"] body.woocommerce ul.products, html[data-acd-columns="4"] body.woocommerce-page ul.products, html[data-acd-columns="4"] .related.products ul.products, html[data-acd-columns="4"] .up-sells.products ul.products { grid-template-columns: repeat(4, 1fr) !important; }
    html[data-acd-columns="5"] body.woocommerce ul.products, html[data-acd-columns="5"] body.woocommerce-page ul.products, html[data-acd-columns="5"] .related.products ul.products, html[data-acd-columns="5"] .up-sells.products ul.products { grid-template-columns: repeat(5, 1fr) !important; }
    html[data-acd-columns="6"] body.woocommerce ul.products, html[data-acd-columns="6"] body.woocommerce-page ul.products, html[data-acd-columns="6"] .related.products ul.products, html[data-acd-columns="6"] .up-sells.products ul.products { grid-template-columns: repeat(6, 1fr) !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .woocommerce ul.products, .woocommerce-page ul.products, .woocommerce ul.products[class*="columns-"], .woocommerce-page ul.products[class*="columns-"] { grid-template-columns: repeat(3, 1fr) !important; }
    .acodesign-grid-selector { display: none !important; }
}

@media (max-width: 768px) {
    /* FIX MÃ³vil: Excluir tambiÃ©n ambas clases para aislar los carruseles en dispositivos mÃ³viles */
    .woocommerce ul.products:not(.swiper-wrapper):not(.splide__list), .woocommerce-page ul.products:not(.swiper-wrapper):not(.splide__list), .woocommerce ul.products.columns-3:not(.swiper-wrapper):not(.splide__list), .woocommerce ul.products.columns-4:not(.swiper-wrapper):not(.splide__list), .woocommerce-page ul.products.columns-3:not(.swiper-wrapper):not(.splide__list), .woocommerce-page ul.products.columns-4:not(.swiper-wrapper):not(.splide__list) { grid-template-columns: repeat(var(--acd-mobile-columns, 2), 1fr) !important; gap: 8px !important; }
    .acodesign-grid-selector { display: none !important; }
}

/* =======================================================
   ACODESIGN PRO: EFECTO ZOOM GLOBAL EN IMÃGENES (HOVER)
======================================================= */
html body ul.products li.product .acodesign-image-wrapper {
    overflow: hidden !important; 
}

html body ul.products li.product .acodesign-image-wrapper img {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    will-change: transform;
    transform-origin: center center !important;
    object-position: var(--acd-img-object-position, center center) !important;
}

html body ul.products li.product:hover .acodesign-image-wrapper img {
    transform: scale(1.08) !important;
}

/* =======================================================
   ACODESIGN PRO: CINTILLO MARQUEE (SCROLLING BANNER)
======================================================= */
.acodesign-marquee-wrapper {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: var(--acd-marquee-bg, #000000) !important;
    color: var(--acd-marquee-color, #ffffff) !important;
    overflow: hidden !important;
    z-index: 15 !important;
    display: flex !important;
    align-items: center !important;
    padding: 6px 0 !important;
    pointer-events: none !important; 
}

.acodesign-marquee-content {
    display: flex !important;
    width: max-content !important;
    animation: acd-marquee-scroll var(--acd-marquee-speed, 60s) linear infinite !important;
    will-change: transform;
}

.acd-marquee-track {
    display: flex !important;
    white-space: nowrap !important;
    align-items: center !important;
}

.acd-marquee-text {
    padding-right: 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
}

@keyframes acd-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .acodesign-marquee-wrapper {
        bottom: 42px !important;
    }
}

/* =======================================================
   ACODESIGN PRO: CONTADOR DE OFERTAS (COUNTDOWN)
======================================================= */
.acodesign-countdown-wrapper {
    position: absolute !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 4px !important;
    z-index: 16 !important;
    pointer-events: none !important;
    transition: all 0.3s ease-in-out !important;
}

.acd-cd-item {
    background-color: var(--acd-cd-bg, #131728) !important;
    color: var(--acd-cd-color, #ffffff) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 6px !important;
    border-radius: 4px !important;
    min-width: 40px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.acd-cd-num {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
}

.acd-cd-label {
    font-size: 9px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    opacity: 0.9 !important;
}

@media (min-width: 769px) {
    html body ul.products li.product:hover .acodesign-countdown-wrapper {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translate(-50%, 10px) !important;
    }
}

@media (max-width: 768px) {
    .acodesign-countdown-wrapper {
        bottom: 50px !important; 
    }

    /* Asegurar que el contador de ofertas en related products tambiÃ©n se ajuste */
    .woocommerce .related.products ul.products li.product .acodesign-countdown-wrapper,
    .woocommerce .up-sells.products ul.products li.product .acodesign-countdown-wrapper {
        bottom: 50px !important;
    }

    html body ul.products li.product .acodesign-image-wrapper:has(.acodesign-marquee-wrapper) .acodesign-countdown-wrapper {
        bottom: 78px !important; 
    }
}

/* =======================================================
   REGLAS PARA EL CONTADOR EN PÃGINA SINGLE Y SHORTCODE
======================================================= */
html body .acodesign-countdown-wrapper.acd-single-countdown {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    justify-content: flex-start !important; 
    margin: 15px 0 25px 0 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    width: 100% !important;
    clear: both !important;
    flex-wrap: wrap !important;
}

html body .product:hover .acodesign-countdown-wrapper.acd-single-countdown,
html body ul.products li.product:hover .acodesign-countdown-wrapper.acd-single-countdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

html body .acodesign-countdown-wrapper.acd-single-countdown .acd-cd-item {
    min-width: 55px !important;
    padding: 8px 10px !important;
}

html body .acodesign-countdown-wrapper.acd-single-countdown .acd-cd-num {
    font-size: 18px !important;
}

html body .acodesign-countdown-wrapper.acd-single-countdown .acd-cd-label {
    font-size: 11px !important;
}

html body .acd-single-countdown-header {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: var(--acd-title-color, #131728) !important;
    margin-bottom: 5px !important;
}

html body .acd-single-countdown-header svg {
    width: 18px !important;
    height: 18px !important;
    stroke: currentColor !important;
}

/* =======================================================
   FIX NATIVO: RECUPERAR "ABRIR EN NUEVA PESTAÃA" (CAPA LINK)
======================================================= */
ul.products li.product .acodesign-image-wrapper .acodesign-overlay-link {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important; 
    display: block !important;
    background: transparent !important;
    pointer-events: auto !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: none !important;
}

/* =======================================================
   FASE 3: ESTILOS DE COMPARADOR NATIVO (TABLA Y BARRA)
======================================================= */
#acd-compare-floating-bar {
    position: fixed !important;
    bottom: -100px !important; 
    right: 20px !important;
    z-index: 999999 !important;
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

#acd-compare-floating-bar.visible {
    bottom: 20px !important;
}

#acd-compare-floating-bar button {
    background-color: #131728 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 12px 25px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

#acd-compare-floating-bar button:hover {
    background-color: #1a2035 !important;
    transform: translateY(-3px) !important;
}

.acd-modal-box.acd-compare-box {
    max-width: 1100px !important; 
    padding: 40px 20px 20px !important;
}

.acd-compare-table-wrapper {
    width: 100% !important;
    overflow-x: auto !important; 
    -webkit-overflow-scrolling: touch !important;
}

.acd-compare-table {
    width: 100% !important;
    min-width: 700px !important; 
    border-collapse: collapse !important;
    background: #fff !important;
}

.acd-compare-table th {
    width: 150px !important;
    min-width: 150px !important;
    text-align: left !important;
    padding: 15px !important;
    background-color: #f9f9f9 !important;
    border-bottom: 1px solid #eeeeee !important;
    font-weight: 700 !important;
    color: #333333 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    border-right: 1px solid #eeeeee !important;
}

.acd-compare-table td {
    padding: 20px 15px !important;
    text-align: center !important;
    border-bottom: 1px solid #eeeeee !important;
    border-right: 1px solid #eeeeee !important;
    vertical-align: top !important;
    width: 25% !important;
}

.acd-compare-table .acd-tr-image td {
    position: relative !important;
}

.acd-compare-table .acd-tr-image img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 6px !important;
    display: block !important;
    margin: 0 auto 15px auto !important;
}

.acd-compare-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}
.acd-compare-title a {
    color: #131728 !important;
    text-decoration: none !important;
}

.acd-comp-price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #131728 !important;
}
.acd-comp-price del {
    opacity: 0.5 !important;
    margin-right: 5px !important;
    font-weight: 400 !important;
}

.acd-comp-desc {
    font-size: 13px !important;
    color: #666 !important;
    text-align: left !important;
    line-height: 1.6 !important;
}

.acd-compare-table .add_to_cart_button,
.acd-compare-table .button {
    background-color: #131728 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 10px 15px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    text-decoration: none !important;
}
.acd-compare-table .add_to_cart_button:hover,
.acd-compare-table .button:hover {
    opacity: 0.8 !important;
}

.acd-compare-remove-btn {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    background-color: #e63946 !important;
    color: #ffffff !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 22px !important;
    text-align: center !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-size: 16px !important;
    z-index: 10 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    transition: transform 0.2s ease !important;
}

.acd-compare-remove-btn:hover {
    transform: scale(1.1) !important;
}

@media (max-width: 768px) {
    #acd-compare-floating-bar {
        right: 50% !important;
        transform: translateX(50%) !important;
        bottom: -100px !important;
    }
    #acd-compare-floating-bar.visible {
        bottom: 10px !important;
    }
    .acd-modal-box.acd-compare-box {
        padding: 30px 10px 10px !important;
    }
}

/* =======================================================
   ACODESIGN PRO: SHORTCODE CONTADOR WISHLIST EN HEADER
======================================================= */
.acodesign-wishlist-counter-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--acd-wl-counter-icon, #131728) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    padding: 5px !important;
}
.acodesign-wishlist-counter-link:hover {
    color: var(--acd-wl-counter-icon-hover, #e63946) !important;
    opacity: 1 !important;
}
.acodesign-wishlist-counter-link svg {
    width: var(--acd-wl-counter-size, 24px) !important;
    height: var(--acd-wl-counter-size, 24px) !important;
    stroke: currentColor !important;
    transition: stroke 0.3s ease !important;
}
.acodesign-wishlist-counter-link .acodesign-wishlist-count {
    position: absolute !important;
    top: -2px !important;
    right: -5px !important;
    background-color: var(--acd-wl-counter-bg, #e63946) !important;
    color: var(--acd-wl-counter-text, #ffffff) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    height: 18px !important;
    min-width: 18px !important;
    line-height: 18px !important;
    border-radius: 50px !important;
    text-align: center !important;
    padding: 0 4px !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}
.acodesign-wishlist-counter-link:hover .acodesign-wishlist-count {
    background-color: var(--acd-wl-counter-bg-hover, #131728) !important;
    color: var(--acd-wl-counter-text-hover, #ffffff) !important;
}
.acodesign-wishlist-counter-link.acd-pop {
    transform: scale(1.15) !important;
}

/* =======================================================
   ACODESIGN PRO: LOAD MORE AJAX BUTTON
======================================================= */
.acodesign-load-more-btn {
    background-color: var(--acd-modal-btn-bg, #131728) !important;
    color: var(--acd-modal-btn-text, #ffffff) !important;
    border: none !important;
    padding: 14px 35px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 180px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    line-height: 1 !important;
}

.acodesign-load-more-btn:hover {
    background-color: var(--acd-modal-btn-hover-bg, #1a2035) !important;
    color: var(--acd-modal-btn-hover-text, #ffffff) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

.acodesign-load-more-btn.loading {
    pointer-events: none !important;
    opacity: 0.8 !important;
}

.acd-spinner-svg {
    animation: acd-btn-spin 1s linear infinite !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

@keyframes acd-btn-spin {
    100% { transform: rotate(360deg); }
}

/* =======================================================
   ACODESIGN CAROUSEL: SWIPER STYLES OVERRIDE
======================================================= */
.acodesign-carousel-wrapper {
    position: relative;
    width: 100%;
}

/* Evitar que las tarjetas se estiren raras en el carrusel */
.acodesign-carousel-wrapper .swiper-slide {
    height: auto !important; 
}

/* Flechas elegantes */
.acodesign-carousel-wrapper .swiper-button-next,
.acodesign-carousel-wrapper .swiper-button-prev {
    color: var(--acd-modal-btn-bg, #131728) !important;
    background: #ffffff;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.acodesign-carousel-wrapper .swiper-button-next:after,
.acodesign-carousel-wrapper .swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: bold;
}

.acodesign-carousel-wrapper .swiper-button-next:hover,
.acodesign-carousel-wrapper .swiper-button-prev:hover {
    background: var(--acd-modal-btn-bg, #131728);
    color: #ffffff !important;
    transform: scale(1.1);
}

/* PaginaciÃ³n (Puntitos) */
.acodesign-carousel-wrapper .swiper-pagination-bullet-active {
    background: var(--acd-modal-btn-bg, #131728) !important;
}

/* =======================================================
   FIX CARRUSEL ACO - COMPATIBILIDAD NATIVA SWIPER JS
======================================================= */

/* 1. Contenedor flex - Permite que Swiper gestione la pista */
html body .woocommerce .acodesign-carousel-wrapper ul.products.swiper-wrapper,
html body .woocommerce-page .acodesign-carousel-wrapper ul.products.swiper-wrapper,
html body .acodesign-carousel-wrapper ul.products.swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}

/* ð¥ SoluciÃ³n al Width Explosion de contenedores Flexbox (Elementor/Gutenberg) */
html body .acodesign-carousel-wrapper.swiper {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* 2. Tarjetas - Limpiamos a WooCommerce sin matar a Swiper */
html body .woocommerce .acodesign-carousel-wrapper ul.products li.product.swiper-slide,
html body .woocommerce-page .acodesign-carousel-wrapper ul.products li.product.swiper-slide,
html body .acodesign-carousel-wrapper ul.products li.product.swiper-slide {
    flex-shrink: 0 !important;
    float: none !important;
    clear: none !important;
    min-width: 0 !important; /* ð¥ SoluciÃ³n vital para el Width Explosion */
    
    /* ð¨ LA CLAVE: Nunca forzar width ni margin-right con !important ð¨
       Permitimos que el JS de Swiper inyecte sus propios cÃ¡lculos */
    
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    
    padding: 0 !important;
    background: var(--acd-card-bg, #ffffff) !important;
    border: var(--acd-card-border-width, 0px) solid var(--acd-card-border-color, #F3EFF5) !important;
    border-radius: var(--acd-card-border-radius, 4px) !important;
}

/* 3. Iconos Flotantes */
.acodesign-carousel-wrapper .acodesign-floating-icons-wrapper {
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.3s ease;
}

.acodesign-carousel-wrapper .swiper-slide:hover .acodesign-floating-icons-wrapper {
    opacity: 1;
    transform: translateX(0);
}

/* =======================================================
   FIX DE CARGA (FOUC) PARA SWIPER
   Evita que las imÃ¡genes se vean gigantes antes de cargar JS
======================================================= */

/* 1. Estado inicial: Oculto y con altura restringida */
.acodesign-carousel-wrapper.swiper:not(.swiper-initialized) {
    opacity: 0;
    visibility: hidden;
    max-height: 450px; /* Evita que la imagen gigante empuje el diseÃ±o hacia abajo */
    overflow: hidden;
}

/* 2. Estado final: Visible y suave una vez que el JS estÃ¡ listo */
.acodesign-carousel-wrapper.swiper.swiper-initialized {
    opacity: 1;
    visibility: visible;
    max-height: none;
    transition: opacity 0.4s ease-in-out;
}

/* =======================================================
   ACODESIGN PRO: WISHLIST BUTTON EN SINGLE PRODUCT
======================================================= */
.acodesign-single-wishlist-wrapper {
    margin: 15px 0 20px 0;
    clear: both;
}

.acodesign-single-wishlist-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    background-color: var(--acd-wl-single-bg, #ffffff) !important;
    color: var(--acd-wl-single-text, #131728) !important;
    border: 1px solid var(--acd-wl-single-border, #131728) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.acodesign-single-wishlist-btn .acodesign-wishlist-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    stroke: var(--acd-wl-single-icon, #131728) !important;
}

.acodesign-single-wishlist-btn:hover {
    background-color: var(--acd-wl-single-hover-bg, #131728) !important;
    color: var(--acd-wl-single-hover-text, #ffffff) !important;
    border-color: var(--acd-wl-single-hover-border, #131728) !important;
}

.acodesign-single-wishlist-btn:hover .acodesign-wishlist-icon svg {
    stroke: var(--acd-wl-single-hover-icon, #ffffff) !important;
}

/* Estado "added" (ya en favoritos) mantiene colores normales o un estado intermedio */
.acodesign-single-wishlist-btn.acd-wishlist-added {
    background-color: var(--acd-wl-single-bg, #ffffff) !important;
    color: var(--acd-wl-single-text, #131728) !important;
    border-color: var(--acd-wl-single-border, #131728) !important;
}

.acodesign-single-wishlist-btn.acd-wishlist-added .acodesign-wishlist-icon svg {
    stroke: var(--acd-wl-single-icon, #131728) !important;
    fill: var(--acd-wl-single-icon, #131728) !important; /* CorazÃ³n lleno */
}

/* Ajuste para mÃ³viles */
@media (max-width: 768px) {
    .acodesign-single-wishlist-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =======================================================
   ACODESIGN PRO: FIX GLOBAL BLOCKSY THEME WIDTH (OVERRIDE NATIVO)
======================================================= */
/* 1. Tomar control del wrapper real de Blocksy */
body.woocommerce-shop [data-products],
body.archive.woocommerce [data-products] {
  --shop-columns: var(--grid-columns, 3) !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* 2. Forzar el UL como grid real */
body.woocommerce-shop [data-products] > .products,
body.archive.woocommerce [data-products] > .products {
  display: grid !important;
  grid-template-columns: repeat(var(--grid-columns, 3), minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  justify-content: stretch !important;
  justify-items: stretch !important;
}

/* 3. Neutralizar reglas heredadas de Woo/Blocksy */
body.woocommerce-shop [data-products] > .products > .product,
body.archive.woocommerce [data-products] > .products > .product {
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  min-width: 0 !important;
}

/* =======================================================
   ACODESIGN PRO: FIX CONTENEDOR IMÃGENES Y RATIO 4:5 (GLOBAL + BLOCKSY)
======================================================= */
/* Forzar que toda la tarjeta y el enlace usen el ancho completo */
html body ul.products li.product:not(.swiper-slide),
html body ul.products li.product:not(.swiper-slide) .entry,
html body ul.products li.product:not(.swiper-slide) .woocommerce-loop-product__link {
    width: 100% !important;
    max-width: none !important;
}

/* Forzar imagen / contenedor visual al 100% */
html body ul.products li.product .ct-image-container,
html body ul.products li.product figure,
html body ul.products li.product .acodesign-image-wrapper {
    width: calc(100% + 1.2px) !important;
    max-width: calc(100% + 1.2px) !important;
    background-color: #ffffff !important;
}

html body ul.products li.product .woocommerce-loop-product__link > img,
html body ul.products li.product .acodesign-image-wrapper img {
    width: 100% !important;
    max-width: 100% !important;
}

@media (min-width: 769px) {
    /* Elimina relación fija 4:5 para heredar la proporción dinámica de WooCommerce */
    html body ul.products li.product .ct-image-container,
    html body ul.products li.product figure,
    html body ul.products li.product .acodesign-image-wrapper {
        height: auto !important;
        padding-bottom: 0 !important;
        overflow: hidden !important;
    }
    
    /* Forzar que la imagen cubra el contenedor 4:5 */
    html body ul.products li.product .acodesign-image-wrapper img,
    html body ul.products li.product .woocommerce-loop-product__link > img {
        height: 100% !important;
        object-fit: cover !important;
        object-position: var(--acd-img-object-position, center center) !important;
        display: block !important;
    }
}

/* =======================================================
   ACODESIGN PRO: SWIPER INFINITE CONTINUOUS LINEAR TRANSITION
======================================================= */
.acodesign-carousel-wrapper.acodesign-carousel-infinite .swiper-wrapper {
    -webkit-transition-timing-function: linear !important;
    -o-transition-timing-function: linear !important;
    transition-timing-function: linear !important;
}

/* =======================================================
   ACODESIGN PRO: BOTÃN ELIMINAR DE WISHLIST (TOP-CENTRO + SVG)
======================================================= */
.acodesign-remove-from-wishlist-btn {
    position: absolute !important;
    top: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 30 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #1e293b !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.acodesign-remove-from-wishlist-btn:hover {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    transform: translateX(-50%) scale(1.1) !important;
}

/* ============================================================
   ESTILO 4: Botonera tipo pastilla inferior y tooltips arriba
   ============================================================ */
/* Ocultar el botÃ³n Add to Cart por defecto al final de la tarjeta SOLO EN PC */
@media (min-width: 769px) {
    html body ul.products li.product.acodesign-style-4 .acodesign-image-wrapper > a.button,
    html body ul.products li.product.acodesign-style-4 .acodesign-image-wrapper > a.added_to_cart,
    html body ul.products li.product.acodesign-style-4 .acodesign-image-wrapper > .button,
    html body ul.products li.product.acodesign-style-4 .acodesign-image-wrapper > .add_to_cart_button:not(.acodesign-floating-icons-wrapper *),
    html body ul.products li.product.acodesign-style-4 .acodesign-image-wrapper .kadence-loop-cart-wrap {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

@media (min-width: 769px) {
    /* Wrapper de los iconos flotantes (Pastilla) */
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-icons-wrapper {
        top: auto !important;
        bottom: 20px !important;
        right: 50% !important;
        transform: translateX(50%) !important;
        flex-direction: row !important;
        background-color: #ffffff !important;
        border-radius: 50px !important;
        padding: 10px 20px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
        width: auto !important;
        gap: 15px !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease, bottom 0.3s ease !important;
    }

    html body ul.products li.product.acodesign-style-4:hover .acodesign-floating-icons-wrapper {
        opacity: 1;
        visibility: visible;
        bottom: 25px !important;
    }

    /* Permitir desbordamiento para el tooltip y quitar sombra a los iconos individuales */
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-icons-wrapper a,
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-icons-wrapper a.acodesign-native-wishlist-btn,
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-icons-wrapper a.acodesign-native-compare-btn,
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-icons-wrapper a.acodesign-native-qv-button,
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-icons-wrapper .acodesign-floating-cart-wrapper a.button {
        overflow: visible !important;
        position: relative !important;
        box-shadow: none !important;
    }

    /* ORDEN ESPECÃFICO: Quick View -> Wishlist -> Compare -> Cart */
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-icons-wrapper .acodesign-native-qv-button,
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-icons-wrapper .acodesign-internal-qv { order: 1 !important; }
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-icons-wrapper .acodesign-native-wishlist-btn { order: 2 !important; }
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-icons-wrapper .acodesign-native-compare-btn { order: 3 !important; }
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-icons-wrapper .acodesign-floating-cart-wrapper { 
        order: 4 !important; 
        display: flex !important; 
        align-items: center !important; 
        justify-content: center !important; 
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Convertir Add to Cart a icono (SVG de bolsa) usando el fondo en lugar de ::before */
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-cart-wrapper .button {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        min-width: 36px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        background-color: transparent !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23131728' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V9a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v12a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z'/%3E%3Cpath d='M10 7V5a2 2 0 0 1 4 0v2'/%3E%3C/svg%3E") !important;
        background-size: 18px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        color: transparent !important;
        border: none !important;
        font-size: 0 !important;
        min-height: auto !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        transition: transform 0.2s ease, background-color 0.2s ease, background-image 0.2s ease !important;
    }

    html body ul.products li.product.acodesign-style-4 .acodesign-floating-cart-wrapper .button:hover {
        font-size: 0 !important;
        color: transparent !important;
        background-color: var(--acd-icon-hover-bg, #131728) !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V9a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v12a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z'/%3E%3Cpath d='M10 7V5a2 2 0 0 1 4 0v2'/%3E%3C/svg%3E") !important;
    }

    /* Estados de carga: usar spinner SMIL en background-image */
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-cart-wrapper .button.acd-btn-loading,
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-cart-wrapper .button.loading {
        background-color: transparent !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' stroke='%23131728' stroke-width='3' stroke-linecap='round' d='M12 3a9 9 0 1 1-9 9'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") !important;
        opacity: 0.8 !important;
    }

    /* Estado aÃ±adido: Checkmark blanco con fondo oscuro */
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-cart-wrapper .button.added {
        background-color: var(--acd-icon-hover-bg, #131728) !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
        opacity: 1 !important;
    }

    /* Ocultar elementos internos y pseudo-elementos nativos (spinners y checkmarks de WooCommerce) */
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-cart-wrapper .button * {
        display: none !important; /* Ocultar textos o spans internos */
    }
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-cart-wrapper .button.loading::before,
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-cart-wrapper .button.loading::after,
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-cart-wrapper .button.added::before,
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-cart-wrapper .button.added::after {
        display: none !important;
        content: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Tooltip nativo (::after y ::before) posicionado ARRIBA del icono */
    html body ul.products li.product.acodesign-style-4 .acodesign-floating-icons-wrapper a[aria-label]::after {
        content: attr(aria-label) !important; /* Asegurar que tome el texto */
        right: auto !important;
        top: auto !important;
        bottom: calc(100% + 8px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        transition: opacity 0.2s ease, visibility 0.2s ease, bottom 0.2s ease !important;
        background-color: #131728 !important;
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        padding: 4px 8px !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
        opacity: 0 !important;
        visibility: hidden !important;
        z-index: 100 !important;
        pointer-events: none !important;
    }

    html body ul.products li.product.acodesign-style-4 .acodesign-floating-icons-wrapper a[aria-label]::before {
        content: "" !important;
        right: auto !important;
        top: auto !important;
        bottom: calc(100% + 2px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-width: 6px 6px 0 6px !important;
        border-style: solid !important;
        border-color: #131728 transparent transparent transparent !important;
        transition: opacity 0.2s ease, visibility 0.2s ease, bottom 0.2s ease !important;
        opacity: 0 !important;
        visibility: hidden !important;
        position: absolute !important;
        z-index: 100 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        background: none !important;
    }

    html body ul.products li.product.acodesign-style-4 .acodesign-floating-icons-wrapper a[aria-label]:hover::after {
        opacity: 1 !important;
        visibility: visible !important;
        bottom: calc(100% + 6px) !important;
    }

    html body ul.products li.product.acodesign-style-4 .acodesign-floating-icons-wrapper a[aria-label]:hover::before {
        opacity: 1 !important;
        visibility: visible !important;
        bottom: 100% !important;
    }



}

/* ============================================================
   ESTILOS DE PAGINACIÓN NATIVA WOOCOMMERCE / ACODESIGN
   ============================================================ */
.woocommerce-pagination,
nav.woocommerce-pagination {
    margin: 40px 0 20px !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    clear: both !important;
}

.woocommerce-pagination ul.page-numbers,
nav.woocommerce-pagination ul.page-numbers {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    background: transparent !important;
}

.woocommerce-pagination ul.page-numbers li,
nav.woocommerce-pagination ul.page-numbers li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    border: none !important;
    background: none !important;
}

.woocommerce-pagination ul.page-numbers li .page-numbers,
nav.woocommerce-pagination ul.page-numbers li .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #1e293b !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.woocommerce-pagination ul.page-numbers li a.page-numbers:hover,
.woocommerce-pagination ul.page-numbers li a.page-numbers:focus,
nav.woocommerce-pagination ul.page-numbers li a.page-numbers:hover,
nav.woocommerce-pagination ul.page-numbers li a.page-numbers:focus {
    border-color: #131728 !important;
    background: #131728 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.current,
nav.woocommerce-pagination ul.page-numbers li .page-numbers.current {
    border-color: #131728 !important;
    background: #131728 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
}

.woocommerce-pagination ul.page-numbers li .page-numbers.dots,
nav.woocommerce-pagination ul.page-numbers li .page-numbers.dots {
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    min-width: auto !important;
    padding: 0 6px !important;
}

/* =======================================================
   ACODESIGN: CATEGORY TABS BAR
======================================================= */
.acd-category-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
}

.acd-category-tabs-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

button.acd-tab-item,
.acd-tab-item {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: var(--acd-tab-color, #777777) !important;
    padding: 6px 0 !important;
    cursor: pointer !important;
    position: relative !important;
    transition: color 0.25s ease !important;
}

button.acd-tab-item:hover,
button.acd-tab-item:focus,
button.acd-tab-item.active,
.acd-tab-item:hover,
.acd-tab-item:focus,
.acd-tab-item.active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--acd-tab-active-color, #111111) !important;
}

.acd-tab-item.active:after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--acd-tab-active-color, #111111);
    transition: all 0.25s ease;
}

a.acd-view-all-link,
.acd-view-all-link {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--acd-view-all-color, #111111) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease !important;
}

a.acd-view-all-link:hover,
a.acd-view-all-link:focus,
.acd-view-all-link:hover {
    color: var(--acd-view-all-color, #111111) !important;
    opacity: 0.65 !important;
    transform: translateX(2px) !important;
    text-decoration: none !important;
}

/* Alignment classes */
.acd-category-tabs-bar.acd-tabs-align-center {
    justify-content: center;
}
.acd-category-tabs-bar.acd-tabs-align-center .acd-category-tabs-list {
    justify-content: center;
}
.acd-category-tabs-bar.acd-tabs-align-right {
    justify-content: flex-end;
}
.acd-category-tabs-bar.acd-tabs-align-right .acd-category-tabs-list {
    justify-content: flex-end;
}

.acd-products-loading {
    opacity: 0.4 !important;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Equal Height & Swiper Layout Optimization */
.acodesign-carousel-wrapper .swiper-slide {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.acodesign-carousel-wrapper .swiper-slide > div,
.acodesign-carousel-wrapper .swiper-slide .acodesign-product-card,
.acodesign-carousel-wrapper .swiper-slide li.product {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.acodesign-carousel-wrapper ul.products li.product.swiper-slide .acodesign-image-wrapper {
    width: 100% !important;
    aspect-ratio: 3/4 !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.acodesign-carousel-wrapper ul.products li.product.swiper-slide .acodesign-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
