/* SMC theme — layout only; colors injected via --primary from dashboard */

#site-shell { visibility: hidden; }
body.dp-ready #site-shell { visibility: visible; }

:root {
  --radius: 0.75rem;
  --background: #1f1a1a;
  --foreground: #f7f4ef;
  --surface: #2a2222;
  --surface-elevated: #342a2a;
  --primary: #e11d2a;
  --primary-foreground: #ffffff;
  --primary-glow: #f03a46;
  --muted-foreground: #b7aea8;
  --border: #463a3a;
  --gradient-hero: radial-gradient(60% 80% at 70% 30%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 60%),
    linear-gradient(135deg, #171313 0%, #241c1c 100%);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-glow));
  --shadow-glow: 0 8px 20px -6px rgba(220, 38, 38, 0.4);
  --shadow-card: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --container: 80rem;
  --nav-h: 3.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.02em;
}

p { margin: 0; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-primary:hover { transform: scale(1.03); }

.btn-block { width: 100%; padding-top: 0.875rem; padding-bottom: 0.875rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--background) 80%, transparent);
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 90%, transparent);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--container);
  height: var(--nav-h);
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.nav-phone svg { color: var(--primary); flex-shrink: 0; }
.nav-phone:hover { color: var(--primary); }

.nav-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.nav-logo, .footer-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  object-fit: cover;
}

.footer-logo { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; }

.nav-name, .footer-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-cart {
  justify-self: end;
  position: relative;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
}

.cart-badge {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--background);
  color: var(--primary);
  font-size: 0.625rem;
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: transparent;
  min-height: 17.39rem;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.6rem 1.5rem;
  text-align: center;
}

.hero-title,
.hero-heading {
  font-family: "Bebas Neue", Anton, sans-serif !important;
  font-style: normal;
  font-weight: 400;
  font-size: 60px;
  line-height: 50px;
  color: lab(96.5347 0.282556 1.88143);
  letter-spacing: normal;
  text-wrap: balance;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-title .accent,
.hero-title span,
.hero-heading span {
  color: var(--accent);
}

.hero-subtitle {
  max-width: 100%;
  margin: 0.75rem auto 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 36rem;
  margin: 1.5rem auto 0;
  padding: 0.375rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}

.hero-search svg {
  margin-left: 0.75rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.5rem 0.25rem;
  outline: none;
  font-size: 0.875rem;
}

.hero-search input::placeholder { color: var(--muted-foreground); }

.hero-order-btn {
  flex-shrink: 0;
  padding: 0.625rem 1.25rem;
}

/* Sections */
.section-header {
  display: flex;
  align-items: end;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.25rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.popular-section h2.section-title,
.featured-section h2.section-title,
.category-menu-header h2.section-title {
  font-family: "Bebas Neue", Anton, sans-serif !important;
  font-style: normal;
  font-weight: 400;
  font-size: 36px;
  line-height: 40px;
  color: lab(96.5347 0.282556 1.88143);
  letter-spacing: normal;
}

.section-subtitle {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.section-line {
  display: none;
  flex: 1;
  height: 1px;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, var(--border), transparent);
}

.category-menu-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem 1.25rem;
}

.category-menu-group + .category-menu-group {
  margin-top: 0.5rem;
}

.category-menu-header {
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}

.category-menu-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
}

/* Categories */
.categories-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(10px);
}

.categories-scroll {
  display: flex;
  gap: 0.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cat-pill:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
  color: var(--foreground);
}

.cat-pill.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}

/* Dish grid */
.dish-grid {
  display: grid;
  gap: 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
  grid-template-columns: 1fr;
}

.dish-grid-4 { padding-bottom: 1rem; }

.popular-grid,
.featured-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 4px 24px 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.popular-grid::-webkit-scrollbar,
.featured-grid::-webkit-scrollbar {
  display: none;
}

.popular-grid .dish-card,
.featured-grid .dish-card {
  flex: 0 0 auto;
  width: 220px;
}

@media (max-width: 768px) {
  .section-header,
  .category-menu-section,
  .dish-grid,
  .categories-scroll,
  .nav-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .category-menu-grid {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 640px) {
  .dish-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .dish-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .dish-grid:not(.dish-grid-4) { grid-template-columns: repeat(3, 1fr); }
  .section-line { display: block; }
  .nav-inner { padding: 0 1.5rem; }
  .nav-phone { font-size: 0.875rem; }
  .nav-cart { font-size: 0.875rem; }
  .hero-content { padding: 3.65rem 1.5rem; }
  .hero-subtitle { font-size: 1rem; }
}

@media (min-width: 1280px) {
  .dish-grid:not(.dish-grid-4) { grid-template-columns: repeat(4, 1fr); }
}

/* Dish card */
.dish-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dish-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
  box-shadow: var(--shadow-glow);
}

