/* ==========================================================================
   FORNO — shared design system
   Wood-fired pizza & pasta kitchen. Charcoal, rust, cream, olive palette.
   Fraunces (display) + Plus Jakarta Sans (body). Apple-fluid motion layer.
   ========================================================================== */

:root {
  --charcoal: #211B17;
  --charcoal-2: #2E2621;
  --charcoal-3: #3A3029;
  --cream: #F7F1E6;
  --cream-dim: #EFE6D3;
  --paper: #FFFCF6;
  --rust: #B9542F;
  --rust-deep: #8F3F22;
  --rust-soft: #F0DCCB;
  --olive: #6B7754;
  --gold: #C89B4A;
  --ink: #211B17;
  --muted: #6B6259;
  --line: #E4D9C4;

  /* motion */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-press: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-instant: 120ms;
  --dur-fast: 220ms;
  --dur-base: 420ms;
  --dur-slow: 700ms;

  /* shadows — soft, warm-tinted, never harsh black */
  --shadow-xs: 0 1px 2px rgba(139, 90, 58, 0.05);
  --shadow-sm: 0 1px 1px rgba(139, 90, 58, 0.04), 0 18px 34px -24px rgba(89, 58, 36, 0.24);
  --shadow-md: 0 1px 1px rgba(139, 90, 58, 0.05), 0 28px 50px -26px rgba(89, 58, 36, 0.30);
  --shadow-lg: 0 1px 1px rgba(139, 90, 58, 0.06), 0 40px 70px -28px rgba(89, 58, 36, 0.36);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: hidden; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.display {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
}
.italic { font-style: italic; }

a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.icon { width: 24px; height: 24px; display: block; }
.icon-sm { width: 18px; height: 18px; display: block; }
.icon-md { width: 30px; height: 30px; display: block; }
.icon-lg { width: 40px; height: 40px; display: block; }
.icon-xl { width: 56px; height: 56px; display: block; }

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--charcoal); color: var(--cream);
  padding: 12px 22px; font-size: 13px; font-weight: 700;
  z-index: 400; border-radius: 4px;
  transition: left var(--dur-fast) var(--ease-out);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- NAV — translucent floating island ---------- */
nav {
  position: sticky;
  top: 14px;
  z-index: 200;
  max-width: 1180px;
  width: calc(100% - 32px);
  margin: 14px auto 26px;
  background: rgba(247, 241, 230, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(180, 148, 104, 0.22);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) ease;
  will-change: transform;
}
nav.nav-hidden { transform: translateY(-140%); }
nav.nav-scrolled {
  background: rgba(247, 241, 230, 0.88);
  box-shadow: var(--shadow-md);
}
.nav-inner {
  padding: 10px 12px 10px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo .mark { color: var(--rust); transition: transform var(--dur-fast) var(--ease-spring); }
.nav-logo:hover .mark { transform: scale(1.1) rotate(-4deg); }
.nav-logo .word { font-family: 'Fraunces', serif; font-weight: 600; font-style: italic; font-size: 24px; color: var(--charcoal); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav-links a { position: relative; padding-bottom: 3px; transition: color var(--dur-fast) var(--ease-out); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--rust); border-radius: 2px; transition: right var(--dur-fast) var(--ease-out); }
.nav-links a:hover, .nav-links a.current { color: var(--charcoal); }
.nav-links a:hover::after, .nav-links a.current::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  background: var(--charcoal); color: var(--cream);
  padding: 10px 10px 10px 20px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  border-radius: 999px; display: inline-flex; align-items: center; gap: 10px;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-press);
}
.nav-cta:hover { background: var(--rust); }
.nav-cta:active { transform: scale(0.96); }
.cart-link { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; transition: background var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-press); }
.cart-link:hover { background: rgba(185, 84, 47, 0.1); }
.cart-link:active { transform: scale(0.92); }
.cart-link .icon { color: var(--charcoal); }
.cart-badge {
  position: absolute; top: -1px; right: -1px;
  background: var(--rust); color: var(--cream);
  font-size: 10.5px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  border: 2px solid var(--cream);
  transition: transform var(--dur-fast) var(--ease-spring);
}
.cart-link.cart-pop { animation: cartPop 0.6s var(--ease-spring); }
@keyframes cartPop {
  0% { transform: scale(1) rotate(0); }
  32% { transform: scale(1.22) rotate(-8deg); }
  58% { transform: scale(0.94) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}
.cart-badge.badge-pop { animation: badgePop 0.45s var(--ease-spring); }
@keyframes badgePop {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.nav-mobile-hide { display: flex; }
@media (max-width: 860px) { .nav-mobile-hide { display: none; } }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px; margin-left: 2px;
  background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; flex-shrink: 0;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-press);
  position: relative; z-index: 201;
}
.nav-toggle:active { transform: scale(0.9); }
.nav-toggle span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--charcoal); transition: transform 0.45s var(--ease-spring), opacity 0.25s var(--ease-out); }
.nav-toggle[aria-expanded="true"] { border-color: var(--rust); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) { .nav-toggle { display: flex; } }

