/* ============================================
   SONDER: Brand tokens (Minimal Boutique)
   ============================================ */
:root {
  --ink: #23271f;
  --green: #2f4a3c;
  --green-deep: #1c2e24;
  --beige: #f6f2e9;
  --beige-card: #fbf8f1;
  --beige-line: #ddd5c2;
  --gold: #a9822f;
  --gold-deep: #8a6a24;
  --white: #fffdf8;

  --font-display: "Cormorant", Georgia, serif;
  --font-logo: "Bodoni Moda", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 2px;
  --max-width: 1080px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); margin: 0 0 0.4em; font-weight: 400; color: var(--ink); letter-spacing: 0.005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--beige);
  border-bottom: 1px solid var(--beige-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { display: block; text-decoration: none; }
.logo img { height: 64px; width: auto; }
nav.main-nav { display: flex; gap: 40px; }
nav.main-nav a {
  text-decoration: none; font-weight: 400; font-size: 0.82rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  padding: 4px 0; border-bottom: 1px solid transparent;
}
nav.main-nav a:hover { border-bottom-color: var(--green); color: var(--green); }
nav.main-nav a[aria-current="page"] { color: var(--green-deep); border-bottom-color: var(--gold); }
.cart-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--green); color: var(--white); font-size: 0.68rem; font-weight: 600; }
.nav-toggle { display: none; }

@media (max-width: 640px) {
  nav.main-nav { position: fixed; inset: 66px 0 0 0; background: var(--beige); flex-direction: column; align-items: center; justify-content: center; gap: 36px; font-size: 1rem; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: 0.2s ease; }
  nav.main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: block; background: none; border: none; font-size: 1.5rem; color: var(--ink); cursor: pointer; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 0 5px; border-radius: 0; border: none; border-bottom: 1px solid var(--ink);
  background: none; font-family: var(--font-body); font-weight: 400; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: opacity 0.15s ease, border-color 0.15s ease;
}
.btn-primary { border-color: var(--green); color: var(--ink); }
.btn-primary:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-gold { border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { color: var(--gold-deep); }
.btn-outline { border-color: var(--beige-line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

/* Solid variant, used only where clarity of action matters (checkout / payment) */
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 2px; border: 1px solid var(--green);
  background: var(--green); color: var(--white); font-family: var(--font-body);
  font-weight: 500; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: background 0.15s ease, opacity 0.15s ease;
}
.btn-solid:hover { background: var(--green-deep); }
.btn:disabled, .btn-solid:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 80px; text-align: center; }
.hero-eyebrow { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.85rem; color: var(--green); margin-bottom: 46px; display: block; }
.hero-rule { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto 30px; }
.hero-rule span { width: 5px; height: 5px; border-radius: 50%; background: var(--green); display: inline-block; }
.hero-rule span.gold { background: var(--gold); }
.hero-actions { display: flex; gap: 34px; margin-top: 8px; justify-content: center; flex-wrap: wrap; }
.hero-sub { max-width: 480px; margin: 0 auto 42px; font-size: 1rem; line-height: 2; color: #5c5c54; }

.dict-word { font-style: italic; font-weight: 500; margin-bottom: 6px; }
.dict-pos { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--green); margin: 0 0 18px; font-weight: 500; }
.dict-def { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--ink); max-width: 460px; margin: 0 auto 8px; line-height: 1.5; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-alt { background: var(--beige); border-top: 1px solid var(--beige-line); }
.eyebrow { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.78rem; color: var(--green); }

/* ---------- Cards / grid (frames, not filled) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 40px; }
@media (max-width: 780px) { .grid-3 { grid-template-columns: 1fr; gap: 40px; } }
.card {
  background: transparent; border: none; border-top: 1px solid var(--beige-line);
  padding: 26px 0 0; border-radius: 0; box-shadow: none;
}
.card h3 { font-size: 1.2rem; }

/* ---------- Dish card ---------- */
.dish-card { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; background: transparent; border: none; border-radius: 0; overflow: visible; box-shadow: none; }
.dish-photo { aspect-ratio: 4/5; overflow: hidden; background: var(--beige-card); border: 1px solid var(--beige-line); position: relative; }
.dish-photo::before { content: ""; position: absolute; inset: 16px; border: 1px solid var(--green); opacity: 0.35; pointer-events: none; z-index: 1; }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; }
.dish-info { padding: 0; }
.dish-price { font-family: var(--font-display); font-size: 2rem; color: var(--green-deep); font-weight: 500; margin: 4px 0 18px; }
.dish-meta { display: flex; gap: 18px; margin: 0 0 22px; font-size: 0.85rem; color: var(--green); flex-wrap: wrap; letter-spacing: 0.02em; }
.dish-meta span { display: flex; align-items: center; gap: 6px; }
.badge { display: inline-block; padding: 4px 0; border-radius: 0; font-family: var(--font-display); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1px solid currentColor; margin-bottom: 18px; }
.badge-instock { color: var(--green); }
.badge-lowstock { color: var(--gold-deep); }
.badge-soldout { color: #8a3b3b; }

@media (max-width: 780px) {
  .dish-card { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; color: var(--green); font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 11px 4px; border-radius: 0; border: none; border-bottom: 1px solid var(--beige-line);
  background: transparent; font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--gold); }
textarea { resize: vertical; min-height: 80px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Order summary ---------- */
.order-summary { background: var(--beige-card); border: 1px solid var(--beige-line); border-radius: 0; padding: 30px; position: sticky; top: 96px; }
.order-summary h3 { font-size: 1.15rem; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--beige-line); font-size: 0.92rem; }
.summary-row.total { border-bottom: none; font-weight: 500; font-size: 1.15rem; color: var(--ink); padding-top: 16px; font-family: var(--font-display); }
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } .order-summary { position: static; } }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--green-deep); color: var(--beige); padding: 50px 0; margin-top: 60px; }
footer.site-footer a { text-decoration: none; opacity: 0.8; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
footer.site-footer a:hover { opacity: 1; color: var(--gold); }
footer.site-footer span { font-size: 0.85rem; opacity: 0.75; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.muted { color: #5c5c54; }
.mt-lg { margin-top: 44px; }
.notice { padding: 14px 0; border-bottom: 1px solid currentColor; font-size: 0.9rem; }
.notice-error { color: #8a3b3b; }
.notice-success { color: var(--green); }
.hidden { display: none !important; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   MOBILE CART BAR
   ============================================================ */

.mobile-cart-bar {
  display: none;
}

@media (max-width: 700px) {

  .mobile-cart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));

    background: var(--green);
    color: white;

    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);

    transform: translateY(110%);
    transition: transform 0.25s ease;
  }

  .mobile-cart-bar.visible {
    transform: translateY(0);
  }

  .mobile-cart-summary {
    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
  }

  .mobile-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 11px 16px;

    background: white;
    color: var(--green);

    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    white-space: nowrap;
  }

  .mobile-cart-button span {
    font-size: 16px;
    line-height: 1;
  }

  /* Give the page a little breathing room above the fixed bar */
  body {
    padding-bottom: 70px;
  }
}
