/*
  Cuisine type: Soda costarricense / comida típica
  Palette: B (Campo / corn fields) - golden mustard #D4A22C + cream #F5EBDC + earth brown #8B4513
  Fonts: Merriweather (heading) + Inter (body)
  Mood: hogar, campo, cosecha, abuela, comfort, comida casera
  Style: Warm Minimal (B) - chosen vs typical terracotta restaurants
*/

:root {
  --color-primary: #D4A22C;
  --color-primary-dark: #B5871F;
  --color-secondary: #8B4513;
  --color-accent: #2D6A3B;
  --color-bg: #FBF7EE;
  --color-bg-card: #FFFFFF;
  --color-bg-alt: #F5EBDC;
  --color-bg-dark: #2B1810;
  --color-text: #2B1810;
  --color-text-muted: #7A6651;
  --color-border: #E8DBC2;
  --color-border-strong: #C9B894;
  --color-star: #E8A317;

  --shadow-card: 0 2px 8px rgba(43, 24, 16, 0.06), 0 1px 2px rgba(43, 24, 16, 0.04);
  --shadow-card-hover: 0 12px 32px rgba(43, 24, 16, 0.12), 0 4px 8px rgba(43, 24, 16, 0.06);
  --shadow-cta: 0 4px 14px rgba(212, 162, 44, 0.35), 0 1px 3px rgba(43, 24, 16, 0.1);

  --radius-card: 14px;
  --radius-btn: 999px;
  --radius-pill: 999px;

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

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

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

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(.22,.61,.36,1), transform 800ms cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ===== Decorative section bg ===== */
.bg-corn {
  background:
    radial-gradient(circle at 0% 0%, rgba(212, 162, 44, 0.08), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(139, 69, 19, 0.05), transparent 50%),
    var(--color-bg);
}
.bg-cream { background: var(--color-bg-alt); }
.bg-dark {
  background:
    radial-gradient(circle at 20% 30%, rgba(212, 162, 44, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 69, 19, 0.18), transparent 50%),
    var(--color-bg-dark);
  color: #F5EBDC;
}
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #FBF7EE; }
.bg-dark .text-muted { color: #C9B894; }

/* ===== Dot grid background ===== */
.bg-dots {
  background-image: radial-gradient(circle, rgba(139, 69, 19, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ===== Section divider (corn pattern) ===== */
.divider-corn {
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
  margin: 0 auto 24px;
}

/* ===== Button primary (Warm minimal Stripe-like, but with corn glow) ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #2B1810;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(43,24,16,0.15),
    0 4px 14px rgba(212, 162, 44, 0.35);
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(43,24,16,0.2),
    0 8px 22px rgba(212, 162, 44, 0.5);
}
.btn-primary:active { transform: translateY(0); }

/* ===== Button secondary (dark earth) ===== */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-bg-dark);
  color: #FBF7EE;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(43,24,16,0.3);
  transition: transform 200ms ease, background 200ms ease;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--color-secondary);
}

/* ===== Button ghost (text + underline) ===== */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 200ms ease, color 200ms ease;
}
.btn-ghost:hover {
  border-color: var(--color-secondary);
  color: var(--color-primary-dark);
}

/* ===== Card ===== */
.card-warm {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 280ms ease, border-color 280ms ease;
}
.card-warm:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-hover);
}

/* ===== Counter ===== */
.counter-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

