/* ============================================================
   GLOBAL STYLES & HEADER TWEAKS
   ============================================================ */

/* Header tape — thin black line above the logo row */
.es-header-tape {
    width: 100%;
    overflow: hidden;
    text-align: center;
    line-height: 1.2;
}

.es-header-tape__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.es-header-tape__inner--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.es-header-tape__devis {
    flex: 0 0 auto;
    background: #111;
    color: #f4ff1b !important;
    text-decoration: none !important;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.08em;
}

.es-header-tape__devis:hover {
    background: #000;
    color: #fff !important;
}

.es-header-tape--announce {
    background: #111111;
    color: #ffffff;
}

.es-header-tape__inner--announce {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    max-width: none;
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.es-header-tape--announce a {
    color: #f4ff1b !important;
    text-decoration: none !important;
}

.es-header-tape--announce a:hover {
    color: #ffffff !important;
}

.es-header-tape--yellow {
    background: #f4ff1b;
    color: #111;
}

.es-header-tape--brands {
    background: #ffffff;
    color: #111;
    border-bottom: 1px solid #ececec;
}

.es-header-tape--brands .es-header-tape__inner {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    padding-top: 10px;
    padding-bottom: 10px;
}

.es-header-tape--grey {
    background: #5a5a5a;
    color: #fff;
}

.es-header-tape--grey .es-header-tape__inner {
    font-weight: 600;
    letter-spacing: 0.06em;
}

.es-header-tape__marquee {
    display: flex;
    gap: 48px;
    width: max-content;
    max-width: none;
    animation: es-header-marquee 28s linear infinite;
}

.es-header-tape__marquee--brands {
    gap: 64px;
    animation-duration: 36s;
}

.es-header-tape__marquee span {
    white-space: nowrap;
}

@keyframes es-header-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .es-header-tape__marquee {
        animation: none;
        width: 100%;
        max-width: 1400px;
        justify-content: center;
    }

    .es-header-tape__marquee span[aria-hidden="true"] {
        display: none;
    }
}

/* Header logo: normal size, top left. Footer logo is unchanged. */
#masthead .site-logo-img img,
#masthead .custom-logo-link img,
#masthead .ast-site-identity img.custom-logo,
#masthead .custom-logo {
    width: auto !important;
    height: auto !important;
    max-width: 168px !important;
    max-height: 42px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

.site-footer .custom-logo,
.site-footer .custom-logo-link img,
.site-footer .widget img,
.site-footer .footer-widget-area img,
.ast-footer-copyright img,
.site-footer-section img.custom-logo {
    width: auto !important;
    height: auto !important;
    max-width: 280px !important;
    max-height: 112px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

.custom-logo-link {
    display: inline-flex !important;
    align-items: center;
}

@media (max-width: 1200px) {
    #masthead .site-logo-img img,
    #masthead .custom-logo-link img,
    #masthead .ast-site-identity img.custom-logo,
    #masthead .custom-logo {
        max-height: 36px !important;
        max-width: 148px !important;
    }

    .site-footer .custom-logo,
    .site-footer .custom-logo-link img,
    .site-footer .widget img,
    .site-footer .footer-widget-area img {
        max-height: 84px !important;
        max-width: 220px !important;
    }
}

@media (max-width: 544px) {
    .site-footer .custom-logo,
    .site-footer .custom-logo-link img,
    .site-footer .widget img,
    .site-footer .footer-widget-area img {
        max-height: 68px !important;
        max-width: 190px !important;
    }
}

/* Modern Button Corners */
.button, button, .wp-block-button__link {
    border-radius: 8px !important; 
}

/* Cart drawer — desktop width */
.astra-cart-drawer {
    width: min(450px, 100vw - 32px) !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* Mobile / tablet — center drawer so it isn’t stuck on the right edge */
@media (max-width: 1200px) {
    #astra-mobile-popup-drawer.astra-cart-drawer,
    #astra-desktop-cart-drawer.astra-cart-drawer,
    #astra-desktop-cart-drawer,
    .astra-cart-drawer,
    .woocommerce-mini-cart-wrapper .astra-cart-drawer {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Header row under the black announcement: solid white, not over the photo */
#masthead,
.ast-theme-transparent-header #masthead,
#masthead .ast-primary-header-bar,
#masthead .ast-main-header-wrap,
#masthead .main-header-bar,
#masthead .site-primary-header-wrap,
#masthead .ast-builder-grid-row {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.ast-theme-transparent-header #masthead {
    position: relative !important;
}

#masthead .main-header-menu > .menu-item > .menu-link,
#masthead .ast-header-account-wrap,
#masthead .ast-header-account-wrap a,
#masthead .ast-site-header-cart,
#masthead .ast-site-header-cart a,
#masthead .ast-header-search .ast-icon {
    color: #111111 !important;
}

#masthead .ast-header-account-wrap svg,
#masthead .ast-site-header-cart svg,
#masthead .ast-icon svg {
    fill: #111111 !important;
}

/* Header row: logo, links, search, account, cart on one line */
@media (min-width: 1201px) {
    #masthead .ast-primary-header-bar {
        min-height: 64px;
    }

    #masthead .ast-primary-header-bar .ast-builder-grid-row {
        align-items: center !important;
        min-height: 64px;
    }

    #masthead .ast-below-header-wrap:not(:has(.menu-item)),
    #masthead .ast-below-header-bar:not(:has(.menu-item)) {
        display: none !important;
    }

    #masthead .site-logo-img,
    #masthead .ast-header-account-wrap,
    #masthead .ast-site-header-cart,
    #masthead .main-header-bar-navigation {
        margin-top: 0 !important;
    }
}

