/* Shared responsive contract for Discover, product and brand pages.
   Mobile: mark / search / bag / profile, then navigation, then open search.
   Wide: mark / navigation / search / bag / profile in one stable row.
   Keep this file last; never let inherited flex ordering move these controls. */
.header,.header.brand-profile-nav{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px 44px 44px!important;grid-template-rows:44px 44px!important;column-gap:6px!important;row-gap:8px!important;padding:10px 12px!important;align-items:center!important;min-height:0!important;height:auto!important;border:0!important;box-shadow:none!important}
.header>.wordmark{grid-column:1!important;grid-row:1!important;margin:0!important;width:44px!important;min-width:0!important}
.header>.header-search-toggle{grid-column:3!important;grid-row:1!important;display:grid!important;margin:0!important}
.header>.bag-button{grid-column:4!important;grid-row:1!important;margin:0!important;width:44px!important;min-width:0!important}
.header>.profile-button{grid-column:5!important;grid-row:1!important;margin:0!important;width:44px!important;min-width:0!important;height:44px!important;display:grid!important;place-items:center}
.header>nav,.header.brand-profile-nav>nav{grid-column:1/-1!important;grid-row:2!important;display:flex!important;min-width:0!important;width:100%!important;max-width:none!important;height:44px!important;min-height:44px!important;margin:0!important;justify-self:stretch!important}
.header>nav .nav-link{flex:1!important;min-width:0!important;padding:0 6px!important;height:44px!important;min-height:44px!important;display:flex!important;align-items:center;justify-content:center}
.header>.search{grid-column:1/-1!important;grid-row:3!important;display:none!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;height:44px!important;min-height:44px!important}
.header.search-open{grid-template-rows:44px 44px 44px!important}.header.search-open>.search{display:flex!important}.header>.search input{min-width:0!important;flex:1!important}
.header>.search-studio{grid-column:1/-1;max-width:100%}.header:after{display:none!important}


/* Complete shared appearance: no page may inherit a different legacy header. */
.header,.header.brand-profile-nav{position:relative!important;top:auto!important;background:#faf8f3e8!important;color:#343633!important;font-family:var(--sans)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);z-index:20}
.header>nav,.header.brand-profile-nav>nav{position:relative!important;isolation:isolate;visibility:visible!important;gap:0!important;padding:0 4px!important;border:0!important;border-radius:999px!important;background:transparent!important;box-shadow:none!important;touch-action:pan-y}
.header>nav:after{content:''!important;display:block!important;position:absolute!important;inset:0!important;border:1px solid #e1ded5!important;border-radius:999px!important;background:#f0eee8a6!important;box-shadow:inset 0 1px 0 #fff!important;z-index:-2!important}
.header>nav:before{content:''!important;display:block!important;position:absolute!important;top:4px!important;bottom:4px!important;left:4px!important;right:auto!important;width:calc((100% - 8px)/3)!important;height:auto!important;border:0!important;border-radius:999px!important;background:#fffef9db!important;box-shadow:0 2px 9px #2424240c!important;transform:translateX(calc(var(--nav-progress,var(--nav-index,0))*100%))!important;transition:transform .22s ease!important;z-index:-1!important}
.header>nav.is-dragging:before{transition:none!important}
.header>nav .nav-link,.header.brand-profile-nav>nav a{font-family:var(--sans)!important;font-size:12px!important;font-weight:500!important;line-height:1.2!important;letter-spacing:.05px!important;color:#343633!important;text-decoration:none!important;background:transparent!important;border:0!important;border-radius:999px!important;box-shadow:none!important;white-space:nowrap!important}
.header>nav .nav-link:after{display:none!important}.header>nav .nav-link:focus-visible{outline:2px solid #8c967b;outline-offset:-4px}
.header>.wordmark{display:flex!important;align-items:center!important;justify-content:flex-start!important;padding:0!important;background:none!important}.header>.wordmark img{width:34px!important;height:34px!important;object-fit:contain!important}.header>.wordmark strong{display:none!important}
.header>.header-search-toggle,.header>.bag-button{padding:0!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#55594e!important;backdrop-filter:none!important}
.header>.header-search-toggle svg,.header>.bag-button svg{display:block!important;width:25px!important;height:25px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.header>.profile-button{padding:0!important;border:0!important;background:none!important;border-radius:0!important;box-shadow:none!important}.header>.profile-button .profile-avatar{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;border-radius:50%!important;overflow:hidden!important;background:#eeeee5!important;border:1px solid #dddcd0!important}.header>.profile-button .profile-avatar img{width:100%;height:100%;object-fit:cover}
.header>.search,.header.search-open>.search{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;visibility:visible!important;align-items:center!important;gap:8px!important;padding:0 8px 0 15px!important;border-radius:999px!important;background:linear-gradient(135deg,#f3eee5c7,#f9f5ed9c)!important;border:1px solid #e6dfd2aa!important;box-shadow:inset 0 1px 0 #fff9,0 3px 14px #83796206!important;animation:none!important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.header>.search>svg,.header>.search>.search-sparkle{display:none!important}.header>.search input{height:42px!important;border:0!important;outline:none!important;background:none!important;padding:0!important;font:14px var(--sans)!important;color:#4f5148!important}.header>.search input::placeholder{color:#858174!important;font-size:12px!important}
.header>.search .search-submit{display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#5d6253!important}.header .search-submit svg{display:block!important;width:22px!important;height:22px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.5!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.header>.search-studio{position:absolute;top:100%!important;left:12px!important;right:12px!important;width:auto!important;max-height:65vh;overflow:auto;z-index:30}
@media(max-width:600px){.header>.search input{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){.header>nav:before{transition:none!important}}

/* Tablets and laptops have room for navigation beside an always-visible search.
   Opening search suggestions must not introduce another header row. */
@media(min-width:768px){
 .header,.header.brand-profile-nav,.header.search-open{grid-template-columns:44px 300px minmax(0,1fr) 44px 44px!important;grid-template-rows:44px!important;column-gap:12px!important;padding:14px 24px!important}
 .header>nav,.header.brand-profile-nav>nav{grid-column:2!important;grid-row:1!important}
 .header>.header-search-toggle{display:none!important}
 .header>.search,.header.search-open>.search{grid-column:3!important;grid-row:1!important;display:flex!important}
 .header>.search-studio{left:392px!important;right:136px!important}
}

/* November 13: the mobile header pairs Mira's name with the icon. */
@media(max-width:767px){
 .header>.wordmark{grid-column:1/3!important;width:auto!important;gap:8px!important}
 .header>.wordmark .mobile-wordmark{display:block!important;font-family:MiraDisplay,var(--serif)!important;font-size:28px!important;font-weight:500!important;letter-spacing:-1px!important;line-height:1!important}
}
