.storefront-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
  isolation: isolate;
}

.storefront-bar {
  width: min(var(--container), calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto minmax(200px, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.storefront-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 800; white-space: nowrap; }
.storefront-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 13px; }
.storefront-menu-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.storefront-menu-button[aria-expanded="true"] { color: var(--plum-strong); background: var(--rose-soft); }
.storefront-chevron { transition: transform 150ms ease; }
.storefront-menu-button[aria-expanded="true"] .storefront-chevron { transform: rotate(180deg); }
.storefront-mobile-label, .storefront-header .storefront-mobile-search-toggle, .storefront-header .storefront-mobile-search { display: none; }
.storefront-actions { display: flex; align-items: center; gap: 16px; }
.storefront-icon-action { display: inline-flex; position: relative; justify-content: center; align-items: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap; }
.storefront-header img { flex: 0 0 auto; max-width: none; }
.storefront-cart-count { position: absolute; top: -1px; right: -3px; display: grid; place-items: center; min-width: 19px; height: 19px; border-radius: 10px; padding: 0 4px; color: #fff; background: var(--plum); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.storefront-search { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44px; min-width: 0; height: 44px; margin: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.storefront-search input { width: 100%; min-width: 0; height: 42px; padding: 0 4px 0 14px; border: 0; border-radius: 6px; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; }
.storefront-search input::placeholder { color: #767079; opacity: 1; }
.storefront-search button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.storefront-search:focus-within { border-color: var(--plum); box-shadow: 0 0 0 2px rgba(122,39,77,.1); }
.storefront-header :is(a,button):hover { background-color: rgba(122,39,77,.06); }
.storefront-header .storefront-brand:hover { background: transparent; }
.storefront-header :is(a,button,input):focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.storefront-search input:focus-visible { outline: 0; }
.storefront-search-results { position: absolute; z-index: 4; top: calc(100% + 8px); left: 0; right: 0; max-height: min(460px, 65dvh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 12px 30px rgba(16,20,25,.14); }
.storefront-search-results a { display: grid; gap: 3px; min-height: 56px; padding: 11px 14px; border-bottom: 1px solid #ece8e4; line-height: 1.4; overflow-wrap: anywhere; }
.storefront-search-results a span { color: var(--muted); font-size: 12px; }
.storefront-search-results a strong { color: var(--ink); font-size: 14px; font-weight: 600; }
.storefront-search-results .storefront-search-all { display: block; min-height: 44px; color: var(--plum-strong); background: var(--paper-strong); font-size: 13px; font-weight: 700; }
.storefront-search-status { display: block; padding: 14px; color: var(--muted); font-size: 13px; }
.storefront-nav { position: absolute; z-index: 3; top: 100%; left: 50%; transform: translateX(-50%); width: min(var(--container), calc(100% - 40px)); max-height: calc(100dvh - 100px); overflow-y: auto; overscroll-behavior: contain; padding: 22px 28px 28px; border: 1px solid var(--line); border-top: 2px solid var(--plum); border-radius: 0 0 8px 8px; background: var(--paper-strong); box-shadow: 0 18px 35px rgba(16,20,25,.15); }
.storefront-nav-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.storefront-all-products { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 16px; font-weight: 700; color: var(--plum-strong); }
.storefront-nav-groups { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
.storefront-nav-group { min-width: 0; }
.storefront-nav-group h2 { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.5; text-transform: uppercase; }
.storefront-nav-group a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; padding: 8px 8px 8px 0; border-radius: 4px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.storefront-nav-group a[aria-current="page"] { color: var(--plum-strong); font-weight: 700; }
.storefront-category-count { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.storefront-nojs { display: block; padding: 8px 20px; text-align: center; text-decoration: underline; }
.storefront-catalog-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 0; color: var(--plum-strong); font-size: 14px; font-weight: 700; white-space: nowrap; }
.storefront-catalog-link:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .storefront-bar { gap: 18px; }
  .storefront-account [data-auth-label] { display: none; }
  .storefront-actions { gap: 8px; }
}

@media (max-width: 760px) {
  .storefront-bar { width: calc(100% - 24px); min-height: 68px; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; }
  .storefront-brand { grid-column: 2; grid-row: 1; gap: 0; font-size: 17px; }
  .storefront-brand-mark { display: none; }
  .storefront-menu-button { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 2px; padding: 2px; height: 48px; font-size: 10px; }
  .storefront-menu-button .storefront-chevron, .storefront-desktop-label, .storefront-header .storefront-desktop-search { display: none; }
  .storefront-mobile-label { display: inline; }
  .storefront-actions { grid-column: 3; grid-row: 1; gap: 0; }
  .storefront-icon-action { min-width: 42px; padding: 0 8px; }
  .storefront-header .storefront-mobile-search-toggle { display: inline-flex; }
  .storefront-cart-count { right: 0; }
  .storefront-nav { width: 100%; left: 0; transform: none; max-height: calc(100dvh - 68px); padding: 12px 20px 24px; border-radius: 0 0 8px 8px; border-left: 0; border-right: 0; }
  .storefront-nav-top { padding: 0 0 8px; margin-bottom: 14px; }
  .storefront-header .storefront-mobile-search { display: grid; margin: 0 0 24px; }
  .storefront-search input { font-size: 16px; }
  .storefront-mobile-search .storefront-search-results { right: 0; left: 0; max-height: min(330px, 48dvh); }
  .storefront-nav-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .storefront-nav-group[data-category-group] { grid-column: 1 / -1; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .storefront-nav-group[data-category-group] > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
  .storefront-nav-group a { min-height: 44px; font-size: 13px; }
  .storefront-category-count { font-size: 11px; }
}

@media (max-width: 360px) {
  .storefront-bar { gap: 4px; width: calc(100% - 16px); }
  .storefront-brand { font-size: 16px; }
  .storefront-nav { padding-left: 16px; padding-right: 16px; }
  .storefront-nav-groups { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) { .storefront-chevron { transition: none; } }
