/* Storefront shell. Shared primitives are defined in tokens.css. */
:root {
  --cream: var(--color-background);
  --paper: var(--color-surface);
  --ink: var(--color-ink);
  --muted: var(--color-muted);
  --orange: var(--color-brand);
  --line: var(--color-border);
  --green: var(--color-success);
  --header-height: 88px;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; color: var(--ink); background: var(--color-background); font: 400 16px/1.6 var(--font-body); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }
img { max-width: 100%; object-fit: cover; }
svg { flex-shrink: 0; vertical-align: middle; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-brand); outline-offset: 4px; box-shadow: 0 0 0 2px var(--paper);
}
h1, h2, h3, h4, p { margin: 0 0 20px; }
h1, h2, h3, h4 { line-height: 1.1; text-wrap: balance; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(44px, 5vw, 68px); }
h2 { font-size: 40px; }
h3 { font-size: 30px; }
h4 { font-weight: 600; }
small { display: block; font-size: 13px; }
.container { width: min(1312px, calc(100% - 96px)); margin-inline: auto; }
.ui-icon { width: 20px; height: 20px; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--radius-control); }
.icon-button:hover { background: var(--color-background); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: fixed; top: -80px; left: 16px; padding: 12px 20px; background: var(--paper); color: var(--ink); z-index: 100; border-radius: 6px; }
.skip:focus { top: 16px; }
#main:focus-visible { outline: 2px solid var(--orange); outline-offset: -4px; }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { display: block; border-radius: 50%; }
.brand > span { font: 700 32px/.95 var(--font-display); }
.brand small { display: block; margin: 0 0 4px; font: 500 12px/1.3 var(--font-body); }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a { position: relative; display: flex; align-items: center; min-height: 48px; font-size: 14px; font-weight: 500; }
.desktop-nav a::after { position: absolute; right: 0; left: 0; bottom: 2px; content: ''; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-fast); }
.desktop-nav a:hover::after, .desktop-nav a[aria-current]::after { transform: scaleX(1); }
.desktop-nav a[aria-current] { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 24px; }
.account-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-size: 14px; }
.account-link:hover { color: var(--orange); }
.cart-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper); font-size: 14px; font-weight: 600; }
.cart-toggle:hover { border-color: var(--orange); color: var(--orange); }
.cart-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 4px; background: var(--color-brand-soft); color: var(--orange); font-size: 12px; font-weight: 600; }
.mobile-menu-toggle { display: none; }
.mobile-menu { padding: 24px; max-width: none; width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
.mobile-menu nav { display: grid; margin-top: 36px; }
.mobile-menu nav a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; border-bottom: 1px solid var(--line); font: 600 30px var(--font-display); }
.mobile-menu > p { max-width: 30ch; margin-top: 44px; color: var(--muted); font-size: 14px; }