.main-header-menu > .menu-item.es-nav-promos > .menu-link,
#ast-hf-menu-1 > .menu-item.es-nav-promos > .menu-link,
.ast-mobile-popup-content .menu-item.es-nav-promos > .menu-link {
    color: #e10600 !important;
    font-weight: 700 !important;
}

.es-nav-search-item {
    display: flex !important;
    align-items: center;
    list-style: none;
}

.es-header-search {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    min-width: 168px;
    margin: 0 8px 0 12px;
    padding: 0 12px 0 14px;
    border-radius: 999px;
    background: #f2f2f2;
}

.es-header-search input[type="search"] {
    width: 110px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #111;
    font-size: 14px;
    line-height: 36px;
}

.es-header-search input[type="search"]:focus {
    outline: none;
    border: 0;
    box-shadow: none;
}

.es-header-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .es-nav-search-item {
        width: 100%;
        padding: 8px 16px 16px;
    }

    .es-header-search {
        width: 100%;
        margin: 0;
        min-width: 0;
    }

    .es-header-search input[type="search"] {
        flex: 1 1 auto;
        width: auto;
    }
}

/* Header — keep primary nav on one line; club links grouped in dropdown */
.main-header-menu,
.ast-builder-menu-1 .main-header-menu,
#ast-hf-menu-1 {
    flex-wrap: nowrap !important;
}

.main-header-menu > .menu-item > .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link,
#ast-hf-menu-1 > .menu-item > .menu-link {
    font-size: 15px !important;
    letter-spacing: 0.03em;
    padding-left: 12px !important;
    padding-right: 12px !important;
    white-space: nowrap;
}

/* Textile + Espace Clubs + every other dropdown (Matériel, Sport, …) */
.main-header-menu li.es-textile-nav-group,
.main-header-menu li.es-clubs-nav-group,
.main-header-menu li.es-nav-dropdown,
.main-header-menu > .menu-item-has-children,
.ast-builder-menu-1 li.es-textile-nav-group,
.ast-builder-menu-1 li.es-clubs-nav-group,
.ast-builder-menu-1 li.es-nav-dropdown,
.ast-builder-menu-1 > .main-header-menu > .menu-item-has-children,
#ast-hf-menu-1 li.es-textile-nav-group,
#ast-hf-menu-1 li.es-clubs-nav-group,
#ast-hf-menu-1 li.es-nav-dropdown,
#ast-hf-menu-1 > .menu-item-has-children {
    position: relative;
}

.main-header-menu > .menu-item-has-children > .sub-menu,
.ast-builder-menu-1 .main-header-menu > .menu-item-has-children > .sub-menu,
#ast-hf-menu-1 > .menu-item-has-children > .sub-menu,
.main-header-menu li.es-textile-nav-group > .sub-menu,
.main-header-menu li.es-clubs-nav-group > .sub-menu,
.main-header-menu li.es-nav-dropdown > .sub-menu,
.ast-builder-menu-1 li.es-textile-nav-group > .sub-menu,
.ast-builder-menu-1 li.es-clubs-nav-group > .sub-menu,
.ast-builder-menu-1 li.es-nav-dropdown > .sub-menu,
#ast-hf-menu-1 li.es-textile-nav-group > .sub-menu,
#ast-hf-menu-1 li.es-clubs-nav-group > .sub-menu,
#ast-hf-menu-1 li.es-nav-dropdown > .sub-menu {
    min-width: 240px !important;
    width: max-content !important;
    max-width: min(320px, 90vw) !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 8px 0 !important;
    border-radius: 12px !important;
    border: 1px solid #e8e8e8 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
    background: #fff !important;
    left: 0 !important;
}

.main-header-menu > .menu-item-has-children > .sub-menu .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item-has-children > .sub-menu .menu-link,
#ast-hf-menu-1 > .menu-item-has-children > .sub-menu .menu-link,
.main-header-menu li.es-textile-nav-group > .sub-menu .menu-link,
.main-header-menu li.es-clubs-nav-group > .sub-menu .menu-link,
.main-header-menu li.es-nav-dropdown > .sub-menu .menu-link,
.ast-builder-menu-1 li.es-textile-nav-group > .sub-menu .menu-link,
.ast-builder-menu-1 li.es-clubs-nav-group > .sub-menu .menu-link,
.ast-builder-menu-1 li.es-nav-dropdown > .sub-menu .menu-link,
#ast-hf-menu-1 li.es-textile-nav-group > .sub-menu .menu-link,
#ast-hf-menu-1 li.es-clubs-nav-group > .sub-menu .menu-link,
#ast-hf-menu-1 li.es-nav-dropdown > .sub-menu .menu-link {
    font-size: 14px !important;
    letter-spacing: 0.02em;
    text-transform: none !important;
    padding: 10px 18px !important;
    white-space: nowrap;
    line-height: 1.3;
}

.main-header-menu .sub-menu .sub-menu,
.ast-builder-menu-1 .sub-menu .sub-menu,
#ast-hf-menu-1 .sub-menu .sub-menu {
    min-width: 220px !important;
    width: max-content !important;
    padding: 8px 0 !important;
    border-radius: 12px !important;
    border: 1px solid #e8e8e8 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
    background: #fff !important;
}

/* Kill Astra mega-menu stretch so Sport / Matériel match Textile */
.ast-desktop .main-header-menu .astra-megamenu,
.ast-desktop .main-header-menu .astra-full-megamenu-wrapper,
.ast-desktop .ast-builder-menu-1 .astra-megamenu {
    width: auto !important;
    left: 0 !important;
    transform: none !important;
    display: block !important;
}

