/* ============================================================================
   Genzura Storefront — minimal monochrome (inspired by yeezy.com)
   Structure arranged like a Rwandan marketplace (isoko/isokko mart)
   ============================================================================ */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #8b8b8b;
  --line: #e7e7e7;
  --soft: #f5f5f5;
  --ok: #0a0a0a;
  --danger: #c0392b;
  --pad: clamp(16px, 4vw, 48px);
  --maxw: 1500px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.02em; }

.muted { color: var(--muted); }

/* ── Announcement ─────────────────────────────────────────── */
.announce {
  background: var(--fg);
  color: #fff;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px var(--pad);
  min-height: 0;
}
.announce:empty { display: none; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.brand {
  grid-area: 1 / 2;
  justify-self: center;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  max-width: 44vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mainnav {
  grid-area: 1 / 1;
  justify-self: start;
  display: flex;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mainnav a { position: relative; padding: 2px 0; transition: color .15s; }
.mainnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px;
  background: var(--fg);
  transition: right .25s ease;
}
.mainnav a:hover { color: var(--fg); }
.mainnav a:hover::after { right: 0; }
.tools { grid-area: 1 / 3; justify-self: end; display: flex; gap: 4px; align-items: center; }
.icon-btn {
  background: none;
  border: 0;
  padding: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--fg);
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.icon-btn:hover { opacity: .55; }
#btn-menu { display: none; grid-area: 1 / 1; justify-self: start; flex-direction: column; gap: 4px; }
#btn-menu span { width: 20px; height: 1.5px; background: var(--fg); display: block; }
.cart-btn .cart-count {
  position: absolute;
  top: 2px; right: 0;
  background: var(--fg);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* search */
.searchbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.searchbar input {
  flex: 1;
  border: 0;
  border-bottom: 1px solid var(--fg);
  padding: 10px 2px;
  font-size: 22px;
  font-family: inherit;
  background: none;
  outline: none;
}
.searchbar input::placeholder { color: #cfcfcf; }

/* category nav */
.catnav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--line);
}
.catnav::-webkit-scrollbar { display: none; }
.catnav button {
  background: none;
  border: 0;
  padding: 12px 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.catnav button.active { color: var(--fg); border-bottom-color: var(--fg); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) var(--pad) clamp(24px, 4vw, 48px);
  display: grid;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
}
.hero-text h1 {
  font-size: clamp(40px, 8vw, 104px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}
.hero-text p { color: var(--muted); margin: 20px 0 28px; max-width: 40ch; font-size: 15px; }
.hero-media { aspect-ratio: 4/5; background: var(--soft); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--fg);
  color: #fff;
  border: 1px solid var(--fg);
  padding: 14px 26px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: opacity .15s;
}
.btn:hover { opacity: .82; }
.btn.ghost { background: none; color: var(--fg); }
.btn.ghost:hover { background: var(--fg); color: #fff; opacity: 1; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Sections & grid ──────────────────────────────────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--pad);
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-head h2 { font-size: clamp(22px, 3vw, 34px); text-transform: lowercase; font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(16px, 2.5vw, 40px) clamp(12px, 2vw, 28px);
}
.card { cursor: pointer; }
.card-media {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--soft);
  overflow: hidden;
  margin-bottom: 12px;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--fg);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
}
.card-name { font-size: 13px; margin-bottom: 4px; line-height: 1.35; }
.card-price { font-size: 13px; color: var(--fg); display: flex; gap: 8px; align-items: baseline; }
.card-price .was { color: var(--muted); text-decoration: line-through; }
.card-price .off { color: var(--danger); }
.card-oos { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  background: none;
  border: 1px solid var(--line);
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.filters button.active { border-color: var(--fg); color: var(--fg); }

/* ── Promotions ───────────────────────────────────────────── */
.promos { display: grid; gap: 0; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.promo {
  border-left: 1px solid var(--line);
  padding: 20px 24px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.promo:first-child { border-left: 0; }
.promo b { display: block; font-size: 15px; letter-spacing: 0.04em; margin-bottom: 6px; text-transform: none; }
.promo code { color: var(--muted); }
.promos:empty { display: none; }

/* ── How it works ─────────────────────────────────────────── */
.how-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.how .eyebrow {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.how h2 {
  font-size: clamp(30px, 5vw, 60px);
  text-transform: lowercase;
  letter-spacing: -0.035em;
  line-height: 0.9;
  margin: 0;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--fg);
}
.step {
  padding: clamp(22px, 3vw, 36px) clamp(20px, 3vw, 44px) 4px 0;
  border-left: 1px solid var(--line);
}
.step:first-child { border-left: 0; padding-left: 0; }
.step .num {
  display: block;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.05em;
  color: var(--soft);
  -webkit-text-stroke: 1px var(--fg);
  margin-bottom: clamp(24px, 3vw, 40px);
  font-variant-numeric: tabular-nums;
  transition: color .25s;
}
.step:hover .num { color: var(--fg); }
.step h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  margin: 0 0 10px;
}
.step p { color: var(--muted); margin: 0; max-width: 30ch; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq h2 { font-size: clamp(22px, 3vw, 34px); text-transform: lowercase; margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* ── Contact ──────────────────────────────────────────────── */
.contact h2 { font-size: clamp(22px, 3vw, 34px); text-transform: lowercase; margin-bottom: 24px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.contact-grid .item span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-grid .item a, .contact-grid .item p { margin: 0; font-size: 15px; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--fg);
  color: #fff;
  padding: clamp(40px, 6vw, 72px) var(--pad) 32px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer .brand-lg { font-size: clamp(34px, 7vw, 84px); font-weight: 700; letter-spacing: -0.03em; line-height: 0.9; text-transform: lowercase; }
.site-footer .cols { display: contents; }
.footer-col h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a8a8a; margin-bottom: 14px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; color: #d9d9d9; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--maxw); margin: 48px auto 0; padding-top: 24px; border-top: 1px solid #2a2a2a; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a; }

/* ── Overlay / Drawers / Modals ───────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; }
.overlay[hidden] { display: none; }

.drawer {
  position: fixed; top: 0; right: 0;
  height: 100dvh; width: min(440px, 100%);
  background: #fff; z-index: 100;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
}
.drawer.open { transform: translateX(0); }
.drawer-left { right: auto; left: 0; transform: translateX(-100%); border-left: 0; border-right: 1px solid var(--line); width: min(340px, 86%); }
.drawer-left.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px; }
.menu-body { display: flex; flex-direction: column; gap: 4px; }
.menu-body a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; background: rgba(0, 0, 0, 0.5); }
.modal-card {
  position: relative;
  background: #fff;
  width: 100%;
  max-height: 92dvh;
  overflow-y: auto;
  border: 1px solid var(--line);
}
.product-card { max-width: 1000px; padding: 0; }
.checkout-card { max-width: 560px; padding: 36px clamp(20px, 4vw, 40px); }
.confirm-card { max-width: 520px; padding: 0; }
.track-card { max-width: 460px; padding: 36px 32px; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; }

/* ── Product detail ───────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; }
.pd-media { background: var(--soft); aspect-ratio: 1/1; overflow: hidden; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; }
.pd-info .badge { position: static; align-self: flex-start; margin-bottom: 14px; }
.pd-info h1 { font-size: clamp(24px, 3vw, 34px); text-transform: lowercase; font-weight: 600; }
.pd-cat { color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 18px; }
.pd-price { font-size: 24px; margin-bottom: 18px; display: flex; gap: 12px; align-items: baseline; }
.pd-price .was { color: var(--muted); text-decoration: line-through; font-size: 16px; }
.pd-desc { color: var(--muted); margin-bottom: 24px; }
.pd-qty { display: flex; align-items: center; border: 1px solid var(--line); width: fit-content; margin-bottom: 20px; }
.pd-qty button { background: none; border: 0; padding: 10px 16px; font-size: 16px; }
.pd-qty span { padding: 0 6px; min-width: 30px; text-align: center; font-size: 14px; }
.pd-meta { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* ── Cart ─────────────────────────────────────────────────── */
.cart-line { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img, .cart-line .ph { width: 74px; height: 74px; object-fit: cover; background: var(--soft); }
.cart-line .ph { display: flex; align-items: center; justify-content: center; color: #ccc; }
.cart-line .name { font-size: 13px; margin-bottom: 6px; }
.cart-line .price { font-size: 13px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 8px; }
.qty button { background: none; border: 0; width: 28px; padding: 4px 0; }
.qty span { min-width: 26px; text-align: center; font-size: 12px; }
.cart-line .rm { background: none; border: 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; align-self: start; }
.cart-line .rm:hover { color: var(--danger); }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 0; }
.cart-sum { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 14px; }
.cart-sum.total { font-size: 17px; font-weight: 600; }

/* ── Forms ────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--fg);
  outline: none;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--fg); }
.field textarea { resize: vertical; min-height: 74px; }
.field .hint { font-size: 11px; color: var(--muted); margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.pay { display: grid; gap: 10px; margin-bottom: 18px; }
.pay label {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  cursor: pointer;
  font-size: 13px;
  text-transform: none; letter-spacing: 0; color: var(--fg);
  margin: 0;
}
.pay label.sel { border-color: var(--fg); }
.pay input { width: auto; }
.pay .pay-sub { color: var(--muted); font-size: 11px; }

.checkout h2 { font-size: 22px; text-transform: lowercase; margin-bottom: 4px; }
.checkout .sub { color: var(--muted); margin-bottom: 24px; font-size: 13px; }
.summary { border: 1px solid var(--line); padding: 16px; margin-bottom: 20px; }
.summary .l { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: var(--muted); }
.summary .l.total { color: var(--fg); font-weight: 600; font-size: 15px; margin-bottom: 0; }

/* ── Confirmation ─────────────────────────────────────────── */
.confirm { padding: 40px 32px; text-align: center; }
.confirm .check { width: 54px; height: 54px; border: 1px solid var(--fg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.confirm .check svg { width: 26px; height: 26px; fill: none; stroke: var(--fg); stroke-width: 1.6; }
.confirm h2 { font-size: 22px; text-transform: lowercase; margin-bottom: 8px; }
.confirm p { color: var(--muted); margin-bottom: 8px; }
.confirm .ref { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin: 18px 0; }
.confirm .ref b { display: block; font-size: 22px; letter-spacing: .1em; margin-top: 6px; }
.confirm .actions { display: grid; gap: 10px; margin-top: 24px; }

/* ── Track ────────────────────────────────────────────────── */
.track h2 { font-size: 20px; text-transform: lowercase; margin-bottom: 6px; }
.track .sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.track .result { border: 1px solid var(--line); padding: 18px; margin-top: 18px; }
.track .result .l { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.track .status { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--fg); color: #fff;
  padding: 14px 22px;
  font-size: 13px;
  z-index: 200;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── States ───────────────────────────────────────────────── */
.loading { padding: 100px 0; text-align: center; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; }
.offline { max-width: 560px; margin: 120px auto; padding: 0 var(--pad); text-align: center; }
.offline h1 { font-size: clamp(30px, 6vw, 60px); text-transform: lowercase; margin-bottom: 16px; }
.offline p { color: var(--muted); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .bar { grid-template-columns: auto 1fr auto; }
  .brand { grid-area: 1 / 2; justify-self: start; max-width: 60vw; }
  .mainnav { display: none; }
  #btn-menu { display: inline-flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16/10; order: -1; }
  .steps {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 0;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step {
    flex: 0 0 auto;
    width: min(76vw, 300px);
    scroll-snap-align: start;
    border-left: 1px solid var(--line);
    border-top: 0;
    padding: 22px 22px 6px;
  }
  .step:first-child { border-left: 0; padding-left: 0; }
  .step .num { font-size: 48px; margin-bottom: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .product-detail { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal-card { max-height: 96dvh; }
  .product-detail { grid-template-columns: 1fr; }
}
