/* ==========================================================================
   AI Layout Templates — acodesign-product-grid
   Scoped via Container (.acodesign-products-wrapper) for ALL loops (native & shortcode)
   ========================================================================== */

/* ======================================================
   Template: Standard Card
   ====================================================== */
.acodesign-products-wrapper.acd-layout-standard ul.products li.product .acodesign-floating-icons-wrapper .acodesign-floating-cart-wrapper {
    display: flex !important;
    width: 100%;
    margin-top: auto;
}

/* ======================================================
   Template: Button Always Visible (PC Desktop)
   ====================================================== */
@media (min-width: 769px) {
    /* Action icons (Wishlist, QV, Compare) show on hover */
    .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product .acodesign-floating-icons-wrapper {
        opacity: 0;
        transition: all 0.3s ease !important;
    }
    .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product:hover .acodesign-floating-icons-wrapper {
        opacity: 1 !important;
    }

    /* Make cards stretch to equal height and push button to the bottom */
    .acodesign-products-wrapper.acd-layout-button-visible ul.products {
        align-items: stretch !important;
    }
    .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product {
        display: flex !important;
        flex-direction: column !important;
    }
    .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product .price,
    .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product span.price {
        margin: 3px 10px 2px 10px !important;
    }

    .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product .cfvsw_variations_form {
        margin: 2px 0 6px 0 !important;
    }

    .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product .acodesign-template-cart-wrapper {
        margin-top: auto !important;
        padding-top: 8px !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Main Add to Cart button is ALWAYS VISIBLE on PC - render outer wrapper */
    .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product:not(.acodesign-style-3) .acodesign-template-cart-wrapper {
        display: block !important;
    }

    .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product:not(.acodesign-style-3) .acodesign-template-cart-wrapper .button,
    .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product:not(.acodesign-style-3) .acodesign-template-cart-wrapper .add_to_cart_button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        transform: none !important;
        background-color: var(--acd-btn-bg, #131728) !important;
        color: var(--acd-btn-text, #ffffff) !important;
        padding: 10px 20px !important;
        border: var(--acd-btn-border-width, 1px) solid var(--acd-btn-border-color, #131728) !important;
        border-radius: var(--acd-btn-radius, 4px) !important;
        box-shadow: var(--acd-btn-shadow, none) !important;
        width: 85% !important;
        margin: 0 auto !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        height: 42px !important;
        min-height: 42px !important;
        line-height: 1 !important;
    }
 
    .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product:not(.acodesign-style-3) .acodesign-template-cart-wrapper .button:hover,
    .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product:not(.acodesign-style-3) .acodesign-template-cart-wrapper .add_to_cart_button:hover {
        background-color: var(--acd-btn-hover-bg, #000000) !important;
        color: var(--acd-btn-hover-text, #ffffff) !important;
        border-color: var(--acd-btn-border-hover-color, #131728) !important;
    }

    /* Hide redundant cart icon in floating wrapper AND hide inner button */
    .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product .acodesign-floating-icons-wrapper .acodesign-floating-cart-wrapper,
    .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product:not(.acodesign-style-3) .acodesign-image-wrapper > .button,
    .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product:not(.acodesign-style-3) .acodesign-image-wrapper > .add_to_cart_button {
        display: none !important;
    }
}

/* ======================================================
   Template: Horizontal Card — COLUMN 1: image | COLUMN 2: flex column
   NOTE: .acd-layout-horizontal is applied to .acodesign-products-wrapper div.
   Desktop (>768px): 2 columns, horizontal cards (image left 140px + content right).
   Mobile (<=768px): Standard vertical card grid (2 columns per row, identical to Style 1).
   ====================================================== */

@media (min-width: 769px) {
    /* 1. Products loop = 2 columns on desktop */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products,
    html body.woocommerce .acodesign-products-wrapper.acd-layout-horizontal ul.products,
    html body.woocommerce-page .acodesign-products-wrapper.acd-layout-horizontal ul.products,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products[class*="columns-"],
    html body.woocommerce .acodesign-products-wrapper.acd-layout-horizontal ul.products[class*="columns-"],
    html body.woocommerce-page .acodesign-products-wrapper.acd-layout-horizontal ul.products[class*="columns-"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }

    /* 2. Each card = 2-column grid: [140px image] [content] */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product {
        display: grid !important;
        grid-template-columns: 140px 1fr !important;
        grid-template-rows: auto auto auto auto auto !important;
        gap: 0 16px !important;
        align-content: start !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 164px !important;
        height: auto !important;
        float: none !important;
        margin: 0 !important;
        background: var(--acd-card-bg, #ffffff) !important;
        border: var(--acd-card-border-width, 1px) solid var(--acd-card-border-color, #e2e8f0) !important;
        border-radius: var(--acd-card-border-radius, 12px) !important;
        padding: 12px !important;
        box-shadow: var(--acd-card-shadow, 0 1px 3px rgba(0,0,0,0.05)) !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* Remove WooCommerce's empty overlay link from the grid. */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product > a.woocommerce-loop-product__link {
        display: none !important;
    }

    /* 3. Column 1: image wrapper — position:static so floating icons anchor to li.product */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper {
        grid-column: 1 !important;
        grid-row: 1 / -1 !important;
        width: 140px !important;
        height: 140px !important;
        max-width: 140px !important;
        max-height: 140px !important;
        overflow: visible !important;
        border-radius: 4px !important;
        margin: 0 !important;
        position: static !important;
        display: block !important;
        align-self: start !important;
        transform: none !important;
    }

    /* Images — standard flow, 140×140px */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper img {
        display: block !important;
        width: 140px !important;
        height: 140px !important;
        max-width: 140px !important;
        max-height: 140px !important;
        object-fit: cover !important;
        object-position: center center !important;
        vertical-align: top !important;
        border-radius: 4px !important;
        transform: none !important;
    }

    /* Overlay link — anchored to li.product (position:relative L118) */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper a.acodesign-overlay-link {
        position: absolute !important;
        top: 12px !important;
        left: 12px !important;
        width: 140px !important;
        height: 140px !important;
        z-index: 2 !important;
    }

    /* Prevent image expansion on li.product:hover */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product:hover .acodesign-image-wrapper,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product:hover .acodesign-image-wrapper img {
        width: 140px !important;
        max-width: 140px !important;
        height: 140px !important;
        max-height: 140px !important;
        transform: none !important;
    }

    /* 4. Hide WooCommerce overlay button inside image wrapper for desktop */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper > .add_to_cart_button,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper > .button {
        display: none !important;
    }

    /* 5a. Product Category — row 1, column 2 (only present when product has categories) */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product > .acodesign-product-category,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-product-category {
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: start !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: var(--acd-cat-color, #94a3b8) !important;
        margin: 0 0 2px 0 !important;
        padding: 0 !important;
        display: block !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-product-category a {
        color: var(--acd-cat-color, #94a3b8) !important;
        text-decoration: none !important;
    }

    /* 5b–6. Default (no category): title=row1, price=row2, swatches=row3, cart=row4 */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product > .acodesign-title-link,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-title-link {
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: start !important;
        margin: 0 0 4px 0 !important;
        padding: 0 !important;
        display: block !important;
        text-decoration: none !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-title-link .woocommerce-loop-product__title {
        margin: 0 40px 0 0 !important;
        padding: 0 !important;
        font-size: var(--acd-title-font-size, 14px) !important;
        color: var(--acd-title-color, #1e293b) !important;
        line-height: 1.3 !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    /* 6. Price — default row 2 (no category) */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product span.price,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .price {
        grid-column: 2 !important;
        grid-row: 2 !important;
        align-self: start !important;
        margin: 2px 0 6px 0 !important;
        padding: 0 !important;
        font-size: var(--acd-price-font-size, 14px) !important;
        font-weight: 600 !important;
        color: var(--acd-price-color, #0f172a) !important;
        line-height: 1 !important;
        display: block !important;
    }

    /* 6b. Variations Swatches — default row 3 (no category) */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product > .cfvsw_variations_form,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .cfvsw_variations_form,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product > table.cfvsw-shop-variations,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product table.cfvsw-shop-variations {
        grid-column: 2 !important;
        grid-row: 3 !important;
        margin: 4px 0 0 0 !important;
        padding: 0 !important;
        display: block !important;
        position: static !important;
        z-index: 5 !important;
        width: 100% !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product table.cfvsw-shop-variations tr,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .cfvsw_variations_form tr {
        display: block !important;
        margin: 0 0 4px 0 !important;
        padding: 0 !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product table.cfvsw-shop-variations tr:last-child,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .cfvsw_variations_form tr:last-child {
        margin-bottom: 0 !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .cfvsw-swatches-container,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .cfvsw-swatches-container.cfvsw-shop-container,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .cfvsw_variations_form .cfvsw-swatches-container,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product table.cfvsw-shop-variations .cfvsw-swatches-container {
        margin: 0 0 4px 0 !important;
        padding: 0 !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .cfvsw-swatches-container:last-child,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .cfvsw-swatches-container.cfvsw-shop-container:last-child {
        margin-bottom: 0 !important;
    }

    /* 7. Cart button wrapper — default row 4 (no category) */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product > .acodesign-template-cart-wrapper,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-template-cart-wrapper {
        grid-column: 2 !important;
        grid-row: 4 !important;
        position: static !important;
        justify-self: start !important;
        align-self: start !important;
        margin: 4px 0 10px 0 !important;
        padding: 0 !important;
        display: block !important;
        width: auto !important;
        z-index: 20 !important;
        pointer-events: auto !important;
    }

    /* 7b. Cart button — base style */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product > .acodesign-template-cart-wrapper a,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product > .acodesign-template-cart-wrapper button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 7px 14px !important;
        margin: 0 !important;
        width: auto !important;
        box-sizing: border-box !important;
        background-color: var(--acd-btn-bg, #ffffff) !important;
        color: var(--acd-btn-text, #131728) !important;
        border: 1px solid var(--acd-btn-border-color, #131728) !important;
        border-radius: var(--acd-btn-radius, 4px) !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        background-image: none !important;
        pointer-events: auto !important;
    }

    /* 7c. Cart button — HOVER */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product > .acodesign-template-cart-wrapper a:hover,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product > .acodesign-template-cart-wrapper button:hover,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product > .acodesign-template-cart-wrapper .add_to_cart_button:hover,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product > .acodesign-template-cart-wrapper .button:hover {
        background-color: var(--acd-btn-hover-bg, #131728) !important;
        color: var(--acd-btn-hover-text, #ffffff) !important;
        border-color: var(--acd-btn-hover-bg, #131728) !important;
        background-image: none !important;
    }

    /* 8. Floating action icons — top-right corner inside li.product card border */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-floating-icons-wrapper {
        position: absolute !important;
        top: 12px !important;
        right: 18px !important;
        left: auto !important;
        bottom: auto !important;
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        gap: 6px !important;
        background: transparent !important;
        z-index: 25 !important;
        pointer-events: auto !important;
        overflow: visible !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-floating-icons-wrapper a,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-wishlist-btn,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-qv-button,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-compare-btn,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-floating-icons-wrapper a.compare {
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        border-radius: 50% !important;
        background-color: #ffffff !important;
        color: #1e293b !important;
        border: 1px solid #e2e8f0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
        transition: all 0.25s ease !important;
        overflow: visible !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
    }

    /* 8b. Icon hover — background-color dark + white SVG icons */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-wishlist-btn:hover,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-floating-icons-wrapper a[class*="yith-add-to-wishlist"]:hover {
        background-color: var(--acd-icon-hover-bg, #131728) !important;
        border-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='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 .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-qv-button:hover {
        background-color: var(--acd-icon-hover-bg, #131728) !important;
        border-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='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-compare-btn:hover,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-floating-icons-wrapper a.compare:hover {
        background-color: var(--acd-icon-hover-bg, #131728) !important;
        border-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;
    }

    /* 8c. Tooltip — harmonize with global-front.css opacity/visibility system */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]::after {
        opacity: 0 !important;
        visibility: hidden !important;
        right: calc(100% + 12px) !important;
        transition: opacity 0.2s ease, visibility 0.2s ease, right 0.2s ease !important;
        pointer-events: none !important;
        z-index: 99 !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]:hover::after {
        opacity: 1 !important;
        visibility: visible !important;
        right: calc(100% + 8px) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]::before {
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.2s ease, visibility 0.2s ease !important;
        pointer-events: none !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]:hover::before {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* :has() — when category IS in the DOM, shift all column-2 elements down by 1 row */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product:has(.acodesign-product-category) .acodesign-title-link {
        grid-row: 2 !important;
    }
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product:has(.acodesign-product-category) span.price,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product:has(.acodesign-product-category) .price {
        grid-row: 3 !important;
    }
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product:has(.acodesign-product-category) .cfvsw_variations_form,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product:has(.acodesign-product-category) table.cfvsw-shop-variations {
        grid-row: 4 !important;
    }
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product:has(.acodesign-product-category) .acodesign-template-cart-wrapper {
        grid-row: 5 !important;
    }
}

@media (max-width: 768px) {
    /* 1. Match Style 1 mobile: 2 product cards per row. */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products,
    html body.woocommerce .acodesign-products-wrapper.acd-layout-horizontal ul.products,
    html body.woocommerce-page .acodesign-products-wrapper.acd-layout-horizontal ul.products,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products[class*="columns-"],
    html body.woocommerce .acodesign-products-wrapper.acd-layout-horizontal ul.products[class*="columns-"],
    html body.woocommerce-page .acodesign-products-wrapper.acd-layout-horizontal ul.products[class*="columns-"] {
        display: grid !important;
        grid-template-columns: repeat(var(--acd-mobile-columns, 2), 1fr) !important;
        gap: 16px !important;
    }

    /* 2. Reset card from 2-column grid to vertical flex column layout on mobile */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        padding: 0 !important;
        position: relative !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        border-radius: var(--acd-card-border-radius, 12px) !important;
        border: var(--acd-card-border-width, 1px) solid var(--acd-card-border-color, #e2e8f0) !important;
        background: var(--acd-card-bg, #ffffff) !important;
        overflow: hidden !important;
    }

    /* 3. Reset image wrapper flow to match Style 1 mobile wrapper */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper {
        grid-column: auto !important;
        grid-row: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        position: relative !important;
        margin: 0 !important;
        padding-bottom: 42px !important;
        box-sizing: content-box !important;
        overflow: hidden !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper > a:not(.add_to_cart_button):not(.button):not(.acodesign-internal-qv):not(.acodesign-overlay-link) {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        line-height: normal !important;
        font-size: inherit !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transform: none !important;
    }

    /* 4. Restore mobile 50/50 bottom bar inside image wrapper for Horizontal card, Button Always Visible, Minimal Clean & Centered */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper .add_to_cart_button *,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper .button *,
    html body .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product .acodesign-image-wrapper .add_to_cart_button *,
    html body .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product .acodesign-image-wrapper .button *,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .add_to_cart_button *,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .button *,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-image-wrapper .add_to_cart_button *,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-image-wrapper .button * {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper .add_to_cart_button,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper .button,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper .product_type_simple,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper .product_type_variable,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper .ajax_add_to_cart,
    html body .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product .acodesign-image-wrapper .add_to_cart_button,
    html body .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product .acodesign-image-wrapper .button,
    html body .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product .acodesign-image-wrapper .product_type_simple,
    html body .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product .acodesign-image-wrapper .product_type_variable,
    html body .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product .acodesign-image-wrapper .ajax_add_to_cart,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .add_to_cart_button,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .button,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .product_type_simple,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .product_type_variable,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .ajax_add_to_cart,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-image-wrapper .add_to_cart_button,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-image-wrapper .button,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-image-wrapper .product_type_simple,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-image-wrapper .product_type_variable,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-image-wrapper .ajax_add_to_cart {
        display: flex !important;
        position: absolute !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        top: auto !important;
        width: 50% !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-top: 1px solid #eeeeee !important;
        border-right: 1px solid #eeeeee !important;
        border-radius: 0 !important;
        background-color: #ffffff !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' 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-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 18px !important;
        font-size: 0 !important;
        color: transparent !important;
        text-indent: 0 !important;
        z-index: 20 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-image-wrapper > .acodesign-internal-qv {
        display: flex !important;
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        width: 50% !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-top: 1px solid #eeeeee !important;
        border-radius: 0 !important;
        background-color: #ffffff !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131728' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 20px !important;
        z-index: 20 !important;
    }

    /* 5. Reset title & price flow on mobile */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-title-link {
        grid-column: auto !important;
        grid-row: auto !important;
        margin: 10px 10px 0 10px !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-title-link .woocommerce-loop-product__title {
        margin: 0 !important;
    }

    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product span.price,
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .price {
        grid-column: auto !important;
        grid-row: auto !important;
        margin: 6px 10px 12px 10px !important;
    }

    /* 6. Hide PC cart button wrapper on mobile for Horizontal card, Button Always Visible, Minimal Clean, Centered & Overlay Dark */
    html body .acodesign-products-wrapper.acd-layout-horizontal ul.products li.product .acodesign-template-cart-wrapper,
    html body .acodesign-products-wrapper.acd-layout-button-visible ul.products li.product .acodesign-template-cart-wrapper,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-template-cart-wrapper,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-template-cart-wrapper,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-template-cart-wrapper {
        display: none !important;
    }

    /* 7. Explicit Overlay Dark Mobile Reset to match Style 1 mobile 100% */
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product {
        position: relative !important;
        overflow: hidden !important;
        min-height: auto !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        border-radius: var(--acd-card-border-radius, 12px) !important;
        border: var(--acd-card-border-width, 1px) solid var(--acd-card-border-color, #e2e8f0) !important;
        background: var(--acd-card-bg, #ffffff) !important;
        box-shadow: none !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding-bottom: 42px !important;
        box-sizing: content-box !important;
        overflow: hidden !important;
        border-radius: 0 !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper::after {
        display: none !important;
        content: none !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-product-category {
        position: relative !important;
        z-index: 1 !important;
        margin: 10px 10px 4px 10px !important;
        transform: none !important;
        color: var(--acd-cat-color, #64748b) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product a.acodesign-title-link {
        position: relative !important;
        z-index: 1 !important;
        margin: 0 10px 6px 10px !important;
        transform: none !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .woocommerce-loop-product__title {
        color: var(--acd-title-color, #1e293b) !important;
        font-size: var(--acd-title-font-size, 14px) !important;
        text-shadow: none !important;
        transform: none !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .price,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product span.price {
        position: relative !important;
        z-index: 1 !important;
        margin: 0 10px 12px 10px !important;
        transform: none !important;
        color: var(--acd-price-color, #0f172a) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .price ins,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product span.price ins {
        color: inherit !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .price del,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product span.price del {
        color: var(--acd-old-price-color, #94a3b8) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper .add_to_cart_button,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper .button,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper .product_type_simple,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper .product_type_variable,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper .ajax_add_to_cart {
        display: flex !important;
        position: absolute !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        top: auto !important;
        width: 50% !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-top: 1px solid #eeeeee !important;
        border-right: 1px solid #eeeeee !important;
        border-radius: 0 !important;
        background-color: #ffffff !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' 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-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 18px !important;
        font-size: 0 !important;
        color: transparent !important;
        text-indent: 0 !important;
        z-index: 20 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper > .acodesign-internal-qv {
        display: flex !important;
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        width: 50% !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-top: 1px solid #eeeeee !important;
        border-radius: 0 !important;
        background-color: #ffffff !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131728' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 20px !important;
        z-index: 20 !important;
    }
}

/* ======================================================
   Template: Minimal Clean (.acd-layout-minimal)
   ====================================================== */
@media (min-width: 769px) {
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product {
        display: flex !important;
        flex-direction: column !important;
        background: var(--acd-card-bg, #ffffff) !important;
        border: var(--acd-card-border-width, 1px) solid var(--acd-card-border-color, #f1f5f9) !important;
        border-radius: var(--acd-card-border-radius, 4px) !important;
        padding: 0 !important;
        box-shadow: var(--acd-card-shadow, none) !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        height: auto !important;
    }

    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
    }

    /* Hide external template cart button on desktop for Minimal Clean */
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product > .acodesign-template-cart-wrapper {
        display: none !important;
    }

    /* Image Wrapper — 100% width with zoom on hover */
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        overflow: hidden !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        background: #f8fafc !important;
    }

    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product:hover .acodesign-image-wrapper img {
        transform: scale(1.04) !important;
    }

    /* Floating Wishlist Icon (Top Right) — Hidden by default, visible on hover */
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-floating-icons-wrapper {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        left: auto !important;
        bottom: auto !important;
        z-index: 25 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
        background: transparent !important;
    }

    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product:hover .acodesign-floating-icons-wrapper {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Hide Quick View inside floating icons since Quick View has its own dedicated button on the bottom bar */
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-qv-button {
        display: none !important;
    }

    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-floating-icons-wrapper a {
        width: 34px !important;
        height: 34px !important;
        border-radius: 50% !important;
        background-color: #ffffff !important;
        color: #1e293b !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        transition: background-color 0.25s ease, border-color 0.25s ease !important;
        cursor: pointer !important;
    }

    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-wishlist-btn:hover,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-floating-icons-wrapper a[class*="yith-add-to-wishlist"]:hover {
        background-color: var(--acd-icon-hover-bg, #131728) !important;
        border-color: var(--acd-icon-hover-bg, #131728) !important;
        color: #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='%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 .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-compare-btn:hover,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-floating-icons-wrapper a.compare:hover {
        background-color: var(--acd-icon-hover-bg, #131728) !important;
        border-color: var(--acd-icon-hover-bg, #131728) !important;
        color: #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='%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;
    }

    /* Floating Bottom Action Bar inside Image Wrapper — Hidden by default, visible on hover */
    /* Add to Cart button — Standardized with Style 1 CSS variables */
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .add_to_cart_button *,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .button * {
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .add_to_cart_button,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .button,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .product_type_simple,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .product_type_variable {
        position: absolute !important;
        bottom: 12px !important;
        left: 12px !important;
        right: 58px !important;
        width: calc(100% - 70px) !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        background-color: var(--acd-btn-bg, #ffffff) !important;
        color: var(--acd-btn-text, #131728) !important;
        border: var(--acd-btn-border-width, 1px) solid var(--acd-btn-border-color, #e2e8f0) !important;
        border-radius: var(--acd-btn-radius, 4px) !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(8px) !important;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
        z-index: 20 !important;
        text-decoration: none !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        margin: 0 !important;
        padding: 0 12px !important;
        background-image: none !important;
        text-indent: 0 !important;
        line-height: 1 !important;
    }

    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product:hover .acodesign-image-wrapper .add_to_cart_button,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product:hover .acodesign-image-wrapper .button,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product:hover .acodesign-image-wrapper .product_type_simple,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product:hover .acodesign-image-wrapper .product_type_variable {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .add_to_cart_button:hover,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .button:hover {
        background-color: var(--acd-btn-hover-bg, #131728) !important;
        color: var(--acd-btn-hover-text, #ffffff) !important;
        border-color: var(--acd-btn-border-hover-color, #131728) !important;
    }

    /* Quick View Eye Button (White button on right of bottom bar) */
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .acodesign-internal-qv {
        position: absolute !important;
        bottom: 12px !important;
        right: 12px !important;
        left: auto !important;
        top: auto !important;
        width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        background-color: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(8px) !important;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.25s ease, border-color 0.25s ease !important;
        z-index: 20 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        margin: 0 !important;
        padding: 0 !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131728' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 20px !important;
        cursor: pointer !important;
    }

    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product:hover .acodesign-image-wrapper .acodesign-internal-qv {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-image-wrapper .acodesign-internal-qv:hover {
        background-color: var(--acd-icon-hover-bg, #131728) !important;
        border-color: var(--acd-icon-hover-bg, #131728) !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
    }

    /* Product Content (Below Image) */
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-product-category {
        font-size: 11px !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: #94a3b8 !important;
        margin: 12px 14px 2px 14px !important;
    }

    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-title-link {
        margin: 4px 14px 4px 14px !important;
        display: block !important;
        text-decoration: none !important;
    }

    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .acodesign-title-link .woocommerce-loop-product__title {
        font-size: var(--acd-title-font-size, 14px) !important;
        font-weight: 600 !important;
        color: var(--acd-title-color, #1e293b) !important;
        margin: 0 !important;
        line-height: 1.3 !important;
    }

    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product span.price,
    html body .acodesign-products-wrapper.acd-layout-minimal ul.products li.product .price {
        margin: 4px 14px 2px 14px !important;
        font-size: var(--acd-price-font-size, 14px) !important;
        font-weight: 600 !important;
        color: var(--acd-price-color, #0f172a) !important;
        display: block !important;
    }
}

/* ======================================================
   Template: Overlay Dark (.acd-layout-overlay) — PC ONLY
   ====================================================== */
@media (min-width: 769px) {
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product {
        position: relative !important;
        overflow: hidden !important;
        min-height: 340px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        padding: 0 !important;
        border-radius: var(--acd-card-border-radius, 12px) !important;
        border: none !important;
        box-sizing: border-box !important;
        background-color: #0f172a !important;
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15) !important;
        --acd-title-color: #ffffff !important;
        --acd-price-color: #ffffff !important;
    }

    /* Background Image Container */
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper {
        position: absolute !important;
        inset: 0 !important;
        z-index: 1 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product:hover .acodesign-image-wrapper img {
        transform: scale(1.06) !important;
    }

    /* Dark Overlay Gradient */
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper::after {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.43) 60%, rgba(11, 15, 25, 0.7) 100%) !important;
        z-index: 18 !important;
        pointer-events: none !important;
        transition: background 0.3s ease !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product:hover .acodesign-image-wrapper::after {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.85) 55%, rgba(11, 15, 25, 0.98) 100%) !important;
    }

    /* Top Left Sale / Discount Badge */
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product span.onsale,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-discount-badge {
        position: absolute !important;
        top: 16px !important;
        left: 16px !important;
        z-index: 25 !important;
        background: rgba(255, 255, 255, 0.18) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        border-radius: 6px !important;
        padding: 4px 10px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin: 0 !important;
    }

    /* Content Area (Category, Title, Price, Swatches) — Sits at Bottom */
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-product-category,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product a.acodesign-title-link,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .price,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .cfvsw_variations_form {
        position: relative !important;
        z-index: 25 !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-product-category,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-product-category a {
        margin-bottom: 4px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        color: var(--acd-title-color, #ffffff) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.8px !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
        text-decoration: none !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-product-category a:hover {
        color: var(--acd-title-color, #ffffff) !important;
        opacity: 0.8 !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product a.acodesign-title-link,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product a.acodesign-title-link:hover {
        margin-bottom: 6px !important;
        text-decoration: none !important;
        display: block !important;
        color: var(--acd-title-color, #ffffff) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .woocommerce-loop-product__title,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product a.acodesign-title-link .woocommerce-loop-product__title {
        font-size: var(--acd-title-font-size, 16px) !important;
        font-weight: var(--acd-title-font-weight, 700) !important;
        color: var(--acd-title-color, #ffffff) !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
        transform: none !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .price,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product span.price {
        margin-bottom: 4px !important;
        font-size: var(--acd-price-font-size, 15px) !important;
        font-weight: var(--acd-price-font-weight, 600) !important;
        color: var(--acd-price-color, #ffffff) !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .price ins,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product span.price ins,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .price ins .amount,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product span.price ins .amount {
        color: inherit !important;
        font-weight: 700 !important;
        text-decoration: none !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .price del,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product span.price del,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .price del .amount,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product span.price del .amount {
        color: var(--acd-old-price-color, rgba(255, 255, 255, 0.55)) !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        text-decoration: line-through !important;
    }

    /* Swatches integration on Overlay Dark */
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .cfvsw_variations_form {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .cfvsw_variations_form .cfvsw-swatches-container.cfvsw-shop-container {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* On Hover: Category, Title, Price & Swatches Slide UP by 50px */
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product:hover .acodesign-product-category,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product:hover a.acodesign-title-link,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product:hover .price,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product:hover .cfvsw_variations_form {
        transform: translateY(-50px) !important;
    }

    /* Floating Action Icons (Wishlist, Compare, Quick View) — Top Right Glassmorphic Circles */
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper .acodesign-floating-icons-wrapper {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        z-index: 30 !important;
        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        opacity: 0 !important;
        transform: translateY(-4px) !important;
        transition: opacity 0.3s ease, transform 0.3s ease !important;
        pointer-events: none !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product:hover .acodesign-floating-icons-wrapper,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product:hover .acodesign-image-wrapper .acodesign-floating-icons-wrapper {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper a,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper button,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-qv-button,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-wishlist-btn,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-compare-btn,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .compare,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] a,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] button,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper a,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper button,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-qv-button,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-wishlist-btn,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-compare-btn,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .compare,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] a,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] button {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
        border-radius: 50% !important;
        background-color: rgba(255, 255, 255, 0.18) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-qv-button,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-qv-button,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-qv-button:hover,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-qv-button:hover {
        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='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 16px 16px !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-compare-btn,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-compare-btn,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-compare-btn:hover,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-compare-btn:hover,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .compare,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .compare,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .compare:hover,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .compare:hover {
        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;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 16px 16px !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-wishlist-btn,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-wishlist-btn,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-wishlist-btn:hover,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-wishlist-btn:hover,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] a,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] button,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] a,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] button,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"]:hover a,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"]:hover button,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"]:hover a,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"]:hover button {
        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;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 16px 16px !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-custom-mask-icon,
    html body div.acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-custom-mask-icon {
        background-color: #ffffff !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper a:hover,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper button:hover {
        background-color: rgba(255, 255, 255, 0.35) !important;
        transform: scale(1.08) !important;
    }

    /* Overlay Dark Tooltips — Positioned BELOW each floating icon button */
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]::after,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper button[aria-label]::after {
        top: calc(100% + 8px) !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.2s ease, visibility 0.2s ease, top 0.2s ease !important;
        pointer-events: none !important;
        z-index: 100 !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]:hover::after,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper button[aria-label]:hover::after {
        opacity: 1 !important;
        visibility: visible !important;
        top: calc(100% + 6px) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]::before,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper button[aria-label]::before {
        top: calc(100% + 2px) !important;
        bottom: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        border-width: 0 5px 5px 5px !important;
        border-color: transparent transparent #131728 transparent !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.2s ease, visibility 0.2s ease, top 0.2s ease !important;
        pointer-events: none !important;
        z-index: 100 !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]:hover::before,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper button[aria-label]:hover::before {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Align Wishlist (Rightmost) Tooltip to the Right Edge so it never overflows card border */
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-wishlist-btn[aria-label]::after,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] a[aria-label]::after,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] button[aria-label]::after {
        left: auto !important;
        right: 0 !important;
        transform: none !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-wishlist-btn[aria-label]::before,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] a[aria-label]::before,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] button[aria-label]::before {
        left: auto !important;
        right: 12px !important;
        transform: none !important;
    }

    /* Hide duplicate loop buttons inside image-wrapper for Overlay Dark (in-stock and out-of-stock) */
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper > .button,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper > .add_to_cart_button,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper .add_to_cart_button,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-image-wrapper a.button:not(.acodesign-internal-qv):not(.acodesign-floating-icons-wrapper *) {
        display: none !important;
    }

    /* Bottom CTA & Action Row — Absolute Positioned at Bottom (Single Button) */
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-template-cart-wrapper {
        position: absolute !important;
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
        width: calc(100% - 40px) !important;
        z-index: 28 !important;
        opacity: 0 !important;
        transform: translateY(15px) !important;
        margin: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product:hover .acodesign-template-cart-wrapper {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-template-cart-wrapper a,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-template-cart-wrapper button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 42px !important;
        background-color: var(--acd-btn-bg, #ffffff) !important;
        color: var(--acd-btn-text, #0f172a) !important;
        font-size: var(--acd-btn-font-size, 12px) !important;
        font-weight: 700 !important;
        border-radius: var(--acd-btn-radius, 8px) !important;
        border: none !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        box-shadow: 0 4px 14px rgba(0,0,0,0.25) !important;
        transition: all 0.2s ease !important;
        cursor: pointer !important;
    }

    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-template-cart-wrapper a:hover,
    html body .acodesign-products-wrapper.acd-layout-overlay ul.products li.product .acodesign-template-cart-wrapper button:hover {
        background-color: var(--acd-btn-hover-bg, #f8fafc) !important;
        color: var(--acd-btn-hover-text, #020617) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 6px 20px rgba(0,0,0,0.35) !important;
    }
}

/* ======================================================
   Template: Centered (.acd-layout-centered)
   ====================================================== */
@media (min-width: 769px) {
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        background: var(--acd-card-bg, #ffffff) !important;
        border: var(--acd-card-border-width, 1px) solid var(--acd-card-border-color, #e2e8f0) !important;
        border-radius: var(--acd-card-border-radius, 16px) !important;
        padding: 16px 16px 20px 16px !important;
        box-shadow: var(--acd-card-shadow, none) !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
    }

    /* Image Wrapper — Centered with standardized 0px border-radius */
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-image-wrapper {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        overflow: hidden !important;
        border-radius: 0 !important;
        margin: 0 0 14px 0 !important;
        padding: 0 !important;
        display: block !important;
        background: #f8fafc !important;
    }

    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-image-wrapper img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }

    /* Hide redundant cart button inside image wrapper for Centered on desktop */
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-image-wrapper > .add_to_cart_button,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-image-wrapper > .button {
        display: none !important;
    }

    /* Hide standalone mobile quick view button on desktop for Centered layout */
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-image-wrapper > .acodesign-internal-qv {
        display: none !important;
    }

    /* Floating Horizontal Pill Container for Secondary Actions (Quick View, Wishlist, Compare) — Matching Style 4 */
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper {
        position: absolute !important;
        bottom: 15px !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) translateY(8px) !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 16px !important;
        background-color: #ffffff !important;
        border-radius: 50px !important;
        padding: 8px 20px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
        z-index: 25 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
        width: auto !important;
    }

    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product:hover .acodesign-floating-icons-wrapper {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0) !important;
    }

    /* Icon Order inside Pill: 1. Quick View, 2. Wishlist, 3. Compare (Style 4 order) */
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-qv-button { order: 1 !important; }
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-wishlist-btn,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist"] { order: 2 !important; }
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-compare-btn,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper .compare { order: 3 !important; }

    /* Bare icon styling inside Pill (Style 4 format — no individual background/border/shadow) */
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper a {
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        color: #1e293b !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: background-color 0.2s ease, transform 0.2s ease !important;
        cursor: pointer !important;
        position: relative !important;
        overflow: visible !important;
    }

    /* Quick View SVG Icon */
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-qv-button {
        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='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 18px !important;
    }

    /* Wishlist SVG Icon */
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-wishlist-btn,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper a[class*="yith-add-to-wishlist"] {
        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='1.5' 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-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 18px !important;
    }

    /* Compare SVG Icon */
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-compare-btn,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper a.compare {
        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='1.5' 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-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 18px !important;
    }

    /* Hover effect for individual icons inside Pastilla */
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper a:hover {
        background-color: #f1f5f9 !important;
        transform: scale(1.1) !important;
    }

    /* Tooltip native legend (::after and ::before) positioned UPWARDS above icon for Centered layout (Matching Style 4) */
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]::after {
        content: attr(aria-label) !important;
        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 .acodesign-products-wrapper.acd-layout-centered ul.products li.product .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 .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]:hover::after {
        opacity: 1 !important;
        visibility: visible !important;
        bottom: calc(100% + 6px) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]:hover::before {
        opacity: 1 !important;
        visibility: visible !important;
        bottom: 100% !important;
    }

    /* Product Information (Centered) */
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-product-category {
        font-size: 11px !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: #94a3b8 !important;
        margin: 0 0 4px 0 !important;
        text-align: center !important;
    }

    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-title-link {
        margin: 2px 0 4px 0 !important;
        display: block !important;
        text-decoration: none !important;
        text-align: center !important;
    }

    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-title-link .woocommerce-loop-product__title {
        font-size: var(--acd-title-font-size, 15px) !important;
        font-weight: 600 !important;
        color: var(--acd-title-color, #1e293b) !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }

    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product span.price,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .price {
        margin: 4px 0 0 0 !important;
        font-size: var(--acd-price-font-size, 15px) !important;
        font-weight: 700 !important;
        color: var(--acd-price-color, #a0522d) !important;
        display: block !important;
        text-align: center !important;
    }

    /* Variation Swatches (Centered) */
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .cfvsw_variations_form .cfvsw-swatches-container.cfvsw-shop-container {
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Standalone Add to Cart Button — Full width centered CTA appearing on hover */
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-template-cart-wrapper {
        display: block !important;
        width: 100% !important;
        margin-top: 12px !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(6px) !important;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
    }

    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product:hover .acodesign-template-cart-wrapper {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-template-cart-wrapper a,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-template-cart-wrapper button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 42px !important;
        min-height: 42px !important;
        background-color: var(--acd-btn-bg, #a0522d) !important;
        color: var(--acd-btn-text, #ffffff) !important;
        border: var(--acd-btn-border-width, 0px) solid var(--acd-btn-border-color, transparent) !important;
        border-radius: var(--acd-btn-radius, 8px) !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-decoration: none !important;
        transition: background-color 0.25s ease, color 0.25s ease !important;
        cursor: pointer !important;
    }

    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-template-cart-wrapper a:hover,
    html body .acodesign-products-wrapper.acd-layout-centered ul.products li.product .acodesign-template-cart-wrapper button:hover {
        background-color: var(--acd-btn-hover-bg, #131728) !important;
        color: var(--acd-btn-hover-text, #ffffff) !important;
    }
}

/* ======================================================
   Template: Compact List (.acd-layout-compact) — PC ONLY (>= 769px)
   ====================================================== */
@media (min-width: 769px) {
    html body .acodesign-products-wrapper.acd-layout-compact ul.products {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    /* Override global style-1-main.css resets that break the row layout */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        flex: 1 1 100% !important;
        grid-column: 1 / -1 !important;
        float: none !important;
        margin: 0 0 10px 0 !important;
        box-sizing: border-box !important;
        background-color: var(--acd-card-bg, #ffffff) !important;
        border: 1px solid var(--acd-card-border-color, #e2e8f0) !important;
        border-radius: var(--acd-card-border-radius, 8px) !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
        overflow: visible !important;
        display: grid !important;
        grid-template-columns: 56px 1fr auto auto auto auto !important;
        grid-template-rows: auto auto auto !important;
        align-items: center !important;
        column-gap: 16px !important;
        row-gap: 2px !important;
        padding: 12px 20px !important;
        min-height: 80px !important;
        position: relative !important;
    }

    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product:hover {
        border-color: #cbd5e1 !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
    }

    /* Thumbnail Image Wrapper — Column 1 */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product > .acodesign-image-wrapper,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-image-wrapper {
        grid-column: 1 !important;
        grid-row: 1 / -1 !important;
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        background-color: #f8fafc !important;
        display: block !important;
        position: relative !important;
        overflow: hidden !important;
        border-radius: 4px !important;
        align-self: center !important;
    }

    /* The <a> link IS the image container — restrict overflow here so both primary and hover images are clipped */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-image-wrapper a.woocommerce-LoopProduct-link,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-image-wrapper > a {
        position: relative !important;
        display: block !important;
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
        border-radius: 4px !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }

    /* Primary image: fills the 56x56 link box */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-image-wrapper img:not(.acodesign-hover-img) {
        position: relative !important;
        width: 56px !important;
        height: 56px !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 4px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 1 !important;
    }

    /* Hover image — fills the 56×56 image-wrapper (position:relative, overflow:hidden) */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-image-wrapper .acodesign-hover-img,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-image-wrapper img.acodesign-hover-img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        bottom: auto !important;
        right: auto !important;
        width: 100% !important;
        height: 100% !important;
        min-width: unset !important;
        min-height: unset !important;
        max-width: unset !important;
        max-height: unset !important;
        border-radius: 4px !important;
        object-fit: cover !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 2 !important;
    }

    /* Hide inner floating buttons or redundant elements inside thumbnail wrapper on PC */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-image-wrapper > .add_to_cart_button,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-image-wrapper > .button,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-image-wrapper > .acodesign-internal-qv,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-image-wrapper .acodesign-gallery-prev,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-image-wrapper .acodesign-gallery-next,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-image-wrapper .acodesign-gallery-dots,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-image-wrapper .acodesign-video-indicator,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-image-wrapper .acodesign-marquee-wrapper,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-image-wrapper .acodesign-countdown-wrapper,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-marquee-wrapper,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-countdown-wrapper {
        display: none !important;
    }

    /* Product Category — Column 2, Row 1 */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product > .acodesign-product-category,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-product-category {
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: end !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: #94a3b8 !important;
        margin: 0 0 2px 0 !important;
        padding: 0 !important;
        display: block !important;
        position: static !important;
        transform: none !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Product Title — Column 2, Row 2 */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product > .acodesign-title-link,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-title-link {
        grid-column: 2 !important;
        grid-row: 2 !important;
        align-self: center !important;
        display: block !important;
        text-decoration: none !important;
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        z-index: 20 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-title-link .woocommerce-loop-product__title {
        font-size: var(--acd-title-font-size, 14px) !important;
        font-weight: 600 !important;
        color: var(--acd-title-color, #1e293b) !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Variation Swatches — Column 2, Row 3 */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product > .cfvsw_variations_form,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product > table.cfvsw-shop-variations,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .cfvsw_variations_form {
        grid-column: 2 !important;
        grid-row: 3 !important;
        align-self: start !important;
        position: static !important;
        transform: none !important;
        margin: 3px 0 0 0 !important;
        padding: 0 !important;
        display: block !important;
        width: 100% !important;
    }

    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .cfvsw_variations_form .cfvsw-swatches-container.cfvsw-shop-container {
        margin: 0 !important;
        min-height: auto !important;
        justify-content: flex-start !important;
    }

    /* Badges (Sale, Out of Stock, Custom Badge) — Column 3 */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product > .acodesign-badges-wrapper,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-badges-wrapper {
        grid-column: 3 !important;
        grid-row: 1 / -1 !important;
        position: static !important;
        transform: none !important;
        align-self: center !important;
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 22 !important;
        pointer-events: auto !important;
    }

    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-badges-wrapper span.acodesign-onsale,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-badges-wrapper .acodesign-out-of-stock,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-badges-wrapper .acodesign-custom-badge {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;
        padding: 3px 8px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        border-radius: 4px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    /* Price — Column 4 */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product > span.price,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product > .price,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product span.price,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .price {
        grid-column: 4 !important;
        grid-row: 1 / -1 !important;
        position: static !important;
        transform: none !important;
        align-self: center !important;
        margin: 0 !important;
        font-size: var(--acd-price-font-size, 15px) !important;
        font-weight: var(--acd-price-font-weight, 600) !important;
        color: var(--acd-price-color, #131728) !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        height: 36px !important;
        z-index: 25 !important;
    }

    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product span.price .amount,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .price .amount,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product span.price del,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .price del,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product span.price ins,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .price ins {
        font-size: inherit !important;
        font-weight: inherit !important;
        color: inherit !important;
        display: inline-block !important;
    }

    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product span.price del,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .price del {
        opacity: 0.6 !important;
        text-decoration: line-through !important;
    }

    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product span.price ins,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .price ins {
        text-decoration: none !important;
    }

    /* Action Icons (Wishlist, Quick View, Compare) — Column 5 */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product > .acodesign-floating-icons-wrapper,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper {
        grid-column: 5 !important;
        grid-row: 1 / -1 !important;
        position: static !important;
        transform: none !important;
        align-self: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        z-index: 30 !important;
        width: auto !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        line-height: 1 !important;
    }

    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        border-radius: 50% !important;
        background-color: var(--acd-icon-bg, #ffffff) !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
        cursor: pointer !important;
        position: relative !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a .acodesign-custom-mask-icon {
        display: none !important;
    }

    /* Wishlist SVG Icon */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-wishlist-btn,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a[class*="yith-add-to-wishlist"] {
        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='1.8' 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-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 18px !important;
        display: inline-flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Quick View SVG Icon */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-qv-button {
        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='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 18px !important;
        display: inline-flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Compare SVG Icon */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-compare-btn,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a.compare {
        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='1.8' 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-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 18px !important;
        display: inline-flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Hover States - Dark circle with white SVG icon */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a:hover {
        background-color: var(--acd-icon-hover-bg, #131728) !important;
        border-color: var(--acd-icon-hover-bg, #131728) !important;
        transform: scale(1.08) !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-wishlist-btn:hover,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a[class*="yith-add-to-wishlist"]:hover {
        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='1.8' 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 .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-qv-button:hover {
        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='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
    }

    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a.acodesign-native-compare-btn:hover,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a.compare:hover {
        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='1.8' 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;
    }

    /* Tooltip native legend (::after and ::before) positioned UPWARDS above icon for Compact layout */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]::after {
        content: attr(aria-label) !important;
        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 .acodesign-products-wrapper.acd-layout-compact ul.products li.product .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 .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]:hover::after {
        opacity: 1 !important;
        visibility: visible !important;
        bottom: calc(100% + 6px) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-floating-icons-wrapper a[aria-label]:hover::before {
        opacity: 1 !important;
        visibility: visible !important;
        bottom: 100% !important;
    }

    /* Compact Add to Cart Button — Column 6 */
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product > .acodesign-template-cart-wrapper,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-template-cart-wrapper {
        grid-column: 6 !important;
        grid-row: 1 / -1 !important;
        position: static !important;
        transform: none !important;
        align-self: center !important;
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        z-index: 30 !important;
        height: 36px !important;
    }

    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-template-cart-wrapper .button,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-template-cart-wrapper .add_to_cart_button,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-template-cart-wrapper a,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-template-cart-wrapper button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 0 16px !important;
        margin: 0 !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        background-color: var(--acd-btn-bg, #131728) !important;
        color: var(--acd-btn-text, #ffffff) !important;
        border: var(--acd-btn-border-width, 1px) solid var(--acd-btn-border-color, #131728) !important;
        border-radius: var(--acd-btn-radius, 6px) !important;
        font-size: var(--acd-btn-font-size, 12px) !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        box-shadow: var(--acd-btn-shadow, 0 2px 6px rgba(0,0,0,0.06)) !important;
    }

    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-template-cart-wrapper .button:hover,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-template-cart-wrapper .add_to_cart_button:hover,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-template-cart-wrapper a:hover,
    html body .acodesign-products-wrapper.acd-layout-compact ul.products li.product .acodesign-template-cart-wrapper button:hover {
        background-color: var(--acd-btn-hover-bg, #2563eb) !important;
        color: var(--acd-btn-hover-text, #ffffff) !important;
        border-color: var(--acd-btn-border-hover-color, #2563eb) !important;
    }
}

/* ======================================================
   Template: Masonry Grid (.acd-layout-masonry) — PC ONLY (>= 769px)
   ====================================================== */
@media (min-width: 769px) {
    html body .acodesign-products-wrapper.acd-layout-masonry ul.products,
    html body div.acodesign-products-wrapper.acd-layout-masonry ul.products,
    html body .acodesign-products-wrapper.acd-layout-masonry ul.products.products {
        display: block !important;
        float: none !important;
        grid-template-columns: none !important;
        grid-auto-flow: unset !important;
        flex: none !important;
        flex-direction: unset !important;
        column-count: 4 !important;
        column-gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    @media (max-width: 1024px) {
        html body .acodesign-products-wrapper.acd-layout-masonry ul.products,
        html body div.acodesign-products-wrapper.acd-layout-masonry ul.products,
        html body .acodesign-products-wrapper.acd-layout-masonry ul.products.products {
            column-count: 3 !important;
            column-gap: 10px !important;
        }
    }

    /* Individual Product Card in Masonry Grid — Mapped 100% to Style 1 card options & border radius */
    html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product,
    html body div.acodesign-products-wrapper.acd-layout-masonry ul.products li.product,
    html body .acodesign-products-wrapper.acd-layout-masonry ul.products.products li.product {
    break-inside: avoid !important;
    break-inside: avoid-column !important;
    -webkit-column-break-inside: avoid !important;
    page-break-inside: avoid !important;
    display: inline-block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px !important;
    background-color: 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;
    box-shadow: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
    vertical-align: top !important;
}

/* Image Wrapper — Relative positioning for badges & hover images with zero border-radius */
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-image-wrapper {
    position: relative !important;
    width: 100% !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background-color: var(--acd-card-bg, #f4f4f5) !important;
    border: var(--acd-card-border-width, 0px) solid var(--acd-card-border-color, #e2e8f0) !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Balanced rhythmic aspect ratios for elegant Pinterest masonry flow without empty gaps */
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product:nth-child(4n+1) .acodesign-image-wrapper { aspect-ratio: 4/5 !important; }
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product:nth-child(4n+2) .acodesign-image-wrapper { aspect-ratio: 1/1 !important; }
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product:nth-child(4n+3) .acodesign-image-wrapper { aspect-ratio: 3/4 !important; }
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product:nth-child(4n+0) .acodesign-image-wrapper { aspect-ratio: 1/1 !important; }

/* Main Image — Fills the staggered image wrapper with object-fit cover */
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-image-wrapper img:not(.acodesign-hover-img) {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    transition: transform 0.4s ease !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product:hover .acodesign-image-wrapper img:not(.acodesign-hover-img) {
    transform: scale(1.03) !important;
}

/* Hover Secondary Image */
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-image-wrapper .acodesign-hover-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 2 !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product:hover .acodesign-image-wrapper .acodesign-hover-img {
    opacity: 1 !important;
}

/* Badges (Discount -20%, NEW) — Positioned top-left inside image wrapper */
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-badges-wrapper {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    pointer-events: none !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-badges-wrapper span.acodesign-onsale {
    background-color: var(--acd-sale-bg, #18181b) !important;
    color: var(--acd-sale-text, #ffffff) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-badges-wrapper .acodesign-out-of-stock {
    background-color: var(--acd-oos-bg, #18181b) !important;
    color: var(--acd-oos-text, #ffffff) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-badges-wrapper .acodesign-custom-badge {
    background-color: var(--acd-custom-bg, #e63946) !important;
    color: var(--acd-custom-text, #ffffff) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Category Label — Mapped to Style 1 backend category variables */
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-product-category {
    font-size: var(--acd-cat-font-size, 12px) !important;
    font-weight: var(--acd-cat-font-weight, 500) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: var(--acd-cat-color, #a5a5a5) !important;
    margin: 10px 10px 3px 10px !important;
    display: block !important;
}

/* Product Title — Mapped 100% to Style 1 title options & fallbacks */
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-title-link {
    display: block !important;
    text-decoration: none !important;
    margin: 0 10px 4px 10px !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-title-link .woocommerce-loop-product__title {
    font-size: var(--acd-title-font-size, 16px) !important;
    font-weight: var(--acd-title-font-weight, 600) !important;
    color: var(--acd-title-color, #131728) !important;
    margin: 0 !important;
    line-height: 1.35 !important;
    transition: color 0.3s ease !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product a.acodesign-title-link:hover .woocommerce-loop-product__title {
    color: var(--acd-title-hover-color, #a5a5a5) !important;
}

/* Price Styling — Mapped 100% to Style 1 price options & fallbacks */
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .price,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product span.price {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: var(--acd-price-font-size, 15px) !important;
    font-weight: var(--acd-price-font-weight, 600) !important;
    color: var(--acd-price-color, #A5A5A5) !important;
    margin: 0 10px 2px 10px !important;
    background: transparent !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .price .amount,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .price del,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .price ins,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product span.price .amount,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product span.price del,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product span.price ins {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    display: inline-block !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .price del,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product span.price del {
    opacity: 0.6 !important;
    text-decoration: line-through !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .price ins,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product span.price ins {
    text-decoration: none !important;
}

/* Action Icons (Wishlist, Quick View, Compare) — Mapped to backend icon variables */
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-image-wrapper .acodesign-floating-icons-wrapper {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 25 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    opacity: 0 !important;
    transform: translateX(6px) !important;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
    pointer-events: none !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product:hover .acodesign-floating-icons-wrapper,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product:hover .acodesign-image-wrapper .acodesign-floating-icons-wrapper {
    opacity: 1 !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper a,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper button,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-qv-button,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-wishlist-btn,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-compare-btn,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper .compare,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] a,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] button {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    background-color: var(--acd-icon-bg, #ffffff) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-qv-button {
    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='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 15px 15px !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-compare-btn,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper .compare {
    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-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 15px 15px !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-wishlist-btn,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] a,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"] button {
    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-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 15px 15px !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper a:hover,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper button:hover {
    background-color: var(--acd-icon-hover-bg, #18181b) !important;
    transform: scale(1.08) !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-qv-button:hover {
    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='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E") !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-compare-btn:hover,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper .compare:hover {
    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 .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper .acodesign-native-wishlist-btn:hover,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"]:hover a,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-floating-icons-wrapper [class*="yith-add-to-wishlist-button-block"]:hover button {
    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;
}

/* Add to Cart Button — Mapped 100% to backend Style 1 button options & typography */
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-template-cart-wrapper,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .add_to_cart_button,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    margin: 0 10px 12px 10px !important;
    border-radius: var(--acd-btn-radius, 4px) !important;
    background-color: var(--acd-btn-bg, #131728) !important;
    color: var(--acd-btn-text, #ffffff) !important;
    font-size: var(--acd-btn-font-size, 12px) !important;
    font-weight: 700 !important;
    border: var(--acd-btn-border-width, 0px) solid var(--acd-btn-border-color, #131728) !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    cursor: pointer !important;
}

html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .acodesign-template-cart-wrapper a:hover,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .add_to_cart_button:hover,
html body .acodesign-products-wrapper.acd-layout-masonry ul.products li.product .button:hover {
    background-color: var(--acd-btn-hover-bg, #2563eb) !important;
    color: var(--acd-btn-hover-text, #ffffff) !important;
    border-color: var(--acd-btn-border-hover-color, #2563eb) !important;
}
}
