:root {
  --green: #1e6b4f;
  --green-dark: #124434;
  --gold: #f3c955;
  --red: #aa3f31;
  --ink: #182521;
  --muted: #60716a;
  --bg: #f5f1e8;
  --paper: #fffdf8;
  --line: #ded7c6;
  --blue: #245b78;
  --shadow: 0 12px 30px rgba(24, 37, 33, 0.12);
  --radius: 8px;
  font-size: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(30, 107, 79, 0.10), transparent 38%),
    linear-gradient(0deg, rgba(36, 91, 120, 0.08), transparent 55%);
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
a { color: inherit; }
button, input, select { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(36, 91, 120, 0.45);
  outline-offset: 2px;
}

.demo-banner {
  padding: 0.65rem 1rem;
  text-align: center;
  color: #3d3104;
  background: repeating-linear-gradient(45deg, #f3c955, #f3c955 18px, #ffe399 18px, #ffe399 36px);
  border-bottom: 2px solid #c59a24;
  font-size: 0.9rem;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 800;
}
.brand strong { color: var(--green); }
.nav-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.nav-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--green); }

.basket-button, .btn, .sku-add, .filter-btn, .icon-button {
  min-height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
}
.basket-button {
  border: 1px solid var(--green);
  background: var(--paper);
  color: var(--green);
  padding: 0.45rem 0.75rem;
  font-weight: 800;
}
.basket-count {
  display: inline-grid;
  min-width: 1.55rem;
  min-height: 1.55rem;
  place-items: center;
  margin-left: 0.25rem;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 0.8rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  min-height: 680px;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(rgba(16, 30, 26, 0.70), rgba(16, 30, 26, 0.62)),
    url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}
