/* ============ Apple Of My Eye — Sweet Treats ============ */
:root {
  --cream: #f6ece0;
  --cream-2: #efe2cf;
  --paper: #fbf6ee;
  --ink: #2a1810;
  --ink-soft: #5a3f30;
  --apple: #b8392d;
  --apple-deep: #8c2418;
  --caramel: #c08454;
  --leaf: #4f6b3e;
  --gold: #d6a64a;
  --line: rgba(42, 24, 16, 0.14);
  --shadow-sm: 0 1px 2px rgba(42, 24, 16, 0.06), 0 2px 8px rgba(42, 24, 16, 0.04);
  --shadow-md: 0 6px 24px rgba(42, 24, 16, 0.10), 0 2px 8px rgba(42, 24, 16, 0.06);
  --shadow-lg: 0 24px 60px rgba(42, 24, 16, 0.18), 0 8px 20px rgba(42, 24, 16, 0.08);
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Geist", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.09 0 0 0 0 0.06 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.uppercase { text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; font-weight: 500; }

/* ============ Layout ============ */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
section { position: relative; z-index: 2; }

/* ============ Top strip ============ */
.topstrip {
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  padding: 8px 0;
  position: relative; z-index: 5;
}
.topstrip .inner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
}
.topstrip .marquee { display: flex; gap: 28px; align-items: center; opacity: 0.85; }
.topstrip .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(251, 246, 238, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(251, 246, 238, 0.94); }
.nav .inner {
  max-width: 1240px; margin: 0 auto; padding: 18px 32px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--apple);
  display: grid; place-items: center;
  color: var(--cream);
  box-shadow: inset 0 -6px 12px rgba(0,0,0,0.18), 0 2px 4px rgba(42,24,16,0.18);
  position: relative;
}
.brand-mark::before { /* leaf */
  content: ""; position: absolute; top: -3px; right: 6px;
  width: 12px; height: 8px; background: var(--leaf);
  border-radius: 0 100% 0 100%; transform: rotate(-30deg);
}
.brand-mark::after { /* stem */
  content: ""; position: absolute; top: -4px; left: 50%; width: 2px; height: 6px; background: #4a2a1c; border-radius: 1px;
}
.brand-mark.has-logo {
  background: transparent;
  box-shadow: none;
  width: 88px; height: 88px;
  overflow: hidden;
  border-radius: 12px;
}
.brand-mark.has-logo::before,
.brand-mark.has-logo::after { content: none; }
.brand-mark.has-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.brand-text { line-height: 1.05; }
.brand-text .name { font-family: var(--serif); font-size: 22px; }
.brand-text .sub { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }

.navlinks { display: flex; justify-content: center; gap: 36px; font-size: 14px; }
.navlinks a { position: relative; padding: 6px 0; color: var(--ink-soft); transition: color 0.2s; }
.navlinks a:hover { color: var(--ink); }
.navlinks a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 1px;
  background: var(--apple); transition: width 0.25s, left 0.25s;
}
.navlinks a:hover::after { width: 100%; left: 0; }

.navright { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.iconbtn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  transition: background 0.2s, transform 0.15s;
  position: relative;
}
.iconbtn:hover { background: var(--cream); }
.iconbtn:active { transform: scale(0.95); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--apple); color: var(--cream);
  border-radius: 9px; font-size: 10px; font-weight: 600;
  display: grid; place-items: center;
  border: 2px solid var(--paper);
}
.cart-badge[hidden] { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: var(--ink); color: var(--cream);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: #3a241a; }
.btn:active { transform: translateY(0); }
.btn.apple { background: var(--apple); color: var(--cream); }
.btn.apple:hover { background: var(--apple-deep); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--cream); }
.btn.lg { padding: 16px 30px; font-size: 15px; }

/* ============ Hero ============ */
.hero { padding: 56px 0 80px; position: relative; }
.hero .grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.4);
}
.eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--leaf);
  box-shadow: 0 0 0 0 rgba(79,107,62,0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79,107,62,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(79,107,62,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,107,62,0); }
}

h1.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 7.2vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 22px 0 24px;
  font-weight: 400;
}
h1.hero-title em { font-style: italic; color: var(--apple); }
h1.hero-title .underline { position: relative; display: inline-block; }
h1.hero-title .underline::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: 4px; height: 8px;
  background: var(--gold); opacity: 0.42; border-radius: 4px; z-index: -1;
}

