@font-face {
  font-family: "Oswald";
  src: url("assets/fonts/oswald-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --display-font: "Oswald", Impact, "Arial Narrow", sans-serif;
  --logo-height: 78px;
  color-scheme: dark;
  --black: #050505;
  --surface: #0a0b0a;
  --surface-raised: #111211;
  --white: #f4f3ee;
  --muted: #aaa9a3;
  --yellow: #ffd400;
  --line: rgba(255,255,255,.2);
  --header-height: 212px;
  --category-rail-height: 74px;
  --product-title-size: 35px;
  --product-description-size: 15px;
  --product-measure-size: 15px;
  --product-price-size: 40px;
  --tray-height: 76px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) - var(--logo-height) + 14px); }
body { margin: 0; min-width: 320px; color: var(--white); background: var(--black); overflow-x: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.page-pattern {
  position: fixed;
  top: -4%;
  bottom: -4%;
  left: 50%;
  width: min(108%, 464px);
  z-index: -2;
  opacity: .76;
  background: #050505 url("assets/calligraphy-bg.webp") center top / 520px auto repeat-y;
  box-shadow: 0 0 70px rgba(0,0,0,.86);
  transform: translateX(-50%);
}

.page-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,.2), rgba(5,5,5,.46));
}

.app-header {
  position: sticky;
  z-index: 30;
  /* The logo scrolls away naturally; the navigation stays pinned without layout jumps. */
  top: calc(-1 * var(--logo-height));
  width: min(100%, 430px);
  margin: 0 auto;
  height: var(--header-height);
  background: rgba(5,5,5,.94);
  border-bottom: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 15px 35px rgba(0,0,0,.3);
  backdrop-filter: blur(16px);
}

