/* =========================
   MEN'S PRODUCT PAGES
   ========================= */

body.single-product.ec-men {
  background-color: #252525;
}

/* Main content wrappers */
body.single-product.ec-men #page,
body.single-product.ec-men .site-content,
body.single-product.ec-men .site-main {
  background-color: #252525;
}

/* Elementor sections */
body.single-product.ec-men .elementor-section,
body.single-product.ec-men .elementor-widget-wrap {
  background-color: transparent;
}

/* Text defaults for dark background */
body.single-product.ec-men,
body.single-product.ec-men p,
body.single-product.ec-men li,
body.single-product.ec-men span {
  color: #e6e6e6;
}

/* Headings */
body.single-product.ec-men h1,
body.single-product.ec-men h2,
body.single-product.ec-men h3,
body.single-product.ec-men h4 {
  color: #ffffff;
}

/* ==============================================
   WHITE STAR RATINGS (FOR DARK BACKGROUNDS)
   ============================================== */

/* 1. THE EMPTY STARS (Background layer) */
/* We make these faint white so they are visible but look "inactive" */
body.ec-men .star-rating:before {
    background-color: rgba(255, 255, 255, 0.4) !important;
}

/* 2. THE FILLED STARS (Foreground layer) */
/* We make these bright solid white */
body.ec-men .star-rating > span:before {
    background-color: #ffffff !important;
}

@media (max-width: 767px){
  .wp-block-kadence-advancedheading.kt-adv-heading{
    font-size: 17px !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;
  }
}

/* ==============================================
   WHITE SIZE/FIT BAR (FOR ER-MEN)
   ============================================== */

/* Target the bar and ALL its children elements */
body.ec-men .everyrep-size-fit-bar,
body.ec-men .everyrep-size-fit-bar * {
    color: #ffffff !important;        /* Makes text white */
    border-color: #ffffff !important; /* Makes underlines/borders white */
    fill: #ffffff !important;         /* Makes any SVG icons white */
    stroke: #ffffff !important;       /* Makes SVG lines white */
}

/* ==============================================
   WHITE UNDERLINES & LINES (ER-MEN FIX)
   ============================================== */

/* 1. FORCE TEXT DECORATION (Standard Underlines) */
body.ec-men .everyrep-size-fit-bar * {
    text-decoration-color: #ffffff !important;
    -webkit-text-decoration-color: #ffffff !important;
}

/* 2. FORCE PSEUDO-ELEMENTS (Custom Lines/Borders) */
/* This catches the "active" underline drawn by ::after or ::before */
body.ec-men .everyrep-size-fit-bar *::before,
body.ec-men .everyrep-size-fit-bar *::after {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* ==============================================
   ACCORDIONS: MEN'S COLLECTION (WHITE)
   ============================================== */

/* 1. LAYOUT & TYPOGRAPHY (er.men only) */
/* Targeted directly to 'div.product' to avoid class conflicts */
body.ec-men div.product .summary details summary {
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    padding-top: 5px !important;
    padding-bottom: 18px !important;
    border-top: none !important;
    padding-right: 1.75rem !important;
    color: #ffffff !important;             /* White Text */
}

/* 2. CHEVRON ICON (er.men only) */
body.ec-men.single-product .summary details summary:after {
    width: 12px !important;
    height: 12px !important;
    background-color: currentColor !important; /* Automatically becomes White */
    opacity: 0.60 !important;
    margin-top: -6px !important;
    transition: transform 0.18s ease !important;
}

/* 3. ENSURE COLOR PREDICTABILITY */
body.ec-men.single-product .summary details summary {
    color: #ffffff !important;
}

/* 4. ROTATION (er.men only) */
body.ec-men.single-product .summary details[open] summary:after {
    transform: rotate(180deg);
}

/* ==============================================
   TABS/ACCORDION BACKGROUND: MEN (DARK)
   ============================================== */

/* Target the main wrapper AND the inner content panels */
body.ec-men .woocommerce-tabs,
body.ec-men .woocommerce-tabs .woocommerce-Tabs-panel,
body.ec-men .woocommerce-tabs .panel {
    background-color: #252525 !important;
}

/* ==============================================
   STICKY TAB BAR: MEN'S COLLECTION (DARK)
   ============================================== */

/* 1. Turn the background Dark Grey */
body.ec-men .commercekit-atc-sticky-tabs,
body.ec-men .commercekit-atc-tab-links {
    background-color: #252525 !important;
}

/* 2. Turn the Navigation Text White */
body.ec-men .commercekit-atc-tab-links li,
body.ec-men .commercekit-atc-tab-links li a {
    color: #ffffff !important;
}

/* 3. Highlight the "Active" tab (optional polish) */
body.ec-men .commercekit-atc-tab-links li.active a {
    color: #ffffff !important;
    border-bottom-color: #ffffff !important;
}

/* ==============================================
   REMOVE BORDERS FROM STICKY BAR (ER-MEN)
   ============================================== */

/* Target the container, the inner list, and the list items to kill ALL lines */
body.ec-men .commercekit-atc-sticky-tabs,
body.ec-men .commercekit-atc-tab-links,
body.ec-men .commercekit-atc-tab-links li {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important; /* Just in case it's a shadow line */
}

/* ==============================================
   REVIEWS SUMMARY BOX: MEN (DARK BACKGROUND)
   ============================================== */

/* Target the review summary box specifically on Men's pages */
body.ec-men .cr-all-reviews-shortcode .cr-summaryBox-wrap,
body.ec-men .cr-reviews-grid .cr-summaryBox-wrap,
body.ec-men #reviews .cr-summaryBox-wrap {
    background-color: #252525 !important;
    border: none !important; /* Optional cleanup */
}