.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 480px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.hero-meta { display: flex; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero-meta .item .num { font-family: var(--serif); font-size: 36px; line-height: 1; }
.hero-meta .item .lbl { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }

/* Hero visual */
.hero-visual { position: relative; aspect-ratio: 4/5; }
.hero-img {
  position: absolute; inset: 0;
  border-radius: 280px 280px 24px 24px;
  overflow: hidden;
  background: linear-gradient(155deg, #d4654d 0%, #a32a1e 70%);
  box-shadow: var(--shadow-lg);
}
.hero-img image-slot { width: 100%; height: 100%; }
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,220,180,0.35), transparent 50%);
  pointer-events: none;
}
.hero-tag {
  position: absolute;
  background: var(--paper);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.hero-tag.t1 { top: 8%; left: -22px; }
.hero-tag.t2 { bottom: 12%; right: -16px; max-width: 220px; }
.hero-tag .swirl {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream);
  font-size: 20px;
}
.hero-tag b { font-family: var(--serif); font-weight: 400; font-size: 18px; display: block; line-height: 1; }
.hero-tag .small { color: var(--ink-soft); font-size: 11px; }

.hero-stamp {
  position: absolute; top: 6%; right: -20px;
  width: 120px; height: 120px;
  animation: rotate 24s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

/* ============ Section header ============ */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 32px; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1; letter-spacing: -0.02em;
  margin: 12px 0 0;
  max-width: 720px;
}
.section-head h2 em { font-style: italic; color: var(--apple); }
.section-head .lead { max-width: 380px; color: var(--ink-soft); font-size: 15px; }

/* ============ Featured ============ */
.featured { padding: 80px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat-img {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--cream-2);
  margin-bottom: 18px;
}
.feat-img image-slot { width: 100%; height: 100%; }
.feat-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--paper);
  padding: 5px 10px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500;
}
.feat-tag.new { background: var(--leaf); color: var(--cream); }
.feat-tag.hot { background: var(--apple); color: var(--cream); }

.feat-body { display: flex; flex-direction: column; flex: 1; gap: 10px; }
.feat-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.feat-title { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.feat-price { font-family: var(--serif); font-size: 22px; color: var(--apple-deep); white-space: nowrap; }
.feat-desc { color: var(--ink-soft); font-size: 14px; flex: 1; }
.feat-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.feat-meta { display: flex; gap: 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-size: 13px; transition: background 0.2s, transform 0.15s;
}
.add-btn:hover { background: var(--apple); }
.add-btn:active { transform: scale(0.96); }
.add-btn.added { background: var(--leaf); }

/* ============ Story ============ */
.story { padding: 100px 0; background: linear-gradient(180deg, transparent, var(--cream) 30%, var(--cream) 70%, transparent); }
.story .grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.story-img {
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: var(--shadow-md);
  position: relative;
}
.story-img image-slot { width: 100%; height: 100%; }
.story-img .corner {
  position: absolute; bottom: -28px; right: -28px;
  width: 140px; height: 140px;
  border-radius: 50%; background: var(--apple);
  display: grid; place-items: center;
  font-family: var(--serif); color: var(--cream);
  text-align: center; line-height: 1; padding: 16px;
  box-shadow: var(--shadow-md);
}
.story-img .corner .big { font-size: 38px; display: block; }
.story-img .corner .sm { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 4px; opacity: 0.85; }
.story h2 { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; margin: 16px 0 24px; font-weight: 400; }
.story h2 em { font-style: italic; color: var(--apple); }
.story p { color: var(--ink-soft); font-size: 16px; max-width: 540px; margin: 0 0 16px; }
.story p.lead { font-size: 19px; color: var(--ink); font-family: var(--serif); line-height: 1.4; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; max-width: 540px; }
.value {
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.value .ic { width: 28px; height: 28px; border-radius: 50%; background: var(--apple); color: var(--cream); display: grid; place-items: center; font-size: 14px; margin-bottom: 10px; }
.value b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.value span { font-size: 12px; color: var(--ink-soft); }

/* ============ Menu ============ */
.menu { padding: 100px 0; }
.menu-tabs { display: flex; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.menu-tab {
  padding: 10px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--line);
  background: transparent; color: var(--ink-soft);
  transition: all 0.2s;
}
.menu-tab:hover { color: var(--ink); }
.menu-tab.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 56px; }
.menu-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px dashed var(--line);
  transition: padding 0.2s;
  cursor: pointer;
}
.menu-item:hover { padding-left: 8px; }
.menu-item:hover .mi-title { color: var(--apple); }
.menu-item .mi-thumb {
  width: 56px; height: 56px; border-radius: 12px;
  background: var(--cream-2);
  display: grid; place-items: center;
  font-size: 26px;
  overflow: hidden;
}
.menu-item .mi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-item .mi-body { min-width: 0; }
.menu-item .mi-title { font-family: var(--serif); font-size: 20px; line-height: 1.15; transition: color 0.2s; display: flex; align-items: center; gap: 8px; }
.menu-item .mi-desc { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.menu-item .mi-price { font-family: var(--serif); font-size: 19px; color: var(--apple-deep); }
.menu-item .badge {
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px;
  background: var(--leaf); color: var(--cream);
}
.menu-item .badge.gf { background: var(--gold); color: var(--ink); }
.menu-item .badge.vg { background: var(--leaf); }

/* ============ Reviews ============ */
.reviews { padding: 80px 0; background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.reviews::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, var(--apple-deep), transparent 60%);
  opacity: 0.6;
}
.reviews .container { position: relative; z-index: 2; }
.reviews .section-head h2 { color: var(--cream); }
.reviews .section-head h2 em { color: var(--gold); }
.reviews .section-head .lead { color: rgba(246, 236, 224, 0.6); }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rev-card {
  background: rgba(246, 236, 224, 0.06);
  border: 1px solid rgba(246, 236, 224, 0.12);
  border-radius: 20px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.rev-card blockquote {
  font-family: var(--serif); font-size: 22px; line-height: 1.3;
  margin: 0; letter-spacing: -0.005em;
}
.rev-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rev-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--apple); display: grid; place-items: center; font-family: var(--serif); font-size: 16px; }
.rev-meta b { display: block; font-size: 13px; font-weight: 500; }
.rev-meta span { font-size: 11px; opacity: 0.6; letter-spacing: 0.1em; text-transform: uppercase; }