/* Hero: original product photography, one clear action. */
.hero { padding-block: 48px 56px; background: var(--color-background); }
.hero-grid { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-items: center; gap: 64px; min-height: min(650px, calc(100svh - 160px)); }
.hero-copy { min-width: 0; padding-block: 24px; }
.hero-location { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 24px; color: var(--muted); }
.hero-location .ui-icon { width: 17px; height: 17px; }
.hero h1 { font-size: clamp(64px, 6.8vw, 102px); line-height: .98; letter-spacing: -.025em; margin-bottom: 28px; }
.hero-copy > p { max-width: 390px; margin-bottom: 32px; font-size: 18px; color: var(--color-reading); line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 50px; padding: 13px 22px; border: 1px solid transparent; border-radius: var(--radius-control); font-size: 15px; font-weight: 600; line-height: 1.4; transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast), border-color var(--duration-fast); }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(1px); }
.primary { background: var(--orange); color: var(--color-on-brand); }
.primary:hover:not(:disabled) { background: var(--color-brand-hover); }
.secondary { border-color: var(--line); background: var(--paper); }
.secondary:hover:not(:disabled) { border-color: var(--ink); }
.full { width: 100%; }
.hero-cta { min-width: 210px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 32px; font-size: 13px; }
.hero-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta > span + span { color: var(--muted); }
.hero-meta .ui-icon { width: 16px; height: 16px; }
.store-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.open { color: var(--green); }
.closed { color: var(--color-warning); }
.hero-visual { overflow: hidden; height: 560px; }
.hero-visual img { display: block; width: 100%; height: 100%; object-position: 60% center; transition: transform 600ms var(--ease-out); }
.hero-visual:hover img { transform: scale(1.02); }
.hero-brand {
  display: grid;
  place-items: center;
  height: min(560px, 72svh);
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 214, 120, 0.45), transparent 42%),
    radial-gradient(circle at 78% 70%, rgba(217, 106, 31, 0.22), transparent 48%),
    linear-gradient(160deg, #ffe8d4 0%, #fff7f0 55%, #f8e3d0 100%);
  border: 1px solid var(--line);
}
.hero-brand img {
  width: min(72%, 420px);
  height: auto;
  max-height: 78%;
  object-fit: contain;
  object-position: center;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgb(42 33 24 / 14%);
}
.hero-brand:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: no-preference) {
  .hero[data-enter] .hero-copy { animation: hero-arrive 520ms var(--ease-out) both; }
  .hero[data-enter] .hero-visual { animation: hero-arrive 650ms 80ms var(--ease-out) both; }
}
@keyframes hero-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Menu and product cards */
.menu-section { padding-block: 72px 96px; scroll-margin-top: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.section-kicker { font-size: 14px; color: var(--orange); font-weight: 500; margin-bottom: 12px; }
.section-heading :is(h1,h2) { font-size: 52px; margin-bottom: 12px; }
.section-description { font-size: 16px; color: var(--muted); margin-bottom: 0; }
.eyebrow { display: block; color: var(--orange); font-size: 14px; font-weight: 500; margin-bottom: 12px; text-transform: none; letter-spacing: normal; }
.search { display: flex; align-items: center; gap: 12px; width: 310px; margin: 0; padding: 0 16px; border: 1px solid var(--color-control-border); border-radius: var(--radius-control); background: var(--color-background); }
.search:focus-within { border-color: var(--orange); }
.search input:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.search input { min-width: 0; width: 100%; min-height: 50px; border: 0 !important; box-shadow: none !important; margin: 0 !important; padding: 12px 0 !important; background: transparent !important; }
.menu-toolbar { margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.category-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 16px; scrollbar-width: thin; }
.category-nav button { flex-shrink: 0; padding: 10px 18px; min-height: 44px; border: 0; border-radius: var(--radius-control); background: var(--color-background); font-size: 14px; font-weight: 500; transition: background var(--duration-fast), color var(--duration-fast); }
.category-nav button:hover { background: var(--color-brand-soft); color: var(--orange); }
.category-nav button.active { background: var(--color-brand-soft); color: var(--orange); }
.catalog-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 44px; align-items: start; }
#menu-products { min-width: 0; }
.category-section { margin-bottom: 48px; }
.category-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.category-heading :is(h2,h3) { font-size: 34px; margin: 0; }
.category-heading > span { font-size: 13px; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 28px; }
.product-card { min-width: 0; border-bottom: 1px solid var(--line); }
.product-card-button { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 20px; width: 100%; height: 100%; padding: 0 0 20px; border: 0; background: transparent; text-align: left; transition: transform var(--duration-fast); }
.product-card-button:hover:not(:disabled) { transform: translateY(-2px); }
.product-photo { align-self: start; overflow: hidden; border-radius: var(--radius-control); background: var(--color-background); }
.product-photo img { display: block; width: 100%; height: 148px; transition: transform 350ms var(--ease-out); }
.product-card-button:hover:not(:disabled) .product-photo img { transform: scale(1.03); }
.product-copy { min-width: 0; display: flex; flex-direction: column; }
.product-copy :is(h3,h4) { margin-bottom: 8px; font-size: 17px; line-height: 1.3; text-wrap: pretty; font-family: var(--font-body); font-weight: 600; }
.product-copy > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; }
.product-price strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.product-price del { color: var(--muted); font-size: 13px; }
.add-symbol { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; background: var(--color-brand-soft); color: var(--orange); border-radius: var(--radius-control); transition: background var(--duration-fast), color var(--duration-fast); }
.product-card-button:hover .add-symbol { background: var(--orange); color: var(--color-on-brand); }
.tag { display: inline-block; align-self: start; padding: 3px 8px; margin-bottom: 8px; border-radius: 4px; background: var(--color-brand-soft); color: var(--orange); font-size: 12px; font-weight: 500; line-height: 1.5; }
.availability-note { margin-top: 8px; color: var(--muted); }
.cart-sidebar { position: sticky; top: calc(var(--header-height) + 24px); padding: 24px; background: var(--color-background); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.cart-sidebar-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.cart-sidebar-heading h3 { flex: 1; font: 600 20px var(--font-body); margin: 0; }
.cart-empty { padding: 24px 0 32px; text-align: center; }
.cart-empty .bag-icon { display: grid; place-items: center; width: 60px; height: 68px; margin: 0 auto 20px; color: var(--muted); }
.cart-empty .bag-icon svg { width: 46px; height: 46px; stroke-width: 1.2; }
.cart-empty strong { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 500; }
.cart-empty p { font-size: 14px; color: var(--muted); margin: 0; }
.cart-note { margin: 20px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.cart-note a { text-decoration: underline; text-underline-offset: 3px; }
.cart-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-item-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.cart-item-head strong { font-weight: 500; }
.cart-item small { color: var(--muted); margin-top: 8px; line-height: 1.6; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.qty-controls { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper); font-size: 14px; }
.qty-controls button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; }
.qty-controls button:hover { color: var(--orange); background: var(--color-brand-soft); }
.qty-controls > span { min-width: 22px; text-align: center; }
.remove-item { min-height: 44px; padding: 8px; border: 0; background: transparent; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.cart-total { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 20px; font-size: 16px; }
.empty-state { padding: 56px 24px; background: var(--color-background); border-radius: var(--radius-panel); text-align: center; color: var(--muted); }
.empty-state > .ui-icon { width: 36px; height: 36px; margin-bottom: 24px; }
.empty-state h3 { color: var(--ink); }
.empty-state a { color: var(--orange); text-decoration: underline; }
.mobile-cart-bar { display: none; }

/* Footer — light type on dark inverse surface */
.site-footer { padding: 56px 0 28px; background: var(--color-inverse-surface); color: #f6ece2; }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr .9fr; gap: 48px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fffaf5; }
.footer-brand img { display: block; border-radius: 50%; background: #fffaf5; }
.footer-brand span { font: 700 28px/.95 var(--font-display); letter-spacing: -.02em; }
.footer-main p { max-width: 36ch; color: rgba(246,236,226,.72); font-size: 14px; margin-bottom: 12px; }
.footer-main h2 { margin: 0 0 16px; font: 600 13px/1.3 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: rgba(246,236,226,.55); }
.footer-main nav, .footer-contact { display: flex; flex-direction: column; align-items: start; }
.footer-main nav a, .footer-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: rgba(246,236,226,.88); font-size: 14px; }
.footer-main a:hover { color: #fffaf5; text-decoration: underline; text-underline-offset: 5px; }
.footer-main .ui-icon { width: 17px; height: 17px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(246,236,226,.16); margin-top: 40px; padding-top: 20px; font-size: 13px; color: rgba(246,236,226,.62); }
.footer-credit { margin-left: auto; color: rgba(246,236,226,.78); font-weight: 500; white-space: nowrap; }
.footer-credit:hover { color: #fffaf5; text-decoration: underline; text-underline-offset: 4px; }

/* Forms, checkout and secondary pages */
.page-content { padding-block: 48px 88px; min-height: 65svh; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.back-link:hover { color: var(--orange); }
.narrow { max-width: 760px; }
.auth-wrap { max-width: 560px; }
.form-card { padding: 32px; margin-bottom: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.form-card h2 { font-size: 32px; }
.form-card h3 { font: 600 20px var(--font-body); }
label { display: block; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
input:not([type=checkbox]):not([type=radio]), textarea, select { display: block; width: 100%; min-height: 52px; margin-top: 8px; padding: 13px 14px; border: 1px solid var(--color-control-border); border-radius: var(--radius-control); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:disabled { background: var(--color-background); color: var(--muted); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--orange); flex-shrink: 0; }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-bottom: 24px; }
.form-grid label { min-width: 0; margin: 0; }
.form-grid .wide { grid-column: 1/-1; }
.address-start { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 16px; }
.muted { color: var(--muted); font-size: 14px; }
.muted a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.step-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.step-heading > span { display: inline-grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; color: var(--orange); background: var(--color-brand-soft); border-radius: 4px; font-size: 13px; font-weight: 600; }
.step-heading h2 { margin: 0; font-size: 32px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 40px; align-items: start; }
.checkout-summary { position: sticky; top: calc(var(--header-height) + 24px); background: var(--color-background); border-color: transparent; }
.summary-line { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-line > strong { flex-shrink: 0; font-weight: 500; }
.summary-line small { color: var(--muted); margin-top: 8px; }
.summary-line.total { border: 0; margin: 8px 0 24px; font-size: 22px; }
.summary-line.total strong { font-weight: 600; }
.coupon-row { display: flex; align-items: end; gap: 8px; }
.coupon-row input { min-width: 0; }
.coupon-row .button { height: 52px; padding-inline: 16px; }
.segmented { display: flex; gap: 12px; margin-bottom: 24px; }
.segmented label { display: flex; align-items: center; gap: 10px; flex: 1; min-height: 56px; padding: 12px 16px; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-control); cursor: pointer; }
.segmented label:has(input:checked) { background: var(--color-brand-soft); border-color: var(--orange); color: var(--orange); }
.location-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.location-actions .button { font-size: 14px; padding-inline: 16px; }
.text-button { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--orange); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.notice, .success, .error { padding: 18px 20px; border-radius: var(--radius-control); margin-bottom: 24px; font-size: 14px; line-height: 1.6; }
.notice { background: var(--color-warning-soft); color: var(--color-warning); }
.success { background: var(--color-success-soft); color: var(--color-success); }
.error { background: var(--color-danger-soft); color: var(--color-danger); }
.notice a { text-decoration: underline; }
.auth-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; font-size: 14px; }
.auth-links a { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.auth-wrap h1 { font-size: 52px; }
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 80px; align-items: start; }
.contact-grid > div > h3 { margin-top: 40px; }
.contact-grid .button { margin: 0 8px 8px 0; }
.large-text { max-width: 31ch; font-size: 21px; }
.hours-list { max-width: 440px; }
.hours-list > div { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hours-list span { text-align: right; color: var(--muted); }
.account-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 32px; }
.account-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.account-nav a[aria-current] { color: var(--orange); font-weight: 600; }
.account-nav form { margin-left: auto; }
.check-label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.order-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding: 24px 0; }
.order-card small { margin-top: 8px; color: var(--muted); }
.order-card .tag { margin: 0; align-self: center; }
.order-card:hover { color: var(--orange); }
.tracking-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 28px 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.tracking-heading > strong { font-size: 28px; }
.tracking-heading .tag { margin: 0; font-size: 14px; }
.tracking-progress { display: flex; gap: 12px; margin-bottom: 28px; }
.tracking-step { flex: 1; padding-top: 14px; border-top: 4px solid var(--line); color: var(--muted); font-size: 13px; }
.tracking-step.done { border-color: var(--green); color: var(--green); }
.product-page { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 72px; }
.product-page > img { width: 100%; aspect-ratio: 1.1; border-radius: var(--radius-control); }
.product-page > div > p { color: var(--muted); font-size: 18px; }
.prose { line-height: 1.8; }
.prose h2 { font-size: 36px; margin-top: 40px; }
.prose a { color: var(--orange); text-decoration: underline; }
details { margin: 24px 0; font-size: 14px; }
summary { display: list-item; min-height: 44px; padding: 10px 0; cursor: pointer; color: var(--muted); }
.address-result { display: block; width: 100%; min-height: 52px; padding: 16px; text-align: left; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--color-background); font-size: 14px; }

/* Dialogs and feedback */
dialog { color: var(--ink); background: var(--paper); border: 0; border-radius: var(--radius-panel); padding: 0; box-shadow: var(--shadow-dialog); max-height: 90dvh; width: min(600px,calc(100% - 32px)); }
dialog::backdrop { background: rgb(20 25 18 / 56%); }
body:has(dialog[open]) { overflow: hidden; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.panel-title h2 { margin: 0; font-size: 36px; }
.panel-title .section-kicker { margin-bottom: 6px; }
.dialog-close { position: absolute; right: 16px; top: 16px; z-index: 2; background: var(--paper); }
.dialog-image { display: block; width: 100%; height: 260px; }
.dialog-content { padding: 32px; }
.dialog-content h2 { margin-bottom: 16px; }
.dialog-content > p { color: var(--muted); }
.product-notes { margin-top: 28px; }
.option-group { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.option-group fieldset { margin: 0; padding: 0; border: 0; }
.option-group legend { padding: 0; margin-bottom: 8px; font-size: 17px; font-weight: 600; }
.option-group small { margin-bottom: 12px; color: var(--muted); }
.option-group label { display: flex; justify-content: space-between; align-items: center; min-height: 48px; gap: 16px; padding: 10px 0; margin: 0; font-size: 15px; font-weight: 400; cursor: pointer; }
.option-group label > span { display: flex; align-items: center; gap: 10px; }
.option-group label > span:last-child { font-size: 14px; flex-shrink: 0; }
.dialog-add { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.dialog-add .qty-controls { flex-shrink: 0; }
.dialog-add .button { flex: 1; }
.cart-dialog { width: 440px; padding: 32px; }
#toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; padding: 16px 24px; border-radius: var(--radius-control); background: var(--color-neutral-soft); color: var(--ink); font-size: 14px; box-shadow: var(--shadow-dialog); }
.chat-launcher { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 10px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--ink); }
.chat-launcher:hover { color: var(--orange); background: var(--color-background); }
.chat-panel { position: fixed; top: calc(var(--header-height) + 16px); right: 24px; z-index: 27; width: min(390px,calc(100% - 32px)); max-height: 78dvh; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-dialog); }
.chat-panel h2 { font-size: 30px; }
.chat-panel #chat-messages { max-height: 36dvh; overflow-y: auto; margin-bottom: 20px; }
.chat-bubble { padding: 14px; margin-bottom: 12px; border-radius: var(--radius-control); background: var(--color-background); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-bubble.mine { margin-left: 28px; background: var(--color-brand-soft); }
.chat-panel form { display: flex; align-items: center; gap: 8px; }
.chat-panel input { min-width: 0; margin: 0 !important; }
.chat-panel .button { height: 52px; padding-inline: 14px; }

/* Tablet */
@media (max-width: 1199px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 24px; }
  .desktop-nav { gap: 20px; }
  .header-actions { gap: 16px; }
  .hero-grid { gap: 40px; }
  .hero h1 { font-size: clamp(64px,7vw,84px); }
  .hero-visual { height: 500px; }
  .catalog-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 32px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card-button { grid-template-columns: 148px minmax(0,1fr); gap: 24px; }
  .checkout-layout { grid-template-columns: minmax(0,1fr) 340px; gap: 24px; }
  .footer-main { gap: 40px; }
}
@media (max-width: 959px) {
  :root { --header-height: 76px; }
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: inline-grid; }
  .header-actions { gap: 16px; }
  .hero-grid { gap: 32px; }
  .hero h1 { font-size: 68px; }
  .hero-copy > p { font-size: 16px; }
  .hero-visual { height: 450px; }
  .hero-meta { flex-direction: column; gap: 12px; }
  .catalog-layout { grid-template-columns: minmax(0,1fr); }
  .cart-sidebar { display: none; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-card-button { grid-template-columns: 112px minmax(0,1fr); gap: 16px; }
  .product-photo img { height: 140px; }
  .checkout-layout { grid-template-columns: minmax(0,1fr); }
  .checkout-summary { position: static; }
  .contact-grid { gap: 40px; }
  .footer-main { grid-template-columns: 1.2fr 1fr; gap: 40px; }
  .footer-main nav { grid-column: 2; }
  .footer-identity { grid-row: span 2; }
  .mobile-cart-bar:not([hidden]) { display: block; position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); z-index: 35; }
  .mobile-cart-bar button { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; width: 100%; padding: 12px 20px; border: 0; border-radius: var(--radius-control); color: var(--color-on-brand); background: var(--orange); font-size: 15px; }
  .mobile-cart-bar b { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; background: rgb(255 255 255 / 16%); border-radius: 4px; font-size: 13px; }
  body:has([data-mobile-cart]:not([hidden])) { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  #toast { bottom: 90px; }
}

/* Mobile */
@media (max-width: 639px) {
  :root { --header-height: 72px; }
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 12px; }
  .brand { gap: 8px; }
  .brand img { width: 42px; height: 42px; }
  .brand > span { font-size: 28px; }
  .brand small { font-size: 11px; }
  .header-actions { gap: 8px; }
  .account-link { display: none; }
  .cart-toggle { gap: 7px; min-width: 66px; padding: 10px; border: 0; background: var(--color-background); }
  .cart-toggle-label { display: none; }
  .hero { padding-block: 28px 32px; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 32px; min-height: auto; }
  .hero-copy { padding: 0; }
  .hero-location { margin-bottom: 20px; font-size: 13px; }
  .hero h1 { font-size: clamp(54px,13.8vw,82px); margin-bottom: 20px; }
  .hero-copy > p { max-width: 34ch; margin-bottom: 24px; font-size: 16px; }
  .hero-cta { width: 100%; }
  .hero-meta { flex-direction: row; justify-content: space-between; gap: 12px; margin-top: 24px; font-size: 12px; }
  .hero-meta .ui-icon { width: 14px; height: 14px; }
  .hero-visual { height: auto; aspect-ratio: 1.3; }
  .hero-visual img { object-position: 58% center; }
  .menu-section { padding-block: 40px 56px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading :is(h1,h2) { font-size: 42px; margin-bottom: 12px; }
  .section-kicker { font-size: 13px; margin-bottom: 8px; }
  .section-description { font-size: 15px; }
  .search { width: 100%; margin-top: 28px; }
  .menu-toolbar { margin-bottom: 28px; }
  .category-nav { margin-inline: -20px; padding-inline: 20px; }
  .category-nav button { padding-inline: 16px; }
  .product-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .product-card-button { grid-template-columns: 120px minmax(0,1fr); gap: 20px; padding-bottom: 20px; }
  .product-photo img { height: 142px; }
  .product-copy :is(h3,h4) { font-size: 17px; }
  .product-copy > p { font-size: 14px; margin-bottom: 12px; }
  .product-price strong { font-size: 15px; }
  .product-price del { font-size: 12px; }
  .category-heading :is(h2,h3) { font-size: 32px; }
  .category-section { margin-bottom: 36px; }
  .add-symbol { width: 36px; height: 36px; }
  .site-footer { padding-top: 44px; }
  .footer-main { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .footer-identity { grid-row: auto; }
  .footer-main nav { grid-column: auto; }
  .footer-brand span { font-size: 24px; }
  .footer-main h2 { margin-bottom: 12px; }
  .footer-main p { max-width: 34ch; }
  .footer-bottom { margin-top: 28px; font-size: 12px; }
  .footer-credit { margin-left: 0; width: 100%; text-align: right; }
  .page-content { padding-block: 28px 56px; }
  .page-content h1 { font-size: 46px; }
  .form-card { padding: 24px 20px; }
  .form-grid { gap: 20px 16px; }
  .step-heading { gap: 12px; margin-bottom: 24px; }
  .step-heading h2 { font-size: 28px; }
  .segmented label { padding-inline: 12px; font-size: 13px; }
  .contact-grid, .product-page { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .contact-grid .button { margin-right: 0; }
  .large-text { font-size: 19px; }
  .account-nav { gap: 8px 20px; }
  .account-nav form { margin: 0; }
  .account-nav a { font-size: 14px; }
  .order-card { flex-wrap: wrap; gap: 16px; }
  .order-card > strong { font-size: 15px; }
  .tracking-progress { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; padding-left: 8px; }
  .tracking-step { border-top: 0; border-left: 3px solid var(--line); padding: 12px 0 12px 20px; font-size: 14px; }
  .tracking-step.done { border-left-color: var(--green); }
  .auth-links { flex-wrap: wrap; gap: 4px 16px; }
  .dialog-image { height: 210px; }
  .dialog-content { padding: 24px 20px; }
  .dialog-content h2 { font-size: 36px; }
  .dialog-add { gap: 12px; flex-wrap: wrap; }
  .dialog-add .button { min-width: 160px; }
  .dialog-add .qty-controls > span { min-width: 18px; }
  .cart-dialog { padding: 24px; }
  .panel-title { gap: 16px; margin-bottom: 24px; }
  .chat-panel { right: 16px; padding: 20px; }
  .chat-panel #chat-messages { max-height: 32dvh; }
}
@media (max-width: 359px) {
  .brand > span { font-size: 25px; }
  .brand img { width: 36px; height: 36px; }
  .hero h1 { font-size: 50px; }
  .hero-meta { flex-direction: column; gap: 10px; }
  .product-card-button { grid-template-columns: 100px minmax(0,1fr); gap: 14px; }
  .product-photo img { height: 132px; }
  .product-copy :is(h3,h4) { font-size: 16px; }
  .dialog-add .button { width: 100%; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
/* Validation is placed next to the existing control, without replacing API rules. */
input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true] { border-color: var(--color-danger) !important; }
.field-error { color: var(--color-danger); font-size: 13px; margin-top: 8px; }
.product-page .product-page-price { font-size: 28px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tracking-contact { margin-top: 16px; }
/* Help is part of navigation, so it never covers a product or a checkout control. */
.mobile-menu nav button { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; font: 600 30px var(--font-display); }
@media (max-width: 359px) { .chat-launcher { display: none; } }

.account-nav a:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 5px; }

.footer-wordmark small { display: block; margin-bottom: 12px; font: 500 16px/1.4 var(--font-body); letter-spacing: 0; color: var(--color-muted); }

.location-attribution { margin-top: 8px; font-size: 11px; color: rgba(246,236,226,.45); }
.location-attribution a { color: rgba(246,236,226,.55); text-decoration: underline; text-underline-offset: 3px; }
.location-attribution a:hover { color: #fffaf5; }