/* ==============================================
   REVIEWS STYLING: MEN'S COLLECTION (DARK MODE)
   ============================================== */

/* 1. Review Count / Span Text (Ensure White) */
body.ec-men .crstar-rating span {
    color: #ffffff !important;
}

/* 2. Graph Bars (Black -> White) */
body.ec-men .ivole-meter .ivole-meter-bar {
    background: #555555 !important;
    background-color: #ffffff !important;
    box-shadow: 0 !important;
}

/* ==============================================
   METER TRACK BACKGROUND: MEN (SCOPED)
   ============================================== */

body.ec-men .ivole-meter {
    height: 7px !important; 
    box-shadow: none !important;
    border-radius: 5px !important;
    
    /* The Background Color (The "Empty" part) */
    background: #000000 !important;       
    background-color: #000000 !important; 
}


/* Target the 'before' element that creates the colored line highlight */
body.ec-men .ivole-meter .ivole-meter-bar:before {
    background: #fff !important;       /* Safety duplicate */
}

/* 3. Bar Styling (Scoped) */
body.ec-men .ivole-meter-bar {
    height: 7px !important; 
    border-radius: 5px !important; 
	
}

/* 4. Meter Container (Scoped) */
body.ec-men .ivole-meter {
    height: 7px !important; 
    box-shadow: none !important;
    border-radius: 5px !important; 
    background-color: #444 !important; /* Optional: Make the "empty" track visible */
}

/* 5. Date Styling (Scoped) */
body.ec-men time.woocommerce-review__published-date {
    font-size: 10px !important;
    color: #ccc !important; /* Added light grey for visibility */
}

/* 6. Histogram Links (Black -> White) */
body.ec-men #ivole-histogramTable tr.ivole-histogramRow a {
    color: #ffffff !important;
    font-weight: bold !important;
}

/* ==============================================
   STAR COLORS: MEN (COMPLETE FIX)
   ============================================== */

/* PART 1: FILLED STARS (Front Layer) -> TURN WHITE */
/* This makes the 4 stars on the left solid White */
body.ec-men .cr-rating-icon-frnt .cr-rating-icon,
body.ec-men .cr-rating-icon-frnt .cr-rating-icon path,
body.ec-men .cr-rating-icon-frnt .cr-rating-icon svg {
    fill: #f2f2f2 !important;
    stroke: none !important;
    color: #f2f2f2 !important;
}

/* PART 2: EMPTY STARS (Base Layer) -> GREY WIREFRAME */
/* This makes the 5th star on the right a Grey Outline */

/* A. Fix Sizing & Container */
body.ec-men .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; 
}

/* B. Hide the "Fake Cutout" Inner Star */
body.ec-men .cr-rating-icon-base .cr-rating-icon-bg g {
    display: none !important;
}

