:root {
  --black: #000;
  --green: #008751;        /* Nigerian-flag green: buttons and links on white */
  --green-d: #006b40;
  --lime: #1fd26b;         /* bright green for use on black */
  --paper: #fff;
  --mist: #f1f4f2;
  --ink: #0a0a0a;
  --muted: #59615d;
  --line: #e2e7e4;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* announcement + header */
.announce { background: var(--black); color: #d9ded9; text-align: center; font-size: .85rem; padding: 8px 16px; }
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.2rem var(--display); letter-spacing: -0.02em; }
.brand em { font-style: normal; color: var(--green); }
.logo { width: 42px; height: 42px; border-radius: 50%; display: block; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: #2b302d; }
.top nav a:hover { background: var(--mist); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--black); color: var(--lime); font-size: .75rem; font-weight: 700; }

/* buttons */
.btn { display: inline-block; text-align: center; background: var(--green); color: #fff; border: 2px solid var(--green); border-radius: 999px; padding: 11px 22px; font: 700 1rem var(--body); cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--green-d); border-color: var(--green-d); }
.btn.sm { padding: 8px 16px; font-size: .9rem; }
.btn.lg { padding: 14px 28px; font-size: 1.05rem; }
.btn.full { width: 100%; margin-top: 16px; }
.btn.lime { background: var(--lime); border-color: var(--lime); color: #000; }
.btn.lime:hover { background: #4be08b; border-color: #4be08b; }
.btn.outline { background: transparent; border-color: #fff; color: #fff; }
.btn.outline:hover { background: #fff; color: #000; }
.btn.outline-d { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.outline-d:hover { background: var(--ink); color: #fff; }
.btn.black { background: #000; border-color: #000; color: #fff; }
.btn.black:hover { background: #222; border-color: #222; }

/* hero */
.hero { background: var(--black); color: #fff; overflow: hidden; }
.herogrid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 48px; }
.hero h1 { font-weight: 800; font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 14ch; }
.hero p { color: #b9c0bb; font-size: 1.15rem; max-width: 34ch; margin: 18px 0 28px; }
.heroact { display: flex; flex-wrap: wrap; gap: 12px; }
.heroart { justify-self: center; width: min(100%, 360px); }
.heroart svg { width: 100%; height: auto; display: block; }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: -26px; position: relative; z-index: 2; }
.tile { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.08); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--green); transform: translateY(-2px); }
.tile .ico { width: 44px; height: 44px; color: var(--green); flex: none; }
.tile strong { display: block; font: 700 1.1rem var(--display); }
.tile small { color: var(--muted); font-size: .85rem; }

/* shop */
.shop { padding-top: 56px; }
.shophead { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.shophead h2 { font-size: 2rem; font-weight: 800; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.search { flex: 1 1 260px; }
.sort { flex: 0 0 auto; }
.toolbar input, .toolbar select { margin: 0; border-radius: 999px; padding: 12px 18px; background: var(--mist); border-color: transparent; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--green); background: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 18px; cursor: pointer; font: 600 .92rem var(--body); }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--black); border-color: var(--black); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.prod { display: flex; flex-direction: column; }
.pimg { position: relative; display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--mist); }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.prod:hover .pimg img { transform: scale(1.04); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--mist); }
.ph .ico { width: 34%; height: 34%; color: var(--green); }
.badge-s { position: absolute; left: 12px; top: 12px; background: var(--black); color: var(--lime); font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-s.out { background: #fff; color: #b42318; }
.pbody { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pcat { color: var(--muted); font-size: .85rem; }
.prod h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.prod h3 a { text-decoration: none; }
.prod h3 a:hover { color: var(--green); }
.pfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.pprice { font: 800 1.2rem var(--display); letter-spacing: -0.02em; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }

/* trust + sell */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; padding-top: 64px; padding-bottom: 8px; }
.trust div { border-top: 3px solid var(--green); padding-top: 14px; }
.trust strong { display: block; font: 700 1.1rem var(--display); margin-bottom: 4px; }
.trust span { color: var(--muted); font-size: .95rem; }
.sell { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 56px 0; padding: 36px; border-radius: 26px; background: var(--lime); color: #000; }
.sell h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; }
.sell p { margin: 6px 0 0; font-weight: 500; }

/* product page */
.crumb { display: flex; gap: 8px; padding: 22px 0 6px; font-size: .9rem; color: var(--muted); }
.crumb a { text-decoration: none; color: var(--green); font-weight: 600; }
.detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; padding: 16px 0 40px; align-items: start; }
.dm { border-radius: 24px; overflow: hidden; background: var(--mist); aspect-ratio: 1; }
.dm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dinfo h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 6px 0 10px; }
.price { font: 800 2rem var(--display); letter-spacing: -0.02em; margin-bottom: 12px; }
.desc { color: #3b413d; max-width: 52ch; }
.opt, form label { display: block; margin: 16px 0; font-weight: 600; font-size: .92rem; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: 1rem var(--body); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,135,81,.18); }
.opt select, .opt input { max-width: 200px; }
.buyrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.out { color: #b42318; font-weight: 700; }
.assure { list-style: none; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; color: #3b413d; font-size: .95rem; }
.assure li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 10px; }
.relwrap { padding: 24px 0 56px; border-top: 1px solid var(--line); }
.relwrap h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 18px; }

/* cart + forms + account */
.pagewrap { padding-top: 32px; padding-bottom: 56px; }
.ptitle { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 22px; }
.cartgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.box { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: #fff; }
.box h2 { font-size: 1.3rem; margin-bottom: 4px; }
.line { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button, .x { border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.qty button:hover { border-color: var(--ink); }
.x { border: 0; color: var(--muted); font-size: 1.3rem; }
.sum { margin-top: 18px; }
.sum > div { display: flex; justify-content: space-between; padding: 5px 0; color: #3b413d; }
.sum .tot { font: 800 1.2rem var(--display); color: var(--ink); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.note { color: var(--muted); font-size: .82rem; text-align: center; margin: 12px 0 0; }
.note.left { text-align: left; margin: 8px 0 0; }
.note a { color: var(--green); font-weight: 600; }
.back { margin-top: 18px; }
.back a { color: var(--green); font-weight: 600; text-decoration: none; }
.empty-cart { padding: 40px 0; }
.donebox { max-width: 560px; }
code { background: var(--mist); padding: 2px 8px; border-radius: 6px; }
.authbox { max-width: 440px; margin: 0 auto 40px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab { flex: 1; padding: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; cursor: pointer; font: 700 .95rem var(--body); }
.tab.active { background: var(--black); color: #fff; border-color: var(--black); }
.msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: .9rem; }
.msg.ok { background: rgba(0,135,81,.12); color: var(--green-d); }
.msg.err { background: rgba(180,35,24,.1); color: #b42318; }
.order { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.order ul { margin: 8px 0; padding-left: 18px; }
.orow { display: flex; justify-content: space-between; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost.full { margin-top: 10px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--black); color: var(--lime); padding: 11px 22px; border-radius: 999px; font-weight: 700; z-index: 30; }

/* footer */
.foot { background: var(--black); color: #c9cfca; margin-top: 24px; padding-top: 48px; }
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.fbrand { display: flex; align-items: center; gap: 10px; color: #fff; font: 800 1.15rem var(--display); }
.foot p { max-width: 30ch; margin: 12px 0 14px; }
.foot h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.foot a { display: block; text-decoration: none; padding: 3px 0; }
.foot a:hover { color: var(--lime); }
.fbase { border-top: 1px solid #1d1f1e; padding-top: 18px; padding-bottom: 28px; font-size: .85rem; color: #8a918c; }
.ngflag { display: inline-block; width: 28px; height: 18px; border-radius: 3px; background: linear-gradient(90deg, #008751 33.3%, #fff 33.3% 66.6%, #008751 66.6%); }

@media (max-width: 860px) {
  .herogrid { grid-template-columns: 1fr; padding-top: 40px; }
  .heroart { width: min(70%, 260px); order: -1; justify-self: start; }
  .hero h1 { max-width: 16ch; }
  .detail, .cartgrid { grid-template-columns: 1fr; gap: 24px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fgrid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .bar { height: 60px; }
  .brand span { font-size: 1.05rem; }
  .logo { width: 36px; height: 36px; }
  .top nav a { padding: 8px; font-size: .9rem; }
  .top nav a[href*="wa.me"] { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pfoot { flex-direction: column; align-items: flex-start; }
  .pfoot .btn { width: 100%; }
  .tiles { display: flex; overflow-x: auto; gap: 10px; margin-top: 18px; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .tile { flex: 0 0 auto; padding: 12px 16px; gap: 10px; box-shadow: none; scroll-snap-align: start; }
  .tile .ico { width: 30px; height: 30px; }
  .sell { padding: 26px; margin: 40px 0; }
  .line { grid-template-columns: 1fr auto; }
  .buyrow .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
