/* Shared header and email entrance drawer. Brand/content remain Atelier-owned. */
.header { top:0; padding:0 !important; background:#fff !important; border-bottom:1px solid #efefed !important; box-shadow:none !important; backdrop-filter:none !important; }
.tryon-page .header { position:sticky; width:100%; z-index:1001; }
.header .header-inner { position:relative; display:grid !important; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important; width:min(1560px,calc(100% - 80px)) !important; max-width:1560px !important; height:80px !important; gap:24px !important; padding:0 !important; margin:0 auto; }
.header-leading { grid-column:1; grid-row:1; justify-self:start; display:flex; align-items:center; }
.header .logo { grid-column:2; grid-row:1; justify-self:center; margin:0 !important; color:#611b22 !important; font-family:'Playfair Display',Georgia,serif; font-size:36px !important; font-weight:500; line-height:1; }
.header .header-actions { grid-column:3; grid-row:1; justify-self:end; display:flex !important; align-items:center; gap:22px !important; margin:0 !important; min-width:0; }
.header .site-menu-toggle { grid-column:1; grid-row:1; justify-self:start; display:inline-flex; width:44px; min-width:44px; height:44px; padding:10px; border:0; border-radius:0; background:transparent; }
.header .site-menu-toggle:hover,.header.is-menu-open .site-menu-toggle { background:#f6f5f2; }
.header .site-menu-label,.header .site-cabinet-label,.header .site-cabinet-short { display:none !important; }
.header .site-menu-icon { display:block; width:24px; height:24px; }
.header .site-cabinet-link,.header .site-cabinet-link[data-authenticated="true"] { display:flex; align-items:center; justify-content:center; min-width:44px; width:44px; max-width:44px; height:44px; min-height:44px; padding:10px !important; border:0 !important; background:transparent !important; border-radius:0; }
.header .site-cabinet-link:hover { background:#f6f5f2 !important; }
.header .site-cabinet-icon { display:block !important; width:24px; height:24px; }
.header .site-contacts-link { display:flex; align-items:center; justify-content:center; min-height:44px; color:#343434; text-decoration:none; font:400 14px/1.3 Inter,Arial,sans-serif; white-space:nowrap; }
.site-contacts-icon { display:none; width:24px; height:24px; }
.header [data-selection-header] { position:relative; display:flex !important; align-items:center; justify-content:center; order:3; min-width:44px !important; width:44px !important; height:44px !important; padding:10px !important; border:0 !important; background:transparent !important; font-size:0 !important; }
.header [data-selection-header]::before { content:''; width:24px; height:24px; background:url('../images/ui/shopping-bag.svg') center/contain no-repeat; }
.header .selection-header-label,.header .selection-header-icon { display:none !important; }
.header [data-selection-header-count] { position:absolute; top:1px; right:0; color:#611b22; background:#fff; padding:0 2px; font:500 10px/1.4 Inter,Arial,sans-serif; }
.header [data-selection-header-count]:empty { display:none; }
.header .site-menu-panel:not([hidden]) { top:100%; left:0; right:auto; width:min(820px,100vw); max-height:calc(100dvh - 80px); border-radius:0; border:1px solid #efefed; background:#fff; box-shadow:none; padding:30px 40px; }
.header .site-menu-panel a { font:400 16px/1.4 Inter,Arial,sans-serif; }
.header .site-menu-panel a::after { content:none; }
.header .site-menu-panel-head strong { color:#282828; }
.header .site-menu-panel-head span { display:none; }
.auth-panel { position:fixed; inset:0 0 0 auto; box-sizing:border-box; width:min(590px,100vw); max-width:100%; height:100dvh; max-height:100dvh; margin:0; padding:64px 32px 30px; border:0; border-radius:0; background:#fff; color:#15191f; overflow-y:auto; overscroll-behavior:contain; font:400 15px/1.5 Inter,Arial,sans-serif; }
.auth-panel[open] { display:flex; flex-direction:column; }
.auth-panel::backdrop { background:rgba(15,19,25,.45); }
.auth-panel-close { position:absolute; top:24px; right:24px; display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:10px; border:0; border-radius:0; background:transparent; cursor:pointer; }
.auth-panel-close img { width:24px; height:24px; }
.auth-panel-content { flex:1; display:flex; flex-direction:column; min-height:0; }
.auth-panel-content h1,.auth-panel-content h2 { margin:0 36px 28px; text-align:center; color:#15191f; font:400 25px/1.3 'Playfair Display',Georgia,serif; }
.auth-panel-content .auth-panel-intro { font-size:16px; }
.auth-panel-content p { margin:0 0 20px; }
.auth-panel-content > form { display:flex; flex-direction:column; flex:1; min-height:0; }
.auth-panel-content form > p { margin:0 0 14px; }
.auth-panel-content label { display:block; color:#696969; font-size:13px; }
.auth-panel-content input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) { display:block; box-sizing:border-box; width:100%; min-height:44px; padding:8px 0; border:0; border-bottom:1px solid #696969; border-radius:0; box-shadow:none; background:#fff; color:#15191f; font:400 16px/1.5 Inter,Arial,sans-serif; }
.auth-panel-content input:not([type="checkbox"]):focus { outline:none; border-bottom:2px solid #611b22; }
/* Keep allauth's unchecked browser-session default without an extra UI row. */
.auth-panel-content p:has(#id_remember) { display:none; }
.auth-panel-content label:has(input[type="checkbox"]) { display:flex; align-items:flex-start; gap:9px; }
.auth-panel-content input[type="checkbox"] { flex:none; width:16px; height:16px; margin:3px 0 0; accent-color:#15191f; }
.auth-panel-content .auth-panel-consent { margin:10px 0 24px; font-size:12px; line-height:1.6; }
.auth-panel-footer { display:flex; flex-direction:column; gap:14px; margin-top:auto; padding-top:32px; text-align:center; }
.auth-panel-primary,.auth-panel-content button[type="submit"] { box-sizing:border-box; display:flex; align-items:center; justify-content:center; width:100%; min-height:44px; padding:10px 16px; border:1px solid #611b22; border-radius:0; background:#611b22; color:#fff; text-decoration:none; font:500 14px/1.4 Inter,Arial,sans-serif; cursor:pointer; }
.auth-panel-content button:disabled { opacity:.55; cursor:wait; }
.auth-panel-content a { color:inherit; text-underline-offset:3px; }
.auth-panel-content a.auth-panel-primary { color:#fff; }
.auth-panel-footer > a:not(.auth-panel-primary) { font-size:13px; }
.auth-panel-status { margin:12px 0 0; color:#611b22; font-size:13px; }
.auth-panel-status:empty { display:none; }
.auth-panel-content .errorlist { margin:12px 0; padding-left:20px; color:#921e2b; font-size:13px; }
.auth-panel-content .auth-code-actions { display:flex; flex-direction:column; gap:12px; margin:20px 0; }
.auth-panel-content form#resend,.auth-panel-content form#logout-from-stage { display:none; }
.auth-panel-close:focus-visible,.header .site-contacts-link:focus-visible,.auth-panel a:focus-visible,.auth-panel button:focus-visible { outline:2px solid #611b22; outline-offset:3px; }
@media(max-width:760px) {
 .header .header-inner { width:calc(100% - 24px) !important; height:68px !important; gap:8px !important; }
 .header .logo { font-size:29px !important; }
 .header .header-actions { gap:2px !important; }
 .header .site-contacts-link { min-width:44px; width:44px; }
 .site-contacts-label { display:none; }
 .site-contacts-icon { display:block; }
 .header .site-menu-panel:not([hidden]) { width:100%; max-height:calc(100dvh - 68px); padding:22px; }
 .auth-panel { padding:68px 24px 24px; }
 .auth-panel-close { top:16px; right:14px; }
 .auth-panel-content h1,.auth-panel-content h2 { margin:0 24px 26px; font-size:23px; }
}
@media(max-width:350px) {
 .header .header-inner { width:calc(100% - 16px) !important; gap:0 !important; }
 .header .logo { font-size:25px !important; }
 .header .header-actions { gap:0 !important; }
 .header .site-contacts-link,.header .site-cabinet-link,.header [data-selection-header] { width:44px !important; min-width:44px !important; padding:10px !important; }
 .auth-panel { padding-inline:18px; }
}
@media(max-height:540px) { .auth-panel { padding-top:60px; } .auth-panel-footer { padding-top:24px; } }

/* Salon locations next to the menu; the logo keeps its center column. */
.header .header-leading { gap: 14px; }
.header .site-salons-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: inherit; font-size: 14px; text-decoration: none; white-space: nowrap; }
.header .site-salons-link img { width: 24px; height: 24px; }
.header .site-salons-link:hover { color: var(--brand, #651d28); }
.header .site-salons-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
#salons { scroll-margin-top: 96px; }
@media (max-width: 760px) {
  .header .header-leading { gap: 0; }
  .header .site-salons-link { width: 44px; justify-content: center; }
  .header .site-salons-link span { display: none; }
  .header .site-contacts-link { display: none; }
  #salons { scroll-margin-top: 80px; }
}

/* Quiet text-only navigation highlight in a softened wine tone. */
.header .site-menu-panel a,
.header .site-menu-panel a:hover,
.header .site-menu-panel a[aria-current="page"] {
  min-height: 48px;
  padding: 10px 12px 10px 2px;
  background: transparent;
  font: 400 14px/1.45 Inter, Arial, sans-serif;
  transition: color .18s ease;
}
.header .site-menu-panel a:hover,
.header .site-menu-panel a[aria-current="page"],
.header .site-menu-panel a:focus-visible { color: #85434b; }
@media (prefers-reduced-motion: reduce) {
  .header .site-menu-panel a { transition: none; }
}

/* The desktop home video continues behind the header. */
@media (min-width: 769px) {
  .page-home .hero::after {
    content: ''; position: absolute; inset: 0 0 auto; height: 180px;
    background: linear-gradient(to bottom, rgba(20, 16, 14, .52), rgba(20, 16, 14, 0));
    pointer-events: none;
  }
  .page-home .header:not(.is-scrolled):not(.is-menu-open) {
    background: transparent !important; border-bottom-color: transparent !important;
    color: #fff;
  }
  .page-home .header:not(.is-scrolled):not(.is-menu-open) .logo,
  .page-home .header:not(.is-scrolled):not(.is-menu-open) .site-contacts-link,
  .page-home .header:not(.is-scrolled):not(.is-menu-open) .site-salons-link { color: #fff !important; }
  .page-home .header:not(.is-scrolled):not(.is-menu-open) .site-menu-icon,
  .page-home .header:not(.is-scrolled):not(.is-menu-open) .site-cabinet-icon,
  .page-home .header:not(.is-scrolled):not(.is-menu-open) .site-salons-link img,
  .page-home .header:not(.is-scrolled):not(.is-menu-open) [data-selection-header]::before { filter: brightness(0) invert(1); }
  .page-home .header:not(.is-scrolled):not(.is-menu-open) .site-menu-toggle:hover,
  .page-home .header:not(.is-scrolled):not(.is-menu-open) .site-cabinet-link:hover { background: rgba(255,255,255,.12) !important; }
  .page-home .header:not(.is-scrolled):not(.is-menu-open) a:focus-visible,
  .page-home .header:not(.is-scrolled):not(.is-menu-open) button:focus-visible { outline-color: #fff; }
}

/* Full-width editorial navigation, descending beneath the header. */
.header .site-menu-panel:not([hidden]) { position: absolute; top: 100%; left: 0; right: 0; width: 100%; max-width: none; max-height: calc(100dvh - 80px); padding: 38px max(40px,calc((100vw - 1560px)/2)) 44px; display: block; border: 0; background: #fff; overflow-y: auto; overscroll-behavior: contain; animation: atelier-menu-down .3s ease both; }
.site-mega-layout { display: grid; grid-template-columns: minmax(160px,.7fr) minmax(250px,1.1fr) minmax(280px,1fr); align-items: start; gap: clamp(30px,5vw,90px); min-height: 380px; }
.site-mega-links { display: flex; flex-direction: column; align-items: flex-start; }
.header .site-menu-panel .site-mega-links a { border: 0; min-height: 38px; padding: 8px 0; font: 500 15px/1.5 Inter,Arial,sans-serif; }
.header .site-menu-panel a.is-preview-active { color: #85434b; }
.site-mega-info { padding-top: 8px; }
.site-mega-eyebrow { color: #85434b; font: 400 10px/1.5 Inter,Arial,sans-serif; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 24px; }
.site-mega-info h2 { margin: 0 0 18px; color: #302a28; font: 400 34px/1.2 'Playfair Display',Georgia,serif; }
.site-mega-info > p:not(.site-mega-eyebrow) { max-width: 330px; color: #716964; font: 400 15px/1.7 Inter,Arial,sans-serif; margin: 0 0 24px; }
.site-mega-destinations { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.header .site-menu-panel .site-mega-destinations a { min-height: 38px; border: 0; padding: 8px 0; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.site-mega-preview { margin: 0; min-width: 0; }
.site-mega-preview img { display: block; width: 100%; height: auto; aspect-ratio: 1/1; max-height: 390px; object-fit: cover; }
.site-mega-preview figcaption { margin-top: 12px; color: #776e68; font: 400 12px/1.5 Inter,Arial,sans-serif; }
.site-mega-preview[hidden],.site-mega-preview img[hidden] { display: none; }
@keyframes atelier-menu-down { from { opacity: 0; transform: translateY(-18px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: translateY(0); clip-path: inset(0); } }
@media(max-width:1000px) and (min-width:761px) { .site-mega-layout { grid-template-columns: 150px minmax(190px,1fr) minmax(190px,1fr); gap: 28px; } }
@media(max-width:760px) {
 .header .site-menu-panel:not([hidden]) { padding: 22px 24px 30px; max-height: calc(100dvh - 68px); }
 .site-mega-layout { grid-template-columns: 1fr; gap: 26px; min-height: 0; }
 .site-mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
 .header .site-menu-panel .site-mega-links a { font-size: 14px; min-height: 42px; }
 .site-mega-info { padding-top: 20px; border-top: 1px solid #ece5df; }
 .site-mega-info h2 { font-size: 28px; }
 .site-mega-eyebrow { margin-bottom: 16px; }
 .site-mega-preview img { aspect-ratio: 4/3; max-height: 260px; }
}
@media(prefers-reduced-motion:reduce) { .header .site-menu-panel:not([hidden]) { animation: none; } }

/* Direct navigation: understated current page and visible keyboard focus. */
.header .site-menu-panel .site-mega-links a {
  position: relative;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.header .site-menu-panel .site-mega-links a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 24px;
  height: 1px;
  background: #85434b;
  opacity: 0;
}
.header .site-menu-panel .site-mega-links a[aria-current="page"]::before {
  opacity: 1;
}
.header .site-menu-panel .site-mega-links a:focus-visible {
  outline: none;
  color: #611b22;
}
.header .site-menu-panel .site-mega-links a:focus-visible::before {
  width: 40px;
  height: 2px;
  opacity: 1;
}
@media (max-width:760px), (hover:none), (pointer:coarse) {
  .site-mega-info, .site-mega-preview { display: none; }
  .header .site-menu-panel .site-mega-links a { min-height:44px; }
}
.page-catalog .catalog { padding-top:120px; padding-bottom:64px; }
.page-catalog .catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.page-catalog .catalog .section-title { margin-top:0; }
@media(max-width:760px) {
  .page-catalog .catalog { padding-top:96px; padding-bottom:40px; }
  .page-catalog .catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:420px) {
  .page-catalog .catalog-grid { grid-template-columns:minmax(0,1fr); }
}
