/*
  Cuisine type: Costa Rican soda / comida casera típica
  Palette: Forest Highland - deep forest green + warm mustard/ochre + cream
  Fonts: Lora (heading) + Inter (body)
  Mood: hogar, tradición, naturaleza, montaña, abuela
*/

:root {
  --color-primary: #2C4A2B;
  --color-primary-dark: #1E3620;
  --color-primary-light: #4A6B4A;
  --color-accent: #D4A574;
  --color-accent-dark: #B88A54;
  --color-bg: #FAF6EC;
  --color-bg-alt: #F0E9D6;
  --color-bg-card: #FFFFFF;
  --color-text: #2A1E16;
  --color-text-muted: #6B5D4F;
  --color-border: #E5DFC8;
  --color-overlay: rgba(30, 54, 32, 0.65);

  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --shadow-card: 0 1px 2px rgba(42, 30, 22, 0.04), 0 4px 12px rgba(42, 30, 22, 0.06);
  --shadow-card-hover: 0 2px 4px rgba(42, 30, 22, 0.06), 0 12px 28px rgba(42, 30, 22, 0.12);
  --shadow-btn: 0 2px 6px rgba(44, 74, 43, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- Utility: gradient text ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent) 0%, #E5BE8C 60%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero-text {
  text-shadow: 0 2px 10px rgba(0,0,0,0.45), 0 8px 30px rgba(0,0,0,0.25);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30,54,32,0.35) 0%, rgba(30,54,32,0.55) 50%, rgba(10,20,10,0.88) 100%),
    linear-gradient(90deg, rgba(30,54,32,0.4) 0%, rgba(30,54,32,0.05) 50%, rgba(30,54,32,0.4) 100%);
  z-index: 1;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.9  0 0 0 0 0.8  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 16px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  box-shadow: 0 2px 8px rgba(180, 138, 84, 0.3);
}
.btn-primary:hover {
  background: #E5BE8C;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(180, 138, 84, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  color: #FAF6EC;
  font-weight: 500;
  font-size: 16px;
  border: 1.5px solid rgba(250, 246, 236, 0.5);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-secondary:hover {
  background: rgba(250, 246, 236, 0.1);
  border-color: rgba(250, 246, 236, 0.9);
  transform: translateY(-2px);
}

.btn-solid-green {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--color-primary);
  color: #FAF6EC;
  font-weight: 600;
  font-size: 16px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  box-shadow: var(--shadow-btn);
}
.btn-solid-green:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 74, 43, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

/* Transparent state (over hero): tint backdrop for navigation contrast */
.site-header:not(.scrolled):not(.header-solid)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}
.site-header:not(.scrolled):not(.header-solid) {
  background: transparent;
}
.site-header:not(.scrolled):not(.header-solid) nav a {
  font-weight: 600;
}

.site-header.scrolled {
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

/* Switch text to dark colors when header has light background */
.site-header.scrolled .wordmark,
.site-header.scrolled nav a,
.site-header.scrolled #menu-toggle {
  color: var(--color-text) !important;
  text-shadow: none !important;
}
.site-header.scrolled nav a:hover {
  color: var(--color-primary) !important;
}
/* CTA pill inside scrolled header keeps its own primary styling (already dark bg) */

/* Dark header variant (menu.html, cart.html - no hero below) */
.site-header.header-solid {
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 600;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  display: inline-block;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

.container {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-accent);
}

/* Dark sections (primary bg) - eyebrow inverted */
.section-dark .eyebrow {
  color: var(--color-accent);
}
.section-dark .eyebrow::before {
  background: var(--color-accent);
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .3s ease;
  border: 1px solid var(--color-border);
}
.card:hover { box-shadow: var(--shadow-card-hover); }

.card-img-wrap {
  overflow: hidden;
  position: relative;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.card:hover .card-img-wrap img { transform: scale(1.05); }

/* ---------- Review card ---------- */
.review-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--color-border);
  transition: box-shadow .3s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.review-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-accent);
}

/* ---------- Fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Dot pattern bg ---------- */
.dot-pattern-bg {
  background-image: radial-gradient(circle, rgba(44, 74, 43, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-alt);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .3s ease;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(30,54,32,0.4) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .zoom-icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(250, 246, 236, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all .3s ease;
  pointer-events: none;
  z-index: 2;
  color: var(--color-primary);
}
.gallery-item:hover .zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-primary-dark);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .3s ease, transform .3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 32px;
  color: #FAF6EC;
  font-style: italic;
  transition: color .2s ease;
}
.mobile-menu a:hover { color: var(--color-accent); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 40;
  display: flex;
  gap: 8px;
  background: var(--color-primary-dark);
  padding: 8px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform .4s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.sticky-cta.visible { transform: translateX(-50%) translateY(0); }
.sticky-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  color: #FAF6EC;
  font-weight: 500;
  font-size: 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.sticky-cta a.primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 600;
}
@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

/* ==========================================================
   MENU PAGE STYLES
   ========================================================== */
.menu-hero {
  position: relative;
  padding: 80px 0 60px;
  background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  overflow: hidden;
  color: #FAF6EC;
}
.menu-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(212, 165, 116, 0.18) 0%, transparent 50%);
  pointer-events: none;
}
.menu-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.08;
  pointer-events: none;
}

