/* ============================================================
   GLOBAL STYLES & HEADER TWEAKS
   ============================================================ */
/* 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: 921px) {
    #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;
    }
}

/* Nudge Header Elements Down (Desktop & Global) */
.site-logo-img, 
.ast-header-account-wrap, 
.ast-site-header-cart {
    margin-top: 10px !important; 
}

/* Align the main menu */
.main-header-bar-navigation {
    margin-top: 5px !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;
    }
}