.dish-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.dish-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  transition: transform 0.5s ease;
}

.dish-card:hover .dish-card-media img { transform: scale(1.1); }

.dish-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--background) 90%, transparent), transparent);
}

.dish-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-glow);
}

.dish-rating {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  background: color-mix(in srgb, var(--background) 80%, transparent);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.dish-rating svg { color: var(--primary); fill: var(--primary); }

.dish-card-content { padding: 1rem; }

.dish-card-title {
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dish-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.dish-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
}

.dish-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.dish-card-add {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.price-original {
  text-decoration: line-through;
  color: var(--muted-foreground);
  font-size: 13px;
  margin-right: 6px;
}

.price-sale {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

.sale-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

#view-cart-pill {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--foreground);
  padding: 12px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 999;
  transition: bottom 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

#view-cart-pill.show { bottom: 20px; }

#scroll-search-btn,
#scroll-top-btn {
  position: fixed;
  right: 20px;
  z-index: 999;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  background: var(--primary);
  color: var(--primary-foreground);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

#scroll-search-btn { bottom: 4.75rem; }
#scroll-top-btn { bottom: 20px; }

#scroll-search-btn.show,
#scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
}

#scroll-search-btn:hover,
#scroll-top-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.1);
}

#cart-added-toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 1000;
  transition: bottom 0.3s ease, opacity 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  white-space: nowrap;
}

#cart-added-toast.show { bottom: 80px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--background);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-name { font-size: 1.5rem; }

.footer-desc {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  white-space: pre-line;
}

.footer-heading {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-list svg { color: var(--primary); flex-shrink: 0; }

.footer-links a:hover { color: var(--primary); }

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: var(--surface);
  outline: none;
}

.newsletter-form input:focus { border-color: var(--primary); }

.footer-copy {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-copy-text {
  justify-self: start;
  text-align: left;
}

.footer-powered {
  grid-column: 2;
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.footer-powered a {
  font-weight: 700;
  color: var(--primary);
  transition: color 0.2s ease;
}

.footer-powered a:hover {
  color: var(--primary-glow);
}

@media (max-width: 640px) {
  .footer-copy {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-copy-text {
    justify-self: center;
    text-align: center;
  }

  .footer-powered {
    grid-column: 1;
  }
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Overlays */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.overlay[hidden] { display: none !important; }

/* Dish modal */
.dish-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dish-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 48rem;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow-glow);
  animation: float-up 0.45s ease-out both;
}

.dish-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.dish-modal-media {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
}

.dish-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish-modal-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  min-height: 0;
}

.dish-modal-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.dish-modal-footer .btn-primary { flex: 1; }

.dish-modal-title {
  font-size: 1.875rem;
  line-height: 1.15;
}

.dish-modal-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.dish-desc-toggle {
  margin-top: 0.375rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.dish-desc-toggle:hover { text-decoration: underline; }

.field { margin-top: 1.25rem; }

.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: var(--background);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.chip-extra {
  color: var(--muted-foreground);
  font-weight: 500;
}

.chip:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.chip.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--background));
  color: var(--foreground);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.chip.active .chip-extra {
  color: color-mix(in srgb, var(--foreground) 75%, var(--accent));
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.125rem;
  background: var(--background);
}

.qty-control-lg .qty-btn { width: 2.25rem; height: 2.25rem; }

.qty-btn {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.qty-btn:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--background));
  color: var(--accent);
}

.qty-value {
  width: 2rem;
  text-align: center;
  font-weight: 700;
}

@media (min-width: 769px) {
  .dish-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    max-height: calc(100vh - 2rem);
  }

  .dish-modal-media {
    grid-row: 1 / 3;
    min-height: 100%;
    aspect-ratio: auto;
    max-height: none;
  }

  .dish-modal-media img {
    min-height: 100%;
  }

  .dish-modal-scrollable {
    grid-column: 2;
    padding: 1.5rem;
  }

  .dish-modal-footer {
    grid-column: 2;
  }
}

@media (max-width: 768px) {
  .dish-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .dish-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    width: 100%;
    margin: 0;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    overflow: hidden;
    animation: none;
  }

  .dish-overlay.active .dish-modal {
    transform: translateY(0);
  }

  .dish-modal-media {
    flex-shrink: 0;
    width: 100%;
    height: 180px;
  }

  .dish-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .dish-modal-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 0;
  }

  .dish-modal-footer {
    flex-shrink: 0;
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
  }

  .dish-modal-title {
    font-size: 1.125rem;
  }

  .dish-modal-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .dish-modal-desc.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}

/* Cart drawer */
.cart-overlay {
  display: flex;
  justify-content: flex-end;
}

