/* ============================================================
   MauaTC — Customer Site CSS
   Design: Fresh botanical market — lush greens, warm cream, amber
   ============================================================ */

:root {
  --green-deep:    #0a2e1a;
  --green-dark:    #1a4d2e;
  --green-mid:     #2d6a4f;
  --green-accent:  #40916c;
  --green-light:   #52b788;
  --green-pale:    #d8f3dc;

  --amber:         #f4a261;
  --amber-dark:    #e76f51;
  --amber-light:   #ffd6a5;

  --cream:         #fefae0;
  --cream-dark:    #f5f0d4;
  --white:         #ffffff;

  --text-dark:     #1a1a2e;
  --text-mid:      #4a5568;
  --text-light:    #718096;
  --text-muted:    #a0aec0;

  --border:        #e2e8f0;
  --border-green:  rgba(64,145,108,0.2);

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);

  --radius-sm:  6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --nav-h: 68px;
  --trans: 0.22s ease;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--green-accent); border-radius: 99px; }

/* ══ NAVBAR ══════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--amber-dark); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 12px;
}
.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all var(--trans);
}
.nav-link:hover, .nav-link.active { color: var(--green-dark); background: var(--green-pale); }

.nav-search {
  flex: 1;
  max-width: 300px;
  position: relative;
}
.nav-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: 0.87rem;
  background: var(--cream);
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--trans);
}
.nav-search input:focus { border-color: var(--green-accent); background: var(--white); }
.nav-search i {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: all var(--trans);
  position: relative;
}
.nav-btn:hover { color: var(--green-dark); background: var(--green-pale); }
.nav-btn.cart-btn { color: var(--green-dark); }
.cart-badge {
  position: absolute;
  top: 2px; right: 4px;
  background: var(--amber-dark);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.nav-btn-primary {
  background: var(--green-dark);
  color: #fff !important;
  border-radius: var(--radius-md);
}
.nav-btn-primary:hover { background: var(--green-mid); color: #fff !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-dark);
  border-radius: 99px;
  transition: all var(--trans);
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
}
.nav-drawer-content {
  background: var(--white);
  width: 280px;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.nav-drawer.open { display: block; }
.nav-drawer-link {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--trans);
}
.nav-drawer-link:hover, .nav-drawer-link.active { background: var(--green-pale); color: var(--green-dark); }
.nav-drawer-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

/* ══ HERO ════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-dark) 50%, var(--green-mid) 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: 700px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 0.8rem;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 em { color: var(--amber-light); font-style: normal; }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ══ CONTAINERS & LAYOUT ══════════════════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--green-dark);
  margin-bottom: 6px;
}
.section-sub { color: var(--text-light); font-size: 0.95rem; margin-bottom: 32px; }

/* ══ BUTTONS ══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--trans);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,77,46,0.3);
}
.btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26,77,46,0.35); }
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}
.btn-outline:hover { background: var(--green-dark); color: #fff; }
.btn-amber {
  background: var(--amber-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(231,111,81,0.3);
}
.btn-amber:hover { background: #d4613e; transform: translateY(-1px); }
.btn-white {
  background: #fff;
  color: var(--green-dark);
}
.btn-white:hover { background: var(--cream); }
.btn-ghost { background: transparent; color: var(--text-mid); }
.btn-ghost:hover { background: var(--cream); color: var(--text-dark); }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ══ PRODUCT CARDS ════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--trans);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-green);
}
.product-img-wrap {
  position: relative;
  height: 200px;
  background: var(--cream);
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2.5rem;
}
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--amber-dark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-badge.quality { background: var(--green-mid); }
.product-body { padding: 16px; }
.product-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text-dark);
  line-height: 1.3;
}
.product-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-price {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
}
.add-cart-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none;
  font-size: 1rem;
  transition: all var(--trans);
  flex-shrink: 0;
}
.add-cart-btn:hover { background: var(--green-accent); transform: scale(1.1); }

/* ══ FILTERS ═════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.filter-bar .search-wrap { position: relative; flex: 1; min-width: 200px; }
.filter-bar .search-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.filter-bar .search-wrap input { padding-left: 34px; }

/* ══ FORMS ═══════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-control:focus {
  border-color: var(--green-accent);
  box-shadow: 0 0 0 3px rgba(64,145,108,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.error { border-color: #ef4444; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23718096' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: #ef4444; margin-top: 4px; }

/* ══ CARDS / PANELS ══════════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-title { font-family: var(--font-head); font-size: 1.1rem; color: var(--green-dark); margin-bottom: 16px; }

/* ══ TOAST ═══════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.87rem;
  font-weight: 500;
  background: var(--text-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease;
  pointer-events: all;
  max-width: 320px;
}
.toast.success { background: var(--green-dark); }
.toast.error   { background: #ef4444; }
.toast.warning { background: var(--amber-dark); }
@keyframes toastIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

/* ══ MODAL ═══════════════════════════════════════════════════ */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans);
}
.modal-bg.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  transform: scale(0.96);
  transition: transform var(--trans);
  box-shadow: var(--shadow-lg);
}
.modal-bg.open .modal-box { transform: scale(1); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-family: var(--font-head); font-size: 1.15rem; color: var(--green-dark); }
.modal-close { background: none; border: none; font-size: 1.1rem; color: var(--text-muted); padding: 4px 8px; border-radius: 6px; }
.modal-close:hover { color: var(--text-dark); background: var(--cream); }
.modal-body { padding: 20px 24px; }
.modal-foot {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ══ CART ════════════════════════════════════════════════════ */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.cart-table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.qty-control {
  display: flex; align-items: center; gap: 4px;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all var(--trans);
}
.qty-btn:hover { border-color: var(--green-accent); color: var(--green-dark); }
.qty-num { width: 32px; text-align: center; font-weight: 600; }

/* ══ ORDER SUMMARY ════════════════════════════════════════════ */
.order-summary {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.summary-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; font-weight: 700; font-size: 1rem; color: var(--green-dark); }
.summary-row.total { border-top: 2px solid var(--green-accent); margin-top: 4px; padding-top: 12px; }

/* ══ BADGES / STATUS ══════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-green   { background: var(--green-pale); color: var(--green-dark); }
.badge-amber   { background: var(--amber-light); color: #92400e; }
.badge-red     { background: #fee2e2; color: #991b1b; }
.badge-blue    { background: #dbeafe; color: #1e40af; }
.badge-grey    { background: #f1f5f9; color: #475569; }

/* ══ STEPS (checkout) ════════════════════════════════════════ */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  max-width: 140px;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--white);
  transition: all var(--trans);
  position: relative;
  z-index: 1;
}
.step.done .step-num, .step.active .step-num {
  border-color: var(--green-accent);
  background: var(--green-accent);
  color: #fff;
}
.step.done .step-num { background: var(--green-dark); border-color: var(--green-dark); }
.step-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }
.step.active .step-label { color: var(--green-dark); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 -4px; margin-bottom: 24px; }
.step-line.done { background: var(--green-dark); }