.nav-mobile-panel {
  max-height: 0; overflow: hidden; background: var(--cream);
  transition: max-height 0.3s var(--ease-out);
}
.nav-mobile-panel.open { max-height: 320px; border-bottom: 1px solid var(--line); }
.nav-mobile-panel a { display: block; padding: 15px 40px; font-size: 14px; font-weight: 500; color: var(--muted); border-top: 1px solid var(--line); }
.nav-mobile-panel a:hover, .nav-mobile-panel a:focus-visible { color: var(--rust); }

@media (min-width: 861px) { .nav-mobile-panel { display: none; } }

@media (max-width: 860px) {
  .nav-mobile-panel {
    position: fixed; inset: 0; z-index: 190;
    max-height: none; overflow: visible;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    background: rgba(33, 27, 23, 0.92);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border-bottom: none;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
  }
  .nav-mobile-panel.open {
    max-height: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity 0.4s var(--ease-out), visibility 0s linear 0s;
  }
  .nav-mobile-panel a {
    border-top: none; text-align: center; padding: 14px 0;
    font-family: 'Fraunces', serif; font-style: italic; font-weight: 600; font-size: clamp(26px, 7vw, 34px);
    color: var(--cream); min-height: 44px;
    opacity: 0; transform: translateY(18px) scale(0.97);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out), color 0.2s ease;
  }
  .nav-mobile-panel a:hover, .nav-mobile-panel a:focus-visible { color: var(--gold); }
  .nav-mobile-panel.open a { opacity: 1; transform: translateY(0) scale(1); }
  .nav-mobile-panel.open a:nth-child(1) { transition-delay: 0.10s; }
  .nav-mobile-panel.open a:nth-child(2) { transition-delay: 0.16s; }
  .nav-mobile-panel.open a:nth-child(3) { transition-delay: 0.22s; }
  .nav-mobile-panel.open a:nth-child(4) { transition-delay: 0.28s; }
  .nav-mobile-panel.open a:nth-child(5) { transition-delay: 0.34s; }
}

/* ---------- BUTTONS ---------- */
.btn {
  padding: 16px 30px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; cursor: pointer; border: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              transform var(--dur-instant) var(--ease-press), box-shadow var(--dur-fast) var(--ease-out);
  position: relative;
}
.btn .icon-sm { width: 16px; height: 16px; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--rust); color: var(--cream); box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--rust-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-primary:active { transform: translateY(0) scale(0.96); }
.btn-dark { background: var(--charcoal); color: var(--cream); box-shadow: var(--shadow-xs); }
.btn-dark:hover { background: var(--charcoal-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-dark:active { transform: translateY(0) scale(0.96); }
.btn-outline { background: transparent; color: var(--charcoal); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--rust); color: var(--rust-deep); background: rgba(185, 84, 47, 0.04); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none !important; }
.btn-block { width: 100%; justify-content: center; }

/* button-in-button icon wrapper */
.btn-icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: rgba(247, 241, 230, 0.2);
  transition: transform 0.5s var(--ease-spring), background var(--dur-fast) var(--ease-out);
}
.btn-icon-circle svg { width: 13px; height: 13px; }
.btn-primary .btn-icon-circle, .btn-dark .btn-icon-circle { background: rgba(255, 255, 255, 0.16); }
.btn-outline .btn-icon-circle { background: rgba(33, 27, 23, 0.06); }
.btn:hover .btn-icon-circle { transform: translate(3px, -3px) scale(1.08); }
.btn:disabled .btn-icon-circle { opacity: 0; }

