/* =======================================================
   1. LIVE HEADER CONTROLS (Cart, Hamburger, etc.)
   ======================================================= */
.header-controls {
    display: flex; align-items: center; gap: 30px; justify-content: flex-end;
    font-family: var(--e-global-typography-primary-font-family), "AeonikPro", Sans-serif;
    font-size: 16px; font-weight: 500; text-transform: uppercase; color: black; transition: color 0.3s ease;
}
.header-hamburger { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 25px; height: 25px; }
.header-hamburger span { display: block; width: 100%; height: 1.5px; background-color: currentColor; }
.header-action {border:none;}
/* Inversion Logic */
body.box-header-white .header-controls, body.box-header-white .text-label,
body.box-header-white .header-hamburger, body.box-header-white .count-badge { color: #ffffff !important; }
body.box-header-white .elementor-widget-theme-site-logo img { filter: none; }
body:not(.box-header-white) .elementor-widget-theme-site-logo img { filter: invert(1) brightness(0); }

/* =======================================================
   2. UNIFIED FULL-SCREEN ENGINE (Overlay & Brands)
   ======================================================= */
.fs-menu-overlay {
    position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important; height: 100vh !important; background-color: #F9F8F6 !important;
    z-index: 9999999 !important; display: none; flex-direction: column !important;
    margin: 0 !important; padding: 0 !important; box-sizing: border-box !important; overflow: hidden !important;
}
body.menu-open .fs-menu-overlay { display: flex !important; }

/* --- HEADER ALIGNMENT --- */
.fs-menu-header {
    display: flex !important; justify-content: space-between !important; align-items: flex-start !important;
    padding: 25px 40px 0 39px !important; height: 50px !important; flex-shrink: 0 !important;
}
.fs-logo { display: flex !important; height: 25px !important; margin-top:1.5px;}
.fs-logo img { width: 227px !important; height: 25px !important; display: block !important; filter: invert(1) brightness(0) !important;  }

.fs-close { background: transparent !important; border: none !important; cursor: pointer !important; width: 25px !important; height: 25px !important; position: relative !important; }
.fs-close span { display: block !important; width: 100% !important; height: 1.5px !important; background-color: #000 !important; position: absolute !important; top: 50% !important; left: 0 !important; margin-top: -0.75px !important; }
.fs-close span:nth-child(1) { transform: rotate(45deg) !important; }
.fs-close span:nth-child(2) { transform: rotate(-45deg) !important; }

/* --- BODY GRID --- */
.fs-menu-body {
    display: flex !important; flex-direction: row !important; width: 100% !important; flex: 1 !important;
    padding: 25px 40px 40px 40px !important; gap: 60px !important; /* Fixed architectural gap */
    box-sizing: border-box !important; align-items: stretch !important; overflow: hidden !important;
}

/* SIDEBAR: Locked to Logo width */
.fs-sidebar {
    flex: 0 0 227px !important; max-width: 227px ;
    display: flex !important; flex-direction: column; height: 100%;
    overflow-y: auto !important; scrollbar-width: none !important;
}
.fs-sidebar::-webkit-scrollbar { display: none; }

.fs-main-nav, .fs-secondary-nav, .fs-utility-nav { display: flex !important; flex-direction: column !important; gap: 10px !important; margin: 0 !important; }
.fs-secondary-nav { margin-top: auto !important; margin-bottom:20px!important;}
.fs-utility-nav {margin-top:40px!important;}
.fs-main-link, .fs-sec-link, .fs-util-link {
    font-family: var(--e-global-typography-primary-font-family), "AeonikPro", Sans-serif !important;
    font-size: 16px !important; font-weight: 400 !important; text-transform: uppercase !important;
    color: #000 !important; text-decoration: none !important; line-height: 1.2 !important; letter-spacing: 0.5px !important; display: block !important;
}

/* Newsletter */
.fs-newsletter { display: flex; flex-direction: column; gap: 5px; margin: 0 !important; width: 100%; }
.fs-newsletter-title { font-size: 16px; font-family: inherit; text-transform: uppercase; color: #000 !important; font-weight: 400; letter-spacing: 0.5px; }
.fs-newsletter-form { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #7A7A7A !important; width: 100%; }
.fs-newsletter-input { background: transparent; border: none!important; outline: none; font-size: 14px; text-transform: uppercase; color: #000 !important; width: 100%; padding: 5px 0 !important; font-family: inherit; }
.fs-newsletter-input::placeholder { color: #7A7A7A !important; opacity: 1; }
.fs-newsletter-submit { background: transparent; border: none; text-transform: uppercase; font-size: 14px; cursor: pointer; font-weight: 500; color: #7A7A7A !important; padding-left: 10px !important; }/* =======================================================
   FULL-SCREEN OVERLAY MASONRY GRID 
   (Belongs here because HeaderControls.php renders the HTML)
   ======================================================= */
.fs-category-grid {
    flex: 1 !important; 
    display: block !important; /* CRITICAL: Masonry requires block */
    column-count: 5 !important; 
    column-gap: 40px !important;
    height: 100% !important; 
    overflow-y: auto !important; 
    padding-bottom: 40px !important;
    scrollbar-width: none !important;
}
.fs-category-grid::-webkit-scrollbar { display: none; }

.fs-cat-group {
    break-inside: avoid-column !important; 
    display: block !important; 
    width: 100% !important; 
    margin-bottom: 40px !important; 
    vertical-align: top !important;
}

.fs-cat-group-title { 
    font-family: var(--e-global-typography-primary-font-family), "AeonikPro", Sans-serif !important;
    font-size: 16px !important; font-weight: 500 !important; text-transform: uppercase !important; 
    margin: 0 0 12px 0 !important; display: block !important; color: #000 !important; text-decoration: none !important; 
}

.fs-cat-list { display: flex !important; flex-direction: column !important; gap: 8px !important; }

.fs-cat-link { 
    display: block !important;
    font-family: var(--e-global-typography-primary-font-family), "AeonikPro", Sans-serif !important;
    font-size: 14px !important; text-transform: uppercase !important; color: #000 !important; 
    text-decoration: none !important; line-height: 1.3 !important;
}
.fs-cat-link:hover { text-decoration: underline !important; opacity: 0.6 !important; }
/* Ensure the header has a smooth transition ready */
.box-dynamic-header {
    background-color: transparent !important; /* Starts transparent over the hero */
    transition: background-color 0.4s ease-in-out !important;
}

/* The class the Javascript will add once you pass the hero */
.box-dynamic-header.is-scrolled {
    background-color: #FBF9F9 !important;
}
/* Ensure the absolute outermost header wrapper has a smooth transition ready */
[data-elementor-type="header"] {
    transition: background-color 0.4s ease-in-out !important;
}

/* 1. GAP FIX: Force background color into the absolute outer wrapper.
   This overrides the 25px top margin on the inner container by painting the element that contains it. */
[data-elementor-type="header"]:has(.is-scrolled) {
    background-color: #FBF9F9 !important;
}


/* =======================================================
   SCROLLED HEADER: ABSOLUTE BLACK CONTROLS OVERRIDE
   ======================================================= */

/* Force specific Elementor logo back to Black, no matter its column nesting */
body.box-header-white [data-elementor-type="header"]:has(.is-scrolled) .elementor-widget-theme-site-logo img {
    filter: invert(1) brightness(0) !important; 
    transition: filter 0.3s ease;
}

/* Force Menu Links, Text, and Icons back to Black */
body.box-header-white [data-elementor-type="header"]:has(.is-scrolled) a,
body.box-header-white [data-elementor-type="header"]:has(.is-scrolled) span,
body.box-header-white [data-elementor-type="header"]:has(.is-scrolled) .box-header-icon {
    color: #000000 !important;
    transition: color 0.3s ease;
}

/* Force Hamburger lines back to Black */
body.box-header-white [data-elementor-type="header"]:has(.is-scrolled) .header-hamburger span {
    background-color: #000000 !important;
    transition: background-color 0.3s ease;
}
@media (max-width: 1024px) {
    .fs-category-grid { column-count: 1 !important; flex: 0 0 55% !important; overflow: visible !important;}
	
}
@media (max-width: 726px) { .fs-menu-body { padding:20px!important; gap:5px!important;} }