.hero-copy { max-width: 760px; }
.eyebrow {
  margin-bottom: 0.65rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 850;
  font-size: 0.82rem;
}
.hero h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(2.45rem, 5vw, 4.75rem);
}
.lede {
  max-width: 680px;
  margin-bottom: 1.35rem;
  color: rgba(255, 255, 255, 0.91);
  font-size: 1.13rem;
}
.hero-actions, .filters, .window-strip { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  padding: 0.72rem 1.05rem;
  text-decoration: none;
  font-weight: 850;
}
.btn-primary { background: var(--gold); color: #2c2302; }
.btn-primary:hover { background: #ffe18a; }
.btn-ghost { border-color: rgba(255,255,255,0.85); color: #fff; background: rgba(255,255,255,0.08); }
.btn-small { padding: 0.48rem 0.75rem; min-height: 38px; }
.btn-block { width: 100%; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 0;
}
.hero-stats div, .hero-panel {
  background: rgba(255, 253, 248, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-stats div { min-width: 150px; padding: 0.85rem; }
.hero-stats dt { font-size: 1.65rem; font-weight: 900; color: var(--gold); }
.hero-stats dd { margin: 0; color: rgba(255,255,255,0.88); }
.hero-panel {
  padding: clamp(1.2rem, 3vw, 1.75rem);
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
}
.panel-label { color: var(--blue); font-weight: 900; text-transform: uppercase; font-size: 0.78rem; }
.hero-panel h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cutoff-box {
  margin: 1rem 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: var(--radius);
  background: #f8f6ec;
  font-weight: 800;
}
#cutoff-message.closed { color: var(--red); }
#cutoff-message.open { color: var(--green); }
.fine-print { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; }

.positioning, .section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
}
.positioning {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: -3.2rem;
  position: relative;
}
.positioning article, .steps li, .stock-grid article, .sku-card, .checkout-copy, .faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.positioning article { padding: 1.1rem; }
.positioning h2 { color: var(--green); font-size: 1.12rem; }
.positioning p, .steps p, .stock-grid p, .sku-card p, .checkout-copy p, .faq p {
  color: var(--muted);
}

.section-head { max-width: 780px; margin-bottom: 1.25rem; }
.section-head .eyebrow { color: var(--green); }
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.steps li { padding: 1.15rem; }
.step-num {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}
.window-strip {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: #20352e;
}
.window-strip span {
  padding: 0.52rem 0.7rem;
  border-radius: 6px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 850;
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.stock-grid article { padding: 1.1rem; }
.stock-grid h3 { color: var(--blue); font-size: 1.05rem; }

.filters { margin: 1rem 0 1.25rem; }
.filter-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0.48rem 0.8rem;
  font-weight: 800;
}
.filter-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.sku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 1rem;
}
.sku-card {
  display: flex;
  flex-direction: column;
  min-height: 218px;
  padding: 1rem;
}
.sku-top, .sku-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.sku-cat {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 850;
}
.source-badge {
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}
.source-walmart { background: #2f6faf; }
.source-dollarama { background: #0f7a3b; }
.source-grocery { background: #8b4a16; }
.source-ct { background: #6d5b12; }
.sku-card h3 {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.05rem;
}
.sku-card p { margin-bottom: 1rem; }
.sku-foot { margin-top: auto; align-items: end; }
.sku-price { color: var(--green); font-weight: 950; }
.sku-price em { color: var(--muted); font-size: 0.83rem; font-style: normal; }
.sku-add {
  border: 1px solid var(--green);
  background: #fff;
  color: var(--green);
  padding: 0.42rem 0.75rem;
  font-weight: 900;
}
.sku-add:hover { background: var(--green); color: #fff; }

.checkout-copy {
  max-width: 820px;
  padding: 1.1rem;
}
.faq details {
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 900;
}
.faq p { margin: 0.75rem 0 0; }

.basket-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(430px, 100vw);
  height: 100dvh;
  overflow-y: auto;
  padding: 1rem;
  border-left: 1px solid var(--line);
  background: var(--paper);
  box-shadow: -14px 0 34px rgba(24, 37, 33, 0.25);
}
.basket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.basket-head h2 { margin: 0; font-size: 1.35rem; }
.icon-button {
  width: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}
.basket-items {
  padding: 0;
  margin: 1rem 0;
  list-style: none;
}
.basket-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
}
.basket-items strong, .basket-items span { display: block; }
.basket-items li div:first-child span { color: var(--muted); font-size: 0.84rem; }
.basket-empty { color: var(--muted); }
.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.qty-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: #fff;
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
}
.promo-form, .fulfillment-form { margin: 1rem 0; }
.promo-form label, .fulfillment-form label, .fulfillment-form legend {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 850;
}
.promo-row { display: flex; gap: 0.5rem; }
.promo-row input, .fulfillment-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  background: #fff;
}
.promo-message { min-height: 1.2rem; margin: 0.4rem 0 0; font-size: 0.9rem; }
.promo-message.ok { color: var(--green); }
.promo-message.err { color: var(--red); }
.fulfillment-form fieldset {
  display: grid;
  gap: 0.3rem;
  margin: 0 0 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fulfillment-form input[type="radio"] { margin-right: 0.35rem; }
.disabled-option { color: var(--muted); }
.invalid { border-color: var(--red) !important; outline: 2px solid rgba(170, 63, 49, 0.24); }
.demo-note {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  background: #fff4cc;
  color: #59460b;
  font-size: 0.88rem;
}
.totals { margin: 1rem 0; }
.totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.28rem 0;
}
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 900; }
.totals .total {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 2px solid var(--line);
  font-size: 1.2rem;
}
.order-confirmation {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  background: #edf7f0;
}
.order-confirmation h3 { color: var(--green); }

.site-footer {
  padding: 2rem 1rem;
  background: #182521;
  color: #d9e2dc;
  text-align: center;
  font-size: 0.92rem;
}
.site-footer p { margin: 0.35rem auto; max-width: 920px; }

@media (max-width: 920px) {
  .hero, .positioning, .steps, .stock-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .positioning { margin-top: 0; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  .site-nav { align-items: flex-start; }
  .brand { font-size: 1.05rem; }
  .nav-links { display: none; }
  .basket-button { margin-left: auto; }
  .hero { padding: 2rem 1rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero-stats div { flex: 1 1 100%; }
  .sku-grid { grid-template-columns: 1fr; }
  .basket-panel { width: 100vw; }
  .promo-row { flex-direction: column; }
}