.logo-link {
  height: var(--logo-height);
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.logo-link img { width: 136px; height: auto; display: block; }

.primary-nav {
  height: 60px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.primary-tab {
  padding-inline: 2px;
  position: relative;
  color: #d8d7d1;
  background: transparent;
  border: 0;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
  cursor: pointer;
}

.primary-tab::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 3px;
  background: transparent;
  transform: scaleX(.6);
  transition: background 180ms ease, transform 180ms ease;
}

.primary-tab.is-active { color: var(--yellow); }
.offers-button { color: var(--yellow); }
.primary-tab.is-active::after { background: var(--yellow); transform: scaleX(1); }

.category-rail-wrap { height: var(--category-rail-height); display: flex; align-items: center; overflow: hidden; }
.category-rail {
  width: 100%;
  display: flex;
  gap: 9px;
  padding: 0 16px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.category-rail::-webkit-scrollbar { display: none; }

.category-chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 19px;
  color: #d1d0ca;
  background: rgba(9,9,9,.7);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  scroll-snap-align: start;
  cursor: pointer;
}

.category-chip.is-active { color: var(--yellow); border: 2px solid var(--yellow); }

.primary-tab:focus-visible,
.category-chip:focus-visible,
.add-product:focus-visible,
.card-quantity-button:focus-visible,
.show-selection:focus-visible,
.sheet-close:focus-visible,
.quantity-button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.menu-content {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 32px 16px calc(var(--tray-height) + 60px + var(--safe-bottom));
}

.section-heading { margin: 0 0 24px; }
.section-kicker {
  margin: 0 0 5px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-heading h1 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(46px, 11vw, 54px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.section-heading > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.product-feed { display: grid; gap: 20px; }

.product-card {
  overflow: hidden;
  background: linear-gradient(140deg, rgba(16,17,16,.98), rgba(7,8,7,.98));
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 22px;
  box-shadow: 0 22px 52px rgba(0,0,0,.38);
}

.product-media { position: relative; aspect-ratio: 1.28 / 1; overflow: hidden; background: #050505; }
.product-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.media-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(0,0,0,.4) 100%); }
.product-badge {
  font-weight: 700;
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 8px 11px 7px;
  color: var(--black);
  background: var(--yellow);
  border-radius: 7px;
  font-family: var(--display-font);
  font-size: 13px;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.product-info { padding: 20px 20px 18px; }
.product-info h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: var(--product-title-size);
  font-weight: 700;
  line-height: .98;
  letter-spacing: .018em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.product-title-brand,
.product-title-type { display: block; }
.product-title-brand { white-space: nowrap; }
.product-title-type { margin-top: 2px; }

.product-stars {
  display: inline-block;
  margin-top: 10px;
  color: #e7bf5a;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .18em;
  text-shadow: 0 0 14px rgba(231,191,90,.34), 0 1px 0 rgba(255,255,255,.18);
}

.product-description { min-height: 1.4em; margin: 10px 0 0; color: #d0cfca; font-size: var(--product-description-size); line-height: 1.4; }
.product-description.is-placeholder { color: #92918b; font-size: 14px; }
.info-divider { margin: 16px 0 14px; border-top: 2px dotted rgba(220,220,220,.55); }
.product-card.is-no-photo .product-info { padding-top: 30px; }
.product-card.is-no-photo .product-info h2 { font-size: 30px; }
.product-card.is-no-photo .product-price { font-size: 35px; }
.product-options { display: grid; gap: 14px; }
.flavor-picker { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.flavor-picker legend { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.flavor-picker label { position: relative; flex: 1; min-width: 0; cursor: pointer; }
.flavor-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.flavor-picker span { display: grid; place-items: center; min-height: 44px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.flavor-picker input:checked + span { color: var(--yellow); border-color: var(--yellow); background: rgba(255,212,0,.06); }
.flavor-picker input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 3px; }
.product-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.product-bottom:not([hidden]) ~ .product-bottom:not([hidden]) { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); }
.product-meta { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.product-volume { color: #dddcd6; font-size: var(--product-measure-size); }
.product-price { color: var(--yellow); font-family: var(--display-font); font-size: var(--product-price-size); font-weight: 700; letter-spacing: .02em; line-height: .95; white-space: nowrap; }

.add-product {
  font-weight: 700;
  flex: 0 0 auto;
  min-width: 136px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 8px 14px;
  color: var(--white);
  background: rgba(5,5,5,.58);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 12px;
  font-family: var(--display-font);
  font-size: 15px;
  letter-spacing: .055em;
  text-transform: uppercase;
  cursor: pointer;
}

.add-icon { color: var(--yellow); font-family: Arial, sans-serif; font-size: 34px; font-weight: 300; line-height: .6; }
.add-product.is-added { color: var(--black); background: var(--yellow); border-color: var(--yellow); }
.add-product.is-added .add-icon { color: var(--black); }

.card-purchase-control {
  flex: 0 0 auto;
  width: 136px;
}
.card-purchase-control .add-product { width: 100%; min-width: 0; }
.card-quantity-control {
  min-height: 52px;
  display: grid;
  grid-template-columns: 42px minmax(42px, 1fr) 42px;
  align-items: center;
  color: var(--white);
  background: rgba(5,5,5,.72);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 12px;
  overflow: hidden;
}
.card-quantity-control[hidden] { display: none; }
.card-quantity-button {
  width: 42px;
  height: 50px;
  padding: 0;
  color: var(--yellow);
  background: transparent;
  border: 0;
  font-family: Arial, sans-serif;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.card-quantity-button:first-child { border-right: 1px solid rgba(255,255,255,.22); }
.card-quantity-button:last-child { border-left: 1px solid rgba(255,255,255,.22); }
.card-quantity-button:disabled, .quantity-button:disabled { opacity: .35; cursor: default; }
.card-quantity-value {
  font-weight: 700;
  color: var(--white);
  font-family: var(--display-font);
  font-size: 20px;
  line-height: 1;
  text-align: center;
}

.empty-category {
  min-height: 42svh;
  display: grid;
  place-items: center;
  padding: 40px 22px;
  text-align: center;
  background: rgba(10,11,10,.84);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
}
.empty-category strong { display: block; font-family: var(--display-font); font-size: 34px; font-weight: 700; text-transform: uppercase; }
.empty-category p { max-width: 360px; margin: 12px auto 0; color: var(--muted); line-height: 1.5; }

.selection-tray {
  position: fixed;
  z-index: 35;
  left: 50%;
  width: min(100%, 430px);
  bottom: 0;
  min-height: calc(var(--tray-height) + var(--safe-bottom));
  display: grid;
  grid-template-columns: minmax(90px, .8fr) minmax(200px, 1.6fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  background: rgba(5,5,5,.95);
  border-top: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 -16px 45px rgba(0,0,0,.46);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.selection-tray > div { display: flex; align-items: baseline; gap: 9px; padding-left: 4px; text-transform: uppercase; }
.selection-tray > div span { color: #c1c0ba; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.selection-tray > div strong { color: var(--yellow); font-family: var(--display-font); font-size: 28px; font-weight: 700; }

.show-selection {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px;
  color: var(--yellow);
  background: transparent;
  border: 2px solid var(--yellow);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
  cursor: pointer;
}
.show-selection:disabled { color: #777; border-color: #555; cursor: default; }
.show-selection span { white-space: nowrap; }

.promo-dialog {
  width: min(calc(100% - 24px), 398px);
  max-width: none;
  max-height: 90svh;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: transparent;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 36px 90px rgba(0,0,0,.72), 0 0 0 1px rgba(255,212,0,.34);
}
.promo-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(7px); }
.promo-card { overflow: auto; max-height: 90svh; background: linear-gradient(145deg, #111310, #080908 72%); }
.promo-media { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; background: #070807; }
.promo-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 64%; }
.promo-media-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.04) 48%, rgba(7,8,7,.9) 100%); }
.promo-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  padding: 11px;
  color: var(--white);
  background: rgba(5,5,5,.72);
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.promo-close svg { width: 100%; height: 100%; }
.promo-close path { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.promo-content { position: relative; margin-top: -24px; padding: 0 20px 22px; }
.promo-kicker { margin: 0 0 7px; color: var(--yellow); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.promo-content h2 { margin: 0; font-family: var(--display-font); font-size: 48px; font-weight: 700; line-height: .95; letter-spacing: .015em; text-transform: uppercase; }
.promo-content > p:not(.promo-kicker) { margin: 10px 0 0; color: #d7d6d0; font-size: 15px; line-height: 1.4; }
.promo-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.promo-footer strong { color: var(--yellow); font-family: var(--display-font); font-size: 35px; font-weight: 700; line-height: 1; white-space: nowrap; }
.promo-continue {
  min-height: 48px;
  padding: 0 15px;
  color: var(--black);
  background: var(--yellow);
  border: 0;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.promo-close:focus-visible,
.promo-continue:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
body.has-promo { overflow: hidden; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.selection-sheet {
  position: fixed;
  z-index: 51;
  left: 50%;
  bottom: 0;
  width: min(100%, 600px);
  max-height: min(88svh, 820px);
  overflow: auto;
  padding: 10px 18px calc(24px + var(--safe-bottom));
  background: #0c0d0c;
  border: 1px solid rgba(255,255,255,.26);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -30px 70px rgba(0,0,0,.65);
  transform: translateX(-50%);
}
.sheet-handle { width: 54px; height: 4px; margin: 2px auto 18px; background: #666; border-radius: 99px; }
.sheet-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sheet-header p { margin: 0 0 4px; color: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sheet-header h2 { margin: 0; font-family: var(--display-font); font-size: 42px; font-weight: 700; line-height: 1; text-transform: uppercase; }
.sheet-close { width: 46px; height: 46px; padding: 11px; color: var(--white); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.sheet-close svg { width: 100%; height: 100%; }
.sheet-close path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sheet-items { display: grid; }
.sheet-item { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sheet-item h3 { margin: 0 0 7px; font-family: var(--display-font); font-size: 24px; font-weight: 700; text-transform: uppercase; }
.sheet-item p { margin: 0; color: var(--yellow); font-weight: 800; }
.quantity-control { display: grid; grid-template-columns: 42px 34px 42px; align-items: center; align-self: center; text-align: center; }
.quantity-button { width: 42px; height: 42px; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font-size: 24px; cursor: pointer; }
.sheet-empty { padding: 48px 20px; text-align: center; }
.sheet-empty strong { font-family: var(--display-font); font-size: 29px; font-weight: 700; text-transform: uppercase; }
.sheet-empty p { max-width: 340px; margin: 10px auto 0; color: var(--muted); line-height: 1.5; }
.sheet-footer { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-top: 20px; }
.sheet-footer > span { color: var(--muted); text-transform: uppercase; }
.sheet-footer > strong { color: var(--yellow); font-family: var(--display-font); font-size: 34px; font-weight: 700; }
.sheet-footer p { grid-column: 1 / -1; margin: 4px 0 0; color: #888; font-size: 12px; line-height: 1.4; }
.clear-selection { grid-column: 1 / -1; justify-self: start; margin-top: 8px; min-height: 44px; padding: 8px 12px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.clear-selection:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.sheet-footer .storage-notice { color: var(--yellow); }
body.has-sheet { overflow: hidden; }

@media (max-width: 350px) {
  .product-info { padding-inline: 16px; }
  .product-bottom { gap: 8px; }
  .card-purchase-control { width: 126px; }
  .add-product { min-width: 0; padding-inline: 10px; font-size: 14px; }
  .card-quantity-control { grid-template-columns: 40px minmax(42px, 1fr) 40px; }
  .card-quantity-button { width: 40px; }
  .promo-content { padding-inline: 16px; }
  .promo-content h2 { font-size: 44px; }
  .promo-footer { gap: 10px; }
  .promo-footer strong { font-size: 32px; }
  .promo-continue { padding-inline: 12px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
