/* ============================================================
   shared.css — QuickCart Customer Frontend Design System
   Aesthetic: Fresh, clean, green & amber — Zambian grocery app
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Brand greens */
  --green-900: #0d2318;
  --green-800: #143d28;
  --green-700: #1a5235;
  --green-600: #22703f;
  --green-500: #2d9157;
  --green-400: #4aae72;
  --green-300: #7ccb97;
  --green-200: #b2e4c3;
  --green-100: #dcf4e5;
  --green-50:  #f0faf4;

  /* Amber accents */
  --amber-600: #c47c10;
  --amber-500: #e09020;
  --amber-400: #f0a830;
  --amber-300: #f5c060;
  --amber-200: #fad990;
  --amber-100: #fdefc8;

  /* Neutrals */
  --white:     #ffffff;
  --cream:     #f8f7f4;
  --ink:       #1a1c1e;
  --ink-soft:  #2e3135;
  --ink-muted: #5a6070;
  --border:    #e2e5ea;
  --border-dark:#c8cdd6;

  /* Semantic */
  --red-500:   #dc2626;
  --red-400:   #ef4444;
  --red-50:    #fef2f2;
  --blue-500:  #2563eb;
  --blue-50:   #eff6ff;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  /* Spacing & shape */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  22px;
  --radius-full:999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.16);

  /* Animation */
  --transition: 180ms cubic-bezier(.4,0,.2,1);
}

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

/* ── Top navigation ─────────────────────────────────────────── */
.topnav {
  background: var(--green-900);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.topnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1rem,3vw,2rem);
  height: 68px;
}
.topnav-brand { flex-shrink: 0; }

/* Ticker */
.topnav-ticker {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  font-size: .72rem;
  color: var(--green-300);
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.ticker-sep { color: var(--amber-400); font-size: .6rem; }

/* Nav right */
.topnav-right {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.nav-greeting {
  font-size: .78rem;
  color: var(--green-300);
  padding: 0 .35rem;
  white-space: nowrap;
}
.nav-wallet-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: .3rem .75rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  line-height: 1.2;
}
.nav-wallet-chip:hover { background: rgba(255,255,255,.14); }
.nav-wallet-label { font-size: .55rem; color: var(--green-400); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.nav-wallet-amount { font-size: .82rem; color: var(--white); font-weight: 700; font-family: var(--font-mono); }
.nav-link {
  font-size: .82rem;
  color: var(--green-300);
  padding: .35rem .6rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-weight: 500;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.nav-cart-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  background: var(--amber-500);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: .82rem;
  font-weight: 700;
  position: relative;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-cart-btn:hover { background: var(--amber-600); transform: translateY(-1px); }
.cart-badge {
  min-width: 18px; height: 18px;
  background: var(--green-400);
  color: var(--green-900);
  border-radius: 99px;
  font-size: .65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .3rem;
}
.nav-signin-btn {
  font-size: .82rem;
  color: var(--green-300);
  padding: .4rem .75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.15);
  transition: all var(--transition);
  font-weight: 600;
}
.nav-signin-btn:hover { color: var(--white); border-color: rgba(255,255,255,.3); }
.nav-register-btn {
  font-size: .82rem;
  color: var(--green-900);
  background: var(--amber-400);
  padding: .4rem .9rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: all var(--transition);
}
.nav-register-btn:hover { background: var(--amber-500); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: .4rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-hamburger:hover { background: rgba(255,255,255,.1); }
.nav-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media(max-width:860px) {
  .nav-hamburger { display: flex; }
  .topnav-ticker, .nav-greeting, .nav-wallet-chip, .nav-link,
  .nav-signin-btn, .nav-register-btn, .nav-cart-btn { display: none; }
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 68px; right: 0; bottom: 0;
  width: min(320px, 100vw);
  background: var(--green-900);
  border-left: 1px solid rgba(255,255,255,.1);
  z-index: 499;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding: .75rem 0;
}
.nav-drawer.open { transform: translateX(0); }
.drawer-wallet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,.06);
  margin: 0 .75rem .75rem;
  border-radius: var(--radius-md);
}
.drawer-wallet-info .label { font-size: .65rem; color: var(--green-400); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.drawer-wallet-info .amount { font-size: 1.1rem; font-weight: 700; color: var(--white); font-family: var(--font-mono); }
.drawer-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.25rem;
  font-size: .9rem;
  color: var(--green-200);
  transition: all var(--transition);
  font-weight: 500;
}
.drawer-link:hover { background: rgba(255,255,255,.06); color: var(--white); }
.drawer-icon { font-size: 1.1rem; width: 24px; text-align: center; }

/* ── Page layout ────────────────────────────────────────────── */
.page-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem clamp(1rem,4vw,2rem);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: .65rem clamp(1rem,4vw,2rem);
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  flex-wrap: wrap;
}
.bc-item a { color: var(--green-600); }
.bc-item a:hover { color: var(--green-800); text-decoration: underline; }
.bc-item.current { color: var(--ink-muted); }
.bc-sep { color: var(--border-dark); }