/* ============ Order / CTA ============ */
.order { padding: 110px 0; }
.order .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.order h2 { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; margin: 16px 0 20px; font-weight: 400; }
.order h2 em { font-style: italic; color: var(--apple); }
.order p.lead { color: var(--ink-soft); font-size: 16px; max-width: 480px; margin: 0 0 28px; }

.info-list { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.info-row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream); display: grid; place-items: center;
  color: var(--apple);
}
.info-row .lbl { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.info-row .val { font-family: var(--serif); font-size: 19px; }
.info-row .val small { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); display: block; margin-top: 2px; }

/* Form */
.order-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-title { font-family: var(--serif); font-size: 28px; margin: 0 0 6px; }
.form-sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit; font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--apple);
  box-shadow: 0 0 0 3px rgba(184, 57, 45, 0.12);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--apple); }
.field .err { font-size: 11px; color: var(--apple); margin-top: 4px; min-height: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field textarea { min-height: 90px; resize: vertical; }
.submit { width: 100%; margin-top: 8px; justify-content: center; }
.success {
  background: var(--leaf); color: var(--cream);
  padding: 20px; border-radius: 14px; text-align: center;
}
.success b { font-family: var(--serif); font-size: 22px; display: block; margin-bottom: 4px; }

/* ============ Footer ============ */
footer {
  padding: 64px 0 40px;
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  position: relative; z-index: 2;
}
footer .grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
footer h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 16px; font-weight: 600; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
footer ul a { font-size: 14px; color: var(--ink-soft); }
footer ul a:hover { color: var(--apple); }
footer .tagline { font-family: var(--serif); font-size: 22px; line-height: 1.3; margin: 16px 0 20px; max-width: 360px; }
footer .socials { display: flex; gap: 8px; }
.bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); }