/* C. Convert Outer Shape to Wireframe */
body.ec-men .cr-rating-icon-base .cr-rating-icon-bg path {
    fill: transparent !important;   /* No Fill */
    stroke: #777777 !important;     /* Grey Outline */
    stroke-width: 5px !important;   /* Thicker line to account for scaling */
    opacity: 1 !important;
}

/* PART 3: LAYOUT SAFETY */
body.ec-men .crstar-rating-svg {
    display: inline-flex !important;
    align-items: center !important;
    height: 22px !important;
}

/* 12. Hide "Based on Reviews" & Count (Scoped) */
body.ec-men a.woocommerce-review-link,
body.ec-men .cr-total-rating-count {
    display: none !important;
}

/* 13. Reviews Title (Black -> White) */
body.ec-men .woocommerce-Reviews-title {
    display: block !important;
    text-align: center !important;
    font-size: 24px !important;
    margin-bottom: 20px !important;
    font-family: 'Nunito Sans', sans-serif !important;
    color: #ffffff !important; /* Forced White */
}

/* ==============================================
   VERIFIED BADGE: MEN (DARK MODE FIX)
   ============================================== */

/* 1. TURN THE ICON WHITE (Using CSS Filter) */
/* This takes the black SVG image and inverts it to white */
body.ec-men .woocommerce-review__verified::before {
    filter: invert(0.5) brightness(50) !important; 
}

/* 2. TURN THE TEXT "Verified Buyer" WHITE */
body.ec-men .woocommerce-review__verified {
    color: #cccccc !important;
    font-weight: 500 !important; /* Optional: make it pop a bit more */
}

/* ==============================================
   HISTOGRAM LABELS: MEN (BLUE -> LIGHT GREY)
   ============================================== */

/* Target the text spans inside the histogram table */
body.ec-men .cr-histogramTable .ivole-histogramRow .cr-histogram-a,
body.ec-men .cr-histogramTable .ivole-histogramRow span {
    color: #cccccc !important; /* Light Grey */
    text-decoration: none !important; /* Removes underline if present */
}

/* Optional: Make them white on hover so they are interactive */
body.ec-men .cr-histogramTable .ivole-histogramRow .cr-histogram-a:hover {
    color: #ffffff !important;
}

/* ==============================================
   REVIEWER NAME: MEN (DARK MODE FIX)
   ============================================== */

/* Target the Author Name span specifically */
body.ec-men .woocommerce-review__author,
body.ec-men .cr-comment-text .meta .woocommerce-review__author {
    color: #ffffff !important; /* Force White */
    font-weight: bold !important; /* Ensure it stays bold */
}

/* ==============================================
   REVIEW COUNT ROW: MEN (RED -> DARK GREY)
   ============================================== */

body.ec-men .cr-all-reviews-shortcode .cr-count-row,
body.ec-men .cr-count-row {
    /* Change Red background to Dark Grey */
    background-color: #252525 !important;
    background: #252525 !important;

    /* Force text to White so it's visible on the dark background */
    color: #ffffff !important;
    
    /* Optional: Remove border if it clashes */
    border: none !important;
}

/* ==============================================
   360 ROTATE ICON: MEN (GLOBAL FIX)
   ============================================== */

/* Target ANY image that uses the '360-degree-rotate-icon.svg' file */
body.ec-men img[src*="360-degree-rotate-icon.svg"] {
    filter: invert(1) !important;
    opacity: 1 !important;
}

/* ==============================================
   3D BUBBLE STYLE: MEN (TRANSPARENT WHITE)
   ============================================== */

body.ec-men .hyper-3d-bubble > span {
    background-color: #ffffff29 !important; 
}

/* ==============================================
   STICKY ADD-TO-CART: MEN (BACKGROUND COLOR)
   ============================================== */

/* Target the sticky form container */
body.ec-men form.cart.commercekit_sticky-atc {
    background-color: #252525 !important; /* Dark Grey */
    background: #252525 !important;       /* Safety duplicate */
}

/* ==============================================
   STICKY ATC HEADER: MEN (RED -> DARK GREY)
   ============================================== */

