:root {
  --cream: #fff7ec;
  --paper: #fffdf8;
  --ink: #2f1d18;
  --muted: #75645c;
  --line: #ead9c8;
  --terracotta: #b75a3a;
  --terracotta-dark: #8d3d28;
  --gold: #d99b47;
  --sage: #63765a;
  --shadow: 0 24px 60px rgba(54, 31, 21, 0.14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, select, textarea { font: inherit; }

.demo-ribbon {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.site-header {
  position: sticky;
  top: 38px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 6vw;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--terracotta);
  border-radius: 999px;
}
.brand strong { display: block; font-family: Georgia, serif; font-size: 1.22rem; }
.brand small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: .92rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--terracotta); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.8rem; color: var(--ink); }
.cart-button {
  border: 0;
  background: var(--terracotta);
  color: #fff;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  margin-left: 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--terracotta);
}

.hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 90px 6vw;
  background:
    linear-gradient(90deg, rgba(47, 29, 24, .72), rgba(47, 29, 24, .23), rgba(47, 29, 24, .05)),
    url("https://images.unsplash.com/photo-1517433670267-08bbd4be890f?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}
.hero-content { max-width: 690px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--terracotta);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .16em;
  font-size: .78rem;
}
.hero .eyebrow { color: #ffd8bd; }
h1, h2, h3 { margin: 0; line-height: 1.04; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); letter-spacing: -0.05em; }
h2 { font-size: clamp(2.1rem, 4.5vw, 4.2rem); letter-spacing: -0.04em; }
h3 { font-size: 1.22rem; }
p { line-height: 1.7; color: var(--muted); }
.hero p:not(.eyebrow) { color: rgba(255,255,255,.9); font-size: 1.2rem; max-width: 560px; }
.hero-actions, .contact-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--terracotta); color: #fff; box-shadow: 0 14px 30px rgba(183,90,58,.28); }
.btn.secondary { background: rgba(255,255,255,.92); border-color: var(--line); color: var(--ink); }

.section { padding: 80px 6vw; }
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: -88px;
  position: relative;
  z-index: 5;
}
.feature-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: var(--radius);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #321;
  position: relative;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.67));
  z-index: 0;
}
.feature-card > * { position: relative; z-index: 1; }
.feature-card p { color: rgba(255,255,255,.86); margin-bottom: 0; }
.sale-card { background: url("https://images.unsplash.com/photo-1555507036-ab1f4038808a?auto=format&fit=crop&w=900&q=80") center/cover; }
.waste-card { background: url("https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=900&q=80") center/cover; }
.preorder-card { background: url("https://images.unsplash.com/photo-1578985545062-69928b1d9587?auto=format&fit=crop&w=900&q=80") center/cover; }
.bulk-card { background: url("https://images.unsplash.com/photo-1509440159596-0249088772ff?auto=format&fit=crop&w=900&q=80") center/cover; }
.pill, .tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--terracotta);
  color: #fff;
  font-weight: 900;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pill.green { background: var(--sage); }