/* ══ ALERTS ══════════════════════════════════════════════════ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: var(--green-pale); color: var(--green-dark); border: 1px solid var(--border-green); }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: var(--amber-light); color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* ══ M-PESA PAYMENT WIDGET ════════════════════════════════════ */
.mpesa-box {
  background: linear-gradient(135deg, #006c35, #00a651);
  border-radius: var(--radius-xl);
  padding: 28px;
  color: #fff;
  text-align: center;
}
.mpesa-logo { font-size: 2rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 12px; }
.mpesa-logo span { color: #ffcc00; }
.mpesa-amount { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.mpesa-phone-display {
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 12px 0;
  letter-spacing: 1px;
}
.mpesa-status { font-size: 0.9rem; opacity: 0.9; margin-bottom: 16px; }
.mpesa-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══ FOOTER ══════════════════════════════════════════════════ */
.footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.87rem; line-height: 1.6; max-width: 240px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
  transition: color var(--trans);
}
.footer-col a:hover { color: var(--green-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-social {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: all var(--trans);
}
.footer-social:hover { background: var(--green-accent); color: #fff; }

/* ══ PAGE HEADER ══════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
  color: #fff;
  padding: 40px 0;
}
.page-header h1 { font-family: var(--font-head); font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 6px; }
.page-header p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: 0.6rem; }

/* ══ AUTH PAGES ══════════════════════════════════════════════ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(135deg, var(--cream), var(--green-pale)); }
.auth-box { background: var(--white); border-radius: var(--radius-xl); padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.auth-tab { flex: 1; text-align: center; padding: 10px; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; transition: all var(--trans); margin-bottom: -1px; }
.auth-tab.active { color: var(--green-dark); border-bottom-color: var(--green-accent); }

/* ══ ACCOUNT / ORDERS ════════════════════════════════════════ */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.account-sidebar { position: sticky; top: calc(var(--nav-h) + 16px); }
.account-nav { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.account-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  font-size: 0.9rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  transition: all var(--trans);
}
.account-nav-item:last-child { border-bottom: none; }
.account-nav-item:hover, .account-nav-item.active { background: var(--green-pale); color: var(--green-dark); }
.account-nav-item i { width: 18px; text-align: center; }

/* ══ EMPTY STATE ══════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 56px 24px; color: var(--text-light); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; color: var(--text-muted); }
.empty-state h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--text-dark); margin-bottom: 8px; }

/* ══ PAGINATION ══════════════════════════════════════════════ */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 32px; }
.page-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--white); font-size: 0.85rem; color: var(--text-mid); display: flex; align-items: center; justify-content: center; transition: all var(--trans); }
.page-btn:hover, .page-btn.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }

/* ══ FEATURES STRIP ══════════════════════════════════════════ */
.features-strip { background: var(--cream); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.feature-item { padding: 20px 24px; display: flex; align-items: center; gap: 14px; border-right: 1px solid var(--border); }
.feature-item:last-child { border-right: none; }
.feature-icon { width: 40px; height: 40px; background: var(--green-pale); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--green-dark); font-size: 1.1rem; flex-shrink: 0; }
.feature-text h5 { font-size: 0.85rem; font-weight: 700; color: var(--text-dark); }
.feature-text p { font-size: 0.75rem; color: var(--text-light); }

/* ══ CATEGORY CHIPS ══════════════════════════════════════════ */
.category-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--white);
  cursor: pointer;
  transition: all var(--trans);
}
.chip:hover, .chip.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }

