:root {
  color-scheme: dark;
  --ink: #edf5f4;
  --muted: #9eb1b4;
  --night: #07171b;
  --night-2: #0d252a;
  --panel: rgba(13, 37, 42, 0.9);
  --line: rgba(169, 198, 199, 0.18);
  --gold: #e6b94f;
  --gold-2: #ffdc76;
  --green: #87bf8b;
  --orange: #ed9a51;
  --purple: #b28bd7;
  --red: #ef7777;
  --radius: 14px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 0%, rgba(40, 116, 111, 0.22), transparent 34rem),
    linear-gradient(180deg, #061216 0%, var(--night) 55%, #091c20 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.site-shell { width: min(1440px, calc(100% - 32px)); margin: 0 auto; }
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 18, 22, 0.9);
  backdrop-filter: blur(18px);
}
.masthead-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand-copy strong { display: block; letter-spacing: -0.03em; font-size: 18px; }
.brand-copy span { color: var(--muted); font-size: 12px; }
.step-meter { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 13px; }
.step-meter span { min-width: 82px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; text-align: center; }
.step-meter span.active { color: #1f1b0e; background: var(--gold); border-color: var(--gold); font-weight: 800; }

.hero { padding: 44px 0 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.hero h1 { margin: 0; max-width: 820px; font-size: clamp(38px, 6vw, 80px); line-height: 0.92; letter-spacing: -0.055em; }
.hero p { margin: 18px 0 0; max-width: 690px; color: var(--muted); font-size: 17px; }
.private-note { padding: 12px 14px; border-left: 3px solid var(--gold); background: rgba(230, 185, 79, 0.08); color: var(--gold-2); }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.setup { display: grid; grid-template-columns: minmax(0, 1fr) 320px; overflow: hidden; }
.setup-main { padding: 30px; }
.setup-side { padding: 30px; background: linear-gradient(155deg, rgba(230,185,79,0.14), rgba(22,61,60,0.32)); border-left: 1px solid var(--line); }
.setup h2, .menu-heading h2, .review h2 { margin: 0 0 8px; font-size: clamp(27px, 4vw, 44px); letter-spacing: -0.04em; }
.setup-side h3 { margin: 0 0 16px; font-size: 20px; }
.setup-side p { color: var(--muted); }
.setup-side strong { color: var(--ink); }

.form-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 13px; font-weight: 700; }
.field input, .field textarea, .toolbar input, .toolbar select {
  width: 100%;
  border: 1px solid #476168;
  border-radius: 10px;
  background: #071b20;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}
.field input:focus, .field textarea:focus, .toolbar input:focus, .toolbar select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230,185,79,0.15); }
.field input[readonly] { color: #c2d1d2; background: #10272c; }
.field textarea { min-height: 96px; resize: vertical; }
.error { min-height: 22px; color: #ff9c9c; font-size: 13px; }

.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.button { min-height: 46px; border-radius: 10px; border: 1px solid var(--line); padding: 0 18px; color: var(--ink); background: #16383c; font-weight: 800; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button.primary { color: #1f1b0e; background: var(--gold); border-color: var(--gold); }
.button.ghost { background: transparent; }
.button.danger { background: #5a2024; }
.button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.menu { padding: 28px 0 120px; }
.menu-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.menu-heading p { margin: 0; color: var(--muted); }
.save-state { color: var(--muted); font-size: 13px; min-width: 150px; text-align: right; }
.toolbar { position: sticky; top: 76px; z-index: 15; padding: 12px; display: grid; grid-template-columns: 1fr 220px; gap: 10px; margin-bottom: 18px; background: rgba(10, 31, 36, 0.96); }

.menu-section { margin-top: 24px; overflow: hidden; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: #113a40; border-bottom: 1px solid var(--line); }
.section-title h3 { margin: 0; font-size: 24px; letter-spacing: -0.025em; }
.section-title strong { color: var(--gold-2); font-size: 20px; font-variant-numeric: tabular-nums; }
.product-head, .product-row { display: grid; grid-template-columns: minmax(230px, 2fr) 118px 90px 100px minmax(250px, 1.3fr) 110px; align-items: center; gap: 12px; }
.product-head { padding: 10px 18px; color: var(--muted); font-size: 12px; font-weight: 800; }
.product-row { padding: 12px 18px; border-top: 1px solid var(--line); }
.product-row:nth-child(even) { background: rgba(255,255,255,0.018); }
.product-name { min-width: 0; }
.product-name strong { display: block; overflow-wrap: anywhere; }
.product-name small { display: block; margin-top: 3px; color: var(--muted); }
.type { font-weight: 800; }
.type-sativa { color: var(--green); }
.type-hybrid { color: var(--orange); }
.type-indica { color: var(--purple); }
.type-unverified { color: var(--muted); }
.stock-low { color: var(--red); font-weight: 800; }
.stock-in { color: #b8cbce; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(72px, 1fr)); gap: 7px; }
.qty { min-height: 52px; border: 1px solid rgba(230,185,79,0.5); background: rgba(230,185,79,0.1); border-radius: 9px; padding: 5px; display: grid; grid-template-columns: 1fr 50px; gap: 4px; align-items: center; }
.qty label { font-size: 11px; color: var(--gold-2); }
.qty label span { display: block; color: var(--muted); font-size: 10px; }
.qty input { width: 50px; min-height: 36px; border: 1px solid #a7822d; border-radius: 7px; background: #fff3bf; color: #3b2c08; text-align: center; font-weight: 900; }
.qty.unavailable { display: flex; justify-content: center; color: #71878b; background: #14282d; border-color: #243d43; }
.line-total { text-align: right; font-weight: 900; color: #cfe6ce; font-variant-numeric: tabular-nums; }
.no-results { padding: 24px; color: var(--muted); text-align: center; }

.order-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-top: 1px solid rgba(230,185,79,0.35); background: rgba(6,18,22,0.96); backdrop-filter: blur(16px); }
.order-bar-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.order-total small { color: var(--muted); display: block; }
.order-total strong { display: block; font-size: 28px; color: var(--gold-2); line-height: 1; font-variant-numeric: tabular-nums; }

.review { padding: 30px; margin-bottom: 130px; }
.review-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.review-meta div { padding: 14px; background: #102a2f; border-radius: 10px; }
.review-meta small { display: block; color: var(--muted); }
.review-list { display: grid; gap: 8px; }
.review-item { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-total { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 18px; font-size: 26px; border-top: 2px solid var(--gold); }
.fine-print { color: var(--muted); font-size: 13px; }
.confirmation { padding: 38px; text-align: center; margin-bottom: 80px; }
.confirmation .number { display: inline-block; margin: 14px 0; padding: 12px 16px; border: 1px solid var(--gold); border-radius: 10px; color: var(--gold-2); font-size: 22px; font-weight: 900; }

[hidden] { display: none !important; }
.skeleton { min-height: 420px; margin-bottom: 30px; background: linear-gradient(100deg, #10272c 20%, #16363b 40%, #10272c 60%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: shimmer 1.4s infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
  .private-note { justify-self: start; }
  .setup { grid-template-columns: 1fr; }
  .setup-side { border-left: 0; border-top: 1px solid var(--line); }
  .product-head { display: none; }
  .product-row { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .product-name { grid-column: 1 / -1; }
  .sizes { grid-column: 1 / -1; }
  .line-total { grid-column: 2; }
}

@media (max-width: 680px) {
  .site-shell { width: min(100% - 22px, 1440px); }
  .masthead-inner { min-height: 66px; }
  .brand img { width: 44px; height: 44px; }
  .brand-copy span { display: none; }
  .step-meter span { min-width: 0; width: 29px; height: 29px; padding: 5px 0; overflow: hidden; color: transparent; }
  .step-meter span::first-letter { color: var(--muted); }
  .step-meter span.active::first-letter { color: #1f1b0e; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 44px; }
  .setup-main, .setup-side, .review { padding: 21px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .toolbar { top: 66px; grid-template-columns: 1fr; }
  .menu-heading { align-items: start; flex-direction: column; }
  .save-state { text-align: left; }
  .product-row { grid-template-columns: 1fr 1fr; padding: 15px; }
  .sizes { grid-template-columns: 1fr; }
  .qty { grid-template-columns: 1fr 64px; }
  .qty input { width: 64px; }
  .order-bar-inner { min-height: 78px; }
  .order-total strong { font-size: 23px; }
  .order-bar .button { padding-inline: 13px; }
  .review-meta { grid-template-columns: 1fr; }
  .review-item { grid-template-columns: 1fr auto; }
  .review-item span:nth-child(2) { grid-column: 1; }
  .actions { flex-wrap: wrap; }
  .actions .button { flex: 1; }
}

@media print {
  body { background: white; color: #111; }
  .masthead, .hero, .order-bar, .review .actions, .fine-print { display: none !important; }
  .site-shell { width: 100%; }
  .panel, .review { border: 0; box-shadow: none; background: white; }
}
.single-column { grid-template-columns: 1fr; }