/* Desktop mid-width: slightly tighter so labels still fit on one line */
@media (min-width: 1201px) and (max-width: 1400px) {
    .main-header-menu > .menu-item > .menu-link,
    .ast-builder-menu-1 .menu-item > .menu-link,
    #ast-hf-menu-1 > .menu-item > .menu-link {
        font-size: 13px !important;
        letter-spacing: 0.02em;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/*
 * TABLET / MOBILE (≤1200): hamburger only — no crushed desktop sommaire.
 * Matches astra_header_break_point filter in functions.php.
 */
@media (max-width: 1200px) {
    .es-header-tape__inner {
        font-size: 11px;
        padding: 7px 12px;
    }

    .es-header-tape--yellow .es-header-tape__inner span {
        display: inline-block;
        max-width: 100%;
        white-space: normal;
        line-height: 1.35;
    }

    /* Always solid white header — no transparent-over-hero crush */
    #masthead,
    .ast-theme-transparent-header #masthead,
    .ast-primary-header-bar,
    .site-header,
    .ast-mobile-header-wrap,
    .ast-main-header-wrap {
        background-color: #ffffff !important;
        background: #ffffff !important;
    }

    .ast-theme-transparent-header #masthead {
        position: relative !important;
    }

    /*
     * Force mobile header shell.
     * Astra theme CSS still hardcodes @media (max-width:921.9px) for
     * #ast-desktop-header / #ast-mobile-header while JS break_point is 1200.
     */
    #ast-desktop-header {
        display: none !important;
    }

    #ast-mobile-header,
    .ast-mobile-header-wrap {
        display: block !important;
        width: 100%;
    }

    /* Never show the crushed horizontal desktop sommaire under 1200px */
    #ast-desktop-header .main-header-bar-navigation,
    #ast-desktop-header .ast-builder-menu,
    #ast-desktop-header .main-header-menu,
    #masthead .ast-below-header-bar,
    #masthead .ast-desktop-header-content {
        display: none !important;
    }

    /*
     * Dropdown mobile menu (data-type="dropdown"): hide until hamburger opens.
     * Open state uses body.ast-main-header-nav-open (not popup).
     */
    #ast-mobile-header .ast-mobile-header-content {
        display: none !important;
    }

    body.ast-main-header-nav-open #ast-mobile-header .ast-mobile-header-content,
    body.ast-popup-nav-open .ast-mobile-popup-content,
    body.ast-popup-nav-open .ast-mobile-popup-drawer .main-header-bar-navigation {
        display: block !important;
        width: 100%;
    }

    body.ast-main-header-nav-open #ast-mobile-header .ast-mobile-header-content .main-header-bar-navigation,
    body.ast-main-header-nav-open #ast-mobile-header .ast-mobile-header-content .ast-builder-menu,
    body.ast-main-header-nav-open #ast-mobile-header .ast-mobile-header-content .main-header-menu,
    .ast-mobile-popup-content .main-header-menu {
        display: block !important;
        width: 100%;
    }

    /* Vertical sommaire inside the open mobile menu */
    body.ast-main-header-nav-open #ast-mobile-header .main-header-menu,
    .ast-mobile-popup-content .main-header-menu {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    body.ast-main-header-nav-open #ast-mobile-header .main-header-menu > .menu-item,
    .ast-mobile-popup-content .main-header-menu > .menu-item {
        width: 100% !important;
        display: block !important;
    }

    body.ast-main-header-nav-open #ast-mobile-header .main-header-menu > .menu-item > .menu-link,
    .ast-mobile-popup-content .main-header-menu > .menu-item > .menu-link {
        font-size: 16px !important;
        padding: 14px 18px !important;
        white-space: normal !important;
        display: block !important;
    }

    /*
     * Parent items (Textile, Matériel, Espace Clubs…): tap the name to open
     * the submenu, not jump to a page. Only the chevron used to work.
     */
    #ast-mobile-header .menu-item-has-children,
    .ast-mobile-popup-content .menu-item-has-children,
    body.ast-main-header-nav-open #ast-mobile-header .menu-item-has-children {
        position: relative !important;
    }

    #ast-mobile-header .menu-item-has-children > .ast-menu-toggle,
    .ast-mobile-popup-content .menu-item-has-children > .ast-menu-toggle,
    body.ast-main-header-nav-open #ast-mobile-header .menu-item-has-children > .ast-menu-toggle {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 52px !important;
        max-height: 52px !important;
        margin: 0 !important;
        z-index: 6 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        padding: 0 16px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    /* Submenus stack under their parent in the mobile dropdown */
    body.ast-main-header-nav-open #ast-mobile-header .main-header-menu .sub-menu {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        display: none;
    }

    body.ast-main-header-nav-open #ast-mobile-header .main-header-menu .menu-item-has-children.ast-submenu-expanded > .sub-menu,
    body.ast-main-header-nav-open #ast-mobile-header .main-header-menu .menu-item-has-children.focus > .sub-menu {
        display: block !important;
    }

    /* Logo / toggle / icons row */
    .ast-mobile-header-wrap .ast-primary-header-bar,
    .ast-mobile-header-wrap .main-header-bar,
    .ast-header-break-point .main-header-bar {
        min-height: 64px;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .ast-mobile-header-wrap .ast-builder-grid-row,
    .ast-header-break-point .ast-builder-grid-row {
        align-items: center !important;
        gap: 8px;
    }

    .site-logo-img,
    .ast-header-account-wrap,
    .ast-site-header-cart {
        margin-top: 0 !important;
    }

    #masthead .site-logo-img img,
    #masthead .custom-logo-link img,
    #masthead .custom-logo {
        max-height: 36px !important;
        max-width: 148px !important;
        width: auto !important;
    }

    /* Hamburger: no ugly bordered box */
    .ast-mobile-menu-trigger-minimal,
    .menu-toggle,
    .ast-button-wrap .menu-toggle,
    button.menu-toggle,
    .ast-mobile-menu-buttons .menu-toggle {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        padding: 8px !important;
        min-width: 40px;
        min-height: 40px;
        color: #111 !important;
    }

    .ast-mobile-menu-trigger-minimal:hover,
    .menu-toggle:hover {
        background: #f4f4f4 !important;
    }

    .ast-mobile-svg-trigger svg,
    .menu-toggle .menu-toggle-icon,
    .ast-mobile-menu-buttons .ast-mobile-svg-trigger {
        color: #111 !important;
        fill: #111 !important;
    }

    /* Account + cart spacing */
    .ast-header-break-point .ast-header-account-wrap,
    .ast-header-break-point .ast-site-header-cart,
    .ast-mobile-header-wrap .ast-header-account-wrap,
    .ast-mobile-header-wrap .ast-site-header-cart {
        margin: 0 !important;
        padding: 0 4px !important;
    }

    .main-header-bar-navigation {
        margin-top: 0 !important;
    }
}