/* ===== Hero text readability on photo ===== */
.hero-text {
  text-shadow: 0 2px 12px rgba(0,0,0,0.55), 0 4px 32px rgba(0,0,0,0.4);
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #FBF7EE;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 4px 36px rgba(0,0,0,0.45);
}
.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: #F5EBDC;
  font-weight: 400;
  line-height: 1.55;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: #FBF7EE;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background 250ms ease, border-color 250ms ease, padding 250ms ease, box-shadow 250ms ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(251, 247, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 12px rgba(43, 24, 16, 0.05);
  padding: 10px 0;
}
.site-header .nav-link {
  color: #FBF7EE;
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
  font-weight: 500;
  font-size: 15px;
  transition: color 200ms ease, text-shadow 200ms ease;
}
.site-header.scrolled .nav-link {
  color: var(--color-text);
  text-shadow: none;
}
.site-header .nav-link:hover {
  color: var(--color-primary);
}
.site-header.scrolled .nav-link:hover { color: var(--color-primary-dark); }
.site-header .brand-wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #FBF7EE;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  transition: color 200ms ease, text-shadow 200ms ease;
}
.site-header.scrolled .brand-wordmark {
  color: var(--color-text);
  text-shadow: none;
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(.22,.61,.36,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  padding: 16px 0;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  letter-spacing: -0.02em;
}
.mobile-nav-link:last-child { border-bottom: 0; }

/* ===== Sticky mobile CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 40;
  display: flex;
  gap: 8px;
}
@media (min-width: 768px) {
  .sticky-cta { display: none; }
}
.sticky-cta .btn-primary,
.sticky-cta .btn-secondary {
  flex: 1;
  padding: 14px 16px;
  font-size: 15px;
}

/* ===== Section title ===== */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 640px;
}

/* ===== Trust bar / stat row ===== */
.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 280ms ease, box-shadow 280ms ease, transform 280ms ease;
}
.stat-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 14px 30px rgba(212,162,44,0.18);
  transform: translateY(-3px);
}
.stat-label {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ===== Favorite dish card (used on index + menu) ===== */
.dish-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: box-shadow 280ms ease, border-color 280ms ease;
  position: relative;
}
.dish-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-hover);
}
.dish-card .dish-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}
.dish-card .dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.22,.61,.36,1);
}
.dish-card:hover .dish-img { transform: scale(1.06); }
.dish-card .dish-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(43, 24, 16, 0.85);
  color: #FBF7EE;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.dish-card .dish-badge.popular { background: var(--color-primary); color: var(--color-bg-dark); }
.dish-card .dish-body {
  padding: 18px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dish-card .dish-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  line-height: 1.25;
}
.dish-card .dish-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}
.dish-card .dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dish-card .dish-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-secondary);
}

/* ===== Cart slot (FIXED HEIGHT to prevent layout shift) ===== */
.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;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-bg-dark);
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 14px;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 2px 8px rgba(212,162,44,0.3);
}
.add-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,162,44,0.45);
}
.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: 38px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 18px;
  transition: background 180ms ease;
}
.qty-btn:hover { background: var(--color-primary); color: var(--color-bg-dark); }
.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  color: var(--color-text);
}

/* ===== Floating cart pill (menu page) ===== */
.floating-cart {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--color-bg-dark);
  color: #FBF7EE;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  box-shadow: 0 10px 30px rgba(43,24,16,0.35), 0 4px 10px rgba(43,24,16,0.2);
  cursor: pointer;
  transition: transform 280ms ease, box-shadow 280ms ease, opacity 280ms ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.floating-cart.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(43,24,16,0.45);
}
.floating-cart .cart-count {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  min-width: 26px;
  text-align: center;
}
@media (max-width: 480px) {
  .floating-cart {
    bottom: 14px;
    left: 14px;
    right: 14px;
    justify-content: space-between;
  }
}

/* ===== Category nav (sticky horizontal) ===== */
.cat-nav {
  position: sticky;
  top: 58px;
  z-index: 40;
  background: rgba(251, 247, 238, 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;
}
.cat-link {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.cat-link:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}
.cat-link.active {
  background: var(--color-bg-dark);
  color: #FBF7EE;
  border-color: var(--color-bg-dark);
}
@media (max-width: 640px) {
  .cat-nav-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 12px 16px;
  }
  .cat-nav-inner::-webkit-scrollbar { display: none; }
}

/* ===== Menu category section ===== */
.menu-category {
  padding: 56px 0 24px;
  scroll-margin-top: 130px;
}
.menu-category .cat-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.menu-category .cat-desc {
  color: var(--color-text-muted);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 540px;
}