/* ── Back button ────────────────────────────────────────────── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--green-600);
  font-weight: 600;
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  margin-bottom: 1.25rem;
}
.back-btn:hover { color: var(--green-800); background: var(--green-50); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 700;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--green-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-800); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(13,35,24,.25); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-amber {
  background: var(--amber-500);
  color: var(--white);
}
.btn-amber:hover { background: var(--amber-600); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(224,144,32,.3); }
.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-300);
}
.btn-outline:hover { background: var(--green-50); border-color: var(--green-500); }
.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--cream); color: var(--ink); }
.btn-sm { padding: .4rem 1rem; font-size: .8rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-danger { background: var(--red-500); color: var(--white); }
.btn-danger:hover { background: #b91c1c; }

/* ── Form elements ──────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}
.form-label span { color: var(--red-400); margin-left: .2rem; }
.form-input {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(45,145,87,.12);
}
.form-input::placeholder { color: var(--ink-muted); opacity: .7; }
.form-input.error { border-color: var(--red-400); }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.form-hint { font-size: .75rem; color: var(--ink-muted); margin-top: .35rem; }
.form-error { font-size: .75rem; color: var(--red-500); margin-top: .35rem; display: none; }
.form-error.show { display: block; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235a6070' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.2rem; cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 100px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media(max-width:560px){ .form-2col{ grid-template-columns: 1fr; } }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 1.5rem; }
.card-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--ink); }

/* ── Section headers ────────────────────────────────────────── */
.section-header { margin-bottom: 2rem; }
.section-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--green-500);
  margin-bottom: .5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem,3.5vw,2.4rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}
.section-sub {
  font-size: .95rem;
  color: var(--ink-muted);
  margin-top: .5rem;
  max-width: 520px;
}

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: .85rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: .85rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  line-height: 1.5;
}
.alert-error   { background: var(--red-50);   border: 1px solid #fca5a5; color: #b91c1c; }
.alert-success { background: var(--green-50);  border: 1px solid var(--green-200); color: var(--green-700); }
.alert-info    { background: var(--blue-50);   border: 1px solid #bfdbfe; color: var(--blue-500); }
.alert-amber   { background: var(--amber-100); border: 1px solid var(--amber-300); color: #92400e; }
.alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }

/* ── Status pills ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-green   { background: var(--green-100);  color: var(--green-700); }
.badge-amber   { background: var(--amber-100);  color: #92400e; }
.badge-red     { background: var(--red-50);     color: var(--red-500); }
.badge-gray    { background: var(--cream);      color: var(--ink-muted); border: 1px solid var(--border); }
.badge-blue    { background: var(--blue-50);    color: var(--blue-500); }

/* ── Spinner / loading ──────────────────────────────────────── */
.spinner {
  width: 24px; height: 24px;
  border: 2.5px solid var(--border);
  border-top-color: var(--green-500);
  border-radius: 50%;
  animation: spin .65s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  color: var(--ink-muted);
  font-size: .9rem;
}

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: .6;
}
.empty-title { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.empty-sub   { font-size: .88rem; color: var(--ink-muted); max-width: 360px; margin: 0 auto 1.5rem; }

/* ── Toast ──────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  max-width: 340px;
}
.toast {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: .75rem 1.1rem;
  font-size: .82rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .5rem;
  animation: slideUp .25s ease;
  border-left: 3px solid var(--green-400);
}
.toast-success { border-left-color: var(--green-400); }
.toast-error   { border-left-color: var(--red-400); }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(10px); }
}

/* ── Product card ───────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--green-200); transform: translateY(-2px); }
.product-img {
  aspect-ratio: 1;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: .85rem; flex: 1; display: flex; flex-direction: column; }
.product-cat  { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--green-500); margin-bottom: .2rem; }
.product-name { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: .35rem; flex: 1; }
.product-unit { font-size: .72rem; color: var(--ink-muted); margin-bottom: .6rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1rem; font-weight: 800; color: var(--green-700); font-family: var(--font-mono); }
.product-add-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.product-add-btn:hover { background: var(--green-600); transform: scale(1.1); }
.product-qty-ctrl {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.qty-btn:hover { background: var(--green-200); }
.qty-num { font-size: .9rem; font-weight: 700; min-width: 20px; text-align: center; }
.out-of-stock { opacity: .5; }
.out-of-stock .product-add-btn { background: var(--border-dark); cursor: not-allowed; }

/* ── Store card ─────────────────────────────────────────────── */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.store-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.store-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--green-200); }
.store-banner {
  height: 100px;
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.store-info { padding: 1.1rem; flex: 1; }
.store-name { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .25rem; }
.store-meta { font-size: .78rem; color: var(--ink-muted); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.store-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-dark); }
.store-open  { color: var(--green-600); font-weight: 600; }
.store-closed{ color: var(--red-400); font-weight: 600; }

