/**
* Theme Name:        avanam-grace
* Theme URI:         https://templatemela.com/
* Template:          avanam
* Author:            TemplateMela
* Author URI:        #
* Description:       This is a child theme of Avanam, generated by TemplateMela.
* Version:           1.0.0
* License:           GNU General Public License v3.0 (or later)
* License URI:       https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain:       avanam-grace
* Requires at least: 6.2
* Tested up to:      6.6
* Requires PHP:      7.4
* Tags: translation-ready, two-columns, right-sidebar, left-sidebar, footer-widgets, blog, custom-logo, custom-background, custom-menu, rtl-language-support, editor-style, threaded-comments, custom-colors, featured-images, wide-blocks, full-width-template, theme-options, e-commerce

*/

/* ==========================================================================
   SHEIN-Style Product Detail Page Layout & Interaction
   ========================================================================== */

/* 1. Desktop Two-Column Layout with Sticky Right Purchase Column */
@media screen and (min-width: 1025px) {
    /* 2-Column Grid: Column 1 = 58% (Gallery + Tabs), Column 2 = 38% (Sticky Summary) */
    .woocommerce div.product .wrap-summary,
    .woocommerce #content div.product .wrap-summary,
    .woocommerce-page div.product .wrap-summary,
    .woocommerce-page #content div.product .wrap-summary {
        display: grid !important;
        grid-template-columns: 58% 38% !important;
        column-gap: 4% !important;
        align-items: start !important;
        position: relative !important;
    }

    /* Column 1, Row 1: Left Gallery (58% width) */
    .woocommerce div.product div.product-images.base-product-image-wrap {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 2em !important;
        float: none !important;
        position: relative !important;
        top: auto !important;
        align-self: auto !important;
    }

    .woocommerce div.product div.images,
    .woocommerce #content div.product div.images,
    .woocommerce-page div.product div.images,
    .woocommerce-page #content div.product div.images {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }

    .woocommerce div.product .product_image {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Column 1, Row 2: Tabs (58% width, exactly aligned with gallery above, right side empty) */
    .woocommerce div.product .woocommerce-tabs {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0 !important;
        margin-bottom: 2em !important;
        clear: both !important;
        box-sizing: border-box !important;
    }

    /* Column 2, Rows 1 & 2: Right Purchase Summary Column (38% width, STICKY across gallery AND tabs) */
    .woocommerce div.product div.summary,
    .woocommerce #content div.product div.summary,
    .woocommerce-page div.product div.summary,
    .woocommerce-page #content div.product div.summary {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important; /* Stays sticky across both Gallery and Tabs */
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 2em !important;
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 20px !important; /* Sticky offset from viewport top */
        align-self: start !important;
        z-index: 5 !important;
    }

    /* Related Products & Upsells: MUST clear both columns and span full 100% width at the bottom */
    .woocommerce div.product .related.products,
    .woocommerce div.product .up-sells.products,
    .woocommerce div.product section.related,
    section.related.products,
    .woocommerce .related.products {
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        float: none !important;
        margin-top: 3.5em !important;
    }

    /* 2. Left Thumbnails Column: Moved Down to Avoid Arrow Overlap, 10px Gap to Main Image */
    .woocommerce div.product .bt-layout-left .base-product-gallery-thumbnails {
        width: 68px !important;
        max-width: 68px !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .woocommerce div.product .bt-layout-left .base-product-gallery-thumbnails .thumb-wrapper.splide__slider {
        padding-top: 32px !important; /* Move thumbnails down so first image is NOT covered by arrow */
        padding-bottom: 32px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: 100% !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    .woocommerce div.product .bt-layout-left .base-product-gallery-thumbnails .splide__track {
        padding: 0 !important;
        margin: 0 !important;
        height: 100% !important;
    }

    .woocommerce div.product .bt-layout-left .base-product-gallery-thumbnails .splide__arrows--ttb .splide__arrow--prev {
        top: 4px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10 !important;
    }

    .woocommerce div.product .bt-layout-left .base-product-gallery-thumbnails .splide__arrows--ttb .splide__arrow--next {
        bottom: 4px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10 !important;
    }

    .woocommerce div.product .bt-layout-left .base-product-gallery-thumbnails .splide__list {
        margin: 0 !important;
        padding: 0 !important;
        top: 0 !important;
    }

    /* Hide vertical arrows when thumbnails don't exceed container */
    .woocommerce div.product .bt-layout-left .base-product-gallery-thumbnails.bt_thumb_hide_arrow .splide__arrows {
        display: none !important;
    }

    .woocommerce div.product .bt-layout-left .base-product-gallery-thumbnails .bt-woo-gallery-thumbnail,
    .woocommerce div.product .bt-layout-left .base-product-gallery-thumbnails .splide__slide {
        height: 90px !important; /* 3:4 ratio for 68px width: 68 * 1.33 = ~90px */
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 8px !important;
        overflow: hidden !important;
        border-radius: 4px !important;
        background: transparent !important;
        display: block !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }

    .woocommerce div.product .bt-layout-left .base-product-gallery-thumbnails .bt-woo-gallery-thumbnail img,
    .base-product-gallery-thumbnails .bt-woo-gallery-thumbnail img,
    .woocommerce .product .base-product-gallery-thumbnails .bt-woo-gallery-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 4px !important;
        border: 1.5px solid #e8e8e8 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .woocommerce div.product .bt-layout-left .base-product-gallery-thumbnails .splide__slide.is-active img,
    .woocommerce div.product .bt-layout-left .base-product-gallery-thumbnails .splide__slide:hover img {
        border-color: #111111 !important;
    }

    /* Main image positioned immediately next to thumbnails with 10px gap */
    .woocommerce div.product .bt-layout-left .base-product-gallery-main {
        margin-left: 78px !important; /* 68px thumbnails + 10px gap */
        width: calc(100% - 78px) !important;
    }
}

/* 3. Main Image 3:4 Aspect Ratio & Container */
.woocommerce div.product div.images .base-product-gallery-main .splide__track,
.woocommerce div.product div.images .base-product-gallery-main .splide__list,
.woocommerce div.product div.images .base-product-gallery-main .splide__slide {
    height: auto !important;
}

.woocommerce div.product div.images .base-product-gallery-main .splide__slide a.woocommerce-main-image,
.woocommerce div.product div.images .base-product-gallery-main .splide__slide a.bt-image-slide {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background-color: #f7f7f7 !important;
}

.woocommerce div.product div.images .base-product-gallery-main img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: cover !important;
    display: block !important;
}