.table-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Category nav */
.cat-nav {
  position: sticky;
  top: 58px;
  z-index: 30;
  background: rgba(250, 246, 236, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.cat-nav-inner {
  display: flex;
  gap: 8px;
  padding: 14px 0;
  flex-wrap: wrap;
  overflow: visible;
}
@media (max-width: 640px) {
  .cat-nav-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 12px 0;
  }
  .cat-nav-inner::-webkit-scrollbar { display: none; }
}
.cat-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
}
.cat-btn:hover { color: var(--color-text); border-color: var(--color-primary); }
.cat-btn.active {
  background: var(--color-primary);
  color: #FAF6EC;
  border-color: var(--color-primary);
}

/* Menu item card */
.dish-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .3s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.dish-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-accent);
}
.dish-card .img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.dish-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.dish-card:hover img { transform: scale(1.05); }

.dish-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}
.dish-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
}
.dish-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
  min-height: 42px;
}
.dish-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
}
.dish-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.cart-slot {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}
.add-btn {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  background: var(--color-primary);
  color: #FAF6EC;
  font-weight: 600;
  font-size: 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
}
.add-btn:hover { background: var(--color-primary-dark); }
.add-btn:active { transform: scale(0.97); }

.qty-controls {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--color-bg-alt);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.qty-btn {
  width: 36px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 600;
  transition: background-color .15s ease;
}
.qty-btn:hover { background: rgba(44, 74, 43, 0.1); }
.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  color: var(--color-text);
  font-size: 15px;
}

.dish-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.dish-badge.new { background: var(--color-primary); color: #FAF6EC; }

/* Floating cart button */
.floating-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 45;
  display: none;
  padding: 14px 22px;
  background: var(--color-primary);
  color: #FAF6EC;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(44, 74, 43, 0.4);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  gap: 10px;
  align-items: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.floating-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(44, 74, 43, 0.5);
}
.floating-cart.visible { display: inline-flex; }
.floating-cart .count {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  padding: 0 6px;
}

@media (max-width: 480px) {
  .floating-cart {
    bottom: 14px;
    right: 14px;
    left: 14px;
    justify-content: center;
  }
}

/* ==========================================================
   CART PAGE
   ========================================================== */
.cart-item-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  align-items: center;
}
.cart-item-row:first-child { border-top: 0; }

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--color-bg-alt);
}
.cart-item-info { display: flex; flex-direction: column; gap: 4px; }
.cart-item-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}
.cart-item-price {
  font-size: 14px;
  color: var(--color-text-muted);
}
.cart-item-subtotal {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 4px;
}
.cart-item-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.remove-btn {
  background: transparent;
  border: 0;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: color .2s ease, background-color .2s ease;
}
.remove-btn:hover {
  color: #C14242;
  background: rgba(193, 66, 66, 0.08);
}

@media (max-width: 540px) {
  .cart-item-row {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }
  .cart-item-img { width: 64px; height: 64px; }
  .cart-item-controls {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
  }
}

/* QR Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 54, 32, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .25s ease;
}
.modal-backdrop.open {
  display: flex;
  opacity: 1;
}
.modal-card {
  background: #FAF6EC;
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  transform: scale(0.95);
  transition: transform .25s ease;
  position: relative;
}
.modal-backdrop.open .modal-card { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  color: var(--color-text-muted);
  transition: background-color .2s ease;
}
.modal-close:hover { background: rgba(0,0,0,0.05); }

#qr-canvas {
  margin: 24px auto 20px;
  border: 8px solid #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

/* ==========================================================
   ORDER PAGE (Waiter)
   ========================================================== */
.order-page {
  background: #FAF6EC;
  min-height: 100vh;
  padding: 48px 24px;
}

.order-receipt {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 36px 36px;
  box-shadow: 0 6px 40px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
}

.order-receipt-head {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.order-receipt-head .brand {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.order-receipt-head .sub {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
}

.order-table-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.order-table-mesa {
  background: var(--color-primary);
  color: #FAF6EC;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
}
.order-datetime {
  font-size: 14px;
  color: var(--color-text-muted);
}

.order-items { margin: 0; padding: 0; }
.order-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  padding: 16px 0;
  align-items: baseline;
}
.order-item:not(:first-child) { border-top: 1px dashed var(--color-border); }

.order-item .qty {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 36px;
}
.order-item .name {
  font-size: 16px;
  color: var(--color-text);
  font-weight: 500;
}
.order-item .price {
  font-size: 16px;
  color: var(--color-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.order-total {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px solid var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.order-total .label {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.order-total .amount {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.order-print-btn {
  margin: 28px auto 0;
  display: block;
}

@media print {
  .order-page { background: #fff; padding: 0; }
  .order-receipt { box-shadow: none; border: 0; }
  .order-print-btn, .noprint { display: none !important; }
}

/* ==========================================================
   Gallery lightbox overrides
   ========================================================== */
.glightbox-clean .gslide-media {
  max-width: 90vw !important;
  max-height: 90vh !important;
}
.glightbox-clean .gslide-image img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  width: auto;
  height: auto;
}