/* Target the 'before-form' container inside the sticky bar */
body.ec-men .commercekit-pdp-before-form {
    background-color: #252525 !important; /* Dark Grey */
    background: #252525 !important;       /* Safety duplicate */
    
    /* Optional: Ensure text inside is white so it's readable */
    color: #ffffff !important; 
}

/* ==============================================
   MOBILE STICKY ATC: MEN (BACKGROUND FIX)
   ============================================== */

/* Target the mobile sticky container by its ID */
body.ec-men #cgkit-mobile-commercekit-sticky-atc {
    background-color: #444 !important; /* Dark Grey */
    background: #444 !important;
    
    /* Ensure no other shadows or borders interfere */
    box-shadow: none !important; 
}

/* ==============================================
   SELECTED SIZE SWATCH: MEN (WHITE OUTLINE FIX)
   ============================================== */

/* Target the specific "selected" class on the button */
body.ec-men .cgkit-as-wrap .cgkit-attribute-swatches .cgkit-attribute-swatch.cgkit-button button.cgkit-swatch-selected {
    /* 1. Change the dark border to White */
    border-color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

/* ==============================================
   TAGLINE WHITE FOR MEN
   ============================================== */
body.ec-men .everyrep-tagline-final-v3 {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    
    /* Matches your branding exactly */
    font-size: 15px !important;
	letter-spacing: 0.3px !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    
    /* Precision spacing to fit between stars and swatches */
    margin-top: -9px !important;    /* Pulls it slightly closer to the stars above */
    margin-bottom: 40px !important; /* Creates breathing room above the color circles */
}

body.ec-men .cr-reviews-ajax-reviews .cr-show-more-reviews-prd, .cr-all-reviews-shortcode .cr-show-more-button, .cr-reviews-grid .cr-show-more-button, .cr-qna-block .cr-show-more-que {
    color: #BCCCD4 !important;
}

/* --- CHANGE TEXT COLOR INSIDE THE WOMENS SUB-MENU BACK TO BLACK--- */
html .primary-navigation li[id="nav-menu-item-45243"] > .sub-menu-wrapper > .container > .sub-menu a,
html .primary-navigation li[id="nav-menu-item-45243"] > .sub-menu-wrapper > .container > .sub-menu span,
html .primary-navigation li[id="nav-menu-item-45243"] > .sub-menu-wrapper > .container > .sub-menu li {
    color: #1a1a1a !important; /* Dark Black/Grey */
}

/* --- DARK MODE: SCOPED STRICTLY TO PRODUCT GRID (Excludes Banner) --- */

/* 1. Apply Black Background ONLY to the content area (below the banner) */
body.tax-product_cat.term-men #content,
body.tax-product_cat.term-men .site-content {
    background-color: #252525 !important;
}

/* 2. Force Text White ONLY inside that content area */
/* We repeat the selector to ensure we don't accidentally turn the Banner or Header text white */
body.tax-product_cat.term-men #content h1,
body.tax-product_cat.term-men #content h2,
body.tax-product_cat.term-men #content h3,
body.tax-product_cat.term-men #content p,
body.tax-product_cat.term-men #content li,
body.tax-product_cat.term-men #content span,
body.tax-product_cat.term-men #content a {
    color: #ffffff !important;
}

/* Optional: Add a hover color for links inside the grid */
body.tax-product_cat.term-men #content a:hover {
    color: #dddddd !important;
}

/* --- DARK MODE: MEN'S SHOP PAGE (Global / Sub-cats) --- */

/* 1. PRODUCT CARD BACKGROUND */
body.ec-men .products .product .woocommerce-card__header {
    background-color: #252525 !important;
    padding: 10px !important;
}

/* 2. PRODUCT CARD TEXT VISIBILITY */
body.ec-men .products .product .woocommerce-card__header .woocommerce-loop-product__title,
body.ec-men .products .product .woocommerce-card__header .price,
body.ec-men .products .product .woocommerce-card__header .star-rating {
    color: #ffffff !important;
}

/* 3. HOVER BORDER & OVERLAY */
body.ec-men .products .product:hover::before,
body.ec-men .products .product::before {
    border-color: #252525 !important; /* Matches card background */
    background-color: transparent !important;
}

