@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  /* --- 60/30/10 system ---------------------------------------------------
     60% canvas: white / near-white neutral gray
     30% structure: forest green (nav, headings) + charcoal (body text)
     10% action: sunset orange (buttons) + burnt terracotta (deal/urgency tags)
     Gold is kept as a small premium accent (ratings, founding-seller badge),
     not a button color — Amazon/Shein reserve their action color for exactly
     that, so nothing else competes with it for the eye. */
  --canvas: #ffffff;
  --canvas-alt: #f4f3ef;
  --ink: #23271f;          /* charcoal — body text */
  --canopy: #0e4d3c;        /* forest green — nav, section headings */
  --canopy-dark: #0a352a;
  --canopy-tint: #e7f0ec;
  --gold: #b8912a;          /* premium accent only — ratings, founding badge */
  --gold-light: #e7c766;
  --sunset: #e05e2b;         /* primary action — Add to cart / Buy / Pay */
  --sunset-dark: #c14a1c;
  --clay: #b14b32;           /* deal % / urgency tags — same action family, darker */
  --clay-tint: #f7e7e2;
  --paper: var(--canvas);
  --sand: var(--canvas-alt);
  --line: #e6e3da;
  --ink-soft: #6b6f64;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 36, 28, 0.06), 0 8px 24px -12px rgba(16, 36, 28, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
  color: var(--canopy);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--canopy);
  font-weight: 500;
}

.wrap {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --- kente rule: the recurring signature divider ------------------------ */
/* --- homepage promo carousel: large, colorful, admin-editable cards.
   Same proven flex + overflow-x:auto pattern as everywhere else in this
   app — no CSS Grid, no <details>, nothing that's caused trouble before. */
.promo-carousel-section { background: #fff; padding: 22px 0 26px; }
.promo-carousel-heading { margin-bottom: 14px; }
.promo-carousel-heading h2 { margin-bottom: 0; }
.promo-carousel-wrap { display: flex; align-items: center; gap: 12px; }
.promo-carousel {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; flex: 1; padding: 4px 2px;
}
.promo-carousel::-webkit-scrollbar { display: none; }
.promo-card {
  flex-shrink: 0; scroll-snap-align: start;
  width: 260px; height: 320px; border-radius: 16px; padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 10px;
  color: #fff; position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.promo-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -12px rgba(0,0,0,0.35); }
.promo-card-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
.promo-card-video-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
}
.promo-card-eyebrow, .promo-card-title { position: relative; z-index: 2; }
.promo-card-eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; opacity: 0.85;
}
.promo-card-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 26px; line-height: 1.15; }
.promo-carousel-arrow {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; box-shadow: var(--shadow);
}
.promo-carousel-arrow:hover { border-color: var(--canopy); color: var(--canopy); }
@media (max-width: 700px) {
  .promo-carousel-arrow { display: none; }
  .promo-card { width: 200px; height: 260px; padding: 16px; }
  .promo-card-title { font-size: 20px; }
}

.kente-rule {
  height: 4px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--canopy) 0 28px,
    var(--gold) 28px 40px,
    var(--clay) 40px 46px,
    var(--canopy) 46px 74px
  );
}
.kente-rule.thin { height: 3px; }

/* --- nav -------------------------------------------------------- */
.pin-icon { flex-shrink: 0; vertical-align: -2px; margin-right: 2px; }

.nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand-group { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.brand {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 23px;
  color: var(--canopy);
  letter-spacing: -0.02em;
  text-transform: lowercase;
  white-space: nowrap;
}
.brand span { color: var(--gold); font-weight: 800; }
.nav-delivery {
  display: flex; align-items: center; gap: 3px; white-space: nowrap;
  font-size: 12.5px; color: var(--ink-soft); padding-left: 16px; border-left: 1px solid var(--line);
}
.nav-delivery strong { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) { .nav-delivery { display: none; } }

.searchbar {
  flex: 1;
  max-width: 480px;
  display: flex;
  border: 1.5px solid var(--canopy);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.searchbar input {
  flex: 1;
  border: 0;
  padding: 10px 16px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  background: transparent;
}
.searchbar button {
  background: var(--canopy);
  color: #fff;
  border: 0;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.nav-links a { padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-color: var(--gold); }
.nav-text-link { color: var(--ink); font-weight: 600; }
.nav-text-link:hover { color: var(--canopy); }
@media (max-width: 960px) { .nav-text-link { display: none; } }

.nav-icon-link { display: none; color: var(--ink); padding: 4px; }
@media (max-width: 960px) { .nav-icon-link { display: inline-flex; align-items: center; } }
.auth-pill { display: inline-flex; align-items: center; gap: 6px; }
.nav-links .btn + .btn { margin-left: 2px; }
.cart-pill {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; color: var(--gold); flex-shrink: 0;
}
.cart-pill:hover { color: var(--gold-light); }
.cart-pill .count {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  background: var(--canopy); color: #fff;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; border: 2px solid var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; line-height: 1;
}

.categorybar { background: #fff; border-bottom: 1px solid var(--line); }
.categorybar .wrap { display: flex; align-items: center; padding: 11px 24px; }
.categorybar-scroll {
  display: flex; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; width: 100%;
}
.categorybar-scroll::-webkit-scrollbar { display: none; }
.categorybar-scroll a {
  color: var(--ink); font-weight: 600; font-size: 13.5px; white-space: nowrap;
  margin-right: 18px; border-bottom: 2px solid transparent; padding-bottom: 2px;
  flex-shrink: 0;
}
.categorybar-scroll a:first-child { margin-left: 0; }
.categorybar-scroll a:last-child { margin-right: 0; }
.categorybar-scroll a:hover { color: var(--canopy); border-color: var(--gold); }


/* --- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  border: 1.5px solid transparent; transition: transform .05s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--sunset); color: #fff; }
.btn-primary:hover { background: var(--sunset-dark); }
.btn-canopy { background: var(--canopy); color: #fff; }
.btn-canopy:hover { background: var(--canopy-dark); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { border-color: var(--canopy); color: var(--canopy); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: transparent; border-color: var(--clay); color: var(--clay); }

/* --- hero ------------------------------------------------------------------ */
.hero {
  background: linear-gradient(180deg, var(--canopy-dark), var(--canopy));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .wrap { padding: 64px 24px 56px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: 44px; line-height: 1.08; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p.lede { color: #d9ecdf; font-size: 17px; max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-diaspora { margin-top: 18px; font-size: 13.5px; color: #d9ecdf; }
.hero-diaspora a { color: var(--gold-light); font-weight: 600; border-bottom: 1px solid rgba(231,199,102,0.5); }
.hero-diaspora a:hover { border-color: var(--gold-light); }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; }
.hero-stats div { margin-right: 28px; }
.hero-stats div:last-child { margin-right: 0; }
.hero-stats div strong { display: block; font-family: 'Fraunces', serif; font-size: 26px; color: var(--gold-light); }
.hero-stats div span { font-size: 12.5px; color: #b9d3c4; }

.hero-card {
  background: #fff; color: var(--ink); border-radius: 16px; padding: 22px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
}
.hero-card .tag { display: inline-block; background: var(--clay-tint); color: var(--clay); font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;}
.hero-card img { border-radius: 10px; margin-bottom: 12px; aspect-ratio: 4/3; object-fit: cover; background: var(--sand); }

/* --- section headers --------------------------------------------------- */
.section { padding: 46px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { font-size: 26px; }
.section-head a.see-all { font-size: 13.5px; font-weight: 600; color: var(--canopy); border-bottom: 1px solid var(--canopy); }

/* --- product grid & cards ------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-thread { height: 4px; background: linear-gradient(90deg, var(--canopy), var(--gold) 55%, var(--clay)); }
.card-media { aspect-ratio: 1/1; background: var(--sand); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 12px; position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }

/* --- wishlist heart (product cards + product page) ------------------ */
.wishlist-form { position: absolute; top: 10px; right: 10px; z-index: 5; margin: 0; }
.wishlist-heart {
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.92); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow); padding: 0;
}
.wishlist-heart svg { fill: none; transition: fill .15s ease; }
.wishlist-heart:hover { color: var(--clay); }
.wishlist-heart.saved { color: var(--clay); }
.wishlist-heart.saved svg { fill: var(--clay); }
.wishlist-heart-pdp {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink-soft); display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; flex-shrink: 0;
}
.wishlist-heart-pdp svg { fill: none; }
.wishlist-heart-pdp.saved { color: var(--clay); border-color: var(--clay); }
.wishlist-heart-pdp.saved svg { fill: var(--clay); }
.badge.deal { background: var(--clay); }
.badge.founding { background: var(--gold); color: var(--ink); }
.card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-origin { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.card-title { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.card-seller { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.card-seller-logo {
  width: 18px; height: 18px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--canvas-alt); color: var(--canopy); font-weight: 700; font-size: 10px;
  display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif;
}
.card-seller-logo img { width: 100%; height: 100%; object-fit: cover; }
.mig-chip { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; color: var(--canopy-dark); background: var(--canopy-tint); padding: 1px 6px; border-radius: 999px; }
.stars { color: var(--gold); font-size: 12.5px; }
.rating-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); cursor: pointer; width: fit-content; }
.rating-row:hover { text-decoration: underline; color: var(--canopy); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.price { font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px; }
.price-compare { text-decoration: line-through; color: var(--ink-soft); font-size: 12.5px; }
.urgency { font-size: 11.5px; color: var(--clay); font-weight: 600; }
.social-proof { font-size: 11px; color: var(--ink-soft); }

/* --- verified badge chips --------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.chip-verified { background: var(--canopy-tint); color: var(--canopy); }
.chip-established { background: #dff0e8; color: var(--canopy-dark); }
.chip-founding { background: #fbeecd; color: #8a6a13; }

/* --- product detail page ----------------------------------------------- */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0; }
@media (max-width: 860px) { .product-page { grid-template-columns: 1fr; gap: 24px; } }
.gallery-main { aspect-ratio: 1/1; background: var(--sand); border-radius: 14px; overflow: hidden; margin-bottom: 10px; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.85); color: var(--ink); font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow); z-index: 2;
}
.gallery-arrow-left { left: 12px; }
.gallery-arrow-right { right: 12px; }
.gallery-arrow:hover { background: #fff; color: var(--canopy); }
.gallery-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.gallery-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.gallery-dot.active { background: #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,0.15); }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb { width: 64px; height: 64px; border-radius: 8px; background: var(--sand); border: 2px solid var(--line); overflow: hidden; cursor: pointer; }
.gallery-thumb.active { border-color: var(--canopy); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp-seller { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pdp-seller-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--canopy); color: #fff; display: flex; align-items: center; justify-content: center; font-family:'Fraunces',serif; font-weight: 600; }
.pdp-title { font-size: 28px; margin-bottom: 6px; }
.pdp-price { font-family: 'Fraunces', serif; font-size: 34px; font-weight: 700; color: var(--canopy-dark); }
.pdp-box { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; margin: 18px 0; }

.stock-line { font-size: 13.5px; margin-bottom: 12px; }
.stock-bar { height: 6px; border-radius: 999px; background: var(--sand); overflow: hidden; margin-bottom: 6px; }
.stock-bar span { display: block; height: 100%; background: var(--clay); }
.qty-form { display: flex; gap: 10px; margin-top: 14px; }
.qty-input { width: 70px; padding: 10px; border: 1.5px solid var(--line); border-radius: 8px; text-align: center; font-family: inherit; font-size: 14px; }
.trust-row { display: flex; gap: 18px; margin-top: 16px; font-size: 12.5px; color: var(--ink-soft); flex-wrap: wrap; }
.trust-row div { display: flex; align-items: center; gap: 6px; }

.tabs-nav { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 36px 0 20px; font-weight: 600; font-size: 14.5px; }
.tabs-nav div { padding-bottom: 12px; color: var(--ink-soft); }
.tabs-nav div.active { color: var(--canopy); border-bottom: 2px solid var(--canopy); }

.review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.review-name { font-weight: 600; font-size: 13.5px; }
.verified-tag { font-size: 10.5px; color: var(--canopy); font-weight: 700; background: var(--canopy-tint); padding: 2px 8px; border-radius: 999px; }

/* --- storefront ---------------------------------------------------------- */
.store-cover { height: 200px; background: linear-gradient(120deg, var(--canopy-dark), var(--canopy)); position: relative; }
.store-head { display: flex; gap: 20px; align-items: flex-end; padding-bottom: 20px; padding-top: 20px; }
.store-logo { width: 92px; height: 92px; border-radius: 16px; background: #fff; border: 4px solid #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-family:'Fraunces',serif; font-size: 30px; font-weight: 700; color: var(--canopy); flex-shrink: 0; margin-top: -46px; }
.store-stats { display: flex; gap: 26px; margin: 18px 0 8px; font-size: 13.5px; }
.store-stats strong { display: block; font-family: 'Fraunces', serif; font-size: 20px; }

/* --- forms ----------------------------------------------------------------- */
.auth-shell { max-width: 440px; margin: 60px auto; padding: 0 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 14.5px; background: #fff; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--canopy); }
.field-hint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.role-pick { display: flex; gap: 10px; }
.role-pick label { flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; text-align: center; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.role-pick input { display: none; }
.role-pick input:checked + span { color: var(--canopy); }
.role-pick label:has(input:checked) { border-color: var(--canopy); background: var(--canopy-tint); }
.error-box { background: var(--clay-tint); color: var(--clay); padding: 12px 14px; border-radius: 8px; font-size: 13.5px; margin-bottom: 16px; }
.form-footer { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); }
.form-footer a { color: var(--canopy); font-weight: 600; }

/* --- cart / checkout ----------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 36px 0; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-row { display: grid; grid-template-columns: 24px 76px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 76px; height: 76px; border-radius: 8px; background: var(--sand); overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.summary-box { border: 1px solid var(--line); border-radius: 14px; padding: 22px; position: sticky; top: 90px; background: #fff; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--ink-soft); }
.summary-row.total { color: var(--ink); font-weight: 700; font-size: 17px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.free-delivery-note { font-size: 12.5px; background: var(--canopy-tint); color: var(--canopy-dark); padding: 9px 12px; border-radius: 8px; margin-bottom: 16px; }

/* --- tables (dashboard / orders) ---------------------------------------- */
table.plain { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table.plain { min-width: 560px; }
table.plain th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.plain td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.status-pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; display: inline-block; }
.status-processing { background: #fdf1d8; color: #8a6a13; }
.status-dispatched { background: #dbe9f7; color: #1d5992; }
.status-delivery_reported { background: #fdf3dc; color: #8a6a13; }
.status-delivered { background: var(--canopy-tint); color: var(--canopy-dark); }
.status-cancelled { background: var(--clay-tint); color: var(--clay); }
.status-paid { background: var(--canopy-tint); color: var(--canopy-dark); }
.status-pending { background: #fdf1d8; color: #8a6a13; }
.status-needs_information { background: #fdf1d8; color: #8a6a13; }
.status-failed { background: var(--clay-tint); color: var(--clay); }
.status-expired { background: var(--sand); color: var(--ink-soft); }
/* Logistics-specific statuses (Stage B) — same color vocabulary as above,
   just extended to the new status values this schema introduces. */
.status-awaiting_preparation { background: #fdf1d8; color: #8a6a13; }
.status-preparing { background: #fdf1d8; color: #8a6a13; }
.status-ready_for_pickup { background: #dbe9f7; color: #1d5992; }
.status-picked_up { background: #dbe9f7; color: #1d5992; }
.status-booked { background: #dbe9f7; color: #1d5992; }
.status-not_ready { background: var(--sand); color: var(--ink-soft); }
.status-ready { background: #dbe9f7; color: #1d5992; }
.status-in_transit { background: #dbe9f7; color: #1d5992; }
.status-at_hub { background: #dbe9f7; color: #1d5992; }
.status-delayed { background: var(--clay-tint); color: var(--clay); }
.status-problem_reported { background: var(--clay-tint); color: var(--clay); }
.status-returned { background: var(--clay-tint); color: var(--clay); }
.status-reported { background: var(--clay-tint); color: var(--clay); }
.status-under_review { background: #fdf1d8; color: #8a6a13; }
.status-resolved { background: var(--canopy-tint); color: var(--canopy-dark); }

.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 30px; }
@media (max-width: 860px) { .stat-cards { grid-template-columns: 1fr 1fr; } }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.stat-card .num { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; }
.stat-card .label { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

/* --- founding sellers strip ---------------------------------------------- */
.sellers-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .sellers-strip { grid-template-columns: 1fr; } }

.seller-tile { background: #fff; border: 1px solid var(--line); padding: 18px; display: flex; gap: 14px; align-items: center; border-radius: 12px; }
.seller-tile .store-logo { width: 52px; height: 52px; font-size: 18px; margin: 0; }

/* --- footer --------------------------------------------------------------- */
footer { background: var(--ink); color: #b9c7bf; margin-top: 60px; }
footer .wrap { padding: 44px 24px 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) {
  footer .wrap { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 460px) {
  footer .wrap { grid-template-columns: 1fr; }
}
footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
footer a { display: block; font-size: 13px; padding: 4px 0; color: #a9bab1; }
footer .foot-brand { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-transform: lowercase; color: #fff; margin-bottom: 8px; }
footer .foot-brand span { color: var(--gold-light); }
.foot-bottom { border-top: 1px solid #24352c; padding: 16px 24px; text-align: center; font-size: 12px; color: #7d8f85; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--ink-soft); }

/* --- admin-editable content pages (About, Trust & Safety, Seller Standards) --- */
.site-content h2 { font-size: 18px; margin-top: 28px; }
.site-content h2:first-child { margin-top: 0; }
.site-content p { font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 16px; }
.empty-state h3 { color: var(--canopy); }

/* --- diaspora section ------------------------------------------------- */
.diaspora-card {
  background: linear-gradient(120deg, var(--canopy-dark), var(--canopy));
  border-radius: 20px;
  padding: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.diaspora-card > div:first-child { flex: 1 1 320px; }
.diaspora-steps { flex: 1 1 280px; }
.diaspora-card > a.btn { flex: 0 0 auto; }
@media (max-width: 900px) { .diaspora-card { text-align: left; } }
.diaspora-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.diaspora-steps li { display: flex; gap: 12px; align-items: flex-start; color: #e7f0ec; font-size: 13.5px; line-height: 1.5; }
.diaspora-steps li .step-num {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--gold);
  color: var(--canopy-dark); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.diaspora-steps li .step-text { flex: 1; }
.diaspora-steps li em { color: var(--gold-light); font-style: normal; font-weight: 600; }

@media (max-width: 700px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; }
  .hero h1 { font-size: 32px; }
  .nav .wrap { flex-wrap: wrap; }
  .searchbar { order: 3; flex-basis: 100%; }
}
