/* Sough public storefront — warm bread tones, iPhone-friendly */

:root {
  --bg: #f3e6d4;
  --bg-deep: #e8d4bc;
  --surface: #fff9f2;
  --foam: #fffdf8;
  --ink: #2a1810;
  --ink-soft: #6b4f3f;
  --ink-faint: #9a7d6a;
  --crust: #6b2e14;
  --caramel: #b85a24;
  --gold: #d4a056;
  --line: #e4d2ba;
  --line-strong: #d4bc9e;
  --venmo: #008cfe;
  --draft: #8a4b12;
  --draft-bg: #f8ead0;
  --shadow: 0 1px 2px rgba(42, 24, 16, 0.06), 0 8px 24px rgba(42, 24, 16, 0.08);
  --font-ui: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Palatino, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font-ui); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--crust); }
button, input, select, textarea { font-family: inherit; font-size: 16px; color: inherit; }
button { appearance: none; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, .wordmark { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-size: 28px; font-style: italic; color: var(--crust); text-decoration: none; line-height: 1; }
.header-meta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cart-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 48px; padding: 0 12px; border-radius: 14px;
  background: var(--crust); color: var(--foam); font-weight: 700; text-decoration: none;
}
.cart-link .badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--ink);
  font-size: 12px; line-height: 20px; text-align: center;
}

.wrap { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 64px; }
.hero { padding: 28px 0 12px; }
.hero h1 { font-size: clamp(32px, 8vw, 52px); line-height: 1.05; }
.hero p { color: var(--ink-soft); font-size: 18px; max-width: 36rem; margin: 10px 0 0; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }

.cat-label { margin: 28px 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card-product {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit;
}
.card-product .ph { aspect-ratio: 1; background: var(--bg-deep); }
.card-product .ph img { width: 100%; height: 100%; object-fit: cover; }
.card-product .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-product h2 { font-size: 20px; line-height: 1.2; }
.card-product .unit, .muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.price { font-weight: 700; color: var(--crust); font-variant-numeric: tabular-nums; }
.suggested { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--caramel); background: color-mix(in srgb, var(--gold) 28%, white); border-radius: 999px; padding: 2px 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 18px; border-radius: 14px;
  font-weight: 700; font-size: 16px; text-decoration: none; color: inherit;
}
.btn.primary { background: var(--crust); color: var(--foam); }
.btn.ghost { background: var(--foam); border: 1px solid var(--line-strong); }
.btn.venmo { background: var(--venmo); color: #fff; }
.btn.block { width: 100%; }
.btn.just-added { background: #2f6b45; }
.btn-row { display: flex; gap: 10px; margin-top: 12px; }
.btn-row .btn { flex: 1; }
.card-product .btn { margin-top: auto; width: 100%; }

.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 720px) { .product-hero { grid-template-columns: 1fr; } }
.product-hero .ph { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-deep); }
.crumb { font-size: 14px; color: var(--ink-soft); margin-bottom: 12px; }
.crumb a { color: inherit; }

.field { margin: 0 0 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--foam); outline: none;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--caramel); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; margin-bottom: 14px; }

.cart-row, .line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.cart-row img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--bg-deep); }
.cart-row .meta { flex: 1; }
.cart-row .amt, .line span:last-child { font-weight: 700; margin-left: auto; }
.stepper { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; font-size: 22px; color: var(--crust); }
.stepper span { min-width: 24px; text-align: center; font-weight: 700; }
.totals-box { margin: 12px 0 20px; padding-top: 10px; border-top: 2px solid var(--ink); }
.totals-box .row { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.totals-box .grand { font-family: var(--font-display); font-size: 22px; font-weight: 600; }

.invoice { background: var(--foam); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; box-shadow: var(--shadow); }
.invoice-brand { text-align: center; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-strong); }
.invoice-brand .wordmark { font-size: 40px; }
.invoice-num { text-align: center; font-size: 26px; margin: 8px 0 12px; }
.center { text-align: center; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--draft-bg); color: var(--draft); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px 0; padding: 16px; background: var(--foam); border: 1px solid var(--line); border-radius: 18px; }
.qr-box { width: 200px; height: 200px; padding: 8px; background: #fff; border-radius: 12px; }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--ink-soft); font-size: 15px; }
.draft-banner { background: var(--draft-bg); color: var(--draft); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.ph-caption { font-size: 13px; color: var(--ink-faint); margin-top: 8px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 16px 40px; color: var(--ink-soft); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 8px; padding: 0; }
.site-footer a { color: var(--ink-soft); }
.staff { opacity: 0.7; }

.empty-card { text-align: center; padding: 48px 16px; }
.empty-card h1 { margin-bottom: 8px; }
.empty-card p { color: var(--ink-soft); margin-bottom: 18px; }

.toast {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  background: #2a1810; color: #fffdf8; padding: 14px 16px; border-radius: 14px;
  font-weight: 600; text-align: center; box-shadow: var(--shadow);
}

.prose h1 { font-size: 36px; margin-bottom: 12px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }

@media print {
  .site-header, .site-footer, .btn, .btn-row, .notice, .qr-wrap { } /* keep QR for receipt */
  .site-header, .site-footer, .btn, .btn-row, .notice { display: none !important; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