/* 4. MOBILE FILTER BUTTON */
@media (max-width: 992px) {
    body.ec-men .mobile-filter {
        background-color: #252525 !important;
        border: none !important;
        color: #ffffff !important;
		box-shadow: none !important;
    }

    /* Fix the SVG icon color inside the button */
    body.ec-men .mobile-filter svg {
        fill: #ffffff !important;
    }
}

/* 5. CATEGORY BANNER BORDER */
body.ec-men .shoptimizer-category-banner {
    border-bottom: 1px solid #111 !important; 
}

/* --- DARK MODE: MEN'S CONTENT AREA (Global / Sub-cats) --- */

/* 1. Apply Black Background ONLY to the content area (below the banner) */
body.ec-men #content,
body.ec-men .site-content {
    background-color: #242424 !important;
}

/* 2. Force Text White ONLY inside that content area */
/* Ensures we don't accidentally turn the Banner or Header text white */
body.ec-men #content h1,
body.ec-men #content h2,
body.ec-men #content h3,
body.ec-men #content p,
body.ec-men #content li,
body.ec-men #content span,
body.ec-men #content a {
    color: #ffffff !important;
}

/* Optional: Add a hover color for links inside the grid */
body.ec-men #content a:hover {
    color: #dddddd !important;
}

/* =================================================================
   MOBILE FILTER SIDEBAR: COMBINED LOGIC
   ================================================================= */
@media (max-width: 992px) {

    /* 1. FORCE SIDEBAR TO TOP LAYER (Above Hamburger) */
    .page-template-template-woocommerce-archives #secondary, 
    .wc-active.search-results #secondary, 
    .woocommerce.archive #secondary {
        z-index: 200000 !important; 
    }

    /* 2. DARK BACKGROUND (Men's Pages Only) */
    body.ec-men #secondary {
        background-color: #444 !important;
        /* Optional: Add 'color: #fff !important;' here if text is hard to read */
    }

    /* 3. HIDE "CLOSE FILTERS" BUTTON */
    button.filters.close-drawer {
        display: none !important;
    }
}

/* =================================================================
   EVERYREP: DARK MODE MINI CART (Men's Pages)
   ================================================================= */

/* 1. Turn the Background Dark */
body.ec-men .shoptimizer-minicart-content,
body.ec-men .widget_shopping_cart_content,
body.ec-men .cart_list {
    background-color: #2A2A2A !important; /* Deep Black */
    color: #F2F2F2 !important;
}


/* =================================================================
   EVERYREP: MEN'S DARK CART DRAWER (#2A2A2A)
   ================================================================= */

/* 1. Main Drawer Background */
body.ec-men #shoptimizerCartDrawer,
body.ec-men .shoptimizer-mini-cart-wrap,
body.ec-men .widget_shopping_cart_content {
    background-color: #2A2A2A !important;
}

/* 6. Borders & Separators (Subtle Grey) */
body.ec-men .woocommerce-mini-cart__total {
    border-top: 1px solid rgba(255,255,255,0.08) !important; /* subtle divider */
    color: transparent !important;
}


/* =================================================================
   EVERYREP: MEN'S MINI CART INNER BACKGROUND (#2A2A2A)
   ================================================================= */

/* Target the specific inner content wrapper you highlighted */
body.ec-men .shoptimizer-mini-cart-wrap .widget_shopping_cart {
    background-color: #2a2a2a !important; /* Overrides #fff */
    }

/* Ensure text inside is visible against the new dark background */
body.ec-men .shoptimizer-mini-cart-wrap .widget_shopping_cart a:not(.button),
body.ec-men .shoptimizer-mini-cart-wrap .widget_shopping_cart span,
body.ec-men .shoptimizer-mini-cart-wrap .widget_shopping_cart p {
    color: #F2F2F2 !important;
}

/* Hover state for links */
body.ec-men .shoptimizer-mini-cart-wrap .widget_shopping_cart a:not(.button):hover {
  color: #cccccc !important;
}

/* =================================================================
   EVERYREP: MEN'S MINI CART BUTTONS (Mobile & Desktop Fix)
   ================================================================= */

/* Target the exact selector from your screenshot */
body.ec-men #shoptimizerCartDrawer .woocommerce-mini-cart__buttons.buttons {
  background-color: transparent !important;
  border-top: 1px solid transparent !important; /* subtle divider */
}