/* ══ TABLE ════════════════════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.data-table th { text-align: left; padding: 10px 14px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--text-light); border-bottom: 2px solid var(--border); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--cream); }

/* ══ RESPONSIVE ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .feature-item:nth-child(3) { border-right: 1px solid var(--border); }
  .feature-item:nth-child(1), .feature-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .nav-links, .nav-search { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 56px 20px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .steps { gap: 0; }
  .step-label { display: none; }
  .filter-bar { gap: 8px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-body { padding: 12px; }
  .product-name { font-size: 0.85rem; }
  .product-price { font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none !important; border-bottom: 1px solid var(--border); }
  .cart-table th { display: none; }
  .cart-table td { display: block; padding: 6px 10px; }
  .cart-table td:first-child { padding-top: 12px; }
  .cart-table td:last-child { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .auth-box { padding: 28px 20px; }
  .modal-box { border-radius: var(--radius-lg); }
}

/* ══ UTILITIES ════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-light); font-size: 0.85rem; }
.text-green  { color: var(--green-dark); }
.text-amber  { color: var(--amber-dark); }
.font-bold   { font-weight: 700; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.sticky-top { position: sticky; top: calc(var(--nav-h) + 16px); }
.loading { opacity: 0.5; pointer-events: none; }

/* ══ NOTIFICATION BADGE ══════════════════════════════════════ */
.notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ══ NOTIFICATIONS PAGE ══════════════════════════════════════ */
.notif-list { display: flex; flex-direction: column; gap: 0; }
.notif-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  transition: background .15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--green-pale); }
.notif-item:hover { background: var(--cream); }
.notif-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}
.notif-icon.transit   { background: #dbeafe; color: #2563eb; }
.notif-icon.arrived   { background: #dcfce7; color: #16a34a; }
.notif-icon.delivered { background: #bbf7d0; color: #15803d; }
.notif-icon.promo     { background: #fef9c3; color: #ca8a04; }
.notif-icon.cancel    { background: #fee2e2; color: #dc2626; }
.notif-icon.default   { background: var(--cream); color: var(--green-dark); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; font-size: .93rem; color: var(--text-dark); margin-bottom: 3px; }
.notif-text  { font-size: .84rem; color: var(--text-mid); line-height: 1.5; }
.notif-meta  { font-size: .75rem; color: var(--text-light); margin-top: 5px; }
.notif-dot   { width: 8px; height: 8px; border-radius: 50%; background: var(--green-accent); flex-shrink: 0; margin-top: 6px; }

/* ══ STAR RATING ═════════════════════════════════════════════ */
.star-rating { display: flex; gap: 4px; }
.star-rating input { display: none; }
.star-rating label {
  cursor: pointer; font-size: 1.4rem; color: #d1d5db;
  transition: color .1s;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: #d1d5db; }
.star-rating label:hover,
.star-rating input:checked + label,
.star-rating label:has(~ input:checked) { color: #f59e0b; }
.star-display { color: #f59e0b; letter-spacing: 2px; font-size: .95rem; }
.review-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  margin-bottom: 12px;
}
.review-card:last-child { margin-bottom: 0; }

/* ══ SHIPPING COST LINE ══════════════════════════════════════ */
.shipping-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: .88rem; color: var(--text-mid); }
.shipping-row.free { color: #16a34a; }
.order-total-line { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; color: var(--green-dark); padding-top: 8px; border-top: 2px solid var(--border); margin-top: 4px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE OVERHAUL — Mobile-first improvements
   Covers: navbar, hero, product grid, cart, checkout,
           account, filters, footer, forms, modals
   ══════════════════════════════════════════════════════════ */

/* ── Base mobile fixes ── */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* Make images fluid everywhere */
img { max-width: 100%; height: auto; }

/* ── Improved navbar ─────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-inner { padding: 0 14px; gap: 10px; }
  .nav-logo  { font-size: 1.25rem; }

  /* Show hamburger, hide links + desktop search */
  .nav-links,
  .nav-search { display: none !important; }
  .nav-hamburger { display: flex !important; margin-left: auto; }

  /* Compact action buttons */
  .nav-actions { gap: 2px; }
  .nav-btn { padding: 7px 9px; font-size: 0.82rem; gap: 4px; }
  .nav-btn span { display: none; } /* hide text labels on small phones */

  /* Drawer full-width on very small screens */
  .nav-drawer-content { width: 260px; }
}

@media (max-width: 380px) {
  .nav-btn-primary { padding: 6px 10px; font-size: 0.78rem; }
}

/* ── Hero section ────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero p  { font-size: 0.92rem; margin-bottom: 24px; }
  .hero-btns { flex-direction: column; align-items: center; gap: 10px; }
  .hero-btns .btn { width: 100%; max-width: 300px; justify-content: center; }
}

/* ── Feature strip ───────────────────────────────────────── */
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-item  { padding: 14px 12px; gap: 10px; }
  .feature-icon  { width: 34px; height: 34px; font-size: 0.95rem; }
  .feature-text h5 { font-size: 0.78rem; }
  .feature-text p  { font-size: 0.68rem; }
}
@media (max-width: 380px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-item  { border-right: none !important; border-bottom: 1px solid var(--border); }
}

/* ── Product grid ────────────────────────────────────────── */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-img-wrap { height: 160px; }
  .product-body  { padding: 11px 10px; }
  .product-name  { font-size: 0.82rem; }
  .product-desc  { font-size: 0.74rem; margin-bottom: 8px; }
  .product-price { font-size: 1rem; }
  .add-cart-btn  { width: 32px; height: 32px; font-size: 0.85rem; }
}
@media (max-width: 380px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-img-wrap { height: 130px; }
  .product-body  { padding: 8px; }
  .product-name  { font-size: 0.78rem; }
  .product-desc  { display: none; }
}

/* ── Section spacing ─────────────────────────────────────── */
@media (max-width: 768px) {
  .section    { padding: 36px 0; }
  .section-sm { padding: 24px 0; }
  .container  { padding: 0 14px; }
}

/* ── Filter bar ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .filter-bar { padding: 12px; gap: 8px; flex-direction: column; align-items: stretch; }
  .filter-bar .search-wrap { max-width: 100%; min-width: unset; }
  .filter-bar select.form-control { width: 100%; }
}

/* ── Cart page ───────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Stack cart + summary vertically */
  .cart-page-grid,
  [style*="grid-template-columns:1fr 320px"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
}

@media (max-width: 640px) {
  /* Convert cart table to card-style rows */
  .cart-table thead { display: none; }
  .cart-table tbody tr {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 4px 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  .cart-table td {
    display: block;
    padding: 2px 0;
    border: none;
  }
  /* Product cell spans both rows on left */
  .cart-table td:first-child { grid-row: 1 / 3; grid-column: 1; align-self: center; }
  /* Price row */
  .cart-table td:nth-child(2) { grid-row: 1; grid-column: 2; font-size: 0.82rem; color: var(--text-light); }
  /* Qty row */
  .cart-table td:nth-child(3) { grid-row: 2; grid-column: 2; }
  /* Subtotal — hidden on tiny screens, rolled into qty row */
  .cart-table td:nth-child(4) { display: none; }
  /* Delete btn — top right absolute */
  .cart-table td:last-child {
    position: absolute;
    top: 8px; right: 8px;
    padding: 0;
  }
  .qty-control { gap: 2px; }
  .qty-num { width: 26px; font-size: 0.85rem; }
  .qty-btn { width: 26px; height: 26px; }
}

/* ── Checkout page ───────────────────────────────────────── */
@media (max-width: 900px) {
  /* Stack delivery form + order summary */
  [style*="grid-template-columns:1fr 320px"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
}
@media (max-width: 640px) {
  .steps { gap: 0; overflow-x: auto; }
  .step-label { font-size: 0.65rem; }
  .step-line { min-width: 20px; }
}

/* ── Account layout ──────────────────────────────────────── */
@media (max-width: 820px) {
  .account-layout {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .account-sidebar { position: static !important; }
  /* Convert sidebar nav to horizontal scrollable tabs */
  .account-nav {
    display: flex;
    overflow-x: auto;
    border-radius: var(--radius-md);
    -webkit-overflow-scrolling: touch;
  }
  .account-nav-item {
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 10px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .account-nav-item:last-child { border-right: none; }
}

/* ── Page header ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .page-header { padding: 28px 0; }
  .page-header h1 { font-size: 1.4rem; }
  .page-header p  { font-size: 0.82rem; }
  .breadcrumb { font-size: 0.72rem; margin-bottom: 6px; }
}

/* ── Auth pages ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-page { padding: 16px; align-items: flex-start; padding-top: 40px; }
  .auth-box  { padding: 24px 16px; border-radius: var(--radius-lg); }
  .auth-logo { margin-bottom: 20px; }
}

/* ── Cards ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  .card { padding: 16px; border-radius: var(--radius-md); }
  .card-title { font-size: 1rem; }
}

/* ── Modals ──────────────────────────────────────────────── */
@media (max-width: 540px) {
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal-box {
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .modal-head { padding: 16px 18px 12px; }
  .modal-body { padding: 14px 18px; }
  .modal-foot { padding: 12px 18px 20px; }
}

/* ── Footer ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer { padding: 36px 0 0; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 100%; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col h4 { margin-bottom: 8px; }
  .footer-col a  { margin-bottom: 6px; }
  .footer-socials { gap: 8px; }
}

/* ── M-Pesa widget ───────────────────────────────────────── */
@media (max-width: 480px) {
  .mpesa-box { padding: 20px 16px; border-radius: var(--radius-lg); }
  .mpesa-amount { font-size: 1.6rem; }
}

/* ── Order summary ───────────────────────────────────────── */
@media (max-width: 640px) {
  .order-summary { padding: 14px; }
  .summary-row { font-size: 0.83rem; padding: 6px 0; }
}

/* ── Data tables ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .data-table { font-size: 0.8rem; }
  .data-table th,
  .data-table td { padding: 9px 10px; }
}

/* ── Form rows ───────────────────────────────────────────── */
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr !important; gap: 0; }
}

/* ── Buttons ─────────────────────────────────────────────── */
@media (max-width: 380px) {
  .btn    { padding: 9px 16px; font-size: 0.85rem; }
  .btn-lg { padding: 11px 20px; font-size: 0.9rem; }
}

/* ── Toast ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  .toast-container { bottom: 12px; right: 12px; left: 12px; }
  .toast { max-width: 100%; font-size: 0.82rem; }
}

/* ── Pagination ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .pagination { gap: 2px; margin-top: 20px; }
  .page-btn   { width: 32px; height: 32px; font-size: 0.78rem; }
}

/* ── Notifications page ──────────────────────────────────── */
@media (max-width: 640px) {
  .notif-item { padding: 12px 14px; gap: 10px; }
  .notif-icon { width: 34px; height: 34px; font-size: 0.88rem; flex-shrink: 0; }
  .notif-title { font-size: 0.85rem; }
  .notif-text  { font-size: 0.78rem; }
}

/* ── About / Policy content ──────────────────────────────── */
@media (max-width: 640px) {
  .about-content,
  .policy-content { font-size: 0.9rem; line-height: 1.7; }
}

/* ── CTA banner ──────────────────────────────────────────── */
@media (max-width: 640px) {
  [style*="padding:56px 0"] { padding: 36px 0 !important; }
  [style*="padding:56px 0"] .btn { width: 100%; max-width: 280px; }
}

/* ── Utility: prevent horizontal scroll ──────────────────── */
.container,
section,
.card,
.order-summary,
.filter-bar {
  max-width: 100%;
  overflow-x: hidden;
}

/* ── Cart & Checkout grid layout ── */
.cart-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .cart-checkout-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ══ v3 ADDITIONS ════════════════════════════════════════════ */

/* ── Nav badge (replaces cart-badge) ─────────────────────── */
.nav-badge {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 18px; height: 18px;
  background: var(--amber-dark);
  color: #fff;
  border-radius: 99px;
  font-size: .65rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  line-height: 1;
  pointer-events: none;
}
.nav-btn { position: relative; }
.nav-btn-user { display: flex; align-items: center; gap: 6px; }
.nav-user-name { font-size: .82rem; font-weight: 600; color: var(--green-dark); }

/* ── Bright green navbar header (per requirement) ────────── */
.navbar { background: var(--white); border-bottom: 3px solid var(--green-mid); }
.nav-logo { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--green-dark); }
.nav-logo span { color: var(--amber-dark); }

/* ── Auth page ───────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-pale) 0%, #fff 60%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.auth-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 460px;
}
.auth-logo { text-align: center; margin-bottom: 20px; }
.logo-link { text-decoration: none; }
.logo-text { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--green-dark); }
.logo-accent { color: var(--amber-dark); }
.auth-tagline { color: var(--text-muted); font-size: .82rem; margin-top: 4px; }
.auth-tabs {
  display: flex; border-bottom: 2px solid var(--border);
  margin-bottom: 20px; gap: 0;
}
.auth-tab {
  flex: 1; padding: 10px; border: none; background: none;
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: var(--trans);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.auth-tab.active { color: var(--green-dark); border-bottom-color: var(--green-accent); font-weight: 600; }
.auth-divider {
  text-align: center; position: relative; margin: 18px 0;
  color: var(--text-muted); font-size: .8rem;
}
.auth-divider::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 100%; height: 1px; background: var(--border);
}
.auth-divider span { background: #fff; padding: 0 12px; position: relative; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; border: 1.5px solid var(--border); color: var(--text-dark);
  font-weight: 500; padding: 10px 20px; border-radius: var(--radius-md);
  transition: var(--trans); text-decoration: none;
}
.btn-google:hover { background: #f8f9fa; border-color: #aaa; }
.auth-switch { text-align: center; color: var(--text-muted); font-size: .85rem; margin-top: 16px; }
.auth-switch-link { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.auth-back { text-align: center; margin-top: 16px; font-size: .8rem; }
.auth-back a { color: var(--text-muted); text-decoration: none; }
.auth-back a:hover { color: var(--green-dark); }
.input-with-icon { position: relative; }
.input-with-icon .form-control { padding-right: 40px; }
.input-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px;
}
.form-hint { font-size: .75rem; color: var(--text-muted); margin-top: -4px; margin-bottom: 12px; }
.req { color: #e53e3e; }

/* ── Checkout layout ─────────────────────────────────────── */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary-sticky { position: static; }
}
.order-summary-sticky { position: sticky; top: 80px; }

/* ── Delivery method cards ───────────────────────────────── */
.delivery-methods { display: flex; gap: 10px; flex-wrap: wrap; }
.delivery-opt {
  flex: 1; min-width: 100px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px; text-align: center;
  cursor: pointer; transition: var(--trans);
  background: #fff;
}
.delivery-opt i {
  font-size: 1.3rem; color: var(--text-muted);
  display: block; margin-bottom: 6px;
}
.delivery-opt.active {
  border-color: var(--green-accent);
  background: var(--green-pale);
}
.delivery-opt.active i { color: var(--green-dark); }
.delivery-opt-label { font-weight: 600; font-size: .88rem; color: var(--text-dark); }
.delivery-opt-sub { font-size: .73rem; color: var(--text-muted); margin-top: 2px; }
.delivery-opt.active .delivery-opt-label { color: var(--green-dark); }

/* ── Station cards (user pickup) ─────────────────────────── */
.station-card {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 14px; margin-bottom: 10px; cursor: pointer;
  transition: var(--trans);
}
.station-card:has(input:checked) { border-color: var(--green-accent); background: var(--green-pale); }
.station-card input { margin-top: 3px; accent-color: var(--green-accent); }
.station-card-body { flex: 1; }
.station-card-title { font-weight: 600; color: var(--text-dark); font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.station-card-sub { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.station-card-hint { font-size: .75rem; color: var(--green-dark); margin-top: 4px; font-style: italic; }
.btn-xs { padding: 4px 8px; font-size: .75rem; }
.text-danger { color: #e53e3e !important; }
.ml-2 { margin-left: 8px; }

/* ── M-Pesa box (v3) ─────────────────────────────────────── */
.mpesa-box {
  background: linear-gradient(135deg, #006b3c 0%, #00a651 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: #fff;
}
.mpesa-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mpesa-logo { font-size: 1.6rem; font-weight: 900; letter-spacing: -1px; }
.mpesa-logo span { color: #d5f0e0; }
.mpesa-tagline { font-size: .75rem; opacity: .8; }
.mpesa-summary { background: rgba(0,0,0,.15); border-radius: var(--radius-md); padding: 14px; margin-bottom: 20px; }
.mpesa-summary-row { display: flex; justify-content: space-between; font-size: .85rem; opacity: .9; padding: 3px 0; }
.mpesa-summary-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; padding-top: 8px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.3); }
.mpesa-phone-group { margin-bottom: 16px; }
.mpesa-phone-group label { display: block; font-size: .82rem; opacity: .85; margin-bottom: 6px; }
.mpesa-phone-input {
  width: 100%; background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.35);
  color: #fff; border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 1rem; font-weight: 600; letter-spacing: 1px; text-align: center;
}
.mpesa-phone-input::placeholder { opacity: .6; font-weight: 400; }
.mpesa-phone-hint { font-size: .73rem; opacity: .7; margin-top: 4px; }
.mpesa-status { min-height: 20px; font-size: .85rem; margin-bottom: 12px; padding: 0 2px; }
.mpesa-status-pending { color: #ffe;  }
.mpesa-status-error   { color: #fca5a5; }
.mpesa-status-success { color: #6ee7b7; }
.mpesa-status-info    { opacity: .85; }
.mpesa-info { font-size: .73rem; opacity: .7; text-align: center; margin-top: 12px; }
.btn-mpesa {
  background: rgba(255,255,255,.22); border: 2px solid rgba(255,255,255,.5);
  color: #fff; font-weight: 700; border-radius: var(--radius-md);
  padding: 12px 24px; font-size: 1rem; width: 100%;
  transition: var(--trans); cursor: pointer;
}
.btn-mpesa:hover:not(:disabled) { background: rgba(255,255,255,.35); }
.btn-mpesa:disabled { opacity: .6; cursor: not-allowed; }

/* ── Order summary sidebar ───────────────────────────────── */
.order-summary-title { font-family: var(--font-head); color: var(--green-dark); margin-bottom: 14px; font-size: 1.1rem; }
.summary-item { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; gap: 10px; }
.summary-item-name { font-size: .88rem; color: var(--text-mid); }
.summary-item-qty { color: var(--text-muted); font-size: .8rem; margin-left: 4px; }
.summary-item-price { font-size: .88rem; font-weight: 500; flex-shrink: 0; }
.summary-line { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--border); font-size: .88rem; }
.summary-total { display: flex; justify-content: space-between; padding: 10px 0 0; font-weight: 700; font-size: 1rem; border-top: 2px solid var(--green-mid); margin-top: 4px; }
.summary-note { font-size: .73rem; color: var(--text-muted); margin-top: 6px; }
.summary-secure { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--text-muted); margin-top: 10px; padding: 8px 12px; background: var(--cream); border-radius: var(--radius-sm); }

/* ── Product detail page ─────────────────────────────────── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 768px) { .product-detail-grid { grid-template-columns: 1fr; gap: 20px; } }
.product-image-wrap {}
.product-image-main {
  background: var(--cream); border-radius: var(--radius-xl);
  overflow: hidden; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.product-image-main img { width: 100%; height: 100%; object-fit: cover; }
.product-image-placeholder { font-size: 5rem; color: var(--green-light); }
.product-title { font-family: var(--font-head); font-size: clamp(1.4rem,3vw,1.9rem); color: var(--green-dark); margin-bottom: 10px; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--amber-dark); font-size: .9rem; }
.rating-text { color: var(--text-muted); font-size: .82rem; }
.product-price { font-size: 2rem; font-weight: 800; color: var(--green-dark); font-family: var(--font-head); margin-bottom: 16px; }
.product-desc { color: var(--text-mid); line-height: 1.7; margin-bottom: 24px; }
.product-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.product-features { display: flex; flex-direction: column; gap: 7px; font-size: .84rem; color: var(--text-mid); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.product-feature i { width: 18px; color: var(--green-accent); margin-right: 6px; }

/* ── Reviews ─────────────────────────────────────────────── */
.reviews-section { margin-top: 48px; }
.reviews-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.reviews-list { display: flex; flex-direction: column; gap: 0; }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review-author { font-weight: 600; font-size: .9rem; }
.review-stars { color: var(--amber-dark); font-size: .82rem; display: flex; gap: 2px; }
.review-date { font-size: .75rem; color: var(--text-muted); margin-left: auto; }
.review-body { color: var(--text-mid); font-size: .88rem; line-height: 1.6; }
.star-rating { display: flex; gap: 6px; cursor: pointer; }
.star-input { font-size: 1.4rem; color: var(--border); transition: color .15s; }
.star-input.active, .star-input:hover { color: var(--amber-dark); }

/* ── Form check ──────────────────────────────────────────── */
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check-input { width: 16px; height: 16px; accent-color: var(--green-accent); cursor: pointer; }
.form-check-label { font-size: .88rem; cursor: pointer; }

/* ── Alert info ──────────────────────────────────────────── */
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ── Overlay ─────────────────────────────────────────────── */
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 149;
}
.nav-overlay.open { display: block; }
.nav-drawer-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 1.2rem;
  color: var(--text-muted); cursor: pointer; padding: 6px;
}