@media (max-width: 921px) {
    .ast-mobile-popup-content li.es-textile-nav-group > .sub-menu .menu-link,
    .ast-mobile-popup-content li.es-clubs-nav-group > .sub-menu .menu-link {
        font-size: 15px !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
}

/*
 * WCMAMTX plugin injects a duplicate My Account item into the nav menu.
 * Astra already provides the header account icon — hide the plugin menu entry.
 */
.main-header-menu > li.wcmamtx_menu,
.main-header-bar-navigation li.wcmamtx_menu,
#ast-hf-menu-1 > li.wcmamtx_menu,
.ast-builder-menu-1 li.wcmamtx_menu,
.ast-mobile-popup-content li.wcmamtx_menu,
.ast-header-break-point li.wcmamtx_menu {
    display: none !important;
}

/* Global Image "Fit" fix */
.wp-block-cover img, 
.hero-section img, 
.entry-content .wp-block-image img,
.hero-slider .cb-slide .wp-block-uagb-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
}

/* ============================================================
   1. PLUGIN & GLOBAL BLOCK OVERRIDES (UAGB / Astra)
   ============================================================ */
.uagb-block-cff10247 .uagb-post__inner-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.uagb-block-cff10247 .uagb-post__cta {
    position: absolute;
    bottom: 20px;
    right: 20px;
    margin: 0 !important;
}

.uagb-block-cff10247 .uagb-post__excerpt {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #000 !important;
    background: rgba(255,255,255,0.9);
    display: inline-block;
    padding: 5px 10px;
    margin-top: 10px;
    border-radius: 3px;
}

/* ============================================================
   2. JD SPORTS STYLE CATEGORY GRID & CAROUSELS
   ============================================================ */
.jd-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.jd-cat-item {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
}

.jd-cat-item:hover { transform: translateY(-5px); }

.jd-cat-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f4f4f4;
}

.jd-cat-item__media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f3f3;
}

.jd-cat-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.jd-cat-item__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background: linear-gradient(145deg, #f7f7f7 0%, #ececec 100%);
}

.jd-cat-item__fallback-letter {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    color: #222;
}

.es-landing-section {
    padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 32px);
    max-width: 1240px;
    margin: 0 auto;
    box-sizing: border-box;
}

.es-landing-section__inner {
    width: 100%;
}

.es-landing-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(16px, 2vw, 24px);
}

.es-landing-section__title,
.pepites-title.es-landing-section__title {
    margin: 0;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 900;
    text-transform: none;
    color: #111;
}

.es-landing-section__link {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.es-landing-section__link:hover {
    color: #000;
}

.es-landing-pepites .es-landing-pepites-grid ul.products.es-product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(160px, 1fr)) !important;
    gap: clamp(18px, 2vw, 28px) !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.es-landing-pepites .es-product-card {
    list-style: none;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.es-landing-pepites .es-product-card__image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.es-landing-pepites .es-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.es-landing-pepites .es-product-card__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.es-landing-pepites .es-product-card__actions .button {
    border-radius: 10px !important;
}

.jd-cat-label {
    margin-top: 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    color: #000;
}

/* Pepites Section */
.pepites-section { padding: 40px 20px; background: #fff; }
.pepites-title { font-size: 24px; font-weight: 900; text-transform: uppercase; margin-bottom: 20px; }
.pepites-carousel { display: flex; overflow-x: auto; gap: 15px; padding: 20px 0; scrollbar-width: none; }
.pepites-carousel::-webkit-scrollbar { display: none; }

.pepites-carousel .products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

/* Landing pépite rails — [products] inside .pepites-carousel (same Woo width/float resets as home-collection) */
.pepites-section.landing-pepites .woocommerce,
.pepites-section .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    display: block !important;
}

.pepites-section ul.products,
.pepites-section.landing-pepites ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(160px, 1fr)) !important;
    gap: clamp(18px, 2vw, 28px) !important;
    justify-content: center !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    list-style: none !important;
}

.pepites-section ul.products li.product {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

.pepites-section.landing-pepites {
    background: transparent !important;
    padding-top: clamp(24px, 3vw, 40px);
    padding-bottom: clamp(24px, 3vw, 40px);
}

/* ============================================================
   HOME COLLECTION SECTION (Notre Collections)
   WooCommerce shortcode outputs .woocommerce + ul.products — reset % widths / floats
   or grid tracks collapse into razor-thin columns (vertical letters).
   ============================================================ */
.home-collection-section {
    padding: clamp(28px, 4vw, 48px) clamp(18px, 4vw, 48px);
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: min(100%, 1480px);
    background: transparent !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
}

.home-collection-section .collection-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Wrapper WooCommerce injects around [products] */
.home-collection-section .collection-grid .woocommerce,
.home-collection-section .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    display: block !important;
    clear: both !important;
}