/* =================================================================
   EVERYREP: MEN'S MINI CART HEADER TEXT & ICONS (White)
   ================================================================= */

/* Target the Heading Text ("Your Bag") */

body.ec-men #shoptimizerCartDrawer .cart-drawer-heading {
  color: #F2F2F2 !important; /* Overrides the black #000 and #111 */
}

/* =================================================================
   EVERYREP: MEN'S MINI CART CLOSE ICON SVG (White)
   ================================================================= */

/* Target the SVG path specifically, as shown in your inspector */
body.ec-men #shoptimizerCartDrawer button.close-drawer svg path {
    stroke: #F2F2F2 !important; /* Overrides the black stroke */
}

/* =================================================================
   EVERYREP: MEN'S MINI CART REMOVE ICON BACKGROUND
   ================================================================= */

/* Target the pseudo-element (:before) that creates the icon background */
body.ec-men .widget_shopping_cart .product_list_widget li a.remove:before {
    background-color: rgba(255,255,255,0.68) !important; /* Subtle transparent white */
}

/* =================================================================
   EVERYREP: MEN'S MINI CART QUANTITY ICONS (Stroke Fix)
   ================================================================= */

/* Target the SVG inside the quantity selector specifically for Men's pages */
body.ec-men .shoptimizer-custom-quantity-mini-cart svg {
    stroke: #F2F2F2 !important; /* Overrides the red #9e0707 */
}

/* =================================================================
   EVERYREP: MEN'S MINI CART QUANTITY NUMBER (Color Fix)
   ================================================================= */

/* Target the input field holding the number specifically for Men's pages */
body.ec-men .shoptimizer-custom-quantity-mini-cart input {
    color: #F2F2F2 !important; /* Overrides the red #9b0909 */
}

/* =================================================================
   EVERYREP: MINI CART QUANTITY SELECTOR (Global Style)
   ================================================================= */

/* Target the quantity box globally */
.shoptimizer-custom-quantity-mini-cart {
    border-radius: 4px !important; 
    padding: 0 !important;         
    margin-top: 0.1rem !important; 
    border: 1px solid #888888 !important; /* Typo Fixed */
}

.widget_shopping_cart a.button.checkout {
    border-color: #000000;
}

a.button.checkout.wc-forward {
    background-color: #000 !important;
}

#wc-ppcp-minicart-ppcp {
    padding-top: 0px !important;
}

@media (max-width: 992px) {
    .shoptimizer-cart a.cart-contents:hover .count {
        background-color: transparent !important; 
        color: #000000 !important;              
    }
}

/* Change Empty Cart Text Color for Men Only */
body.term-men .shoptimizer-empty-mini-cart .heading,
body.product_cat-men .shoptimizer-empty-mini-cart .heading,
body.term-men .shoptimizer-empty-mini-cart h2,
body.product_cat-men .shoptimizer-empty-mini-cart h2 {
    color: #F2F2F2 !important;
}



/* Target star rating INSIDE the sticky container ONLY for Men */
body.term-men .commercekit-pdp-sticky-inner .star-rating,
body.product_cat-men .commercekit-pdp-sticky-inner .star-rating,
body.ec-men .commercekit-pdp-sticky-inner .star-rating {
    font-size: 8px !important;
    margin: 12px !important;
}

/* Remove Review Bottom Border for Men Only */
body.ec-men .cr-reviews-ajax-reviews .cr-reviews-ajax-comments .cr-ajax-reviews-list .comment_container .cr-comment-text,
body.ec-men .cr-all-reviews-shortcode ol.commentlist li .cr-comment-text,
body.term-men .cr-reviews-ajax-reviews .cr-reviews-ajax-comments .cr-ajax-reviews-list .comment_container .cr-comment-text,
body.term-men .cr-all-reviews-shortcode ol.commentlist li .cr-comment-text {
    border-bottom-color: transparent !important;
}

/* =================================================================
   SMART CART LOGIC (Split: Empty vs. Full)
   ================================================================= */

/* 1. THE FULL CART (Standard State) -> STRETCH */
/* When items are in the cart, we want buttons to be wide */
body .widget_shopping_cart_content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important; /* This fixes the "Squish" */
    text-align: left !important;
}

