/* Managed navigation only; existing header geometry and utility controls remain in global.css. */
body.ezg-compact-navigation #site-header .ezg-mega { position:static; display:block!important; }
body.ezg-compact-navigation #site-header .ezg-mega-trigger { display:flex!important; align-items:center; justify-content:center; min-height:44px; padding:0 14px; border:0; border-radius:10px; background:transparent; color:inherit; font:inherit; font-size:15px; font-weight:700; cursor:pointer; white-space:nowrap; }
body.ezg-compact-navigation #site-header .ezg-mega-trigger[aria-expanded="true"] { text-decoration:underline; text-underline-offset:6px; text-decoration-thickness:1px; }
body.ezg-compact-navigation #site-header .ezg-mega-collection { display:flex!important; align-items:center; gap:8px; }
body.ezg-compact-navigation #site-header .ezg-mega-collection::before { content:'•'; color:#92929c; font-size:10px; }
body.ezg-compact-navigation #site-header .ezg-mega-panel { position:absolute; top:calc(100% + 8px); left:0; right:0; display:grid; grid-template-columns:minmax(180px,1fr) minmax(0,2fr); gap:24px; padding:24px; box-sizing:border-box; max-height:min(80dvh,calc(100dvh - 100px)); overflow:auto; overscroll-behavior:contain; background:var(--ezgift-header,#232127); color:inherit; border:1px solid rgba(255,255,255,.14); border-radius:16px; box-shadow:0 12px 28px rgba(0,0,0,.35); z-index:125; }
body.ezg-compact-navigation #site-header .ezg-mega-panel[hidden] { display:none!important; }
/* Eight pixels of transparent hit area connects the trigger/header to the dropdown. */
body.ezg-compact-navigation #site-header .ezg-mega.is-open::after { content:''; position:absolute; top:100%; left:0; right:0; height:9px; }
body.ezg-compact-navigation #site-header .ezg-mega-categories { display:flex!important; position:static!important; flex-direction:column; gap:4px; width:auto!important; min-width:0; padding:0!important; margin:0!important; border:0; box-shadow:none; background:transparent; list-style:none; }
body.ezg-compact-navigation #site-header .ezg-mega-categories>li { display:block; width:100%; margin:0; }
body.ezg-compact-navigation #site-header .ezg-mega-categories a { display:flex; align-items:center; justify-content:flex-start!important; min-height:44px; height:auto!important; padding:10px 12px; box-sizing:border-box; color:inherit; text-decoration:none; overflow-wrap:anywhere; white-space:normal; border-radius:8px; }
body.ezg-compact-navigation #site-header .ezg-mega-categories a:hover { background:rgba(255,255,255,.08); }
body.ezg-compact-navigation #site-header .ezg-mega-panel:not(:has(.ezg-mega-promos)) { grid-template-columns:1fr; }
body.ezg-compact-navigation #site-header .ezg-mega-promos { min-width:0; }
body.ezg-compact-navigation #site-header .ezg-mega-track { display:flex; gap:16px; min-width:0; }
body.ezg-compact-navigation #site-header .ezg-mega-tile { display:flex; flex:1 1 0; min-width:0; flex-direction:column; align-items:stretch; height:auto!important; padding:0; border-radius:12px; overflow:hidden; color:inherit; background:rgba(255,255,255,.04); text-decoration:none; }
body.ezg-compact-navigation #site-header .ezg-mega-tile img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; }
body.ezg-compact-navigation #site-header .ezg-mega-tile-heading { padding:12px; font-size:15px; font-weight:700; line-height:1.4; white-space:normal; }
body.ezg-compact-navigation #site-header .ezg-mega-carousel { display:none; }
@media(max-width:1199px) {
 body.ezg-compact-navigation #site-header .site-navigation>.menu>.ezg-mega { display:block!important; width:100%; }
 body.ezg-compact-navigation #site-header .ezg-mega-collection { gap:0; }
 body.ezg-compact-navigation #site-header .ezg-mega-collection::before { content:none; }
 body.ezg-compact-navigation #site-header .ezg-mega-collection>a { justify-content:flex-start!important; width:100%; }
 body.ezg-compact-navigation #site-header .ezg-mega-trigger { width:100%; justify-content:flex-start; }
 body.ezg-compact-navigation #site-header .ezg-mega-panel { position:static; grid-template-columns:minmax(160px,1fr) minmax(0,2fr); padding:8px 12px; gap:8px 12px; max-height:80dvh; margin:0; box-shadow:none; }
 body.ezg-compact-navigation #site-header .ezg-mega.is-open::after { content:none; }
 body.ezg-compact-navigation #site-header .site-navigation>.menu:has(>.ezg-mega) { max-height:calc(100dvh - 90px); padding-block:6px; gap:2px; justify-content:flex-start; }
 body.ezg-compact-navigation #site-header .ezg-mega-categories { gap:2px; }
 body.ezg-compact-navigation #site-header .ezg-mega-tile-heading { padding-block:8px; }
}
@media(max-width:767px) {
 body.ezg-compact-navigation #site-header .ezg-mega-panel { grid-template-columns:minmax(0,1fr); border:0; border-radius:0; background:transparent; padding-block:4px 6px; }
 body.ezg-compact-navigation #site-header .ezg-mega-tile img { height:210px; aspect-ratio:auto; object-fit:contain; }
 body.ezg-compact-navigation #site-header .ezg-mega-track { overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin; overscroll-behavior-x:contain; }
 body.ezg-compact-navigation #site-header .ezg-mega-tile { flex:0 0 100%; scroll-snap-align:start; }
 body.ezg-compact-navigation #site-header .ezg-mega-carousel { display:flex; justify-content:center; gap:8px; margin-top:4px; }
 body.ezg-compact-navigation #site-header .ezg-mega-carousel button { min-width:44px; min-height:44px; border:1px solid #92929c; border-radius:50%; background:transparent; color:inherit; cursor:pointer; }
 body.ezg-compact-navigation #site-header .ezg-mega-carousel button[aria-pressed="true"] { background:var(--ezgift-accent,#ec4899); color:var(--ezgift-button-text,#08101f); }
}
@media(prefers-reduced-motion:reduce) { #site-header .ezg-mega-track { scroll-behavior:auto!important; } }

/* Desktop top-level labels only; preserve the existing compact navigation below 1200px. */
@media (min-width:1200px) {
 body.ezg-compact-navigation #site-header.site-header { display:grid; grid-template-columns:minmax(0,1fr); }
 body.ezg-compact-navigation #site-header .site-branding { grid-area:1 / 1; justify-self:start; z-index:1; }
 body.ezg-compact-navigation #site-header .site-navigation { grid-area:1 / 1; width:100%; }
 /* Symmetric outer tracks centre the three labels against the complete bar.
    The existing three 44px utility controls occupy the right-hand tracks. */
 body.ezg-compact-navigation #site-header .site-navigation>.menu {
  display:grid!important;
  grid-template-columns:44px 44px minmax(0,1fr) repeat(3,max-content) minmax(0,1fr) 44px 44px;
 }
 body.ezg-compact-navigation #site-header .site-navigation>.menu>li { grid-row:1; }
 body.ezg-compact-navigation #site-header .site-navigation>.menu>.ezg-mega { grid-column:4; margin-inline:0!important; }
 body.ezg-compact-navigation #site-header .site-navigation>.menu>.ezg-mega-collection { grid-column:5; margin-inline:0; }
 body.ezg-compact-navigation #site-header .site-navigation>.menu>.ezg-mega-collection+.ezg-mega-collection { grid-column:6; }
 body.ezg-compact-navigation #site-header .site-navigation>.menu>.ess-header-search-item { grid-column:7; justify-self:end; }
 body.ezg-compact-navigation #site-header .site-navigation>.menu>.ess-header-account-item { grid-column:8; justify-self:end; }
 body.ezg-compact-navigation #site-header .site-navigation>.menu>li:has(>.ess-header-basket) { grid-column:9; justify-self:end; }
 body.ezg-compact-navigation #site-header :is(.ezg-mega-trigger,.ezg-mega-collection>a) {
  font-family:inherit; font-weight:700; font-size:19.5px; line-height:1.5; letter-spacing:normal; color:inherit;
 }
}