/* Section title — lower visual volume (native heading + Elementor) */
.home-collection-section > h2,
.home-collection-section > h3,
.home-collection-section .elementor-widget-heading .elementor-heading-title,
.home-collection-section h2.elementor-heading-title {
    text-align: center !important;
    font-size: clamp(1.05rem, 1.35vw, 1.35rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    color: #333 !important;
    margin: 0 0 clamp(18px, 2.5vw, 28px) !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

/*
 * Grid: minmax(MIN, 1fr) with MIN > 0 stops collapsed tracks.
 * Do NOT use justify-content: space-between here — it contributed to broken layouts.
 */
.home-collection-section .collection-grid ul.products,
.home-collection-section .collection-grid .products,
.home-collection-section .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(160px, 1fr)) !important;
    gap: clamp(22px, 3vw, 40px) !important;
    align-items: start !important;
    justify-content: center !important;
    justify-items: stretch !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* Kill WooCommerce column % widths so grid can assign cell width */
.home-collection-section ul.products li.product,
.home-collection-section ul.products li.product.first,
.home-collection-section ul.products li.product.last {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
}

/* Product cards — lighter footprint */
.home-collection-section .collection-grid ul.products li.product,
.home-collection-section .collection-grid .products li.product,
.home-collection-section .woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-radius: 14px !important;
    padding: 12px !important;
    background: transparent !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-collection-section .collection-grid ul.products li.product:hover,
.home-collection-section .collection-grid .products li.product:hover,
.home-collection-section .woocommerce ul.products li.product:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

/* Hide messy category/meta text in this home section */
.home-collection-section .collection-grid ul.products li.product .ast-woo-product-category,
.home-collection-section .woocommerce ul.products li.product .ast-woo-product-category,
.home-collection-section .collection-grid ul.products li.product .es-product-card__cats,
.home-collection-section .woocommerce ul.products li.product .es-product-card__cats,
.home-collection-section .collection-grid ul.products li.product .posted_in,
.home-collection-section .woocommerce ul.products li.product .posted_in,
.home-collection-section .collection-grid ul.products li.product .product_type_variable + .screen-reader-text,
.home-collection-section .woocommerce ul.products li.product .product_type_variable + .screen-reader-text {
    display: none !important;
}

/* Product image — modest tile */
.home-collection-section .collection-grid ul.products li.product a:first-of-type,
.home-collection-section .collection-grid .products li.product a:first-of-type,
.home-collection-section .woocommerce ul.products li.product a:first-of-type {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
}

.home-collection-section .collection-grid ul.products li.product img,
.home-collection-section .collection-grid .products li.product img,
.home-collection-section .woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    max-height: 168px !important;
    object-fit: contain !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 10px !important;
    padding: 8px !important;
}

/* Title — readable, not billboard-sized */
.home-collection-section .collection-grid ul.products li.product .woocommerce-loop-product__title,
.home-collection-section .collection-grid .products li.product .woocommerce-loop-product__title,
.home-collection-section .woocommerce ul.products li.product .woocommerce-loop-product__title,
.home-collection-section .collection-grid ul.products li.product h2.es-product-card__title,
.home-collection-section .woocommerce ul.products li.product h2.es-product-card__title,
.home-collection-section .collection-grid ul.products li.product .es-product-card__title,
.home-collection-section .woocommerce ul.products li.product .es-product-card__title {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 0 8px !important;
    min-height: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    text-align: center !important;
    color: #111 !important;
    padding: 0 2px !important;
    text-transform: none !important;
}

/* Price */
.home-collection-section .collection-grid ul.products li.product .price,
.home-collection-section .collection-grid .products li.product .price,
.home-collection-section .woocommerce ul.products li.product .price {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
    text-align: center !important;
    display: block !important;
    color: #222 !important;
}

/* CTA */
.home-collection-section .collection-grid ul.products li.product .button,
.home-collection-section .collection-grid .products li.product .button,
.home-collection-section .woocommerce ul.products li.product .button {
    width: 100% !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    background: #111 !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    border: none !important;
    text-align: center !important;
    line-height: 1.15 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: normal !important;
    writing-mode: horizontal-tb !important;
}

.home-collection-section .collection-grid ul.products li.product .button:hover,
.home-collection-section .collection-grid .products li.product .button:hover,
.home-collection-section .woocommerce ul.products li.product .button:hover {
    background: #2a2a2a !important;
}

@media (max-width: 1100px) {
    .home-collection-section .collection-grid ul.products,
    .home-collection-section .collection-grid .products,
    .home-collection-section .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(160px, 1fr)) !important;
        gap: clamp(18px, 2.5vw, 28px) !important;
    }
}

@media (max-width: 780px) {
    .home-collection-section {
        padding: 24px 14px 36px;
    }

    .home-collection-section .collection-grid ul.products,
    .home-collection-section .collection-grid .products,
    .home-collection-section .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(140px, 1fr)) !important;
        gap: clamp(16px, 3vw, 24px) !important;
    }
}

@media (max-width: 520px) {
    .home-collection-section .collection-grid ul.products,
    .home-collection-section .collection-grid .products,
    .home-collection-section .woocommerce ul.products {
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================================
   3. CATEGORY PAGES HERO (Homme, Femme, Enfant, Sport)
   ============================================================ */
.hero-slider-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 500px; 
    position: relative;
    overflow: hidden;
}

.hero-slider-container .hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover !important;
    background-position: center center !important; 
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: flex-end; 
    justify-content: flex-end; 
}

.hero-slider-container .hero-slide.active { opacity: 1; z-index: 1; }
.hero-slider-container .hero-content { padding: 40px; }