/* 2. THE EMPTY CART (Empty State) -> CENTER */
/* When cart is empty, we override the above and force center */
body .shoptimizer-empty-mini-cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Keeps icon in middle */
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* 3. ENSURE EMPTY ICON IS CENTERED */
body .shoptimizer-empty-mini-cart svg {
    margin: 0 auto 20px auto !important;
    display: block !important;
}

/* =================================================================
   TRUST BADGE SWAP (Hijack Theme Image)
   ================================================================= */

/* The Container (Keep image centered) */
.shoptimizer-mini-cart-wrap .cart-drawer-below img {
    display: block !important;
    opacity: 1 !important;
    width: 100% !important;
	max-width: 100% !important;
    height: auto !important;
    margin: 10px auto !important; /* Centers the image itself */
    
    /* Default Image (Women) */
    content: url('https://everyrep.com/wp-content/uploads/2026/01/EveryRep-Gray-credit-cards.svg') !important;
}

/* Men's Override */
body.ec-men .shoptimizer-mini-cart-wrap .cart-drawer-below img {
    content: url('https://everyrep.com/wp-content/uploads/2026/01/EveryRep-white-credit-cards.svg') !important;
}

/* ==========================================================
   MEN'S CATEGORY BANNER BACKGROUND
   Force Dark Grey (#252525) instead of the default Red
   ========================================================== */

body.ec-men header.woocommerce-products-header,
body.ec-men .shoptimizer-category-banner {
    background-color: #252525 !important;
}

/* ==========================================================
   KILL BANNER BORDER (Remove Red/Grey Line)
   ========================================================== */

body.ec-men .shoptimizer-category-banner,
body.ec-men header.woocommerce-products-header {
    border-bottom: none !important;
    box-shadow: none !important; /* Just in case it's a shadow */
}

/* ==========================================================
   MEN'S BANNER TEXT COLOR (Force Light #fafafa)
   Overrides the default dark text (#222)
   ========================================================== */

body.ec-men .shoptimizer-category-banner h1,
body.ec-men .shoptimizer-category-banner .taxonomy-description p,
body.ec-men .term-description p,
body.ec-men .term-description a {
    color: #fafafa !important;
}

/* Override the hidden padding on Men's Shop Mobile */
@media only screen and (max-width: 768px) {
    body.ec-men.tax-product_cat #content {
        padding-top: 20px !important; /* Change 20px to whatever spacing you want */
    }
}

/* ==========================================================
   EMPTY CART ICON: MEN (Dark Mode Fix)
   Overrides the default #555 grey with Light White
   ========================================================== */

body.ec-men .shoptimizer-empty-mini-cart svg circle,
body.ec-men .shoptimizer-empty-mini-cart svg path,
body.term-men .shoptimizer-empty-mini-cart svg circle,
body.term-men .shoptimizer-empty-mini-cart svg path,
body.product_cat-men .shoptimizer-empty-mini-cart svg circle,
body.product_cat-men .shoptimizer-empty-mini-cart svg path {
    fill: #555 !important;
}

/* ==========================================================
   MISSION PAGE FIX: DARK MODE + WHITE ICONS
   Forces header icons to white for standard pages set to Dark Mode
   (Overrides the "Utility Page" Black Rules)
   ========================================================== */

/* 1. Hamburger (White) */
body.ec-men.page-template-default button.menu-toggle span,
body.ec-men.page-template-elementor_header_footer button.menu-toggle span {
    background-color: #ffffff !important;
}

/* 2. Logo (Restore Original White) */
body.ec-men.page-template-default .site-branding a.custom-logo-link,
body.ec-men.page-template-elementor_header_footer .site-branding a.custom-logo-link {
    filter: none !important;
}

/* 3. Cart Text (Price) - White */
body.ec-men.page-template-default .shoptimizer-cart a.cart-contents,
body.ec-men.page-template-elementor_header_footer .shoptimizer-cart a.cart-contents {
    color: #ffffff !important;
}

