/* Header-only refinement. The catalogue and hero retain their existing layout. */
.preview-bar { display: block; padding: 0; min-height: 33px; }
.preview-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 33px; }
.preview-inner .preview-kicker { font-size: 9px; font-weight: 500; letter-spacing: .14em; white-space: nowrap; }
.preview-inner .preview-bar-copy { font-size: 11px; letter-spacing: .025em; text-align: center; }
.preview-inner > button { justify-self: end; font-size: 10px; padding: 5px 0; white-space: nowrap; text-underline-offset: 4px; }
.site-header { position: relative; }
.site-header .masthead { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; column-gap: 28px; min-height: 116px; padding-block: 20px; }
.site-header .masthead .mobile-menu-button { display: none; }
.masthead .header-search { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; gap: 11px; width: min(230px,100%); min-height: 44px; padding: 9px 0; background: transparent; border: 0; border-bottom: 1px solid #d8cbd1; text-align: left; color: #796471; }
.masthead .header-search svg { width: 20px; height: 20px; flex: 0 0 auto; }
.masthead .header-search-label { font-size: 11px; letter-spacing: .015em; }
.masthead .header-search:hover { color: var(--wine); border-bottom-color: var(--wine); background: transparent; }
.masthead .brand-lockup { grid-column: 2; grid-row: 1; justify-self: center; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.site-header .masthead .wordmark { font-size: 52px; line-height: .98; font-weight: 500; letter-spacing: -.05em; }
.site-header .masthead .header-note { border: 0; padding: 0; margin: 9px 0 0; font-size: 9px; line-height: 1.5; font-weight: 500; letter-spacing: .16em; text-align: center; white-space: nowrap; color: #7d6474; }
.site-header .masthead .header-actions { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 24px; margin: 0; position: static; }
.masthead .header-tea-finder { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 18px; background: var(--wine); border: 1px solid var(--wine); font-size: 12px; font-weight: 550; line-height: 1.5; letter-spacing: .015em; white-space: nowrap; color: var(--cream-on-dark); transition: background .2s, border-color .2s; }
.masthead .header-tea-finder:hover { background: var(--plum); border-color: var(--plum); }
.masthead .bag-button { min-height: 44px; padding: 5px 0 5px 4px; gap: 9px; font-size: 11px; }
.masthead .bag-button svg { width: 21px; height: 24px; }
.masthead .bag-count { min-width: 20px; width: 20px; height: 20px; font-size: 9px; }
.site-header .primary-nav { display: flex; justify-content: center; align-items: center; gap: 35px; min-height: 53px; padding-block: 0; }
.site-header .primary-nav .nav-shop, .site-header .primary-nav .nav-story { display: flex; align-items: center; gap: 29px; }
.site-header .primary-nav .nav-story { border-left: 0; padding-left: 0; margin: 0; }
.site-header .primary-nav a { font-size: 13px; font-weight: 450; line-height: 1.5; letter-spacing: .012em; padding: 16px 0; white-space: nowrap; }
.site-header .primary-nav a::after { bottom: 10px; }
.site-header .primary-nav a[aria-current="page"] { font-weight: 600; }
.site-header .primary-nav a[aria-current="page"]::after { width: 100%; }

@media (max-width: 1100px) and (min-width: 901px) {
  .site-header .masthead { min-height: 108px; column-gap: 20px; padding-block: 18px; }
  .site-header .masthead .wordmark { font-size: 48px; }
  .site-header .masthead .header-note { font-size: 8px; letter-spacing: .13em; }
  .masthead .header-search { width: min(180px,100%); gap: 9px; }
  .masthead .header-search-label { font-size: 10px; }
  .site-header .masthead .header-actions { gap: 17px; }
  .masthead .header-tea-finder, .masthead .bag-button { font-size: 10px; }
  .masthead .header-tea-finder { padding-inline: 12px; gap: 8px; }
  .site-header .primary-nav { gap: 25px; }
  .site-header .primary-nav .nav-shop, .site-header .primary-nav .nav-story { gap: 21px; }
  .site-header .primary-nav a { font-size: 12px; }
}

@media (max-width: 900px) {
  .preview-inner { display: flex; justify-content: center; gap: 14px; min-height: 35px; }
  .preview-inner .preview-kicker { display: none; }
  .preview-inner .preview-bar-copy { font-size: 10px; }
  .preview-inner > button { font-size: 10px; flex: 0 0 auto; }
  .site-header .masthead { display: grid; grid-template-columns: minmax(88px,1fr) auto minmax(88px,1fr); column-gap: 0; min-height: 86px; padding-block: 13px; }
  .site-header .masthead .mobile-menu-button { display: inline-flex; grid-column: 1; grid-row: 1; justify-self: start; align-self: center; position: relative; left: auto; top: auto; width: 44px; height: 44px; padding: 11px; }
  .masthead .header-search { grid-column: 1; grid-row: 1; justify-self: start; width: 44px; min-height: 44px; height: 44px; margin: 0 0 0 44px; padding: 11px; gap: 0; border: 0; position: relative; }
  .masthead .header-search svg { width: 21px; height: 21px; }
  .masthead .header-search-label { display: none; }
  .site-header .masthead .brand-lockup { grid-column: 2; grid-row: 1; max-width: 100%; }
  .site-header .masthead .wordmark { font-size: clamp(22px,6.7vw,36px); line-height: 1; letter-spacing: -.055em; }
  .site-header .masthead .header-note, .masthead .header-tea-finder { display: none; }
  .site-header .masthead .header-actions { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; position: static; gap: 0; margin: 0; min-width: 44px; }
  .masthead .bag-button { position: relative; width: 44px; min-width: 44px; min-height: 44px; padding: 10px; gap: 0; justify-content: center; }
  .masthead .bag-button svg { width: 21px; height: 24px; }
  .masthead .bag-label { display: none; }
  .masthead .bag-count { position: absolute; top: 1px; right: -2px; min-width: 17px; width: 17px; height: 17px; font-size: 8px; }
  .site-header .primary-nav { display: none; width: 100%; padding: 14px 24px 23px; min-height: 0; border-top: 1px solid #975f76; }
  .site-header:has(.mobile-menu-button[aria-expanded="true"]) .primary-nav, .menu-open .site-header .primary-nav { display: block; }
  .site-header .primary-nav .nav-shop, .site-header .primary-nav .nav-story { display: block; }
  .site-header .primary-nav .nav-story { border-left: 0; border-top: 1px solid #975f76; margin-top: 10px; padding: 10px 0 0; }
  .site-header .primary-nav a { position: relative; display: block; min-height: 46px; padding: 12px 14px; font-size: 13px; line-height: 1.65; font-weight: 450; }
  .site-header .primary-nav a::after { display: none; }
  .site-header .primary-nav a[aria-current="page"] { font-weight: 600; background: rgba(255,247,240,.055); }
  .site-header .primary-nav a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 19px; background: var(--gold); }
  .masthead .mobile-menu-button::before, .masthead .mobile-menu-button::after { content: ""; position: absolute; width: 20px; height: 1.4px; left: 12px; top: 21px; background: currentColor; opacity: 0; transform: rotate(0deg); transition: transform .18s ease, opacity .18s ease; }
  .masthead .mobile-menu-button svg { transition: opacity .15s ease; }
  .masthead .mobile-menu-button[aria-expanded="true"] svg { opacity: 0; }
  .masthead .mobile-menu-button[aria-expanded="true"]::before { opacity: 1; transform: rotate(45deg); }
  .masthead .mobile-menu-button[aria-expanded="true"]::after { opacity: 1; transform: rotate(-45deg); }
}

@media (max-width: 420px) {
  .preview-inner { gap: 10px; min-height: 44px; }
  .preview-inner .preview-bar-copy { flex: 1; min-width: 0; text-align: left; font-size: 10px; line-height: 1.45; letter-spacing: 0; }
  .preview-inner > button { font-size: 10px; }
  .site-header .masthead { min-height: 78px; padding-block: 11px; }
  .site-header .primary-nav { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .masthead .mobile-menu-button::before, .masthead .mobile-menu-button::after, .masthead .mobile-menu-button svg { transition: none; }
}