/* ---------- SECTION SHARED ---------- */
.page-hero { padding-top: 108px; padding-bottom: 60px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rust-deep); background: var(--rust-soft); padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
  border: 1px solid rgba(185, 84, 47, 0.12);
}
.page-hero h1.display { font-size: clamp(38px, 5.2vw, 62px); font-weight: 600; line-height: 1.06; color: var(--charcoal); letter-spacing: -0.025em; }
.page-hero p.lead { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 56ch; }

section { padding: 128px 0; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rust-deep); background: var(--rust-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  border: 1px solid rgba(185, 84, 47, 0.12);
}
.section-head h2.display { font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; max-width: 18ch; color: var(--charcoal); line-height: 1.1; letter-spacing: -0.02em; }
.section-head p { margin-top: 14px; color: var(--muted); max-width: 54ch; font-size: 16px; }
.section-head.center { text-align: center; margin: 0 auto; }
.section-head.center h2, .section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- CARDS — double-bezel nested architecture ---------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-fast) ease;
}
.card::before {
  content: "";
  position: absolute; inset: 7px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(185, 84, 47, 0.22); }

/* ---------- FORMS ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
  padding: 13px 15px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; color: var(--ink);
  outline: none; min-height: 46px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rust); box-shadow: 0 0 0 4px rgba(185, 84, 47, 0.1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { display: none; margin-top: 4px; font-size: 13.5px; }
.form-status.success { color: #3E7A4C; }
.form-status.error { color: #B14848; }
.form-legal { font-size: 12px; color: var(--muted); }
.form-legal a { text-decoration: underline; }
.form-legal a:hover { color: var(--rust); }

/* ---------- FOOTER ---------- */
footer { background: var(--charcoal); color: #C9C1B6; padding: 76px 0 34px; }
.footer-top-row { display: flex; justify-content: space-between; gap: 50px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .nav-logo .word { color: var(--cream); }
.footer-brand p { margin-top: 14px; font-size: 14px; color: #A79E90; }
.footer-links { display: flex; gap: 50px; flex-wrap: wrap; }
.footer-col h5 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: #8A8073; margin-bottom: 14px; }
.footer-col a, .footer-col div { display: block; font-size: 14px; color: #C9C1B6; margin-bottom: 10px; transition: color var(--dur-fast) var(--ease-out); }
.footer-col a:hover { color: var(--gold); }
.footer-newsletter { max-width: 280px; }
.footer-newsletter form { display: flex; gap: 8px; margin-top: 14px; }
.footer-newsletter input[type="email"] {
  flex: 1; min-width: 0; padding: 12px 13px; border-radius: 10px; border: 1px solid #4A4038;
  background: var(--charcoal-2); color: var(--cream); font-size: 13.5px; outline: none;
  min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.footer-newsletter input[type="email"]:focus { border-color: var(--gold); }
.footer-newsletter button {
  background: var(--rust); color: var(--cream); border: none; border-radius: 10px;
  padding: 0 18px; font-size: 13px; font-weight: 700; cursor: pointer; flex-shrink: 0; min-height: 44px;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-press);
}
.footer-newsletter button:hover { background: var(--rust-deep); }
.footer-newsletter button:active { transform: scale(0.94); }
.footer-bottom {
  margin-top: 54px; padding-top: 26px; border-top: 1px solid #3A3029;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #8A8073;
}
.footer-bottom a { font-weight: 600; color: #C9C1B6; cursor: pointer; transition: color var(--dur-fast) var(--ease-out); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 560px; margin: 0 auto;
  background: var(--charcoal); color: var(--cream); padding: 24px 26px; border-radius: 20px;
  box-shadow: var(--shadow-lg); z-index: 150; display: none;
  border: 1px solid rgba(200, 155, 74, 0.3);
  opacity: 0; transform: translateY(16px) scale(0.98);
}
.cookie-banner.visible { display: block; animation: cookieIn 0.6s var(--ease-spring) forwards; }
@keyframes cookieIn { to { opacity: 1; transform: translateY(0) scale(1); } }
.cookie-banner p { font-size: 13.5px; color: #C9C1B6; line-height: 1.6; }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-btn { padding: 12px 22px; font-size: 12.5px; font-weight: 700; border-radius: 999px; cursor: pointer; border: 1px solid transparent; min-height: 44px; transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-press); }
.cookie-btn-accept { background: var(--rust); color: var(--cream); }
.cookie-btn-reject { background: transparent; color: var(--cream); border-color: rgba(247, 241, 230, 0.3); }
.cookie-btn:hover { opacity: 0.9; }
.cookie-btn:active { transform: scale(0.95); }

/* ---------- REVEAL (IntersectionObserver-driven scroll entrance) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(7px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
  will-change: opacity, transform, filter;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
/* gentle stagger for sibling groups (grids, lists) */
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 90ms; }
.reveal:nth-child(3) { transition-delay: 180ms; }
.reveal:nth-child(4) { transition-delay: 270ms; }
.reveal:nth-child(5) { transition-delay: 360ms; }
.reveal:nth-child(6) { transition-delay: 450ms; }

/* ---------- MENU / QTY STEPPER ---------- */
.menu-category { margin-top: 64px; }
.menu-category:first-child { margin-top: 0; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.cat-head .icon-md { color: var(--rust); }
.cat-head h2.display { font-size: 23px; font-weight: 600; color: var(--charcoal); letter-spacing: -0.01em; }
.menu-list { display: flex; flex-direction: column; gap: 14px; }
.menu-item { display: flex; align-items: center; gap: 20px; padding: 22px 24px; }
.mi-icon { width: 52px; height: 52px; border-radius: 13px; background: var(--rust-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform var(--dur-base) var(--ease-spring); }
.menu-item:hover .mi-icon { transform: scale(1.08) rotate(-3deg); }
.mi-icon .icon-lg { color: var(--rust-deep); width: 30px; height: 30px; }
.mi-body { flex: 1; min-width: 0; }
.mi-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mi-head h3.display { font-size: 17.5px; font-weight: 600; }
.mi-price { font-family: 'Fraunces', serif; font-weight: 600; color: var(--rust-deep); font-size: 15px; white-space: nowrap; }
.mi-body p { margin-top: 5px; font-size: 13.5px; color: var(--muted); }
.mi-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.qty-stepper { display: flex; align-items: center; gap: 2px; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; }
.qty-btn { width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--charcoal); transition: background var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-press); }
.qty-btn:hover { background: var(--rust-soft); }
.qty-btn:active { transform: scale(0.86); }
.qty-btn .icon-sm { width: 14px; height: 14px; }
.qty-val { width: 22px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.add-btn { white-space: nowrap; padding: 12px 18px 12px 20px; font-size: 12.5px; }
.add-btn.added { background: var(--olive); animation: addPulse 0.5s var(--ease-spring); }
.add-btn.added .btn-icon-circle { background: rgba(255, 255, 255, 0.22); }
@keyframes addPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@media (max-width: 620px) {
  .menu-item { flex-wrap: wrap; }
  .mi-actions { width: 100%; justify-content: space-between; }
}

/* ---------- BASKET / CHECKOUT ---------- */
.basket-grid { display: grid; grid-template-columns: 1fr 380px; gap: 50px; align-items: start; }
.basket-list { display: flex; flex-direction: column; gap: 14px; }
.basket-item {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  animation: basketItemIn 0.55s var(--ease-spring) both;
}
@keyframes basketItemIn {
  0% { opacity: 0; transform: translateX(18px) scale(0.97); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
.bi-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 16px; }
.bi-unit { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.bi-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.bi-total { font-family: 'Fraunces', serif; font-weight: 600; color: var(--rust-deep); min-width: 62px; text-align: right; }
.remove-btn { background: none; border: none; cursor: pointer; color: var(--muted); display: flex; padding: 8px; border-radius: 50%; transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-press); }
.remove-btn:hover { color: #B14848; background: rgba(177, 72, 72, 0.08); }
.remove-btn:active { transform: scale(0.88); }
.remove-btn .icon-sm { width: 18px; height: 18px; }
.basket-empty { text-align: center; padding: 90px 20px; }
.basket-empty .icon-xl { color: var(--line); margin: 0 auto 20px; }
.basket-empty p { color: var(--muted); margin-top: 10px; }

.summary-card { padding: 30px; position: sticky; top: 108px; }
.summary-card h3.display { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--muted); padding: 10px 0; }
.summary-row.total { border-top: 1.5px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 17px; font-weight: 700; color: var(--charcoal); }
.summary-row.total span:last-child { font-family: 'Fraunces', serif; color: var(--rust-deep); }

.fulfillment-toggle { display: flex; gap: 10px; margin: 18px 0; }
.fulfill-option {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; text-align: center;
  min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), transform var(--dur-instant) var(--ease-press);
}
.fulfill-option:active { transform: scale(0.97); }
.fulfill-option input { position: absolute; opacity: 0; pointer-events: none; }
.fulfill-option .icon-md { color: var(--muted); transition: color var(--dur-fast) var(--ease-out); }
.fulfill-option span { font-size: 13px; font-weight: 600; }
.fulfill-option.active { border-color: var(--rust); background: var(--rust-soft); }
.fulfill-option.active .icon-md { color: var(--rust-deep); }
.delivery-fields {
  display: flex; flex-direction: column; gap: 14px; margin-top: 4px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.45s var(--ease-out), opacity 0.35s var(--ease-out), margin 0.45s var(--ease-out);
}
.delivery-fields.open { max-height: 600px; opacity: 1; margin-top: 4px; }
.pickup-note { font-size: 13px; color: var(--muted); background: var(--cream-dim); border-radius: 12px; padding: 15px 16px; margin-top: 4px; }

.card-field { position: relative; display: flex; align-items: center; }
.card-field .icon-sm { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.card-field input { padding-left: 42px; }
.mini-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); padding: 6px 0; }
.mini-line .ml-name { color: var(--ink); }
.mini-divider { border-top: 1px solid var(--line); margin: 10px 0; }
.pay-btn-amount { font-family: 'Fraunces', serif; }
.spinner {
  width: 15px; height: 15px; 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); } }

/* ---------- CONFIRMATION ---------- */
.confirm-hero { text-align: center; padding: 76px 0 10px; }
.confirm-check { width: 92px; height: 92px; color: var(--olive); margin: 0 auto 22px; }
.confirm-check circle, .confirm-check path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawCheck 1.1s var(--ease-out) forwards; }
.confirm-check path { animation-delay: 0.5s; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .confirm-check circle, .confirm-check path { animation: none; stroke-dashoffset: 0; }
}
.order-number { font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; color: var(--rust-deep); margin-top: 12px; }
.confirm-recap { max-width: 540px; margin: 48px auto 0; text-align: left; }

/* ---------- LOCATION ---------- */
.location-map { width: 100%; border-radius: 20px; border: 1px solid var(--line); display: block; box-shadow: var(--shadow-sm); }
.loc-info-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.loc-info-card { padding: 26px; }
.loc-info-card .icon-md { color: var(--rust); margin-bottom: 12px; }
.loc-info-card h4.display { font-size: 16px; font-weight: 600; }
.loc-info-card p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.getting-here-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.gh-item { display: flex; gap: 14px; }
.gh-item .icon-md { color: var(--rust-deep); flex-shrink: 0; }
.gh-item h5.display { font-size: 15px; font-weight: 600; }
.gh-item p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }

@media (max-width: 900px) {
  .loc-info-grid { grid-template-columns: 1fr; }
  .getting-here-grid { grid-template-columns: 1fr; }
}

/* ---------- TEAM ---------- */
.team-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; }
.team-card { padding: 36px; display: flex; gap: 24px; align-items: flex-start; }
.team-card .avatar-lg { width: 104px; height: 104px; border-radius: 50%; flex-shrink: 0; box-shadow: var(--shadow-xs); }
.team-card .t-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px; color: var(--charcoal); letter-spacing: -0.01em; }
.team-card .t-role { font-size: 12.5px; color: var(--rust-deep); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; }
.team-card p.bio { margin-top: 12px; font-size: 14px; color: var(--muted); }
.t-fave { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--charcoal); background: var(--rust-soft); padding: 6px 12px; border-radius: 999px; font-weight: 600; }

@media (max-width: 760px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- PRIVACY POLICY ---------- */
.policy-layout { display: grid; grid-template-columns: 240px 1fr; gap: 60px; align-items: start; }
.policy-toc { position: sticky; top: 108px; padding: 24px; }
.policy-toc h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 12px; }
.policy-toc a { display: block; font-size: 13.5px; color: var(--muted); padding: 7px 0; border-left: 2px solid transparent; padding-left: 12px; margin-left: -12px; transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.policy-toc a:hover { color: var(--rust-deep); border-left-color: var(--rust); }
.policy-section { padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 108px; }
.policy-section:last-child { border-bottom: 1px solid var(--line); }
.policy-section h2.display { font-size: 21px; font-weight: 600; margin-bottom: 10px; color: var(--charcoal); }
.policy-section h3.display { font-size: 16px; font-weight: 600; margin: 16px 0 6px; color: var(--charcoal); }
.policy-section p { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 70ch; }
.policy-section ul { margin-top: 10px; padding-left: 20px; color: var(--muted); font-size: 15px; }
.policy-section li { margin-top: 6px; }
.policy-section li strong { color: var(--ink); }
table.policy-table { margin-top: 16px; width: 100%; border-collapse: collapse; font-size: 13px; }
table.policy-table th, table.policy-table td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); color: var(--muted); vertical-align: top; }
table.policy-table th { background: var(--paper); color: var(--charcoal); font-family: 'Fraunces', serif; font-weight: 600; font-size: 12px; }

