/* Adun African Market — demo theme (palm green, gold and terracotta) */
@font-face { font-family: "Rubik"; font-weight: 300 900; font-display: swap; src: url("../fonts/rubik.woff2") format("woff2-variations"), url("../fonts/rubik.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --green: #1f5e3b;
  --green-2: #27724a;
  --green-deep: #143d27;
  --gold: #f2b705;
  --gold-2: #ffc928;
  --terra: #b4441e;
  --cream: #fff7ea;
  --paper: #fbf6ec;
  --card: #ffffff;
  --ink: #1c1410;
  --muted: #6b5d4f;
  --line: #eadfcb;
  --wa: #128c4b;
  --font: "Rubik", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: -0.02em; text-wrap: balance; font-weight: 800; }
h2 { font-size: clamp(30px, 4.6vw, 44px); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
section[id] { scroll-margin-top: 76px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--green-deep); }
.btn-gold:hover { background: var(--gold-2); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-2); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-ghost-dark { border-color: var(--green); color: var(--green); background: transparent; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0f7a41; }
.btn-wa svg { width: 20px; height: 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: var(--green-deep); color: #fff; }
.top-inner { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.logo svg { width: 38px; height: 38px; }
.logo-txt { font-weight: 800; font-size: 21px; line-height: 1; white-space: nowrap; }
.logo-txt span { font-weight: 500; color: var(--gold); }
.search { flex: 1; max-width: 520px; margin-left: auto; }
.search input { width: 100%; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); }
.search input:focus { outline: 3px solid var(--gold); outline-offset: 0; }
.basket-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 0; background: var(--gold); color: var(--green-deep); font-weight: 800; cursor: pointer; flex: none; }
.basket-btn svg { width: 22px; height: 22px; }
.basket-count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--terra); color: #fff; font-size: 12px; }
.basket-btn.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }
@media (max-width: 760px) {
  .top-inner { flex-wrap: wrap; gap: 10px 12px; padding-block: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .basket-btn { margin-left: auto; }
  .logo-txt span { display: none; }
}
@media (max-width: 380px) { .basket-total { display: none; } }

/* Hero */
.hero { background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%); color: #fff; padding-block: clamp(40px, 7vw, 84px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(242,183,5,.06) 0 14px, transparent 14px 28px); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); font-weight: 600; font-size: 14px; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: #c9c9c9; }
.status.open .dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .25); }
.status.closed .dot { background: #f87171; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); margin: 16px 0 14px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lede { max-width: 34em; font-size: clamp(16px, 1.6vw, 18px); color: #dcebe1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.promises { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 15px; color: #dcebe1; }
.promises b { color: #fff; }
.fresh { padding: 22px; border-radius: 20px; background: var(--cream); color: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.fresh h2 { font-size: 28px; }
.fresh-sub { color: var(--terra); font-weight: 700; margin: 4px 0 12px; }
.fresh-list li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.fresh-list .pa { width: 46px; height: 52px; }
.fr-txt b { display: block; font-size: 16px; }
.fr-txt small { color: var(--muted); font-size: 14px; }
.add-sm { min-height: 38px; padding: 6px 14px; border-radius: 10px; border: 2px solid var(--green); background: transparent; color: var(--green); font-weight: 700; cursor: pointer; }
.add-sm:hover { background: var(--green); color: #fff; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Section heads */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.sec-sub { color: var(--muted); }

/* Kits */
.kits { padding-block: clamp(44px, 7vw, 76px); }
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kit { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.kit-art { display: flex; justify-content: center; align-items: end; gap: 6px; padding: 20px 16px 14px; min-height: 120px; }
.tone-red .kit-art { background: #f6dcd2; }
.tone-green .kit-art { background: #dcebdc; }
.tone-gold .kit-art { background: #fbecc0; }
.kit-art .pa { width: 52px; height: 60px; }
.kit-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.kit-serves { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--terra); }
.kit h3 { font-size: 26px; }
.kit-note { color: var(--muted); font-size: 15px; }
.kit-items { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.kit-items li { padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.kit-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kit-foot strong { font-size: 26px; font-weight: 800; }
@media (max-width: 900px) { .kit-grid { grid-template-columns: 1fr; } .kit { flex-direction: row; } .kit-art { flex-direction: column; justify-content: center; align-items: center; min-width: 110px; padding: 16px; } .kit-art .pa:nth-child(n+3) { display: none; } }
@media (max-width: 520px) { .kit { flex-direction: column; } .kit-art { flex-direction: row; min-height: 96px; } .kit-art .pa:nth-child(n+3) { display: block; } .kit-foot .btn { padding-inline: 14px; } }

/* Shop */
.shop { padding-block: clamp(44px, 7vw, 76px); background: var(--cream); }
.stock-toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.stock-toggle input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.aisles { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-bottom: 12px; }
.aisles::-webkit-scrollbar { display: none; }
.aisle { flex: none; min-height: 42px; padding: 6px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.aisle[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.results { min-height: 1.4em; margin-bottom: 8px; color: var(--muted); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.card-art { position: relative; display: grid; place-items: center; height: 130px; border-radius: 12px; background: var(--paper); margin-bottom: 12px; }
.card-art .pa { width: 76px; height: 88px; }
.badge { position: absolute; top: 8px; left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.pop { background: var(--gold); color: var(--green-deep); }
.badge.fresh { background: var(--green); color: #fff; }
.badge.out { background: #e9e2d6; color: var(--muted); }
.card-name { font-weight: 700; line-height: 1.25; }
.card-size { color: var(--muted); font-size: 14px; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-foot strong { font-size: 19px; font-weight: 800; }
.card.is-out .card-art .pa { opacity: .45; filter: grayscale(.7); }
.add, .notify { min-height: 40px; padding: 6px 14px; white-space: nowrap; border-radius: 10px; font-weight: 700; cursor: pointer; }
.add { border: 0; background: var(--green); color: #fff; }
.add:hover { background: var(--green-2); }
.notify { border: 2px solid var(--line); background: #fff; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border-radius: 10px; background: var(--green); color: #fff; }
.qty button { width: 36px; height: 40px; border: 0; background: transparent; color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; }
.qty output { min-width: 22px; text-align: center; font-weight: 800; }
.none { padding: 24px; text-align: center; color: var(--muted); }
.none a { color: var(--green); font-weight: 700; }
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 10px; }
  .card-art { height: 104px; }
  .card-art .pa { width: 60px; height: 70px; }
  .card-foot { flex-wrap: wrap; }
  .card-foot .add, .card-foot .notify, .card-foot .qty { width: 100%; justify-content: space-between; }
  .card-foot .qty output { flex: 1; }
}

/* Product art: simple packaging shapes drawn in CSS */
.pa { position: relative; display: block; flex: none; }
.pa i, .pa b { position: absolute; display: block; }
.pa-bag i { inset: 8% 10% 0; background: var(--c1); border-radius: 6px 6px 10px 10px; box-shadow: inset 0 6px 0 rgba(0,0,0,.08), 0 6px 10px rgba(0,0,0,.08); }
.pa-bag i::before { content: ""; position: absolute; left: 0; right: 0; top: -8%; height: 12%; background: var(--c1); filter: brightness(.9); border-radius: 3px; }
.pa-bag b { left: 22%; right: 22%; top: 38%; height: 26%; background: var(--c2); border-radius: 4px; }
.pa-bottle i { left: 30%; right: 30%; top: 14%; bottom: 0; background: var(--c1); border-radius: 30% 30% 10px 10px; box-shadow: 0 6px 10px rgba(0,0,0,.1); }
.pa-bottle i::before { content: ""; position: absolute; left: 30%; right: 30%; top: -18%; height: 20%; background: var(--c1); border-radius: 3px 3px 0 0; filter: brightness(.8); }
.pa-bottle b { left: 30%; right: 30%; top: 48%; height: 26%; background: var(--c2); }
.pa-tin i { left: 18%; right: 18%; top: 22%; bottom: 0; background: var(--c1); border-radius: 8px; box-shadow: inset 0 5px 0 rgba(255,255,255,.35), inset 0 -5px 0 rgba(0,0,0,.15), 0 6px 10px rgba(0,0,0,.1); }
.pa-tin b { left: 18%; right: 18%; top: 46%; height: 26%; background: var(--c2); }
.pa-jar i { left: 16%; right: 16%; top: 20%; bottom: 0; background: var(--c1); border-radius: 10px 10px 14px 14px; box-shadow: 0 6px 10px rgba(0,0,0,.1); }
.pa-jar i::before { content: ""; position: absolute; left: 6%; right: 6%; top: -14%; height: 16%; background: var(--c2); border-radius: 4px; }
.pa-jar b { left: 16%; right: 16%; top: 50%; height: 22%; background: rgba(255,255,255,.7); }
.pa-box i { left: 8%; right: 8%; top: 24%; bottom: 0; background: var(--c1); border-radius: 6px; box-shadow: 0 6px 10px rgba(0,0,0,.1); }
.pa-box b { left: 22%; right: 22%; top: 44%; height: 30%; background: var(--c2); border-radius: 50%; }
.pa-veg i { left: 8%; right: 8%; top: 28%; bottom: 6%; background: var(--c1); border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%; transform: rotate(-18deg); box-shadow: inset -6px -6px 0 rgba(0,0,0,.1); }
.pa-veg b { left: 44%; width: 14%; top: 14%; height: 20%; background: var(--c2); border-radius: 50% 50% 2px 2px; transform: rotate(-18deg); }
.pa-fish i { left: 4%; right: 26%; top: 34%; bottom: 30%; background: var(--c1); border-radius: 50%; box-shadow: inset 0 -6px 0 rgba(0,0,0,.12); }
.pa-fish b { right: 4%; width: 26%; top: 30%; bottom: 26%; background: var(--c1); filter: brightness(.85); clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.pa-fish i::before { content: ""; position: absolute; left: 18%; top: 34%; width: 10%; height: 18%; border-radius: 50%; background: var(--c2); }

/* Visit */
.visit { padding-block: clamp(44px, 7vw, 72px); }
.visit-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.visit p { margin-top: 10px; color: var(--muted); }
.visit-links a { color: var(--green); font-weight: 700; }
.delivery-info { margin-top: 18px; display: grid; gap: 0; }
.delivery-info li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.delivery-info span { color: var(--muted); text-align: right; }
.hours { width: 100%; border-collapse: collapse; align-self: start; }
.hours th, .hours td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; }
.hours .is-today { background: var(--gold); }
.hours .is-today th, .hours .is-today td { font-weight: 800; }
@media (max-width: 760px) { .visit-grid { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: var(--green-deep); color: #cfe0d4; padding-block: 26px; font-size: 15px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot a { color: var(--gold); font-weight: 700; }

/* Floating basket */
.basket-float {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: none; align-items: center; gap: 12px; min-height: 54px; padding: 10px 18px; border: 0; border-radius: 16px;
  background: var(--green); color: #fff; font-weight: 700; box-shadow: 0 14px 30px rgba(0,0,0,.25); cursor: pointer;
}
.basket-float span { margin-right: auto; }
.basket-float strong { color: var(--gold); }
@media (max-width: 760px) { .basket-float:not([hidden]) { display: flex; } }

/* Drawer */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(12, 24, 17, .55); }
.drawer { position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column; background: var(--paper); box-shadow: -20px 0 50px rgba(0,0,0,.25); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--green-deep); color: #fff; }
.drawer-head h2 { font-size: 26px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.drawer-body { display: grid; gap: 14px; padding: 16px 20px 28px; overflow-y: auto; align-content: start; }
.free-bar { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.free-bar p { font-size: 15px; }
.free-bar.is-done p { color: var(--green); }
.bar { margin-top: 8px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gold); transition: width .3s ease; }
.free-bar.is-done .bar span { background: var(--green); }
.lines { display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.line .pa { width: 36px; height: 42px; }
.line-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.line-name small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.line .qty button { width: 32px; height: 36px; font-size: 18px; }
.line-price { font-weight: 800; min-width: 62px; text-align: right; }
.empty { color: var(--muted); }
.checkout { display: grid; gap: 14px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.method { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.opt b { display: block; font-size: 15px; }
.opt small { color: var(--muted); font-size: 13px; }
.opt em { font-style: normal; font-weight: 800; }
.opt:has(input:checked) { border-color: var(--green); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 4px; align-content: start; }
.field label { font-size: 14px; font-weight: 700; color: var(--muted); }
.field input { width: 100%; min-height: 46px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.field input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(242, 183, 5, .45); }
[aria-invalid="true"] { border-color: #b42318 !important; }
.err { color: #b42318; font-size: 14px; font-weight: 600; }
.eir-ok { color: var(--green); font-size: 14px; font-weight: 700; }
.sums { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.sums p { display: flex; justify-content: space-between; }
.sum-total strong { font-size: 26px; font-weight: 800; }
.demo-note { font-size: 13px; color: var(--muted); }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(12, 24, 17, .6); }
.modal-card { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px; border-radius: 20px; background: var(--paper); display: grid; gap: 12px; text-align: center; }
.modal-card h2 { font-size: 30px; }
.modal-sub { color: var(--muted); font-size: 15px; }
.wa-msg { margin: 0; padding: 14px 16px; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 12px 12px 12px 2px; background: #dcf8c6; color: #111; font: 400 14px/1.5 var(--font); }
.tick { justify-self: center; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; }
.tick svg { width: 30px; height: 30px; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Toast */
.toast {
  position: fixed; z-index: 95; left: 50%; top: 80px; transform: translate(-50%, -10px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  transition: opacity .25s, transform .25s; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