/* ===== Review card ===== */
.review-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 280ms ease, border-color 280ms ease;
}
.review-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-hover);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border);
}
.review-meta { display: flex; flex-direction: column; gap: 2px; }
.review-author {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
}
.review-author:hover {
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}
.review-date {
  font-size: 12px;
  color: var(--color-text-muted);
}
.review-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-star);
  font-size: 14px;
  margin-top: 2px;
}
.review-text {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
  font-style: italic;
}

/* ===== Gallery (uniform grid) ===== */
.gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.gallery-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  display: block;
  background: var(--color-bg-alt);
  cursor: zoom-in;
}
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.22,.61,.36,1);
}
.gallery-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(43,24,16,0.45));
  opacity: 0;
  transition: opacity 280ms ease;
}
.gallery-cell:hover img { transform: scale(1.08); }
.gallery-cell:hover::after { opacity: 1; }

/* GLightbox fix - full screen images */
.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;
}

/* ===== Hours table ===== */
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 15px;
}
.hours-row:last-child { border-bottom: 0; }
.hours-row.today {
  background: var(--color-bg-alt);
  margin: 0 -12px;
  padding: 10px 12px;
  border-radius: 8px;
  border-bottom: 0;
  font-weight: 600;
}
.hours-row .day { color: var(--color-text-muted); }
.hours-row.today .day { color: var(--color-text); }
.hours-row .time { color: var(--color-text); font-weight: 600; }

/* ===== Footer ===== */
footer { background: var(--color-bg-dark); color: #C9B894; }
footer h3 { color: #FBF7EE; }
footer a:hover { color: var(--color-primary); }

/* ===== Mesa badge ===== */
.mesa-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-bg-dark);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(212, 162, 44, 0.35);
}

/* ===== Empty state ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  opacity: 0.4;
}

/* ===== Cart item ===== */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 18px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  align-items: center;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}
.cart-item:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card);
}
.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--color-bg-alt);
}
.cart-item .item-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.cart-item .item-meta {
  font-size: 13px;
  color: var(--color-text-muted);
}
.cart-item .item-subtotal {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 17px;
}
.cart-item .remove-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 18px;
  padding: 4px 8px;
  transition: color 180ms ease;
}
.cart-item .remove-btn:hover { color: #C73E1D; }
@media (max-width: 480px) {
  .cart-item { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; }
  .cart-item img { width: 64px; height: 64px; grid-row: 1 / 3; }
  .cart-item .item-subtotal { grid-column: 2; }
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 24, 16, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-content {
  background: var(--color-bg-card);
  border-radius: 18px;
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  transform: scale(0.92) translateY(20px);
  transition: transform 320ms cubic-bezier(.22,.61,.36,1);
  box-shadow: 0 30px 80px rgba(43,24,16,0.4);
}
.modal-backdrop.open .modal-content { transform: scale(1) translateY(0); }
.modal-content h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 8px;
}
.modal-content p { color: var(--color-text-muted); font-size: 14px; margin-bottom: 24px; }
.modal-content #qr-canvas-wrap {
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  display: inline-block;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
}
.modal-close {
  background: var(--color-bg-alt);
  border: 0;
  border-radius: 999px;
  padding: 10px 28px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 14px;
  transition: background 200ms ease;
}
.modal-close:hover { background: var(--color-border); }

/* ===== Decorative leaf SVG accent (corn / harvest motif) ===== */
.leaf-accent {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
}

/* ===== Author credit ===== */
.credit-link {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 200ms ease;
}
.credit-link:hover {
  color: #FBF7EE;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Misc / utilities ===== */
.container-x { padding-left: 24px; padding-right: 24px; }
@media (min-width: 768px) { .container-x { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 1280px) { .container-x { padding-left: 60px; padding-right: 60px; } }
.container-max { max-width: 1240px; margin-left: auto; margin-right: auto; }

/* Print for order.html */
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .order-receipt { box-shadow: none; border: 0; }
}