/* ── Order status timeline ──────────────────────────────────── */
.order-timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .75rem 0;
  position: relative;
}
.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 44px;
  bottom: -8px;
  width: 2px;
  background: var(--border);
}
.timeline-step.done::before { background: var(--green-300); }
.tl-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex-shrink: 0;
  transition: all var(--transition);
}
.timeline-step.done .tl-dot {
  background: var(--green-600);
  border-color: var(--green-600);
  color: var(--white);
}
.timeline-step.active .tl-dot {
  background: var(--amber-400);
  border-color: var(--amber-400);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(240,168,48,.2);
  animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 0 4px rgba(240,168,48,.2); }
  50%      { box-shadow: 0 0 0 8px rgba(240,168,48,.05); }
}
.tl-content { flex: 1; min-width: 0; padding-top: .3rem; }
.tl-label  { font-size: .88rem; font-weight: 600; color: var(--ink); }
.tl-time   { font-size: .75rem; color: var(--ink-muted); margin-top: .15rem; }
.timeline-step.pending .tl-label { color: var(--ink-muted); }

/* ── Wallet card ────────────────────────────────────────────── */
.wallet-hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 60%, var(--green-600) 100%);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.wallet-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.wallet-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--green-300); margin-bottom: .5rem; }
.wallet-balance { font-family: var(--font-mono); font-size: clamp(2rem,5vw,3rem); font-weight: 700; line-height: 1; color: var(--white); margin-bottom: 1.5rem; }
.wallet-id { font-family: var(--font-mono); font-size: .78rem; color: var(--green-400); }

/* ── Loyalty badge ──────────────────────────────────────────── */
.loyalty-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .75rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
}
.loyalty-bronze  { background: rgba(205,127,50,.15);  color: #cd7f32; border: 1px solid rgba(205,127,50,.3); }
.loyalty-silver  { background: rgba(148,163,184,.15); color: #94a3b8; border: 1px solid rgba(148,163,184,.3); }
.loyalty-gold    { background: rgba(245,158,11,.15);  color: #d97706; border: 1px solid rgba(245,158,11,.3); }
.loyalty-platinum{ background: rgba(139,92,246,.15);  color: #7c3aed; border: 1px solid rgba(139,92,246,.3); }

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem,4vw,2.5rem);
  width: min(480px,100%);
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 2rem;
}
.auth-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-bottom: .35rem; }
.auth-sub   { font-size: .88rem; color: var(--ink-muted); margin-bottom: 1.75rem; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--ink-muted);
  font-size: .78rem;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .82rem; color: var(--ink-muted); }
.auth-footer a { color: var(--green-600); font-weight: 600; }
.auth-footer a:hover { color: var(--green-800); text-decoration: underline; }

/* ── Page intro ─────────────────────────────────────────────── */
.page-in { animation: pageIn .35s ease both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stagger > * { animation: pageIn .35s ease both; }
.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .10s; }
.stagger > *:nth-child(3) { animation-delay: .15s; }
.stagger > *:nth-child(4) { animation-delay: .20s; }
.stagger > *:nth-child(5) { animation-delay: .25s; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-900);
  color: var(--green-300);
}
.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem clamp(1rem,4vw,2rem) 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}
@media(max-width:900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media(max-width:560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-tagline { font-size: .82rem; color: var(--green-400); line-height: 1.7; margin: 1rem 0 1.5rem; max-width: 280px; }
.footer-app-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.footer-app-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: .5rem .85rem;
  font-size: .72rem;
  color: var(--green-300);
  transition: all var(--transition);
}
.footer-app-btn:hover { background: rgba(255,255,255,.12); color: var(--white); }
.footer-app-icon { font-size: 1.2rem; }
.footer-col-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green-400);
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-links a {
  font-size: .82rem;
  color: var(--green-300);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .82rem;
  color: var(--green-300);
  margin-bottom: .6rem;
  line-height: 1.5;
}
.footer-contact-icon { font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem,4vw,2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-copy { font-size: .75rem; color: var(--green-500); }
.footer-social { display: flex; gap: .5rem; }
.footer-social-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--green-300);
  transition: all var(--transition);
}
.footer-social-btn:hover { background: var(--amber-500); border-color: var(--amber-500); color: var(--white); }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { font-size: .72rem; color: var(--green-500); transition: color var(--transition); }
.footer-legal a:hover { color: var(--green-300); }

/* ── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.flex        { display: flex; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1       { gap: .4rem; }
.gap-2       { gap: .75rem; }
.gap-3       { gap: 1.25rem; }
.mt-1        { margin-top: .5rem; }
.mt-2        { margin-top: 1rem; }
.mt-3        { margin-top: 1.5rem; }
.mb-1        { margin-bottom: .5rem; }
.mb-2        { margin-bottom: 1rem; }
.w-full      { width: 100%; }
.hidden      { display: none !important; }
.sr-only     { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media(max-width:768px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .75rem; }
  .store-grid   { grid-template-columns: 1fr; }
}