.cart-drawer {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 28rem;
  height: 100%;
  border-left: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-glow);
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.cart-header-main { flex: 1; min-width: 0; }

.cart-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-title { font-size: 1.5rem; }

.clear-cart-link {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.clear-cart-link:hover { color: var(--accent); }

.clear-cart-link[hidden] { display: none !important; }

.cart-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-items[hidden],
.cart-empty[hidden] {
  display: none !important;
}

.cart-empty {
  display: grid;
  place-items: center;
  min-height: 12rem;
  text-align: center;
  color: var(--muted-foreground);
}

.cart-empty svg { opacity: 0.3; margin-bottom: 0.75rem; }

.cart-line {
  display: flex;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.75rem;
  background: var(--background);
}

.cart-line-img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-elevated);
}

.cart-line-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.cart-line-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-line-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.cart-item-delete {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
}

.cart-item-delete:hover {
  color: var(--accent);
  background: rgba(220, 38, 38, 0.1);
}

.cart-line-meta {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted-foreground);
}

.cart-line-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.cart-line-bottom .qty-control {
  background: var(--surface);
}

.cart-line-bottom .qty-btn:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.cart-line-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.cart-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.summary-row span:last-child { color: var(--foreground); }

.summary-total {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.summary-total span:last-child {
  font-size: 1.25rem;
  color: var(--accent);
}

.summary-divider {
  height: 1px;
  margin: 0.5rem 0;
  background: var(--border);
}

/* Checkout */
.checkout-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: checkout-fade-in 0.25s ease-out both;
}

.checkout-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: var(--shadow-glow);
  animation: checkout-slide-up 0.35s ease-out both;
}

.checkout-form[hidden],
.checkout-success[hidden] {
  display: none !important;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.checkout-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.checkout-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.checkout-modal-footer {
  flex-shrink: 0;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.checkout-title {
  margin: 0;
  font-size: 1.5rem;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.checkout-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: var(--background);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.coupon-row {
  display: flex;
  gap: 0.5rem;
}

.coupon-row input {
  flex: 1;
  min-width: 0;
}

.btn-coupon {
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--accent) 12%, var(--background));
  color: var(--foreground);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-coupon:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 22%, var(--background));
  color: var(--accent);
}

.checkout-hint {
  margin: 0;
  font-size: 0.75rem;
}

.checkout-hint.is-success { color: color-mix(in srgb, var(--accent) 70%, white); }
.checkout-hint.is-error { color: #f87171; }

.checkout-summary {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--background);
}

.checkout-summary-title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.summary-discount span:last-child {
  color: color-mix(in srgb, var(--accent) 75%, white);
}

.btn-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 0.875rem;
  padding: 0.9375rem 1rem;
  background: var(--accent);
  color: var(--primary-foreground);
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.btn-checkout:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-checkout:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-checkout.is-loading {
  pointer-events: none;
}

.btn-checkout-outline {
  margin-top: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--background));
  color: var(--accent);
  text-decoration: none;
}

.btn-checkout-outline:hover {
  background: color-mix(in srgb, var(--accent) 20%, var(--background));
}

.btn-checkout-ghost {
  margin-top: 0.75rem;
  background: transparent;
  color: var(--muted-foreground);
  box-shadow: none;
}

.btn-checkout-ghost:hover {
  color: var(--foreground);
  transform: none;
  filter: none;
}

.checkout-success {
  padding: 1.5rem;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, var(--background));
  color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.checkout-success .checkout-title { margin-top: 1rem; }

.checkout-message {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.checkout-order-code {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--foreground);
}

.checkout-order-code strong {
  color: var(--accent);
  font-size: 1.125rem;
}

@keyframes checkout-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes checkout-slide-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .checkout-overlay {
    padding: 0;
    align-items: stretch;
  }

  .checkout-modal {
    max-width: none;
    max-height: none;
    min-height: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    animation: checkout-slide-in-right 0.3s ease-out both;
  }

  .checkout-form {
    min-height: 0;
  }
}

@keyframes checkout-slide-in-right {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 480px) {
  .nav-phone-text { display: inline; }
}

/* Track order page */
.nav-back-link {
  justify-self: end;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  text-decoration: none;
}

.track-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.track-lookup-card,
.track-result-card {
  max-width: 48rem;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  animation: checkout-slide-up 0.35s ease-out both;
}

.track-lookup-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.track-loading {
  display: grid;
  place-items: center;
  gap: 1rem;
  max-width: 36rem;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted-foreground);
}

.track-loading-pulse {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-top-color: var(--accent);
  animation: track-spin 0.9s linear infinite;
}

.track-page-title {
  margin: 0;
  font-family: "Bebas Neue", Anton, sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.1;
  color: lab(96.5347 0.282556 1.88143);
}

