:root {
  --bg: #f6efe8;
  --card: rgba(255, 250, 245, 0.92);
  --ink: #25140e;
  --ink-soft: #6d5044;
  --line: rgba(37, 20, 14, 0.12);
  --cocoa: #2a160f;
  --terracotta: #c86a46;
  --rose: #d89783;
  --saffron: #e9c66b;
  --olive: #6e7f5e;
  --cream: #fff8f0;
  --shadow: 0 22px 60px rgba(42, 22, 15, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(233, 198, 107, 0.35), transparent 22%),
    radial-gradient(circle at right top, rgba(216, 151, 131, 0.22), transparent 24%),
    linear-gradient(180deg, #f2dfcb 0%, var(--bg) 24%, #f9f5ef 100%);
  font-family: 'Manrope', sans-serif;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 24%, transparent 76%, rgba(0,0,0,0.04));
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(#000 0.6px, transparent 0.6px);
  background-size: 8px 8px;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.site-header,
main {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(18px, env(safe-area-inset-top)) 0 20px;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
}
.brand small { color: var(--ink-soft); display: block; }
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px 18px 10px 18px;
  display: grid;
  place-items: center;
  background: var(--cocoa);
  color: var(--cream);
  font-family: 'Fraunces', serif;
  box-shadow: var(--shadow);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}
.header-actions a,
.pill-button,
.filter,
.toggle,
.text-button {
  border: 1px solid var(--line);
  background: rgba(255, 250, 245, 0.72);
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 15px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.header-actions a:hover,
.pill-button:hover,
.filter:hover,
.toggle:hover,
.text-button:hover,
.cta:hover,
.qty button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(42,22,15,0.1);
}
.pill-button.dark,
.cta.dark,
.toggle.active {
  background: var(--cocoa);
  color: var(--cream);
}
.pill-button.light,
.cta.light,
.filter.active {
  background: rgba(255,255,255,0.78);
}
#cartCount {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
}

main { padding-bottom: 48px; }

.hero-grid,
.trust-grid,
.delivery-grid,
.order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.hero-grid { margin-top: 10px; }
.trust-grid,
.delivery-grid,
.order-grid { margin-top: 22px; }

.panel {
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.panel.warm,
.panel.cream {
  background: linear-gradient(180deg, rgba(255,250,245,0.96), rgba(252,239,225,0.94));
  border: 1px solid rgba(37,20,14,0.08);
}
.panel.dark {
  color: var(--cream);
  background: radial-gradient(circle at 20% 10%, rgba(233,198,107,0.20), transparent 28%), linear-gradient(135deg, #2a160f 0%, #563226 58%, #774731 100%);
}
.panel.olive {
  color: var(--cream);
  background: linear-gradient(135deg, #647352 0%, #82956c 100%);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  color: var(--ink-soft);
}
.pale { color: rgba(255,248,240,0.75); }

h1, h2, h3 {
  margin: 0;
  font-family: 'Fraunces', serif;
  line-height: 0.96;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.7rem); max-width: 9ch; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 3vw, 2.2rem); }

.hero-copy p,
.section-head p,
.panel p,
.steps-list,
#pickupAddress,
.product-card p,
.form-message {
  color: var(--ink-soft);
  line-height: 1.65;
}
.panel.dark p,
.panel.dark label,
.panel.dark .estimator-note,
.panel.olive span,
.panel.olive .eyebrow { color: rgba(255,248,240,0.82); }

.cta-row,
.feature-pills,
.filter-row,
.toggle-row,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
}
.feature-pills {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.feature-pills li,
.mini-label {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.10);
}
.hero-visual { min-height: 420px; }
.floating-card {
  position: absolute;
  width: min(320px, 78%);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255,248,240,0.95);
  color: var(--ink);
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}
.floating-card.top { left: 6%; top: 10%; transform: rotate(-5deg); }
.floating-card.bottom { right: 8%; bottom: 10%; transform: rotate(6deg); background: linear-gradient(180deg, #fff8f2, #ffe7de); }
.floating-card p { color: #563f35; }
.mini-label { display: inline-block; background: rgba(42,22,15,0.06); border-color: rgba(42,22,15,0.08); }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.35), rgba(255,255,255,0.05));
}
.orb-a { width: 200px; height: 200px; right: 10%; top: 6%; }
.orb-b { width: 140px; height: 140px; left: 8%; bottom: 6%; }

.stats {
  display: grid;
  gap: 18px;
  align-content: center;
}
.stats div { display: grid; gap: 4px; }
.stats strong { font-size: clamp(1.8rem, 5vw, 2.5rem); }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-top: 42px;
}
.section-head p { max-width: 480px; }

.filter-row { margin-top: 18px; }
.product-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  background: rgba(255,250,245,0.9);
  border: 1px solid rgba(37,20,14,0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 14px;
}
.product-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.product-card strong.price { font-size: 1.2rem; }
.product-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0dfc7;
  font-size: .84rem;
  font-weight: 700;
}
.qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #f4e8da;
}
.qty button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
}

.steps-list { padding-left: 18px; margin-bottom: 24px; }
.pickup-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(42,22,15,0.05);
}
.estimator-card label { display: block; margin: 18px 0 8px; }
#milesRange { width: 100%; accent-color: #e9c66b; }
.estimator-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
}
.estimator-note { margin-top: 12px; }

.order-grid { align-items: start; }
.basket-panel,
.form-panel { min-height: 100%; }
.basket-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.text-button { border: none; padding-inline: 0; background: transparent; color: var(--ink-soft); }
.basket-items {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.basket-item {
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(37,20,14,0.08);
  border-radius: 18px;
  padding: 14px;
}
.basket-item header,
.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.totals {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.totals .grand strong { font-size: 1.4rem; }
.checkout-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.checkout-form label { display: grid; gap: 8px; }
.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  border: 1px solid rgba(37,20,14,0.12);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255,255,255,0.8);
}
.form-message { min-height: 24px; margin: 0; }
.form-message.success { color: #20633d; }
.form-message.error { color: #8b2e24; }
.empty-basket {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.48);
  color: var(--ink-soft);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(120px);
  background: var(--cocoa);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 220ms ease;
  z-index: 50;
}
.toast.show { transform: translateX(-50%) translateY(0); }

.reveal-up { animation: rise .7s ease both; }
.reveal-delay-1 { animation: rise .9s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .hero-grid,
  .trust-grid,
  .delivery-grid,
  .order-grid,
  .product-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head,
  .site-header { flex-direction: column; align-items: stretch; }
  .header-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .site-header,
  main { width: min(100% - 16px, 1180px); }
  .header-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-actions a,
  .pill-button { text-align: center; justify-content: center; }
  .hero-grid { margin-top: 2px; }
  .panel { padding: 18px; border-radius: 24px; }
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2rem; }
  .hero-visual { min-height: 360px; }
  .floating-card { width: 84%; }
  .floating-card.top { left: 2%; top: 8%; }
  .floating-card.bottom { right: 2%; bottom: 8%; }
  .product-grid { grid-template-columns: 1fr; }
  .cta-row,
  .form-actions,
  .filter-row { display: grid; grid-template-columns: 1fr; }
  .cta, .filter { width: 100%; }
  .qty-row { align-items: stretch; flex-direction: column; }
}