/* ============================================================
   4. HOME PAGE HERO (Hero-Slider-Container1)
   ============================================================ */
.hero-slider-container1 {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    aspect-ratio: 2800 / 883; 
    min-height: 300px;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    margin-top: 100px; 
}

.hero-slider-container1 .hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover !important;
    background-position: 50% 20% !important; 
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start; 
}

.hero-slider-container1 .hero-slide.active { opacity: 1; }
.hero-slider-container1 .hero-content { padding: 40px; }

/* SHARED HERO BUTTON */
.hero-btn {
    background: #000;
    color: #fff;
    padding: 15px 40px;
    text-transform: uppercase;
    font-weight: 900;
    text-decoration: none;
    border: 2px solid #fff;
    transition: 0.3s;
}

.hero-btn:hover { background: #fff; color: #000; }

/* ============================================================
   5. MOBILE FIXES (Single clean block)
   ============================================================ */
@media (max-width: 768px) {
    /* Header Solid White Fix */
    .ast-theme-transparent-header #masthead {
        position: relative !important;
        background-color: #ffffff !important;
    }

    .hero-slider,
    .hero-slider-container1 { 
        margin-top: 0 !important; 
        padding-top: 0 !important;
    }

    /* Mobile Header Icons Alignment */
    .site-header-section-primary-bottom.ast-site-header-section {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .ast-header-mobile-section-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 15px; 
    }
    .ast-site-header-cart, 
    .ast-header-account-wrap {
        margin: 0 !important;
        display: inline-block !important;
    }

    /* PRODUCT GRID: 1 per line — scoped (never target global shop ul.products) */
    .pepites-section ul.products,
    .pepites-section .pepites-carousel ul.products,
    .es-landing-pepites .es-landing-pepites-grid ul.products.es-product-grid,
    .home-collection-section .collection-grid ul.products,
    .home-collection-section .collection-grid .products,
    .home-collection-section .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 30px !important;
    }

    /* CATEGORY GRID: 2 per line for balance */
    .jd-category-grid { 
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
    }

    /* SIZE SWATCHES: Clean row (3-4 per line) */
    .variable-items-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 15px !important;
        max-width: 80%; /* Keeps the cluster tight */
        margin-left: auto;
        margin-right: auto;
    }

    .variable-items-wrapper .variable-item,
    ul.variable-items-wrapper li {
        width: calc(25% - 8px) !important; /* Fits 4 per line */
        min-width: 45px !important;
        height: 35px !important;
        font-size: 12px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Badge Fix (Now plenty of room on 1-per-row) */
    .astra-shop-summary-wrap .ast-shop-product-out-of-stock,
    .onsale {
        font-size: 11px !important;
        padding: 5px 12px !important;
        white-space: nowrap !important;
        border-radius: 4px !important;
    }

    /* Center Product Info */
    .woocommerce-loop-product__title, 
    .price {
        text-align: center !important;
        font-size: 1.1rem !important;
    }
}

/* ============================================================
   WOOCOMMERCE SHOP — NEUTRALIZE OLD FULL-WIDTH HACK + LAYOUT FIX
   (replaces fragile left:50% / -50vw tricks when margin resets)
   ============================================================ */

