:root {
  --forest: #1f2a22;
  --forest-2: #2d3b30;
  --paper: #f6f1e7;
  --card: #fffdf8;
  --ink: #1d211e;
  --muted: #6b6f68;
  --line: #e3dccd;
  --amber: #c9772b;
  --amber-ink: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 34, .06), 0 6px 18px rgba(31, 42, 34, .08);
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
h1, h2, h3 { font-family: var(--display); letter-spacing: .02em; margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Header */
.hero {
  background: var(--forest);
  color: var(--paper);
  text-align: center;
  padding: calc(28px + env(safe-area-inset-top)) 16px 26px;
}
.hero-mark { width: 180px; height: auto; color: var(--paper); display: block; margin: 0 auto 6px; }
.hero h1 { font-size: clamp(40px, 12vw, 64px); font-weight: 700; text-transform: uppercase; line-height: 1; }
.tagline { margin: 10px 0 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }

/* Category nav */
.cats {
  position: sticky; top: 0; z-index: 10;
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 16px;
  background: rgba(246, 241, 231, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  font: 500 13px var(--display);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--forest); text-decoration: none;
  border: 1px solid var(--line);
  background: var(--card);
}
.cats a.active { background: var(--forest); color: var(--paper); border-color: var(--forest); }

/* Sections */
main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.section { padding-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 {
  font-size: 22px; text-transform: uppercase;
  background: var(--forest); color: var(--paper);
  padding: 4px 14px 5px; border-radius: 4px;
  clip-path: polygon(0 8%, 98% 0, 100% 90%, 2% 100%);
}
.section-note { color: var(--muted); font-size: 13px; margin: -4px 0 12px; font-style: italic; }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* Item card */
.item {
  display: flex; gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  align-items: stretch;
}
.item img {
  width: 96px; height: 96px; flex: none;
  object-fit: cover; border-radius: 10px; background: var(--line);
}
.item-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.item h3 { font-size: 17px; font-weight: 500; text-transform: uppercase; line-height: 1.2; }
.item .desc { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.item-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.price .from { font-weight: 400; color: var(--muted); font-size: 12px; margin-right: 2px; }

.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opt {
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 4px 10px; font-size: 12.5px;
}
.opt[aria-pressed="true"] { background: var(--forest); color: var(--paper); border-color: var(--forest); }

.add {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: 999px;
  background: var(--amber); color: var(--amber-ink);
  padding: 6px 14px; font-weight: 600; font-size: 13px;
}
.add:active { transform: scale(.96); }
.add.added { background: var(--forest); }

/* Shakes gallery */
.shakes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; max-width: 520px; }
.shakes img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }

/* Specials + footer */
.specials {
  max-width: 1040px; margin: 32px auto 0; padding: 22px 16px;
  text-align: center;
}
.specials h2 { font-size: 24px; text-transform: uppercase; color: var(--forest); }
.specials p { margin: 8px auto 0; max-width: 34ch; font-size: 16px; }
.foot {
  text-align: center; color: var(--muted); font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 16px; border-top: 1px solid var(--line); max-width: 1040px; margin: 0 auto;
}
.foot p { margin: 4px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; text-transform: none; letter-spacing: 0; }

/* Order button */
.order-fab {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 20;
  display: flex; align-items: center; gap: 10px;
  border: 0; border-radius: 999px;
  background: var(--forest); color: var(--paper);
  padding: 12px 20px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  font-weight: 600;
}
.badge { background: var(--amber); color: #fff; border-radius: 999px; min-width: 22px; padding: 1px 7px; font-size: 12px; text-align: center; }
.fab-total { font-variant-numeric: tabular-nums; opacity: .9; }

/* Order sheet */
.sheet {
  width: min(560px, 100%); max-height: 85vh;
  margin: auto auto 0; padding: 0;
  border: 0; border-radius: 18px 18px 0 0;
  background: var(--card); color: var(--ink);
  display: none; flex-direction: column;
}
.sheet[open] { display: flex; }
.sheet::backdrop { background: rgba(20, 26, 22, .5); }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 18px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 8px; }
.sheet-head h2 { font-size: 22px; text-transform: uppercase; }
.icon-btn { border: 0; background: transparent; font-size: 18px; padding: 6px 8px; }
.order-list { list-style: none; margin: 0; padding: 0 18px; overflow-y: auto; flex: 1; }
.order-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-list .name { flex: 1; min-width: 0; }
.order-list .name small { display: block; color: var(--muted); }
.order-list .line-price { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 64px; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { border: 0; background: transparent; width: 30px; height: 30px; font-size: 16px; }
.qty span { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); text-align: center; padding: 24px 0; border: 0 !important; display: block !important; }
.sheet-foot { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; font-size: 18px; }
.total-row strong { font-variant-numeric: tabular-nums; }
.sheet-actions { display: flex; gap: 10px; margin-top: 10px; }
.btn { flex: 1; border: 0; border-radius: 12px; padding: 12px; background: var(--forest); color: var(--paper); font-weight: 600; }
.btn.ghost { background: transparent; color: var(--forest); border: 1px solid var(--line); }

@media (min-width: 720px) {
  .item img { width: 120px; height: 120px; }
}
.order-fab[hidden] { display: none; }

/* Share */
.hero { position: relative; }
.share-btn {
  position: absolute; right: 12px; top: calc(12px + env(safe-area-inset-top));
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(246, 241, 231, .35); background: rgba(246, 241, 231, .08);
  color: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500;
}
.link-btn { border: 0; background: none; color: var(--amber); font: 600 12px var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.share-body { text-align: center; padding: 0 18px 16px; }
.share-body p { margin: 0 0 12px; }
.share-qr { width: min(260px, 70vw); height: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.share-url { font-weight: 600; color: var(--forest); margin-top: 10px !important; word-break: break-all; }