/* ============ Cart drawer ============ */
.drawer-bg {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(42, 24, 16, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 101;
  width: 420px; max-width: 100vw;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-size: 26px; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 24px 28px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.cart-empty .ic { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.cart-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row .thumb { width: 60px; height: 60px; border-radius: 10px; background: var(--cream-2); display: grid; place-items: center; font-size: 26px; overflow: hidden; }
.cart-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row .title { font-family: var(--serif); font-size: 18px; line-height: 1.1; }
.cart-row .qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--ink-soft); }
.qbtn { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 14px; }
.qbtn:hover { background: var(--cream); }
.cart-row .price { font-family: var(--serif); font-size: 18px; color: var(--apple-deep); }
.drawer-foot { padding: 24px 28px; border-top: 1px solid var(--line); }
.totals { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.totals .lbl { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.totals .amt { font-family: var(--serif); font-size: 28px; color: var(--ink); }
.checkout-btn { width: 100%; justify-content: center; padding: 16px; }

/* ============ Theme variants ============ */
body[data-theme="midnight"] {
  --paper: #f6ece0;
  --cream: #efe2cf;
  --cream-2: #e6d7c0;
  --apple: #2d4a3a;
  --apple-deep: #1a3325;
  --leaf: #c08454;
  --gold: #d6a64a;
}
body[data-theme="berry"] {
  --apple: #8a2b4f;
  --apple-deep: #5d1a35;
  --leaf: #6b5a2e;
  --gold: #c8a04a;
  --caramel: #b87a52;
}
body[data-theme="pistachio"] {
  --paper: #f4f1e8;
  --cream: #e8e4d3;
  --cream-2: #ddd8c2;
  --apple: #6b8a3a;
  --apple-deep: #4a6128;
  --leaf: #8a5a2c;
  --gold: #d6a64a;
}

/* ============ Palette switcher ============ */
.palette-switch {
  position: fixed; bottom: 20px; left: 20px; z-index: 60;
  display: flex; gap: 6px;
  padding: 6px; border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: none;
}
.palette-switch button {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer; padding: 0;
  transition: transform 0.15s, border-color 0.2s;
}
.palette-switch button:hover { transform: scale(1.08); }
.palette-switch button.active { border-color: var(--ink); }

/* ============ Animations ============ */
@keyframes fadeUp     { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes float      { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes floatRev   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes heroImgIn  { from { transform: scale(1.12); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bump       { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } 60% { transform: scale(0.92); } }
@keyframes spinSlow   { to { transform: rotate(360deg); } }
@keyframes shimmer    { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulseRing  {
  0%   { box-shadow: 0 0 0 0 rgba(184, 57, 45, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(184, 57, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 57, 45, 0); }
}
@keyframes flyToCart {
  0%   { transform: scale(1) translate(0,0); opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: scale(0.2) translate(var(--fx), var(--fy)); opacity: 0; }
}
@keyframes drawerSlide {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
@keyframes fillBar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

/* Hero entrance */
.hero-left > * { animation: fadeUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-left > *:nth-child(1) { animation-delay: 0.05s; }
.hero-left > *:nth-child(2) { animation-delay: 0.15s; }
.hero-left > *:nth-child(3) { animation-delay: 0.25s; }
.hero-left > *:nth-child(4) { animation-delay: 0.35s; }
.hero-left > *:nth-child(5) { animation-delay: 0.45s; }

.hero-img img { animation: heroImgIn 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-img { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hero-stamp { animation: spinSlow 24s linear infinite, fadeIn 1s ease 0.6s both; }
.hero-tag.t1 { animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.7s both, float 5.5s ease-in-out 1.5s infinite; display: none; }
.hero-tag.t2 { animation: fadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s both, floatRev 6s ease-in-out 1.8s infinite; display: none; }

/* Section heading underline grows on reveal */
h1.hero-title .underline::after { transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s; }
.hero-left.in-anim h1.hero-title .underline::after { transform: scaleX(1); }

/* Featured cards staggered hover image zoom */
.feat-img { overflow: hidden; }
.feat-img img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.feat-card:hover .feat-img img { transform: scale(1.07); }
.feat-card { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s; }

/* Add-button pulse when items in cart */
.add-btn.added { animation: pulseRing 1s ease-out; }

/* Cart icon bump */
.iconbtn.bump { animation: bump 0.55s cubic-bezier(0.3, 1.5, 0.5, 1); }

/* Story image subtle tilt on hover */
.story-img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.story-img:hover { transform: translateY(-4px) rotate(-0.6deg); }
.story-img img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.story-img:hover img { transform: scale(1.04); }

/* Menu items cascade in */
.menu-item { animation: fadeUp 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.menu-item .mi-thumb img { transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.menu-item:hover .mi-thumb img { transform: scale(1.12); }

/* Review cards reveal stagger handled via .reveal */
.rev-card { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rev-card:hover { transform: translateY(-4px); }

/* Value chips reveal stagger */
.value { transition: transform 0.25s, background 0.25s; }
.value:hover { transform: translateY(-2px); background: var(--cream); }

/* Drawer slide */
.drawer.open { animation: drawerSlide 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* Marquee on topstrip */
.topstrip .marquee.scroll {
  display: flex; gap: 40px;
  white-space: nowrap;
  animation: marqueeScroll 22s linear infinite;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Cart badge pop */
.cart-badge { transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1); }
.cart-badge.pop { transform: scale(1.4); }

/* Fly-to-cart ghost */
.fly-ghost {
  position: fixed; z-index: 99;
  width: 60px; height: 60px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  animation: flyToCart 0.7s cubic-bezier(0.5, -0.2, 0.7, 1) forwards;
}

/* Progress bar at the top */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: 2px;
  background: var(--apple);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.1s linear;
  pointer-events: none;
}

/* Submit button shimmer on hover */
.submit { position: relative; overflow: hidden; }
.submit::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.25) 50%, transparent 65%);
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
  pointer-events: none;
}

/* Eyebrow pulse already exists; ensure consistent */
.eyebrow .pulse { animation: pulse 2s infinite; }

/* Honor user reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Image fill (local images) ============ */
.feat-img img,
.hero-img img,
.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ ZenesaDigital footer credit ============ */
.zenesa-link {
  color: var(--gold);
  font-weight: 500;
  border-bottom: 1px dashed rgba(214, 166, 74, 0.4);
  transition: color 0.2s, border-color 0.2s;
}
.zenesa-link:hover { color: var(--cream); border-color: var(--cream); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .grid { gap: 40px; }
  .story .grid { gap: 40px; }
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .topstrip .marquee .hide-mob { display: none; }
  .nav .inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    gap: 10px 14px;
  }
  .brand { order: 1; flex: 0 0 auto; }
  .navright { order: 2; flex: 0 0 auto; }
  .navlinks {
    order: 3;
    display: flex;
    flex: 1 1 100%;
    justify-content: center;
    align-items: center;
    gap: 22px;
    font-size: 13px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 0 2px;
    scrollbar-width: none;
    border-top: 1px solid var(--line);
  }
  .navlinks::-webkit-scrollbar { display: none; }
  .navlinks a { padding: 4px 0; }
  .brand-mark.has-logo { width: 56px; height: 56px; }
  .hero .grid, .story .grid, .order .grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0 60px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .feat-grid, .rev-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; gap: 0; }
  .values { grid-template-columns: 1fr 1fr; }
  footer .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer .bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-stamp { display: none; }
  .hero-tag.t1 { left: 12px; }
  .hero-tag.t2 { right: 12px; }
  .section-head { margin-bottom: 32px; }
  .featured, .menu, .story, .reviews, .order { padding: 60px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .topstrip { font-size: 11px; }
  .topstrip .inner { padding: 0 18px; gap: 12px; }
  .nav .inner { padding: 10px 18px; column-gap: 10px; }
  .brand-text .name { font-size: 18px; }
  .brand-text .sub { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark.has-logo { width: 48px; height: 48px; }
  .navlinks { font-size: 12px; gap: 16px; justify-content: flex-start; }
  .navright { gap: 8px; }
  .iconbtn { width: 36px; height: 36px; }
  .hero-meta { gap: 18px; margin-top: 32px; padding-top: 24px; flex-wrap: wrap; }
  .hero-meta .item .num { font-size: 28px; }
  .hero-meta .item .lbl { font-size: 10px; }
  .hero-sub { font-size: 16px; margin-bottom: 24px; }
  .hero-ctas .btn.lg { padding: 14px 22px; font-size: 14px; }
  .hero-tag { padding: 10px 12px; font-size: 12px; }
  .hero-tag .swirl { width: 28px; height: 28px; font-size: 16px; }
  .hero-tag b { font-size: 15px; }
  .hero-tag.t1 { left: 0; top: 4%; }
  .hero-tag.t2 { right: 0; bottom: 6%; max-width: 180px; }
  .hero-img { border-radius: 180px 180px 18px 18px; }
  .values { grid-template-columns: 1fr; }
  footer .grid { grid-template-columns: 1fr; gap: 24px; }
  .menu-tabs { gap: 6px; }
  .menu-tab { padding: 8px 14px; font-size: 12px; }
  .menu-item { grid-template-columns: 48px 1fr auto; gap: 12px; padding: 14px 0; }
  .menu-item .mi-thumb { width: 48px; height: 48px; }
  .menu-item .mi-title { font-size: 17px; }
  .feat-card { padding: 16px; }
  .rev-card blockquote { font-size: 15px; }
  .order-form { padding: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 12px; }
  .palette-switch { bottom: 12px; right: 12px; }
}

@media (max-width: 400px) {
  h1.hero-title { font-size: 44px; }
  .section-head h2 { font-size: 34px; }
  .hero-tag.t2 { display: none; }
}