/* 1. Neutralize weird positioning on main Woo wrapper */
body.woocommerce-page #primary.es-main {
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 2. Full-width cage — was 96% + auto margins, which shows body bg as left/right strips */
body.woocommerce-page:not(.single-product) div#content.site-content div.ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 3. Inner shop wrappers use full width of cage */
body.woocommerce-page:not(.single-product) .es-main__inner,
body.woocommerce-page:not(.single-product) .es-shop-page {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 4. Desktop: sidebar + products row — align breakpoint with child theme (1025px) */
@media (min-width: 1025px) {
    body.woocommerce-page .es-shop-layout {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        gap: 40px !important;
    }

    body.woocommerce-page .es-shop-sidebar {
        flex: 0 0 250px !important;
        max-width: 250px !important;
    }

    body.woocommerce-page .es-shop-content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
}

/* 5. Mobile: stack, filters on top */
@media (max-width: 1024px) {
    body.woocommerce-page .es-shop-layout {
        display: flex !important;
        flex-direction: column !important;
    }

    body.woocommerce-page .es-shop-sidebar,
    body.woocommerce-page .es-shop-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    body.woocommerce-page .es-shop-sidebar {
        order: 1 !important;
        margin-bottom: 30px !important;
    }

    body.woocommerce-page .es-shop-content {
        order: 2 !important;
    }
}

/* Shop archive — Woo default floats + drawer (paste-friendly duplicate of child theme) */
body.woocommerce-page:not(.single-product) .es-shop-filters-state {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
}

body.woocommerce-page:not(.single-product) .es-shop-filters-toggle {
    display: none !important;
}

@media (max-width: 1024px) {
    body.woocommerce-page:not(.single-product) .es-shop-page,
    body.woocommerce-page:not(.single-product) .es-shop-layout,
    body.woocommerce-page:not(.single-product) .es-shop-sidebar,
    body.woocommerce-page:not(.single-product) .es-shop-content,
    body.woocommerce-page:not(.single-product) .es-filter-block {
        box-sizing: border-box !important;
        max-width: 100% !important;
    }

    body.woocommerce-page:not(.single-product) .es-filter-block {
        min-width: 0 !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-toolbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-toolbar__count,
    body.woocommerce-page:not(.single-product) .es-shop-toolbar__sort {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-toolbar .woocommerce-result-count,
    body.woocommerce-page:not(.single-product) .es-shop-toolbar .woocommerce-ordering {
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        position: relative !important;
        right: auto !important;
        left: auto !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-toolbar .woocommerce-ordering {
        display: block !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-toolbar .orderby {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Full-width product list; filters in drawer (see child theme + shop-filters-drawer.js) */
    body.woocommerce-page:not(.single-product) .es-shop-content ul.products.es-product-grid,
    body.woocommerce-page:not(.single-product) .woocommerce ul.products.es-product-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-content: stretch !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-filters-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        min-height: 48px !important;
        margin: 0 0 16px !important;
        padding: 0 18px !important;
        border: 1px solid #111 !important;
        border-radius: 12px !important;
        background: #111 !important;
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        letter-spacing: 0.06em !important;
        text-transform: uppercase !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 6 !important;
        pointer-events: auto !important;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-filters-backdrop {
        display: none !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 100000 !important;
        margin: 0 !important;
        border: 0 !important;
        padding: 0 !important;
        background: rgba(0, 0, 0, 0.45) !important;
        cursor: pointer !important;
    }

    body.woocommerce-page:not(.single-product) #es-shop-filters-state:checked ~ .es-shop-filters-backdrop {
        display: block !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-sidebar-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 16px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 2 !important;
        margin: 0 !important;
        padding: 16px 18px !important;
        background: #fff !important;
        border-bottom: 1px solid #ececec !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-sidebar-title {
        margin: 0 !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        letter-spacing: 0.06em !important;
        text-transform: uppercase !important;
        color: #111 !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-filters-close {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid #d8d8d8 !important;
        border-radius: 12px !important;
        background: #fff !important;
        font-size: 24px !important;
        line-height: 1 !important;
        color: #111 !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-sidebar-body {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        min-width: 0 !important;
        padding: 18px 16px 32px !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar .es-filter-block {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
        border: 1px solid #eaeaea !important;
        border-radius: 14px !important;
        padding: 16px 16px 18px !important;
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05) !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar .es-filter-title {
        margin: 0 0 14px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        font-size: 11px !important;
        letter-spacing: 0.12em !important;
        color: #111 !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar .widget,
    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar .widget.woocommerce {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar .woocommerce {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar .price_slider_wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 2px 8px !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar .price_slider_amount {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 6px !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar .price_slider_amount .price_label {
        margin: 0 !important;
        order: 2 !important;
        font-size: 13px !important;
        color: #555 !important;
        text-align: center !important;
        width: 100% !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar .price_slider_amount .button {
        order: 1 !important;
        width: 100% !important;
        margin: 0 !important;
        min-height: 44px !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar .woocommerce-product-search {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar .woocommerce-product-search form {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar .search-field {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar input[type="submit"],
    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar .woocommerce-product-search button {
        width: 100% !important;
        margin-top: 10px !important;
        min-height: 44px !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar .es-filter-list {
        gap: 3px !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-layout .es-shop-sidebar .es-filter-list a {
        padding: 11px 14px !important;
        min-height: 46px !important;
        border-radius: 12px !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: min(100vw, 420px) !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 100001 !important;
        background: #fafafa !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        flex: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        transform: translate3d(-100%, 0, 0) !important;
        transition: transform 0.28s ease !important;
        box-shadow: 6px 0 32px rgba(0, 0, 0, 0.12) !important;
    }

    body.woocommerce-page:not(.single-product) #es-shop-filters-state:checked ~ .es-shop-layout .es-shop-sidebar {
        transform: translate3d(0, 0, 0) !important;
    }
}

@media (min-width: 1025px) {
    body.woocommerce-page:not(.single-product) .es-shop-filters-backdrop {
        display: none !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-sidebar-header {
        display: none !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-sidebar-body {
        padding: 0 !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-sidebar {
        position: static !important;
        transform: none !important;
        transition: none !important;
        width: auto !important;
        box-shadow: none !important;
        overflow: visible !important;
        z-index: auto !important;
        background: transparent !important;
    }
}

/*
 * Mobile shop cards — compact 2-col, full-bleed image, less chrome.
 */
@media (max-width: 1024px) {
    body.woocommerce-page:not(.single-product) .es-shop-content ul.products.es-product-grid,
    body.woocommerce-page:not(.single-product) .woocommerce ul.products.es-product-grid,
    body.woocommerce-page:not(.single-product) ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    body.woocommerce-page:not(.single-product) ul.products > li.product,
    body.woocommerce-page:not(.single-product) ul.products > li.product.es-product-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: none !important;
        border: 1px solid #e8e8e8 !important;
        text-align: left !important;
    }

    body.woocommerce-page:not(.single-product) .es-product-card__image {
        display: block !important;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        max-height: none !important;
        margin: 0 !important;
        background: #f4f4f4 !important;
    }

    body.woocommerce-page:not(.single-product) .es-product-card__image img,
    body.woocommerce-page:not(.single-product) ul.products li.product img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        margin: 0 !important;
    }

    body.woocommerce-page:not(.single-product) .es-product-card__body {
        padding: 8px 8px 10px !important;
        align-items: stretch !important;
        text-align: left !important;
        gap: 4px !important;
    }

    /* Category chips clutter mobile cards — hide on loop */
    body.woocommerce-page:not(.single-product) .es-product-card__cats,
    body.woocommerce-page:not(.single-product) ul.products li.product .ast-woo-product-category {
        display: none !important;
    }

    body.woocommerce-page:not(.single-product) .es-product-card__title,
    body.woocommerce-page:not(.single-product) .es-product-card__title a,
    body.woocommerce-page:not(.single-product) ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        text-align: left !important;
        font-weight: 700 !important;
    }

    body.woocommerce-page:not(.single-product) .es-product-card__price,
    body.woocommerce-page:not(.single-product) ul.products li.product .price {
        font-size: 12px !important;
        margin: 2px 0 6px !important;
        text-align: left !important;
    }

    body.woocommerce-page:not(.single-product) .es-product-card__actions {
        justify-content: stretch !important;
        margin-top: 0 !important;
    }

    body.woocommerce-page:not(.single-product) .es-product-card__actions .button,
    body.woocommerce-page:not(.single-product) .es-product-card__actions .add_to_cart_button,
    body.woocommerce-page:not(.single-product) .es-product-card__actions .product_type_variable,
    body.woocommerce-page:not(.single-product) .es-product-card a.lumise-list-button {
        width: 100% !important;
        min-height: 32px !important;
        padding: 0 8px !important;
        font-size: 10px !important;
        letter-spacing: 0.04em !important;
        border-radius: 8px !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-toolbar .woocommerce-ordering,
    body.woocommerce-page:not(.single-product) .es-shop-toolbar__sort {
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body.woocommerce-page:not(.single-product) .es-shop-toolbar .orderby {
        min-height: 40px !important;
        border: 1px solid #ddd !important;
        border-radius: 10px !important;
        padding: 0 12px !important;
        font-size: 13px !important;
    }

    body.woocommerce-page:not(.single-product) .woocommerce-result-count {
        font-size: 12px !important;
        margin: 0 !important;
    }
}

@media (max-width: 380px) {
    body.woocommerce-page:not(.single-product) .es-shop-content ul.products.es-product-grid,
    body.woocommerce-page:not(.single-product) .woocommerce ul.products.es-product-grid,
    body.woocommerce-page:not(.single-product) ul.products {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }
}

/* Legal links — horizontal bar under footer (not stacked in the menu column) */
.es-legal-footer {
    width: 100%;
    padding: 12px 20px 16px;
    background: #262626;
    color: #cfcfcf;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.es-legal-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.es-legal-footer__label {
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 4px;
}

.es-legal-footer__links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 0;
}

.es-legal-footer a,
.es-legal-link {
    color: #eee !important;
    text-decoration: none !important;
    font-size: 13px;
    letter-spacing: 0.02em;
    padding: 2px 4px;
}

.es-legal-footer a:hover,
.es-legal-link:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.es-legal-sep {
    opacity: 0.45;
    margin: 0 6px;
    user-select: none;
}

/* Hide leftover legal items if an old menu still has them stacked */
.site-footer .es-legal-menu-item {
    display: none !important;
}

.es-legal {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.es-legal h2 {
    margin-top: 1.6em;
    font-size: 1.15rem;
}

.es-legal-draft-banner {
    margin: 0 0 24px;
    padding: 14px 16px;
    background: #fff6e8;
    border: 1px solid #f0d3a0;
    border-radius: 10px;
    color: #5c3d00;
    font-size: 14px;
    line-height: 1.45;
}

body:has(.es-site-footer) footer.site-footer {
    display: none !important;
}

.es-site-footer {
    background: #141414;
    color: #d8d8d8;
    margin-top: 0;
}

.es-site-footer__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.es-site-footer__fact {
    background: #1c1c1c;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.es-site-footer__fact strong {
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.es-site-footer__fact span {
    font-size: 13px;
    color: #bdbdbd;
}

.es-site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 36px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
}

.es-site-footer__name {
    margin: 0 0 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.es-site-footer__tag {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #b7b7b7;
    max-width: 32ch;
}

.es-site-footer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    background: #e86800;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
}

.es-site-footer__cta:hover {
    background: #c55800;
    color: #fff !important;
}

.es-site-footer__heading {
    margin: 0 0 12px;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

.es-site-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.es-site-footer__col li {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
}

.es-site-footer__col a {
    color: #d4d4d4 !important;
    text-decoration: none !important;
}

.es-site-footer__col a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

@media (max-width: 900px) {
    .es-site-footer__facts {
        grid-template-columns: 1fr;
    }
    .es-site-footer__inner {
        grid-template-columns: 1fr 1fr;
        padding: 36px 20px 28px;
    }
}

@media (max-width: 560px) {
    .es-site-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.es-color-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 4px;
}

.es-color-dot,
body.single-product .es-product-cart .variable-item.es-color-dot,
body.single-product .es-product-cart .variable-item.color-variable-item,
.variable-items-wrapper .variable-item.es-color-dot {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(0,0,0,.18) !important;
    box-shadow: inset 0 0 0 2px #fff !important;
    font-size: 0 !important;
    color: transparent !important;
    cursor: pointer;
    background: var(--es-swatch, #ccc) !important;
}

.es-color-dot.is-selected,
body.single-product .es-product-cart .variable-item.es-color-dot.selected,
body.single-product .es-product-cart .variable-item.color-variable-item.selected {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.es-color-dot--label {
    width: auto !important;
    min-width: 42px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    color: #111 !important;
    padding: 0 10px !important;
}

.es-custom-methods {
    margin: 0 0 16px;
    padding: 16px 18px;
    border: 1px solid #ececec;
    border-radius: 14px;
    background: #fafafa;
}

.es-custom-methods.is-attention {
    border-color: #e86800;
    background: #fff7f0;
}

.es-custom-methods__label {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
}

.es-custom-methods__hint {
    margin: 0 0 10px;
    font-size: 13px;
    color: #666;
}

.es-custom-methods__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.es-custom-methods__item {
    margin: 0;
}

.es-custom-methods__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.es-custom-methods__item span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.es-custom-methods__item input:checked + span {
    border-color: #111;
    background: #111;
    color: #fff;
}

/* Club boutiques: never clip the product grid */
body.page-boutiques-clubs .ast-container,
body.page-boutiques-clubs .entry-content,
body.esc-club-store-page .ast-container,
body.esc-club-store-page .entry-content,
body.esc-club-store-page .site-content {
    overflow: visible !important;
}
