@media only screen and (max-width: 768px) {

    /* --- WOMEN'S LIGHT MENU THEME (ID OVERRIDE) --- */

    /* We target the body class 'ec-women' from your screenshot to beat the 'Ghost Mode' code */
    body.ec-women .col-full-nav,
    body.ec-women .shoptimizer-mobile-menu,
    body.ec-women .main-navigation, 
    body.ec-women .main-navigation ul {
        background-color: #FAFAFA !important;
        background: #FAFAFA !important;
    }

    /* Update text and links to black for readability */
    body.ec-women .col-full-nav a,
    body.ec-women .main-navigation ul li a,
    body.ec-women a.mnav-link {
        color: #1a1a1a !important;
    }


    /* Ensure the 'X' lines stay white when the menu is open */
    body.ec-women.mobile-toggled button.menu-toggle span {
        background-color: #1a1a1a !important; /* Flips to black so you can see the 'X' on the light background */
    }

    /* --- WOMEN'S THEME: VISIBILITY REFINEMENTS --- */

    /* 1. Show Sub-menu Items (T-shirts, Hoodies, etc.) */
    body.ec-women .main-navigation ul li ul li a,
    body.ec-women .main-navigation .sub-menu a {
        color: #1a1a1a !important; /* Brand Black */
        opacity: 0.8 !important;   /* Slightly softer than parent items */
    }

    /* 2. Show the Tagline ("PERFORMANCE SKINWEAR") */
    body.ec-women .nav-tagline {
        color: #888888 !important; /* Soft gray for the tagline */
        opacity: 1 !important;
    }

    /* 3. Darken the Logo at the Bottom */
    /* This applies a filter to turn a white SVG/Image into black */
    body.ec-women .col-full-nav img[src*="Everyrep-Wordmark"], 
    body.ec-women .col-full-nav .footer-logo-class,
    body.ec-women .col-full-nav .site-branding img {
        filter: invert(1) brightness(0.1) !important;
    }

    /* 4. Fix "Good Afternoon" text if visible */
    body.ec-women .col-full-nav .good-afternoon-text {
        color: #888888 !important;
    }

    /* --- WOMEN'S THEME: OPEN STATE & ICON VISIBILITY --- */

    /* 1. Force 'Men' and 'Women' to stay black even when expanded */
    body.ec-women .shoptimizer-mobile-menu ul li.menu-item-has-children.aria-expanded > a,
    body.ec-women .shoptimizer-mobile-menu ul li.menu-item-has-children.dropdown-open > a {
        color: #1a1a1a !important;
    }

    /* 2. Make the Sub-menu Category Icons visible (Pants, Shorts, etc.) */
    /* Since these are likely white SVGs or transparent images, we darken them */
    body.ec-women .shoptimizer-mobile-menu .sub-menu img,
    body.ec-women .shoptimizer-mobile-menu .sub-menu i {
        filter: invert(1) brightness(0.2) !important;
        opacity: 1 !important;
    }

    /* 3. Restore the Chevrons/Arrows visibility */
    body.ec-women .shoptimizer-mobile-menu .carot,
    body.ec-women .shoptimizer-mobile-menu .nav-next::after,
    body.ec-women .shoptimizer-mobile-menu .nav-prev::after {
        border-color: #1a1a1a !important;
        color: #1a1a1a !important;
    }

    /* 4. Fix the "Performance Skinwear" tagline */
    body.ec-women .nav-tagline {
        color: #888888 !important;
        opacity: 1 !important;
        text-shadow: none !important;
    }

    /* 5. Darken the logo and "R" icon at the bottom */
    body.ec-women .col-full-nav .site-branding img,
    body.ec-women .col-full-nav img[src*="Everyrep"] {
        filter: invert(1) brightness(0) !important;
        opacity: 1 !important;
    }

    /* --- WOMEN'S THEME: FINAL VISIBILITY FIXES --- */

    /* 1. Force ALL menu links (including Men/Women when open) to stay black */
    body.ec-women .shoptimizer-mobile-menu a,
    body.ec-women .shoptimizer-mobile-menu span,
    body.ec-women .shoptimizer-mobile-menu .cg-menu-link,
    body.ec-women .shoptimizer-mobile-menu li.menu-item-has-children > a {
        color: #1a1a1a !important;
    }

    /* 2. Darken sub-menu category icons*/
    body.ec-women .shoptimizer-mobile-menu .sub-menu img,
    body.ec-women .shoptimizer-mobile-menu .sub-menu i {
        filter: invert(1) brightness(0.2) !important;
        border-color: #1a1a1a !important;
        opacity: 1 !important;
    }

    /* 2. Darken chevrons */
    body.ec-women .shoptimizer-mobile-menu .caret::after {
        filter: invert(1) brightness(0.2) !important;
        border-color: #1a1a1a !important;
        opacity: 0.6 !important;
    }

    /* 3. Darken the Tagline and Footer Logo */
    body.ec-women .nav-tagline {
        color: #888888 !important;
        opacity: 1 !important;
    }

    body.ec-women .col-full-nav .site-branding img,
    body.ec-women .col-full-nav img[src*="Everyrep"] {
        filter: invert(1) brightness(0) !important;
        opacity: 1 !important;
    }

    /* --- WOMEN'S THEME: FOOTER REFINEMENTS --- */

    /* 1. Darken the greeting text */
    body.ec-women .menu-footer .user-greeting {
        color: #888888 !important; /* Soft dark grey */
        opacity: 1 !important;
    }

    /* 2. Turn the white Emblem logo to black */
    body.ec-women .menu-footer img[src*="EveryRep-Emblem"] {
        filter: invert(1) brightness(0) !important;
        opacity: 0.6 !important;
    }

    /* 3. Ensure the container has no lingering dark shadows */
    body.ec-women .menu-footer {
        background: transparent !important;
        border-top: none !important;
    }

    /* ==============================================
       THE BRIDGE FIX: REPAIRING THE SPLIT MENU
       ============================================== */

    /* 1. Force the top-level black container to turn light */
    body.ec-women .shoptimizer-mobile-menu,
    body.ec-women .menu-primary-menu-container {
        background-color: #FAFAFA !important;
        background: #FAFAFA !important;
    }

    /* 2. Target the specific 'Men' and 'Women' text area */
    body.ec-women .shoptimizer-mobile-menu a.main-menu-link,
    body.ec-women .shoptimizer-mobile-menu span.caret::after {
        color: #1a1a1a !important;
        border-color: #1a1a1a !important;
    }

    /* 3. Ensure the 'X' and Logo sit on top of the gradient */
    body.ec-women.mobile-toggled #masthead::before {
        display: none !important;
    }

    body.ec-women .shoptimizer-mobile-menu .site-branding img,
    body.ec-women .shoptimizer-mobile-menu .close-menu span {
        z-index: 999999 !important;
        filter: invert(1) brightness(0) !important;
    }

    /* ==============================================
       LOGO STRENGTH: MEDIUM BOLD (BALANCED)
       ============================================== */

    body.ec-women.mobile-toggled .site-branding a.custom-logo-link,
    body.ec-women.mobile-toggled .shoptimizer-mobile-menu .custom-logo-link {
        /* 1. Moderate Shadow Stack for Medium Weight */
        filter: invert(1) brightness(0) contrast(150%) 
                drop-shadow(0.1px 0 0 #1a1a1a) 
                drop-shadow(-0.1px 0 0 #1a1a1a) 
                drop-shadow(0 0.1px 0 #1a1a1a) 
                drop-shadow(0 -0.1px 0 #1a1a1a) !important;
        
        -webkit-filter: invert(1) brightness(0) contrast(150%) 
                        drop-shadow(0.1px 0 0 #1a1a1a) 
                        drop-shadow(-0.1px 0 0 #1a1a1a) 
                        drop-shadow(0 0.1px 0 #1a1a1a) 
                        drop-shadow(0 -0.1px 0 #1a1a1a) !important;

        /* 2. Reset scale to keep letters sharp */
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* 3. Balanced 'X' weight */
    body.ec-women.mobile-toggled .shoptimizer-mobile-menu .close-menu span {
        background-color: #1a1a1a !important;
        height: 2px !important; /* Standard clean weight */
    }

}

/* Target the border below Subtotal mini cart */
body.ec-women #shoptimizerCartDrawer .woocommerce-mini-cart__buttons.buttons {
  background-color: transparent !important;
  border-top: 1px solid transparent !important; /* subtle divider */
}

/* ==============================================
   STICKY ADD-TO-CART: MEN (BACKGROUND COLOR)
   ============================================== */

/* Target the sticky form container */
body.ec-women form.cart.commercekit_sticky-atc {
    background-color: #FAFAFA !important; /* Dark Grey */
    background: #FAFAFA !important;       /* Safety duplicate */
}

/* Target star rating INSIDE the sticky container ONLY for Men */
body.term-women .commercekit-pdp-sticky-inner .star-rating,
body.product_cat-women .commercekit-pdp-sticky-inner .star-rating,
body.ec-women .commercekit-pdp-sticky-inner .star-rating {
    font-size: 8px !important;
    }

/* Remove Review Bottom Border for woMen Only */
body.ec-women .cr-reviews-ajax-reviews .cr-reviews-ajax-comments .cr-ajax-reviews-list .comment_container .cr-comment-text,
body.ec-women .cr-all-reviews-shortcode ol.commentlist li .cr-comment-text,
body.term-women .cr-reviews-ajax-reviews .cr-reviews-ajax-comments .cr-ajax-reviews-list .comment_container .cr-comment-text,
body.term-women .cr-all-reviews-shortcode ol.commentlist li .cr-comment-text {
    border-bottom-color: transparent !important;
}

/* A. Fix Sizing & Container */
body.ec-women .cr-rating-icon-base .cr-rating-icon-bg {
    width: 12px !important;
    height: 12px !important;
    min-width: 22px !important;
    display: inline-block !important;
    flex: none !important; 
}

/* ==========================================================
   MOBILE CART COUNT WEIGHT: WOMEN ONLY
   Makes the cart number bolder only on Women's mobile pages
   ========================================================== */

@media (max-width: 992px) {
    body.ec-women .shoptimizer-cart a.cart-contents .count {
        font-weight: 600 !important; /* Adjust to 700 or 800 if you need it thicker */
    }
}