/* 4. Cart Icon (Circle Border & Number) - White */
/* FIXED: Added 'elementor_header_footer' selector here */
body.ec-men.page-template-default .shoptimizer-cart a.cart-contents .count,
body.ec-men.page-template-default .shoptimizer-cart a.cart-contents .count:after,
body.ec-men.page-template-elementor_header_footer .shoptimizer-cart a.cart-contents .count,
body.ec-men.page-template-elementor_header_footer .shoptimizer-cart a.cart-contents .count:after {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* ==========================================================
   H2 HEADING COLOR: MEN ONLY (Scoped #ccc)
   Prevents this light grey from appearing on Women's white pages
   ========================================================== */

body.ec-men h2,
body.ec-men .wp-block-heading h2 {
    color: #ccc !important;
}

/* ==========================================================
Size Guides
   ========================================================== */
/* =================================================================
   MEN'S MODAL BACKGROUND (Scoped from Screenshot)
   ================================================================= */
/* =================================================================
   MEN'S SIZE GUIDE MODAL (Scoped from Screenshot)
   ================================================================= */

/* Target the inner content box of the size guide ONLY on Men's pages */
body.ec-men .size-guide-modal .ckit-modal-content {
    background-color: #1E1E1E !important;       /* Dark Grey Background */
}

/* =================================================================
   MEN'S SIZE GUIDE HEADER (Scoped from Screenshot)
   ================================================================= */

body.ec-men .size-guide-modal .ckit-modal-header {

    background-color: #1E1E1E !important;   /* Dark Grey Background */
    border-bottom: none !important; /* Bottom line from screenshot */
    color: #ffffff !important;           /* Force Title text white */
}

/* Optional: Close Button Color Fix */
body.ec-men .size-guide-modal .ckit-modal-header .close-modal {
    color: #ffffff !important;
}

/* =================================================================
   MEN'S SIZE GUIDE CLOSE ICON (Scoped from Screenshot)
   ================================================================= */

body.ec-men .ckit-modal .ckit-modal--button_close svg {
    width: 26px !important;
    height: 26px !important;
    stroke: #f9f9f9 !important;  /* Force White Stroke */
}

/* =================================================================
   MEN'S SIZE GUIDE TABLE CELLS (Scoped from Screenshot)
   ================================================================= */

body.ec-men .size-guide-modal table td,
body.ec-men .single-ckit_size_guide .entry-content table td,
body.ec-men .commercekit-Tabs-panel--commercekit-sg table td {
    background: #252525 !important;  /* Very Dark Grey Background */
}

/* =================================================================
   MEN'S SIZE GUIDE TABLE CELLS (Scoped + Alignment Fix)
   ================================================================= */

body.ec-men .size-guide-modal table td,
body.ec-men .single-ckit_size_guide .entry-content table td,
body.ec-men .commercekit-Tabs-panel--commercekit-sg table td {

/* THE FIX: Force vertical centering */
    vertical-align: top !important;
    
    /* Optional: Ensure no hidden margins are pushing text around */
    padding-top: 20px !important;
    padding-bottom: 16px !important;
}

/* Double Check: Remove margins from any text inside the cells */
body.ec-men .size-guide-modal table td p {
    margin: 0 !important;
}

/* 1. HEADERS (th): Align Top + Custom Padding */
body.ec-men .size-guide-modal table th,
body.ec-men .single-ckit_size_guide .entry-content table th,
body.ec-men .commercekit-Tabs-panel--commercekit-sg table th {

    /* ALIGNMENT: Top */
    vertical-align: middle !important;
    
    /* PADDING: Controls the vertical space */
    padding-top: 10px !important;    /* Adjust this to push text down */
    padding-bottom: 0px !important; /* Adjust this to push border down */
    
}

/* =================================================================
   FIX: HIDE PHANTOM <P> TAGS IN SIZE GUIDE HEADERS
   ================================================================= */

/* Target any paragraph in the header that is NOT the first one */
body.ec-men .size-guide-modal table th p:not(:first-child),
body.ec-men .single-ckit_size_guide table th p:not(:first-child),
body.ec-men .commercekit-Tabs-panel--commercekit-sg table th p:not(:first-child) {
    display: none !important; /* Hides the <p><br></p> completely */
    margin: 0 !important;     /* Ensures it takes up 0 space */
    height: 0 !important;
}

/* SAFETY: Also squash any BR tags inside headers just in case */
body.ec-men .size-guide-modal table th br {
    display: none !important;
}

/* Mini Cart Image Size */
.shoptimizer-mini-cart-wrap .product_list_widget img {
    max-width: 85px !important;
    width: 85px !important;
}