.pill.blue { background: #537691; }
.pill.dark { background: var(--ink); }

.intro-grid, .allergen-section, .bulk-section, .contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stats-grid div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(53,31,21,.08);
}
.stats-grid strong { display: block; font-size: 2.2rem; font-family: Georgia, serif; color: var(--terracotta); }
.stats-grid span { color: var(--muted); font-weight: 800; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 30px;
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(53,31,21,.08);
}
.product-card img { height: 260px; object-fit: cover; }
.product-content { padding: 22px; }
.product-content p { min-height: 54px; }
.sale-tag { background: var(--gold); }
.price-row { display: flex; align-items: baseline; gap: 10px; margin: 12px 0; }
.price-row strong { font-size: 1.45rem; }
.price-row span { color: var(--muted); text-decoration: line-through; }
.allergen-dropdown {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 14px 0;
  background: #fffaf3;
}
.allergen-dropdown summary { cursor: pointer; font-weight: 900; color: var(--terracotta-dark); }
.allergen-dropdown ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.add-to-cart {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  background: var(--terracotta);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.split-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  background: #fff1df;
  align-items: stretch;
}
.split-copy { padding: 30px 0; }
.check-list { padding: 0; list-style: none; display: grid; gap: 12px; color: var(--muted); }
.check-list li::before { content: "✓"; color: var(--terracotta); font-weight: 900; margin-right: 8px; }
.photo-panel {
  min-height: 470px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.waste-photo { background: url("https://images.unsplash.com/photo-1514517521153-1be72277b32f?auto=format&fit=crop&w=1300&q=80") center/cover; }
.floating-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(10px);
  padding: 18px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.floating-card strong, .floating-card span { display: block; }
.floating-card span { color: var(--muted); margin-top: 4px; }

.sale-section { background: var(--paper); }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.offer-card {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fffaf3, #ffe8cb);
  border: 1px solid var(--line);
}
.offer-card strong { color: var(--terracotta); font-size: 1.8rem; font-family: Georgia, serif; }

.preorder-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.preorder-image {
  min-height: 650px;
  border-radius: var(--radius);
  background: url("https://images.unsplash.com/photo-1464349095431-e9a21285b5f3?auto=format&fit=crop&w=1300&q=80") center/cover;
  box-shadow: var(--shadow);
}
.demo-form, .opening-card, .allergen-board {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(53,31,21,.08);
}
.demo-form label { display: grid; gap: 8px; font-weight: 900; color: var(--ink); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px;
  background: #fffaf3;
  color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .9rem; margin: 0; }

.bulk-section {
  background:
    linear-gradient(90deg, rgba(255,247,236,.94), rgba(255,247,236,.78)),
    url("https://images.unsplash.com/photo-1495147466023-ac5c588e2e94?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.bulk-cards { display: grid; gap: 12px; margin-top: 22px; }
.bulk-cards div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  border: 1px solid var(--line);
}
.bulk-cards span { color: var(--muted); }

.allergen-section { background: #fff1df; }
.allergen-board details { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #fffaf3; }
.allergen-board summary { font-weight: 900; cursor: pointer; }
.allergen-board ul { padding: 0; list-style: none; display: grid; gap: 10px; }
.allergen-board li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.warning { background: #fff3c6; border-left: 4px solid var(--gold); padding: 14px; border-radius: 12px; margin: 0; }

.testimonials { text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
blockquote {
  margin: 0;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(53,31,21,.07);
  text-align: left;
  color: var(--muted);
  line-height: 1.7;
}
cite { display: block; margin-top: 16px; color: var(--ink); font-weight: 900; font-style: normal; }

.opening-card p { display: flex; justify-content: space-between; gap: 16px; margin: 0; }
.opening-card span { color: var(--muted); }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 46px 6vw;
  color: #fff;
  background: var(--ink);
}
.footer p { color: rgba(255,255,255,.72); max-width: 420px; }
.footer div:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-weight: 800; color: rgba(255,255,255,.8); }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -430px;
  z-index: 120;
  width: min(430px, 92vw);
  height: 100vh;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -22px 0 60px rgba(0,0,0,.18);
  padding: 24px;
  overflow: auto;
  transition: right .25s ease;
}
.cart-drawer.open { right: 0; }
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(47,29,24,.44);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.cart-header { display: flex; justify-content: space-between; align-items: center; }
.cart-header button { border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.cart-items { display: grid; gap: 12px; margin: 24px 0; }
.cart-item { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.cart-item-top { display: flex; justify-content: space-between; gap: 12px; }
.cart-controls { display: flex; align-items: center; gap: 8px; }
.cart-controls button { border: 1px solid var(--line); background: #fffaf3; border-radius: 999px; width: 30px; height: 30px; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; font-size: 1.3rem; }
.checkout-form { display: grid; gap: 12px; margin-top: 20px; }
.checkout-form p { margin: 0; font-size: .9rem; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(140%);
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
  font-weight: 800;
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 1050px) {
  .quick-links, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro-grid, .allergen-section, .bulk-section, .contact-section, .split-section, .preorder-layout { grid-template-columns: 1fr; }
  .preorder-image { min-height: 420px; }
}
@media (max-width: 760px) {
  .demo-ribbon { font-size: .75rem; }
  .site-header { top: 34px; padding: 14px 5vw; }
  .brand { min-width: 0; }
  .nav {
    position: absolute;
    left: 5vw;
    right: 5vw;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .cart-button { padding: 11px 14px; }
  .hero { min-height: 620px; padding: 70px 5vw; }
  h1 { font-size: 3.2rem; }
  .section { padding: 60px 5vw; }
  .quick-links, .product-grid, .offer-grid, .testimonial-grid, .stats-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .footer { flex-direction: column; }
  .opening-card p { flex-direction: column; gap: 2px; }
}