/* 4. Main Image Navigation Arrows (Left / Right Prev & Next Buttons) */
.woocommerce div.product div.images .base-product-gallery-main .splide__arrows {
    display: block !important;
}

.woocommerce div.product div.images .base-product-gallery-main .splide__arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
    border: none !important;
    cursor: pointer !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9 !important;
    opacity: 0.85 !important;
    visibility: visible !important;
    transition: all 0.2s ease !important;
}

.woocommerce div.product div.images .base-product-gallery-main .splide__arrow:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.08) !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.woocommerce div.product div.images .base-product-gallery-main .splide__arrow--prev {
    left: 12px !important;
    right: auto !important;
}

.woocommerce div.product div.images .base-product-gallery-main .splide__arrow--next {
    right: 12px !important;
    left: auto !important;
}

.woocommerce div.product div.images .base-product-gallery-main .splide__arrow svg {
    fill: #222222 !important;
    width: 14px !important;
    height: 14px !important;
}

/* 5. Disable Local Zoom / Magnifier Completely */
.zoomContainer,
.zoomWindowContainer,
.zoomLens {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ==========================================================================
   SHEIN-Style Variation Swatches (Colors & Size Pills - 100% Dynamic)
   ========================================================================== */

.woocommerce div.product form.cart .variations {
    width: 100% !important;
    margin-bottom: 1.5em !important;
}

.woocommerce div.product form.cart .variations tr {
    display: block !important;
    margin-bottom: 1.25em !important;
    border: none !important;
}

.woocommerce div.product form.cart .variations th.label {
    display: block !important;
    padding: 0 0 8px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #222222 !important;
    text-transform: capitalize !important;
    line-height: 1.3 !important;
}

.woocommerce div.product form.cart .variations td.value {
    display: block !important;
    padding: 0 !important;
}

.woocommerce div.product form.cart .variations td.value .bt-variation-label {
    display: none !important; /* Hide redundant inner label */
}

.woocommerce div.product form.cart .bas_radio_variations {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.woocommerce div.product form.cart .bas_radio_variations input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Size Pills & Text Options (e.g. S, M, L, XL, Fabric) */
.woocommerce div.product form.cart .bas_radio_variations:not(.bt-image-color-sw) label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 48px !important;
    height: 38px !important;
    padding: 0 16px !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    color: #222222 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    margin: 0 !important;
    transition: all 0.18s ease !important;
    user-select: none !important;
}

.woocommerce div.product form.cart .bas_radio_variations:not(.bt-image-color-sw) label:hover {
    border-color: #222222 !important;
    color: #000000 !important;
}

.woocommerce div.product form.cart .bas_radio_variations:not(.bt-image-color-sw) input[type="radio"]:checked + label {
    background-color: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* Color Swatches - SHEIN Product Thumbnail Cards */
.woocommerce div.product form.cart .bt-image-color-sw label {
    cursor: pointer !important;
    margin: 0 !important;
    padding: 2px !important;
    border: 2px solid transparent !important;
    border-radius: 6px !important;
    transition: all 0.18s ease !important;
    display: inline-block !important;
}

.woocommerce div.product form.cart .bt-image-color-sw label:hover {
    border-color: #888888 !important;
}

.woocommerce div.product form.cart .bt-image-color-sw input[type="radio"]:checked + label {
    border-color: #111111 !important;
}

.woocommerce div.product form.cart .bt-image-color-sw .bt_color_sw_span {
    display: block !important;
    width: 44px !important;
    height: 58px !important; /* 3:4 apparel product thumbnail card */
    border-radius: 4px !important;
    overflow: hidden !important;
    border: 1px solid #dcdcdc !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.woocommerce div.product form.cart .bt-image-color-sw .bt_color_sw_span img,
.variations .bas_radio_variations.bt-image-color-sw label span.bt_color_sw_span img {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* --------------------------------------------------------------------------
   Image Swatch Grid: uniform columns for Color / Image variation options
   The plugin renders these as inline-blocks sized by their label text, which
   left every tile a different width. A grid gives every tile one equal column
   and one common row height, so long names like "Grassland Camo" no longer
   widen their tile. Desktop only (inside the 1025px breakpoint); the mobile
   layout keeps the theme's wrapping behaviour.

   NOTE ON SELECTOR LENGTH: page caching / CSS-combine plugins (LiteSpeed)
   re-emit this theme's rules as a consolidated inline <style> block that is
   printed AFTER style.css. A shorter selector loses the cascade even with
   !important, because an equally-important declaration from a later
   stylesheet wins. These selectors therefore chain through td.value
   (specificity (0,4,2) vs (0,3,2)) so they win regardless of order.
   -------------------------------------------------------------------------- */
.woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)) !important;
    column-gap: 10px !important;
    row-gap: 14px !important;
    align-items: start !important;
    justify-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Tile = the label of each hidden radio. Elevated border & SHEIN card style */
.woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw > label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 4px !important;
    border: 1.5px solid #e5e5e5 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    background: #ffffff !important;
    transition: all 0.18s ease !important;
}

.woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw > label:hover {
    border-color: #666666 !important;
}

.woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw input[type="radio"]:checked + label {
    border-color: #111111 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

.woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw input[type="radio"]:checked + label .label_text {
    color: #111111 !important;
    font-weight: 600 !important;
}

/* Thumbnail: Elongated 3:4 portrait ratio matching the left gallery thumbnails */
.woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw > label .bt_color_sw_span {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important; /* Elongated 3:4 portrait ratio */
    border-radius: 4px !important;
    overflow: hidden !important;
    border: 1px solid #ededed !important;
    background: #f7f7f7 !important;
    display: block !important;
}

.woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw > label .bt_color_sw_span img.bt-sw-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* If a colour thumbnail is missing, keep the tile as an empty box instead of
   showing the alt text (which used to reflow the tile and look broken). */
.woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw > label .bt_color_sw_span img.bt-sw-img {
    color: transparent !important;
    font-size: 0 !important;
    overflow: hidden !important;
    background: #f4f4f4 !important;
}

/* Colour name under the thumbnail: 2-line clamp with clean spacing for long names */
.woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw > label .label_text {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    width: 100% !important;
    min-height: 2.5em !important;
    max-height: 2.5em !important;
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    color: #444444 !important;
    margin-top: 3px !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

/* Add to Cart & CTA Block */
.woocommerce div.product form.cart .quantity {
    height: 48px !important;
}

.woocommerce div.product form.cart .quantity.spinners-added {
    border: 1px solid #dcdcdc !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    height: 48px !important;
}

.woocommerce div.product form.cart .quantity.spinners-added .qty {
    height: 46px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.woocommerce div.product form.cart .quantity.spinners-added input.minus,
.woocommerce div.product form.cart .quantity.spinners-added input.plus {
    height: 46px !important;
    line-height: 46px !important;
    font-size: 16px !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
    height: 48px !important;
    line-height: 48px !important;
    background-color: #111111 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 4px !important;
    border: none !important;
    transition: all 0.2s ease !important;
    padding: 0 36px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22) !important;
}

/* ==========================================================================
   SHEIN-Style Shipping, Returns & Security Trust Card
   ========================================================================== */
.shein-trust-card {
    background: #fafafa !important;
    border: 1px solid #ebebeb !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    margin: 20px 0 16px 0 !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.shein-trust-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 10px 0 !important;
}

.shein-trust-item:first-child {
    padding-top: 0 !important;
}

.shein-trust-item:last-child {
    padding-bottom: 0 !important;
}

.shein-trust-item + .shein-trust-item {
    border-top: 1px dashed #e5e5e5 !important;
}

.shein-trust-icon {
    flex-shrink: 0 !important;
    width: 22px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #222222 !important;
    margin-top: 2px !important;
}

.shein-trust-text {
    flex: 1 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #333333 !important;
}

.shein-trust-title {
    font-size: 13px !important;
    color: #222222 !important;
}

.shein-trust-title strong {
    font-weight: 600 !important;
    color: #111111 !important;
}

.shein-trust-desc {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-top: 2px !important;
    font-size: 12.5px !important;
    color: #555555 !important;
}

.shein-tag-free {
    display: inline-block !important;
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 1px 6px !important;
    border-radius: 3px !important;
    margin-right: 6px !important;
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important;
}

.shein-trust-date {
    margin-top: 3px !important;
    font-size: 12.5px !important;
    color: #444444 !important;
}

.shein-est-label {
    color: #666666 !important;
    margin-right: 4px !important;
}

.shein-est-val {
    font-weight: 600 !important;
    color: #111111 !important;
}

.shein-security-sub {
    color: #666666 !important;
    font-size: 12px !important;
}

.shein-dot {
    margin: 0 6px !important;
    color: #aaaaaa !important;
}

/* Tablet view */
@media screen and (max-width: 1024px) and (min-width: 768px) {
    .woocommerce div.product div.images .base-product-gallery-main img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
        object-fit: cover !important;
    }

    /* Swatch grid belongs to the 1025px+ layout only. Page-cache "combine CSS"
       re-emits this theme's rules as a flat inline block that ignores media
       queries, so the desktop grid can leak into narrow viewports; this
       restores the original wrapping swatches on tablet. */
    .woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw > label {
        display: inline-block !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 2px !important;
    }

    .woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw > label .bt_color_sw_span {
        width: 44px !important;
        max-width: 44px !important;
        height: 58px !important;
        aspect-ratio: auto !important;
    }

    .woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw > label .label_text {
        display: block !important;
        width: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }
}

/* Mobile view */
@media screen and (max-width: 767px) {
    .woocommerce div.product div.product-images.base-product-image-wrap,
    .woocommerce div.product div.images {
        width: 100% !important;
    }

    .woocommerce div.product div.images .base-product-gallery-main img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
        object-fit: cover !important;
    }

    /* Restore the original wrapping swatches (see the tablet block above). */
    .woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw > label {
        display: inline-block !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 2px !important;
    }

    .woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw > label .bt_color_sw_span {
        width: 44px !important;
        max-width: 44px !important;
        height: 58px !important;
        aspect-ratio: auto !important;
    }

    .woocommerce div.product form.cart td.value fieldset.bas_radio_variations.bt-image-color-sw > label .label_text {
        display: block !important;
        width: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }
}

/* ==========================================================================
   SHEIN-Style Product Tabs (Clean, Modern, Minimalist)
   ========================================================================== */
.woocommerce div.product .woocommerce-tabs {
    clear: both !important;
    margin-top: 3.5em !important;
    padding-top: 2em !important;
    border-top: 1px solid #e8e8e8 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex !important;
    justify-content: flex-start !important;
    border-bottom: 1.5px solid #e8e8e8 !important;
    margin: 0 0 2em 0 !important;
    padding: 0 !important;
    gap: 32px !important;
    background: transparent !important;
    overflow-x: auto !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 12px 0 !important;
    margin: 0 !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -1.5px !important;
    flex-shrink: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #888888 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: color 0.15s ease !important;
    text-decoration: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom: 2px solid #111111 !important;
    background: transparent !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #111111 !important;
}

.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-tabs .entry-content {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #444444 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce div.product .woocommerce-tabs img,
.woocommerce div.product .woocommerce-tabs .panel img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes {
    border: 1px solid #ebebeb !important;
    border-collapse: collapse !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1em 0 !important;
    box-sizing: border-box !important;
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes th,
.woocommerce div.product .woocommerce-tabs table.shop_attributes td {
    padding: 10px 16px !important;
    border: 1px solid #ebebeb !important;
    font-size: 13.5px !important;
}

.woocommerce div.product .woocommerce-tabs table.shop_attributes th {
    background-color: #f9f9f9 !important;
    font-weight: 600 !important;
    color: #222222 !important;
    width: 160px !important;
    text-transform: capitalize !important;
}

/* ==========================================================================
   Homepage Banner Slider (Elementor Section ec03552 / RevSlider)
   ========================================================================== */
.elementor-element-ec03552 sr7-txt,
.elementor-element-ec03552 sr7-shape,
.elementor-element-ec03552 #SR7_1_1-1-0,
.elementor-element-ec03552 #SR7_1_1-2-0,
.elementor-element-ec03552 [id$="-0"],
.elementor-element-ec03552 #SR7_1_1-1-3,
.elementor-element-ec03552 #SR7_1_1-1-7,
.elementor-element-ec03552 #SR7_1_1-1-5,
.elementor-element-ec03552 #SR7_1_1-2-3,
.elementor-element-ec03552 #SR7_1_1-2-7,
.elementor-element-ec03552 #SR7_1_1-2-5 {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
}

/* Ensure the banner container has no black background and height fits naturally */
.elementor-element.elementor-element-ec03552,
.elementor-2 .elementor-element.elementor-element-ec03552:not(.elementor-motion-effects-element-type-background),
.elementor-2 .elementor-element.elementor-element-ec03552 > .elementor-motion-effects-container > .elementor-motion-effects-layer,
.elementor-element-ec03552 .elementor-container,
.elementor-element-ec03552 .elementor-widget-container,
.elementor-element-ec03552 sr7-module {
    background-color: transparent !important;
    background: transparent !important;
}

/* Desktop only: gentle min-height to ensure hero presence on wide monitors */
@media screen and (min-width: 1025px) {
    .elementor-element-ec03552 sr7-module,
    .elementor-element-ec03552 sr7-slide {
        min-height: 480px;
    }
}

/* Mobile & Tablet: REMOVE min-height completely so banner height fits image tightly with zero black gap */
@media screen and (max-width: 1024px) {
    .elementor-element-ec03552,
    .elementor-element-ec03552 sr7-module,
    .elementor-element-ec03552 sr7-slide,
    .elementor-element-ec03552 sr7-content,
    .elementor-element-ec03552 sr7-adjuster {
        min-height: 0 !important;
        min-height: unset !important;
    }
}

/* Hide cookie/privacy popups for preview */
#moove_gdpr_cookie_info_bar,
.cli-modal,
.cookie-notice,
#cookie-law-info-bar,
.gdpr-cookie-consent,
.wp-privacy-policy-banner,
#catapult-cookie-bar {
    display: none !important;
}
