:root {
  color-scheme: dark;
  --bg: #101722;
  --bg-2: #121d2b;
  --card: #172232;
  --card-2: #1d2a3c;
  --text: #f6efe2;
  --muted: #b7aa96;
  --accent: #d7b46a;
  --accent-2: #f0d99b;
  --line: rgba(255, 255, 255, .12);
  --danger: #ff6b6b;
  --ok: #92d889;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1d2a3c 0, var(--bg) 48%, #0c111a 100%);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 18px 14px 96px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  margin: -18px -14px 14px;
  padding: 14px;
  background: rgba(16, 23, 34, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  letter-spacing: .08em;
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
}

.badge {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.nav button,
.chip {
  min-height: 38px;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 750;
  font-size: 13px;
}

.nav button.active,
.chip.active {
  background: var(--accent);
  color: #16110a;
  border-color: transparent;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(215, 180, 106, .16), rgba(255, 255, 255, .03)), var(--card);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .25);
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 6px;
  font-size: 30px;
  line-height: 1.05;
}

h2 {
  font-size: 22px;
  margin: 6px 0 12px;
}

h3 {
  font-size: 17px;
}

.sub {
  color: var(--muted);
  line-height: 1.42;
  margin-top: 10px;
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 12px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)), var(--card);
  padding: 14px;
}

.card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(215, 180, 106, .15);
  font-size: 24px;
  flex: 0 0 auto;
}

.name {
  font-size: 17px;
  font-weight: 850;
  line-height: 1.15;
}

.desc,
.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.32;
  margin-top: 4px;
}

.price {
  color: var(--accent-2);
  font-weight: 900;
  white-space: nowrap;
}

.controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.qty-btn {
  width: 42px;
  height: 38px;
  border-radius: 14px;
  color: var(--text);
  background: #26364d;
  font-weight: 950;
  font-size: 20px;
}

.qty {
  min-width: 30px;
  text-align: center;
  font-weight: 950;
}

.primary,
.secondary,
.danger {
  width: 100%;
  min-height: 48px;
  border-radius: 18px;
  font-weight: 900;
  margin-top: 12px;
}

.primary {
  background: var(--accent);
  color: #171109;
}

.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.danger {
  background: rgba(255, 107, 107, .12);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 107, .25);
}

.inline-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  padding: 13px 12px;
  outline: none;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(215, 180, 106, .65);
}

.picker-field {
  display: grid;
  gap: 8px;
}

.date-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.date-option,
.slot-option,
.empty-picker {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.date-option {
  min-height: 94px;
  border-radius: 18px;
  padding: 10px 8px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
}

.date-option.active,
.slot-option.active {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #171109;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(215, 180, 106, .18);
}

.date-weekday,
.date-month,
.date-badge {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.date-weekday,
.date-month {
  color: var(--muted);
  text-transform: uppercase;
}

.date-option.active .date-weekday,
.date-option.active .date-month,
.date-option.active .date-badge {
  color: rgba(23, 17, 9, .72);
}

.date-day {
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
}

.date-badge {
  min-height: 15px;
  margin-top: 3px;
}

.slot-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.slot-option {
  min-height: 44px;
  border-radius: 16px;
  padding: 0 10px;
  font-weight: 850;
  font-size: 14px;
}

.empty-picker {
  border-radius: 16px;
  padding: 13px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.notice {
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  line-height: 1.35;
  font-size: 13px;
}

.error {
  color: var(--danger);
  border-color: rgba(255, 107, 107, .25);
  background: rgba(255, 107, 107, .1);
}

.ok {
  color: var(--ok);
}

.footer-cart {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(16, 23, 34, .94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.footer-total {
  color: var(--muted);
  font-size: 13px;
}

.footer-total strong {
  color: var(--text);
  display: block;
  font-size: 15px;
}

.footer-inner button {
  border-radius: 16px;
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: #171109;
  font-weight: 900;
}

.hidden { display: none !important; }

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