.track-page-subtitle {
  margin: 0.75rem 0 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.track-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.track-error {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: #f87171;
}

.track-result-card {
  padding: 1.5rem;
}

.track-pipeline-wrap {
  overflow-x: auto;
  margin: 0 -0.25rem;
  padding: 0.25rem;
  scrollbar-width: none;
}

.track-pipeline-wrap::-webkit-scrollbar { display: none; }

.track-pipeline-inner {
  display: flex;
  align-items: flex-start;
  min-width: max-content;
  padding: 0.5rem 0.25rem 0.25rem;
}

.track-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 4.75rem;
  flex-shrink: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.track-stage-node {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--background);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.track-stage-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.track-stage-check {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.track-stage-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.track-stage-line {
  width: 2rem;
  height: 2px;
  margin-top: 1.5rem;
  flex-shrink: 0;
  background: var(--border);
  transition: background 0.3s ease;
}

.track-stage--upcoming .track-stage-node {
  opacity: 0.45;
}

.track-stage--upcoming .track-stage-label {
  opacity: 0.55;
}

.track-stage--completed .track-stage-node {
  border-color: #22c55e;
  background: color-mix(in srgb, #22c55e 12%, var(--background));
}

.track-stage--completed .track-stage-label {
  color: #86efac;
}

.track-stage-line--completed {
  background: linear-gradient(90deg, #22c55e, color-mix(in srgb, var(--accent) 70%, #22c55e));
}

.track-stage--active .track-stage-node,
.track-stage--completed-active .track-stage-node {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--background));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 24px color-mix(in srgb, var(--accent) 30%, transparent);
  animation: track-stage-shimmer 2s ease-in-out infinite;
}

.track-stage--active .track-stage-label,
.track-stage--completed-active .track-stage-label {
  color: var(--accent);
}

.track-stage--cancelled .track-stage-node {
  border-color: #ef4444;
  background: color-mix(in srgb, #ef4444 14%, var(--background));
  box-shadow: 0 0 20px color-mix(in srgb, #ef4444 25%, transparent);
}

.track-stage--cancelled .track-stage-label {
  color: #fca5a5;
}

.track-status-message {
  margin: 1.25rem 0 0;
  padding: 0.875rem 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: 0.875rem;
  background: var(--background);
  font-size: 0.875rem;
  color: var(--foreground);
  text-align: center;
}

.track-order-head {
  margin-top: 1.5rem;
  text-align: center;
}

.track-result-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.track-order-code {
  margin: 0.375rem 0 0;
  font-family: "Bebas Neue", Anton, sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--accent);
}

.track-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: var(--background);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.track-detail-row strong {
  color: var(--foreground);
}

.track-section-title {
  margin: 1.25rem 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.track-items,
.track-summary {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  background: var(--background);
}

.track-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.625rem 0;
}

.track-item + .track-item {
  border-top: 1px solid var(--border);
}

.track-item-name {
  font-size: 0.875rem;
  font-weight: 700;
}

.track-item-meta {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.track-item-qty {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.track-item-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.track-live-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted-foreground);
}

.track-result .btn-checkout-ghost {
  margin-top: 1.25rem;
}

/* Stage icon animations */
.anim-pending { animation: anim-pending 2.4s ease-in-out infinite; }
.anim-preparing { animation: anim-preparing 0.55s ease-in-out infinite; }
.anim-ready { animation: anim-ready 1.1s ease-in-out infinite; }
.anim-on-the-way { animation: anim-on-the-way 1.2s ease-in-out infinite; }
.anim-delivered { animation: anim-delivered 0.6s ease-out both; }
.anim-cancelled { animation: anim-cancelled 0.45s ease-in-out infinite; }

@keyframes track-spin {
  to { transform: rotate(360deg); }
}

@keyframes track-stage-shimmer {
  0%, 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 16px color-mix(in srgb, var(--accent) 20%, transparent); }
  50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 28px color-mix(in srgb, var(--accent) 40%, transparent); }
}

@keyframes anim-pending {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}

@keyframes anim-preparing {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg) scale(1.05); }
}

@keyframes anim-ready {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes anim-on-the-way {
  0%, 100% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
}

@keyframes anim-delivered {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes anim-cancelled {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@media (min-width: 768px) {
  .track-page { padding-top: 3rem; }
  .track-pipeline-inner { min-width: 100%; justify-content: space-between; }
  .track-stage { width: auto; flex: 1; }
  .track-stage-line { flex: 1; width: auto; min-width: 1.5rem; }
}

@media (max-width: 640px) {
  .track-pipeline-inner {
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 479px) {
  .nav-phone-text-short { display: inline; }
}