@media (max-width: 900px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; padding: 0; margin-bottom: 20px; }
  .policy-toc .toc-list { display: flex; flex-wrap: wrap; gap: 4px 16px; }
}

/* ---------- DEMO NOTICE ---------- */
.demo-notice {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--rust-soft); border: 1px solid var(--gold); border-radius: 14px;
  padding: 15px 18px; font-size: 13px; color: var(--rust-deep); margin-bottom: 24px;
}
.demo-notice .icon-sm { flex-shrink: 0; margin-top: 1px; }
.demo-notice strong { color: var(--charcoal); }

/* ---------- TOASTS (add-to-basket confirmation) ---------- */
.toast-stack {
  position: fixed; top: 92px; right: 20px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--charcoal); color: var(--cream);
  padding: 14px 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(200, 155, 74, 0.28);
  opacity: 0; transform: translateY(-14px) scale(0.9);
  transition: opacity 0.55s var(--ease-spring), transform 0.55s var(--ease-spring);
}
.toast.toast-in { opacity: 1; transform: translateY(0) scale(1); }
.toast.toast-out { opacity: 0; transform: translateY(-10px) scale(0.95); transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
.toast .toast-icon { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
@media (max-width: 620px) {
  .toast-stack { left: 16px; right: 16px; top: auto; bottom: 100px; align-items: stretch; }
  .toast { justify-content: center; white-space: normal; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .field-row { grid-template-columns: 1fr; }
  .basket-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
@media (max-width: 520px) {
  .basket-item { flex-wrap: wrap; }
  .bi-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 620px) {
  section { padding: 76px 0 64px; }
  .wrap { padding: 0 24px; }
  .nav-inner { padding: 8px 8px 8px 20px; }
  nav { width: calc(100% - 24px); margin: 12px auto 20px; }
  .page-hero { padding-top: 76px; padding-bottom: 44px; }
  .qty-btn { width: 44px; height: 44px; }
  .remove-btn { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  nav.nav-hidden { transform: translateY(0); }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .card:hover, .btn-primary:hover, .btn-dark:hover, .menu-item:hover .mi-icon { transform: none !important; }
}

:focus-visible { outline: 2.5px solid var(--rust); outline-offset: 3px; border-radius: 4px; }

/* ---------- BACK TO TOP FAB ---------- */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-spring), background var(--dur-fast) var(--ease-out);
  z-index: 140;
}
.back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { background: var(--rust); color: var(--cream); transform: translateY(-3px) scale(1.05); }
.back-to-top:active { transform: translateY(0) scale(0.92); }
.back-to-top svg { width: 20px; height: 20px; }
