/* Sticky glass header adapted to Lilipan's warm bakery palette. */
header {
  position: sticky;
  top: 0;
  z-index: 220;
  width: 100%;
  height: 82px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  gap: 20px;
  background: rgba(255, 250, 242, .95);
  border-bottom: 1px solid rgba(83, 62, 44, .12);
  box-shadow: 0 5px 20px rgba(45, 31, 22, .045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: width .28s ease, height .28s ease, top .28s ease, margin .28s ease, border-radius .28s ease, box-shadow .28s ease, background .28s ease;
}
header .logo {
  padding: 0;
  color: #38291f;
  font-size: 37px;
  letter-spacing: -1.5px;
  background: none;
  box-shadow: none;
}
header .logo:hover { transform: none; box-shadow: none; color: #835b3c; }
header nav { gap: clamp(16px, 2.3vw, 32px); }
header .nav-link { display: inline-flex; align-items: center; gap: 7px; color: #3e3026; font-family: Gilroy, Arial, sans-serif; font-size: 15px; font-weight: 600; text-decoration: none; }
header .nav-link:hover, header .nav-link[aria-current="page"] { color: #8f5f3c; }
header .nav-icon { display: block; width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.language-control { position: relative; flex: 0 0 auto; }
header .language-toggle { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(83, 62, 44, .24); border-radius: 999px; background: transparent; color: #554638; font: 600 12px Gilroy, Arial, sans-serif; cursor: pointer; }
header .language-toggle:hover, header .language-toggle[aria-expanded="true"] { background: #f1e6d8; }
.language-globe { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.language-chevron { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.language-toggle[aria-expanded="true"] .language-chevron { transform: rotate(180deg); }
.language-options { position: absolute; z-index: 320; top: calc(100% + 9px); right: 0; display: grid; width: 164px; padding: 6px; border: 1px solid rgba(83, 62, 44, .16); border-radius: 12px; background: rgba(255, 250, 242, .98); box-shadow: 0 14px 32px rgba(45, 31, 22, .16); backdrop-filter: blur(14px); }
.language-options[hidden] { display: none !important; }
.language-options button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 10px; border: 0; border-radius: 7px; background: transparent; color: #45362b; font: 14px Gilroy, Arial, sans-serif; text-align: left; cursor: pointer; }
.language-options button:hover, .language-options button:focus-visible { background: #f0e6d8; }
.language-options button[aria-checked="true"] { font-weight: 700; }
.language-options button[aria-checked="true"] > span:last-child { color: #9b6845; }
header .icon-button { color: #3e3026; }
header .icon-button:hover { background: #efe4d6; }
header .icon-button #bagCount { background: #a8643d; color: #fff9ef; }
.menu-button { display: none; color: #38291f; }
.menu-button span { background: #38291f; }
header.is-scrolled {
  top: 10px;
  width: min(calc(100% - 36px), 1240px);
  height: 68px;
  margin: 10px auto 0;
  padding-right: clamp(18px, 3vw, 38px);
  padding-left: clamp(18px, 3vw, 38px);
  border: 1px solid rgba(83, 62, 44, .18);
  border-radius: 15px;
  background: rgba(255, 250, 242, .74);
  box-shadow: 0 12px 36px rgba(45, 31, 22, .13), inset 0 1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: blur(23px) saturate(175%);
  -webkit-backdrop-filter: blur(23px) saturate(175%);
}
header.is-scrolled .logo { font-size: 32px; }
header.is-scrolled nav { gap: clamp(14px, 2vw, 27px); }
header:focus-within { box-shadow: 0 7px 24px rgba(45, 31, 22, .10); }
header a:focus-visible, header button:focus-visible, .menu-panel a:focus-visible, .menu-panel button:focus-visible { outline: 2px solid #9b6845; outline-offset: 4px; }
.menu-panel { z-index: 300; }
.menu-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.menu-panel .menu-quick-actions button { min-height: 48px; border: 1px solid #b7a28c; border-radius: 5px; background: transparent; color: #38291f; font: 14px Toroka, Arial, sans-serif; cursor: pointer; }
.menu-panel .menu-quick-actions button:hover { background: #f0e6d7; }
@media (max-width: 700px) {
  header, header.is-scrolled { top: 0; width: 100%; height: 64px; margin: 0; padding: 0 18px; gap: 10px; border-right: 0; border-left: 0; border-radius: 0; }
  header .logo, header.is-scrolled .logo { font-size: 30px; }
  header nav { margin-left: auto; gap: 0; }
  header nav > .nav-link, header nav > .language-control, header nav > .language-toggle, header nav > .icon-button { display: none; }
  .menu-button { display: flex; order: 1; width: 42px; height: 42px; padding: 11px; margin-left: auto; border: 1px solid rgba(83, 62, 44, .2); border-radius: 50%; background: transparent; box-shadow: none; }
  .menu-button:hover { transform: none; box-shadow: none; background: #f0e6d7; }
  .menu-button[aria-expanded="true"] { background: #f0e6d7; }
  .menu-panel { z-index: 300; }
  .menu-quick-actions { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  header, .menu-button, .menu-panel .menu-quick-actions button { transition: none !important; }
}
