/* ============================================================
   BackMarket India — Unified Green Theme
   Based on listings.html color system
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #16a34a;
  --green-lt:   #22c55e;
  --green-bg:   #f0fdf4;
  --green-pale: #dcfce7;
  --green-dark: #15803d;
  --red:        #dc2626;
  --red-bg:     #fef2f2;
  --amber:      #d97706;
  --amber-bg:   #fefce8;
  --blue:       #2563eb;
  --blue-bg:    #eff6ff;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-300:   #d1d5db;
  --gray-400:   #9ca3af;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --gray-800:   #1f2937;
  --white:      #ffffff;
  --radius:     14px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow:     0 2px 12px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);

  /* ── Alias vars for cross-page compatibility ── */
  --P:    #16a34a;   /* primary = green */
  --A:    #d97706;   /* accent  = amber */
  --PLT:  #f0fdf4;   /* primary light bg */
  --PMD:  #bbf7d0;   /* primary mid */
  --PL:   #16a34a;   /* primary link colour */
  --T1:   #111827;   /* text primary */
  --T2:   #4b5563;   /* text secondary */
  --T3:   #9ca3af;   /* text tertiary */
  --W:    #ffffff;   /* white */
  --BG:   #f3f4f6;   /* page background */
  --BG2:  #f9fafb;   /* background alt */
  --BR:   #e5e7eb;   /* border */
  --BR2:  #e5e7eb;   /* border alt */
  --rl:   14px;      /* border-radius large */
  --r2:   10px;      /* border-radius medium */
  --r3:   8px;       /* border-radius small */
  --ERR:  #dc2626;   /* error red */
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--gray-100); color: var(--gray-800); min-height: 100vh; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── TOPBAR ───────────────────────────────────────────────── */
.topbar {
  background: var(--green); color: #fff;
  font-size: .75rem; text-align: center;
  padding: 7px 16px; white-space: nowrap; overflow: hidden;
}

/* ── MARQUEE ──────────────────────────────────────────────── */
.marquee-bar {
  background: var(--green); color: #fff;
  overflow: hidden; font-size: .78rem; padding: 7px 0;
}
.marquee-track {
  display: flex; gap: 0; animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee-item { padding: 0 24px; white-space: nowrap; }
.marquee-item a { color: #dcfce7; }
.mdot { width: 5px; height: 5px; background: rgba(255,255,255,.5); border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: middle; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── NAV ──────────────────────────────────────────────────── */
nav, .site-nav {
  background: var(--white); border-bottom: 1.5px solid var(--gray-200);
  padding: 0 24px; display: flex; align-items: center; gap: 24px;
  height: 60px; position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.nav-inner { display: flex; align-items: center; gap: 24px; width: 100%; max-width: 1200px; margin: 0 auto; }
.logo, .nav-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 800; font-size: 1.1rem; color: var(--green);
  flex-shrink: 0;
}
.logo-icon { font-size: 1.4rem; }
.logo-text span { color: var(--gray-800); }
.nav-links { display: flex; gap: 20px; flex: 1; }
.nav-links a, .nav-link {
  text-decoration: none; color: var(--gray-600); font-size: .9rem; font-weight: 500;
  transition: color .15s; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-links a:hover, .nav-link:hover { color: var(--green); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Avatar */
.nav-avatar-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-lt), var(--green));
  color: #fff; font-weight: 700; font-size: .85rem;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(34,197,94,.35);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .18s, box-shadow .18s; font-family: inherit;
}
.nav-avatar-btn:hover { transform: scale(1.08); box-shadow: 0 4px 14px rgba(34,197,94,.45); }

/* Dropdown */
.nav-user-wrapper { position: relative; }
.nav-user-dropdown {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 200px; padding: 8px 0; z-index: 9999;
}
.nav-user-dropdown.open { display: block; }
.dropdown-header { padding: 10px 18px 8px; border-bottom: 1px solid var(--gray-100); margin-bottom: 4px; }
.d-name  { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-email { font-size: .75rem; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-user-dropdown a, .dd-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 18px;
  font-size: .875rem; color: var(--gray-600); text-decoration: none;
  background: none; border: none; cursor: pointer; font-family: inherit; text-align: left;
  transition: background .13s, color .13s;
}
.nav-user-dropdown a:hover, .dd-item:hover { background: var(--green-bg); color: var(--green); }
.dd-divider { height: 1px; background: var(--gray-100); margin: 4px 0; }
.dd-logout { color: var(--red) !important; }
.dd-logout:hover { background: var(--red-bg) !important; color: #b91c1c !important; }
.dd-active { background: var(--green-bg) !important; color: var(--green) !important; font-weight: 600; }

/* Cart badge */
.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--red); color: #fff; font-size: .62rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--white);
}

/* Mobile menu */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all .2s; }
/* OLD .mob-menu — overridden by full-screen version at bottom of file */
/* Kept for reference only; actual mobile menu uses .mob-open class */
.mob-link {
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--gray-700); font-size: .9rem; font-weight: 500;
  text-decoration: none; transition: background .15s;
}
.mob-link:hover { background: var(--green-bg); color: var(--green); }
.mob-divider { height: 1px; background: var(--gray-200); margin: 8px 0; }

/* Signin btn */
.nav-signin-btn, .btn-signin {
  padding: 8px 18px; border-radius: 99px;
  background: var(--green); color: #fff; border: none;
  font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: background .15s; font-family: inherit;
}
.nav-signin-btn:hover, .btn-signin:hover { background: var(--green-dark); }

/* Nav user wrapper
   JS sets display:none / display:flex inline.
   .dd-open controls dropdown visibility. Do NOT override to block/flex here. */
.nav-user-wrapper { position: relative; align-items: center; }
/* .active kept for legacy pages that use it */
.nav-user-wrapper.active { display: flex !important; }

/* Logo name/tag */
.logo-name { font-weight: 800; color: var(--green); }
.logo-tag  { display: block; font-size: .62rem; color: var(--gray-400); font-weight: 400; line-height: 1; }

/* Nav-more dropdown */
.nav-more { position: relative; }
.nav-dd {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 160px; padding: 6px 0; z-index: 9999;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-more:hover .nav-dd, .nav-more:focus-within .nav-dd {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dd a {
  display: block; padding: 8px 16px; font-size: .875rem;
  color: var(--gray-700); text-decoration: none;
  transition: background .13s, color .13s;
}
.nav-dd a:hover { background: var(--green-bg); color: var(--green); }

/* Mobile menu links */
.mob-lnk {
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--gray-700); font-size: .9rem; font-weight: 500;
  text-decoration: none; display: block; transition: background .15s;
}
.mob-lnk:hover { background: var(--green-bg); color: var(--green); }
.mob-div { height: 1px; background: var(--gray-200); margin: 8px 0; }
.mob-sec { font-size: .72rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px; }

/* --PL alias used in modal links */
:root { --PL: var(--green); }


/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-green, .btn.btn-primary, .form-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 10px; border: none;
  background: var(--green); color: #fff; font-size: .9rem; font-weight: 700;
  cursor: pointer; font-family: inherit; text-decoration: none;
  transition: background .15s; line-height: 1;
}
.btn-green:hover, .btn.btn-primary:hover, .form-submit:hover { background: var(--green-dark); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 10px;
  border: 1.5px solid var(--gray-200); background: var(--white);
  color: var(--gray-700); font-size: .9rem; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none; transition: all .15s;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: 7px 14px; font-size: .82rem; border-radius: 8px; }
.btn-lg { padding: 12px 28px; font-size: .97rem; border-radius: 12px; }
.btn-xl { padding: 14px 32px; font-size: 1.05rem; border-radius: 14px; }

/* btn-p = primary green, btn-a = accent amber */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 10px; border: none;
  font-size: .9rem; font-weight: 700; cursor: pointer; font-family: inherit;
  text-decoration: none; transition: background .15s, opacity .15s; line-height: 1; }
.btn-p { background: var(--green); color: #fff; }
.btn-p:hover { background: var(--green-dark); }
.btn-a { background: var(--amber); color: #fff; }
.btn-a:hover { background: #b45309; }

/* Nav link buttons (plain text style) */
.nav-lnk {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--gray-600); font-size: .9rem; font-weight: 500;
  padding: 6px 10px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-lnk:hover { color: var(--green); background: var(--green-bg); }

/* Cart button in nav */
.btn-nav-cart {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 99px;
  background: var(--gray-100); color: var(--gray-700);
  border: 1.5px solid var(--gray-200); font-size: .85rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .15s; position: relative;
}
.btn-nav-cart:hover { background: var(--green-bg); border-color: var(--green); color: var(--green); }

/* Login/auth button in nav */
.btn-nav-login {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 99px;
  background: var(--green); color: #fff; border: none;
  font-size: .85rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.btn-nav-login:hover { background: var(--green-dark); }

/* ── FORMS ────────────────────────────────────────────────── */
.form-group  { margin-bottom: 16px; }
.form-label  { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.form-label span { color: var(--red); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200); font-family: inherit;
  font-size: .9rem; color: var(--gray-800); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; padding: 12px; font-size: .95rem; margin-top: 4px; }

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 9000;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto;
}
.modal-close-row { display: flex; justify-content: flex-end; padding: 14px 14px 0; }
.modal-close {
  background: var(--gray-100); border: none; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.modal-close:hover { background: var(--gray-200); }
.modal-tabs { display: flex; border-bottom: 2px solid var(--gray-100); padding: 0 20px; }
.modal-tab {
  padding: 10px 16px; font-size: .9rem; font-weight: 600; cursor: pointer;
  color: var(--gray-400); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .15s;
}
.modal-tab.active { color: var(--green); border-bottom-color: var(--green); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.modal-body { padding: 20px 24px 24px; }
.or-divider {
  text-align: center; color: var(--gray-400); font-size: .82rem;
  position: relative; margin: 14px 0;
}
.or-divider::before, .or-divider::after {
  content: ''; position: absolute; top: 50%; width: calc(50% - 20px); height: 1px; background: var(--gray-200);
}
.or-divider::before { left: 0; } .or-divider::after { right: 0; }

/* ── CARDS ────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); box-shadow: var(--shadow);
}
.card:hover { box-shadow: var(--shadow-md); }

/* ── LISTING CARDS ────────────────────────────────────────── */
.listing-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); overflow: hidden;
  transition: box-shadow .18s, transform .18s;
  cursor: pointer;
}
.listing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.listing-thumb {
  height: 140px; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; position: relative; overflow: hidden;
}
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-body { padding: 14px 16px; }
.listing-name  { font-weight: 700; font-size: .97rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.listing-cat   { font-size: .78rem; color: var(--gray-400); margin-bottom: 8px; }
.listing-meta  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.listing-price { font-weight: 800; font-size: 1.05rem; color: var(--green); }
.listing-seller { font-size: .78rem; color: var(--gray-400); }
.listing-city  { font-size: .75rem; color: var(--gray-400); }

/* ── BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 99px; font-size: .7rem; font-weight: 700;
}
.badge-live     { background: var(--green-pale); color: #15803d; }
.badge-pending  { background: #fef9c3; color: #a16207; }
.badge-sold     { background: var(--blue-bg); color: #1d4ed8; }
.badge-rejected { background: var(--red-bg); color: #b91c1c; }
.badge-green    { background: var(--green-pale); color: var(--green-dark); }

/* Listing status badge (absolute) */
.listing-status-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 10px; border-radius: 99px; font-size: .7rem; font-weight: 700;
}

/* ── STATS ────────────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); padding: 18px 20px;
}
.stat-card .s-label { font-size: .8rem; color: var(--gray-400); margin-bottom: 6px; }
.stat-card .s-value { font-size: 1.6rem; font-weight: 800; }
.stat-card .s-sub   { font-size: .78rem; color: var(--gray-400); margin-top: 2px; }
.s-green { color: var(--green); }
.s-blue  { color: var(--blue); }
.s-amber { color: var(--amber); }
.s-red   { color: var(--red); }

/* ── PAGE HEADER ──────────────────────────────────────────── */
.page-header {
  background: var(--white); border-bottom: 1.5px solid var(--gray-200);
  padding: 28px 24px;
}
.page-header h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.page-header p  { font-size: .9rem; color: var(--gray-400); }
.page-wrap      { max-width: 1100px; margin: 0 auto; padding: 32px 20px 60px; }
.container      { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--gray-400); margin-top: 8px; }
.breadcrumb a { color: var(--green); text-decoration: none; }
.bc-sep { color: var(--gray-300); }

/* ── FILTER TABS ──────────────────────────────────────────── */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab-btn {
  padding: 7px 18px; border-radius: 99px;
  border: 1.5px solid var(--gray-200); background: var(--white);
  font-size: .83rem; font-weight: 600; cursor: pointer;
  transition: all .15s; font-family: inherit; color: var(--gray-600);
}
.tab-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.tab-btn:hover:not(.active) { border-color: var(--green); color: var(--green); }

/* ── GRID ─────────────────────────────────────────────────── */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.shop-grid     { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

/* ── SIDEBAR (shop) ───────────────────────────────────────── */
.shop-layout    { display: flex; gap: 24px; align-items: flex-start; }
.shop-sidebar   { width: 200px; flex-shrink: 0; background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--gray-200); padding: 16px; }
.shop-main      { flex: 1; min-width: 0; }
.sidebar-h      { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--gray-400); margin: 16px 0 8px; padding-top: 14px; border-top: 1px solid var(--gray-100); }
.sidebar-cat    {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; border-radius: var(--radius-sm); border: none;
  font-size: .84rem; font-weight: 500; color: var(--gray-600);
  background: none; cursor: pointer; text-align: left; transition: all .15s; font-family: inherit;
}
.sidebar-cat.active, .sidebar-cat:hover { background: var(--green-bg); color: var(--green); }
.sidebar-cat .cnt { font-size: .72rem; color: var(--gray-400); background: var(--gray-100); padding: 1px 6px; border-radius: 99px; }
.sidebar-cat.active .cnt { background: var(--green-pale); color: var(--green-dark); }

/* ── TOAST ────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--gray-800); color: #fff;
  padding: 12px 20px; border-radius: 10px; font-size: .88rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }

/* ── SECTION ──────────────────────────────────────────────── */
.section     { padding: 56px 0; }
.section-sm  { padding: 32px 0; }
.section-alt { background: var(--green-bg); }
.section-h   { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--gray-400); font-size: .95rem; margin-bottom: 32px; }

/* ── HERO — IPF style: left content, right full-height panel ─ */
.hero {
  background: var(--green-bg);
  padding: 0;
  overflow: hidden;
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3rem 3.5rem 2.5rem;
  gap: 1.1rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-pale); color: var(--green-dark);
  padding: 5px 14px; border-radius: 99px; font-size: .8rem; font-weight: 700;
  width: fit-content; margin-bottom: 0;
}
.hero-left h1 {
  font-size: 2.6rem; font-weight: 900; line-height: 1.15;
  margin-bottom: 0; color: var(--gray-800);
}
.hero-left h1 span { color: var(--green); }
.hero-sub {
  font-size: 1rem; color: var(--gray-600);
  line-height: 1.65; margin: 0; max-width: 440px;
}
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-search {
  display: flex; background: var(--white);
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  overflow: hidden; max-width: 440px;
}
.hero-search input {
  flex: 1; border: none; outline: none;
  padding: .7rem 1rem; font-size: .9rem;
  background: transparent; font-family: inherit; min-width: 0;
}
.hero-search button {
  background: var(--green); color: #fff; border: none;
  padding: .7rem 1.2rem; font-size: .88rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; font-family: inherit;
}
.hero-search button:hover { background: var(--green-dark); }
.hero-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hstat .n { font-size: 1.35rem; font-weight: 800; color: var(--gray-800); line-height: 1; }
.hstat .l { font-size: .72rem; color: var(--gray-400); margin-top: .15rem; }
.hero-trust { display: flex; gap: .6rem; flex-wrap: wrap; }
.h-trust {
  font-size: .75rem; color: var(--gray-600);
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 20px; padding: .25rem .7rem;
}
/* Hero right image panel */
.hero-img-wrap {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--green-bg) 100%);
  min-height: 480px;
}
.hero-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-img-fallback {
  display: none; width: 100%; height: 100%; min-height: 480px;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}
.hif-inner { text-align: center; padding: 2rem; }
.hif-icon  { font-size: 4rem; margin-bottom: .75rem; }
.hif-line1 { font-size: 1.25rem; font-weight: 800; color: var(--green-dark); }
.hif-line2 { font-size: .9rem; color: var(--green); margin-top: .2rem; }
.hif-stat  { background: rgba(255,255,255,.7); border-radius: 10px; padding: .5rem .9rem; text-align: center; }
.hif-n     { font-size: 1.1rem; font-weight: 800; color: var(--green-dark); }
.hif-l     { font-size: .68rem; color: var(--gray-600); }
/* Hero responsive */
@media (max-width: 820px) {
  .hero-wrap { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 2.5rem 1.25rem 2rem; gap: .85rem; }
  .hero-left h1 { font-size: 2rem; }
  .hero-img-wrap { min-height: 220px; height: 220px; }
}
@media (max-width: 480px) {
  .hero-left h1 { font-size: 1.65rem; }
  .hero-left { padding: 2rem 1rem 1.5rem; }
  .hero-ctas { gap: .5rem; }
}

/* ── CATEGORY CARDS ───────────────────────────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 14px; }
.cat-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 22px 16px; text-align: center;
  cursor: pointer; transition: all .18s; text-decoration: none; display: block;
}
.cat-card:hover { border-color: var(--green); background: var(--green-bg); transform: translateY(-2px); }
.cat-icon { font-size: 2.2rem; margin-bottom: 8px; }
.cat-name { font-weight: 700; font-size: .9rem; color: var(--gray-800); margin-bottom: 2px; }
.cat-count { font-size: .76rem; color: var(--gray-400); }

/* ── TESTIMONIALS ─────────────────────────────────────────── */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 20px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); padding: 24px;
}
.testimonial-card blockquote { font-size: .95rem; color: var(--gray-700); line-height: 1.65; margin-bottom: 16px; font-style: italic; }
.testimonial-meta { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green-pale); color: var(--green); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.t-name   { font-weight: 700; font-size: .88rem; }
.t-role   { font-size: .76rem; color: var(--gray-400); }

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 24px; }
.step-card  { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--gray-200); padding: 28px 22px; text-align: center; }
.step-num   { width: 44px; height: 44px; border-radius: 50%; background: var(--green-pale); color: var(--green); font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.step-icon  { font-size: 2rem; margin-bottom: 12px; }
.step-title { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.step-desc  { font-size: .87rem; color: var(--gray-600); line-height: 1.6; }

/* ── SELL FORM ────────────────────────────────────────────── */
.sell-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: flex-start; }
.sell-card { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--gray-200); padding: 28px; }
.sell-tip  { background: var(--green-bg); border-radius: var(--radius); border: 1.5px solid var(--green-pale); padding: 20px; margin-bottom: 20px; }
.sell-tip h4 { font-size: .9rem; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }
.sell-tip li { font-size: .83rem; color: var(--gray-600); line-height: 1.6; margin-left: 16px; }

/* ── NOTIFICATIONS ────────────────────────────────────────── */
.notif-section { margin-bottom: 24px; }
.notif-section-title {
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray-400); font-weight: 600; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.notif-clear-btn { font-size: .72rem; color: var(--gray-400); background: none; border: none; cursor: pointer; font-family: inherit; transition: color .15s; }
.notif-clear-btn:hover { color: var(--red); }
.notif-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white); border-radius: 12px; border: 1.5px solid var(--gray-200);
  padding: 14px 16px; margin-bottom: 10px;
  animation: notifIn .3s ease both;
  position: relative; overflow: hidden;
}
.notif-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.notif-card.n-approved::before { background: var(--green); }
.notif-card.n-rejected::before { background: var(--red); }
.notif-card.unread { background: var(--green-bg); }
.notif-card.unread.n-rejected { background: #fff5f5; }
@keyframes notifIn { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: none; } }
.notif-icon     { font-size: 1.4rem; flex-shrink: 0; }
.notif-body     { flex: 1; min-width: 0; }
.notif-headline { font-weight: 700; font-size: .9rem; margin-bottom: 3px; }
.notif-detail   { font-size: .82rem; color: var(--gray-600); line-height: 1.4; }
.notif-time     { font-size: .72rem; color: var(--gray-400); margin-top: 5px; }
.notif-dismiss  { background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: .85rem; padding: 2px 4px; flex-shrink: 0; transition: color .15s; }
.notif-dismiss:hover { color: var(--red); }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; margin-top: 5px; }
.unread-dot.red { background: var(--red); }

/* ── EMPTY STATE ──────────────────────────────────────────── */
.empty-state { text-align: center; padding: 64px 20px; background: var(--white); border-radius: var(--radius); border: 1.5px dashed var(--gray-200); }
.empty-state .es-icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.empty-state p  { color: var(--gray-400); font-size: .9rem; margin-bottom: 20px; }

/* ── FORM MESSAGE ─────────────────────────────────────────── */
.msg-error   { color: var(--red);   background: var(--red-bg);   padding: 9px 12px; border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 12px; border-left: 3px solid var(--red); }
.msg-success { color: #15803d; background: var(--green-bg); padding: 9px 12px; border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 12px; border-left: 3px solid var(--green); }
.msg-info    { color: var(--blue);  background: var(--blue-bg);  padding: 9px 12px; border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 12px; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-item { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: none; border: none; font-family: inherit; font-size: .95rem; font-weight: 600; color: var(--gray-800); cursor: pointer; text-align: left; transition: background .15s; gap: 12px; }
.faq-q:hover { background: var(--green-bg); }
.faq-q.open  { color: var(--green); background: var(--green-bg); }
.faq-chevron { font-size: .8rem; transition: transform .2s; color: var(--gray-400); flex-shrink: 0; }
.faq-q.open .faq-chevron { transform: rotate(180deg); color: var(--green); }
.faq-a { display: none; padding: 0 20px 16px; font-size: .9rem; color: var(--gray-600); line-height: 1.7; }
.faq-a.open { display: block; }

/* ── BLOG ─────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 20px; }
.blog-card { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--gray-200); overflow: hidden; transition: box-shadow .18s; }
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-thumb { height: 160px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-body { padding: 20px; }
.blog-tag   { display: inline-block; background: var(--green-pale); color: var(--green-dark); font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; margin-bottom: 8px; }
.blog-title { font-weight: 700; font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.blog-excerpt { font-size: .85rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 12px; }
.blog-meta  { font-size: .75rem; color: var(--gray-400); display: flex; gap: 12px; }

/* ── CART ─────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: flex-start; }
.cart-table  { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--gray-200); }
.cart-row    { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--gray-100); }
.cart-row:last-child { border-bottom: none; }
.cart-item-emoji { font-size: 2rem; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; background: var(--gray-100); border-radius: 10px; flex-shrink: 0; }
.cart-item-info  { flex: 1; min-width: 0; }
.cart-item-name  { font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-seller { font-size: .78rem; color: var(--gray-400); margin-top: 2px; }
.cart-item-price { font-weight: 800; font-size: 1rem; color: var(--green); white-space: nowrap; }
.cart-remove     { background: none; border: none; cursor: pointer; color: var(--gray-300); font-size: .9rem; transition: color .15s; padding: 4px; }
.cart-remove:hover { color: var(--red); }
.cart-summary    { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--gray-200); padding: 24px; }
.summary-row     { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: .9rem; border-bottom: 1px solid var(--gray-100); }
.summary-total   { font-weight: 800; font-size: 1.1rem; color: var(--green); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer, .site-footer {
  background: #111827; color: #9ca3af;
  padding: 40px 24px 24px; margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; max-width: 1200px; margin: 0 auto 32px; }
.footer-brand { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.footer-desc  { font-size: .85rem; line-height: 1.65; color: #6b7280; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: #d1d5db; margin-bottom: 12px; }
.footer-col a  { display: block; font-size: .85rem; color: #6b7280; text-decoration: none; margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: var(--green-lt); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 20px; border-top: 1px solid #374151; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: .8rem; }
.footer-bottom a { color: var(--green-lt); text-decoration: none; }
/* Simple footer (used on listings/orders pages) */
footer p { text-align: center; font-size: .8rem; max-width: 1200px; margin: 0 auto; }
footer a { color: var(--green-lt); text-decoration: none; }

/* ── PAGE HEADER (variant used in shop/sell etc) ──────────── */
.page-header-banner {
  background: linear-gradient(135deg, var(--green-bg), var(--white));
  border-bottom: 1.5px solid var(--gray-200);
  padding: 36px 0 28px;
}

/* ── DONATE BADGE ─────────────────────────────────────────── */
.btn-nav-donate {
  padding: 7px 14px; border-radius: 99px;
  background: var(--green-pale); color: var(--green-dark);
  border: none; font-size: .82rem; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.btn-nav-donate:hover { background: #bbf7d0; }

/* ── CTA SECTION ──────────────────────────────────────────── */
.cta-section { background: var(--green); color: #fff; padding: 56px 24px; text-align: center; }
.cta-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.cta-section p  { font-size: 1rem; opacity: .85; margin-bottom: 24px; }
.btn-cta-white  { background: #fff; color: var(--green); font-weight: 800; padding: 12px 28px; border-radius: 10px; border: none; font-size: .95rem; cursor: pointer; font-family: inherit; text-decoration: none; display: inline-block; transition: opacity .15s; }
.btn-cta-white:hover { opacity: .9; }
.btn-cta-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); font-weight: 700; padding: 11px 28px; border-radius: 10px; font-size: .95rem; cursor: pointer; font-family: inherit; text-decoration: none; display: inline-block; transition: all .15s; }
.btn-cta-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid  { grid-template-columns: 1fr; }
  .hero-img   { display: none; }
  .sell-grid  { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-sidebar { display: none; }
}
@media (max-width: 640px) {
  nav, .site-nav { padding: 0 16px; gap: 14px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero h1  { font-size: 2rem; }
  .listings-grid { grid-template-columns: 1fr 1fr; }
  .shop-grid     { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .listings-grid { grid-template-columns: 1fr; }
  .shop-grid     { grid-template-columns: 1fr; }
  .stats-row     { grid-template-columns: 1fr 1fr; }
}

/* ── UTILITIES ────────────────────────────────────────────── */
.mt2  { margin-top: .5rem; }
.mt4  { margin-top: 1rem; }
.btn-blk { width: 100%; }
.text-green { color: var(--green); }
.text-gray  { color: var(--gray-400); }
.fw-800     { font-weight: 800; }
.sr-only    { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── LOADING SPINNER ──────────────────────────────────────── */
.spinner { display: inline-block; width: 20px; height: 20px; border: 2.5px solid var(--gray-200); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; align-items: center; justify-content: center; padding: 60px 20px; gap: 12px; color: var(--gray-400); }

/* ── MISSING / COMPATIBILITY CLASSES ─────────────────────── */

/* Color aliases used inline in some pages */
:root {
  --coral: #f43f5e;
  --ink:   #1f2937;
}

/* Ghost / outlined button */
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: 10px;
  border: 1.5px solid var(--gray-200); background: var(--white);
  color: var(--gray-700); font-size: .9rem; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none; transition: all .15s;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); background: var(--green-bg); }

/* Green-white (ghost with green border) — used on hero */
.btn-gw {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 10px;
  border: 2px solid var(--green); background: var(--white);
  color: var(--green); font-size: .9rem; font-weight: 700;
  cursor: pointer; font-family: inherit; text-decoration: none; transition: all .15s;
}
.btn-gw:hover { background: var(--green); color: #fff; }
.btn-gw.btn-lg  { padding: 12px 28px; font-size: .97rem; border-radius: 12px; }
.btn-gw.btn-xl  { padding: 14px 32px; font-size: 1.05rem; border-radius: 14px; }

/* Section heading components */
.sec-head { text-align: center; margin-bottom: 2.5rem; }
.eyebrow  {
  display: inline-block; font-size: .72rem; font-weight: 700;
  color: var(--green); text-transform: uppercase; letter-spacing: .1em;
  background: var(--green-bg); border-radius: 99px; padding: 4px 12px;
  margin-bottom: .75rem;
}
.sec-h    { font-size: 1.65rem; font-weight: 800; color: var(--gray-800); margin-bottom: .5rem; line-height: 1.25; }
.sec-sub  { font-size: .95rem; color: var(--gray-600); line-height: 1.7; max-width: 640px; }
.sec-sub-c { margin: 0 auto; }

/* Form card (white card used for content blocks) */
.form-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); padding: 24px;
  box-shadow: var(--shadow);
}

/* Breadcrumb */
.bc  { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--gray-400); margin-top: .5rem; flex-wrap: wrap; }
.bc a { color: var(--gray-400); text-decoration: none; transition: color .15s; }
.bc a:hover { color: var(--green); }
.bcx { color: var(--gray-300); }

/* Step card */
.step-title { font-size: 1rem; font-weight: 700; color: var(--gray-800); margin-bottom: .35rem; }
.step-desc  { font-size: .88rem; color: var(--gray-600); line-height: 1.6; }

/* Section wrapper */
.section { padding: 60px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Grid helpers */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .grid-3 { grid-template-columns: 1fr; } }

/* Page-header banner (used in about, faq etc) */
.page-header .bc { margin-top: .5rem; }

/* Cart badge on btn-nav-cart */
.btn-nav-cart { position: relative; }
.btn-nav-cart .cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--red); color: #fff; font-size: .6rem; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 2px solid var(--white);
}

.marquee-dot { width: 5px; height: 5px; background: rgba(255,255,255,.5); border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: middle; }

/* Page header icon/left layout (listings, orders) */
.page-header-left  { display: flex; align-items: center; gap: 14px; }
.page-header-icon  { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--green-bg); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.page-wrap         { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

/* ═══════════════════════════════════════════════════════════════
   INDEX PAGE — MISSING COMPONENTS
   ═══════════════════════════════════════════════════════════════ */

/* ── SCROLLABLE FRESH ARRIVALS STRIP ── */
.scroll-section {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: .75rem 0;
}
.scroll-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: .25rem 1.5rem .65rem;
  max-width: 1280px; margin: 0 auto;
}
.scroll-title { font-size: .92rem; font-weight: 700; color: var(--gray-800); }
.scroll-btns  { display: flex; gap: .4rem; }
.scrl-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gray-100); display: flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: 1rem;
  font-weight: 700; color: var(--gray-600); user-select: none;
  transition: background .15s; border: 1.5px solid var(--gray-200);
}
.scrl-btn:hover { background: var(--green-bg); color: var(--green); border-color: var(--green); }
.scroll-wrap {
  overflow: hidden; max-width: 1280px;
  margin: 0 auto; padding: 0 1rem;
}
.scroll-track {
  display: flex; gap: .75rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .5rem; cursor: grab;
}
.scroll-track::-webkit-scrollbar { height: 4px; }
.scroll-track::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 2px; }
.scroll-track::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }
.scroll-track.grabbing { cursor: grabbing; }
.sc {
  flex: 0 0 140px; scroll-snap-align: start;
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.sc:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sc-img {
  background: var(--gray-100); display: flex; align-items: center;
  justify-content: center; font-size: 2rem; height: 78px; flex-shrink: 0;
}
.sc-body { padding: .5rem .65rem .6rem; border-top: 1px solid var(--gray-100); }
.sc-name {
  font-size: .75rem; font-weight: 700; color: var(--gray-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-sub {
  font-size: .65rem; color: var(--gray-400); margin-top: .1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-price { font-size: .8rem; font-weight: 800; color: var(--green); margin-top: .25rem; }
@media (max-width: 480px) {
  .sc { flex: 0 0 118px; }
  .sc-img { height: 64px; font-size: 1.6rem; }
  .scroll-hd { padding: .2rem 1rem .5rem; }
}

/* ── SHOP BY CATEGORY (6-col grid) ── */
.cat-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .75rem;
}
@media (max-width: 900px) { .cat-grid-6 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .cat-grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 380px) { .cat-grid-6 { grid-template-columns: repeat(2, 1fr); } }

.cg-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.1rem .75rem;
  text-align: center; cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
.cg-card:hover {
  border-color: var(--green); background: var(--green-bg);
  transform: translateY(-2px);
}
.cg-icon { font-size: 1.9rem; line-height: 1; }
.cg-name { font-size: .75rem; font-weight: 700; color: var(--gray-800); line-height: 1.25; }
.cg-cnt  { font-size: .65rem; color: var(--gray-400); }
.cat-view-all { text-align: center; margin-top: 1.5rem; }

/* ── FRESH ARRIVALS GRID ── */
.fresh-box { /* wrapper */ }
.fresh-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .fresh-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .fresh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .fresh-grid { grid-template-columns: 1fr; } }

/* ── PRODUCT CARDS (index + shop) ── */
.product-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-img {
  position: relative; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; height: 120px; flex-shrink: 0;
}
@media (max-width: 480px) { .product-img { height: 100px; font-size: 2.2rem; } }
.product-body {
  padding: .65rem; flex: 1;
  display: flex; flex-direction: column; gap: .18rem;
}
.p-cat  { font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); font-weight: 600; }
.p-name { font-size: .84rem; font-weight: 700; color: var(--gray-800); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-seller { font-size: .68rem; color: var(--gray-400); }
.p-price-row { display: flex; align-items: baseline; gap: .3rem; flex-wrap: wrap; margin-top: .2rem; }
.p-price { font-size: .95rem; font-weight: 800; color: var(--gray-800); }
.p-orig  { font-size: .72rem; color: var(--gray-400); text-decoration: line-through; }
.p-disc  { font-size: .65rem; font-weight: 700; color: var(--green); background: var(--green-bg); padding: 1px 5px; border-radius: 20px; }
.p-footer { display: flex; gap: .4rem; padding: .55rem .65rem .65rem; border-top: 1px solid var(--gray-100); }
.p-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--green); color: #fff;
  font-size: .6rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px; text-transform: uppercase;
}
.p-badge.acc { background: var(--amber); }

/* ── TAGS (condition badges) ── */
.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-size: .72rem; font-weight: 600; }
.t-green { background: var(--green-bg); color: var(--green-dark); }
.t-gray  { background: var(--gray-100); color: var(--gray-600); }
.t-amber { background: var(--amber-bg); color: var(--amber); }

/* ── TESTIMONIALS (index page) ── */
.tes-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.tes-q    { font-size: 2.5rem; color: var(--green-pale); line-height: 1; font-weight: 900; margin-bottom: -.5rem; }
.tes-text { font-size: .92rem; color: var(--gray-600); line-height: 1.7; flex: 1; }
.tes-author { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.tes-av   { width: 38px; height: 38px; border-radius: 50%; background: var(--green-pale); color: var(--green); font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tes-name { font-weight: 700; font-size: .88rem; color: var(--gray-800); }
.tes-role { font-size: .75rem; color: var(--gray-400); }

/* ── STEP CARDS (how it works) ── */
.step-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); padding: 2rem 1.5rem;
  text-align: center; position: relative;
}
.step-n {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-pale); color: var(--green);
  font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .85rem;
}
.step-icon  { font-size: 2rem; margin-bottom: .75rem; }
.step-title { font-size: 1rem; font-weight: 700; color: var(--gray-800); margin-bottom: .35rem; }
.step-desc  { font-size: .87rem; color: var(--gray-600); line-height: 1.6; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--green);
  padding: 56px 24px;
}
.cta-band .container {
  display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.eyebrow-w { color: rgba(255,255,255,.75) !important; background: rgba(255,255,255,.15) !important; }
.sec-h-w   { color: #fff !important; }
.cta-btns  { display: flex; gap: .75rem; flex-wrap: wrap; flex-shrink: 0; }
@media (max-width: 640px) {
  .cta-band .container { flex-direction: column; text-align: center; }
  .cta-btns { justify-content: center; }
}

/* ── FOOTER (index-style) ── */
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-about { font-size: .85rem; color: #6b7280; line-height: 1.65; margin: .65rem 0; }
.foot-soc     { display: flex; gap: .5rem; margin-top: .5rem; }
.soc-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #9ca3af;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; text-decoration: none; transition: background .15s;
}
.soc-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.fc-h {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700; color: #d1d5db; margin-bottom: .75rem;
}
.fl {
  display: block; font-size: .85rem; color: #6b7280;
  text-decoration: none; margin-bottom: .5rem; transition: color .15s;
}
.fl:hover { color: var(--green-lt); }
.foot-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 20px; border-top: 1px solid #374151;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: .8rem;
}
.foot-links { display: flex; gap: 1rem; }
.foot-link  { color: var(--green-lt); text-decoration: none; font-size: .8rem; }
.foot-link:hover { text-decoration: underline; }

/* ── BUTTONS (missing variants) ── */
/* Ghost/outline */
.btn-gh, .btn-out {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 10px;
  border: 1.5px solid var(--gray-200); background: var(--white);
  color: var(--gray-700); font-size: .9rem; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none; transition: all .15s;
}
.btn-gh:hover, .btn-out:hover { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.btn-gh.btn-sm, .btn-out.btn-sm { padding: 7px 14px; font-size: .82rem; border-radius: 8px; }
.btn-gh.btn-lg, .btn-out.btn-lg { padding: 12px 28px; font-size: .97rem; border-radius: 12px; }
.btn-gh.btn-xl, .btn-out.btn-xl { padding: 14px 32px; font-size: 1.05rem; border-radius: 14px; }

/* Sizes for .btn-p and .btn-a */
.btn-p.btn-sm, .btn-a.btn-sm { padding: 7px 14px; font-size: .82rem; border-radius: 8px; }
.btn-p.btn-lg, .btn-a.btn-lg { padding: 12px 28px; font-size: .97rem; border-radius: 12px; }
.btn-p.btn-xl, .btn-a.btn-xl { padding: 14px 32px; font-size: 1.05rem; border-radius: 14px; }

/* ── UTILITY EXTRAS ── */
.tc     { text-align: center; }
.mt2    { margin-top: .5rem; }
.mt4    { margin-top: 1rem; }
.btn-blk { width: 100%; display: flex; justify-content: center; }

/* ── SHOP PAGE EXTRAS ── */
.shop-results-col    { flex: 1; min-width: 0; }
.shop-top-bar        { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; flex-wrap: wrap; gap: .5rem; }
.shop-results-cnt    { font-size: .82rem; color: var(--gray-600); font-weight: 600; }
.product-grid        { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }
/* Mobile filter toggle */
.mob-filter-toggle {
  display: none; width: 100%; padding: .65rem 1rem; margin-bottom: .75rem;
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); font-size: .88rem; font-weight: 600;
  cursor: pointer; text-align: left; font-family: inherit;
}
@media (max-width: 768px) {
  .mob-filter-toggle { display: block; }
  .shop-sidebar { display: none !important; }
  .shop-sidebar.open { display: block !important; border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── NAV: logo-tag + nav-lnk already defined but ensure ── */
.logo-name { font-weight: 800; color: var(--green); }
.logo-tag  { display: block; font-size: .62rem; color: var(--gray-400); font-weight: 400; line-height: 1; }



/* ═══════════════════════════════════════════════════════════════
   NAV SEARCH BAR
   ═══════════════════════════════════════════════════════════════ */

.nav-search-form {
  display: flex;
  align-items: center;
  background: #f4f4f4;
  border: 1.5px solid #e5e5e5;
  border-radius: 20px;
  padding: 0 4px 0 12px;
  height: 34px;
  transition: border-color .2s, box-shadow .2s;
}
.nav-search-form:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}
.nav-search-form input {
  border: none;
  background: transparent;
  outline: none;
  font-size: .83rem;
  color: #222;
  width: 140px;
  min-width: 80px;
  max-width: 200px;
  font-family: inherit;
}
.nav-search-form input::placeholder { color: #aaa; }
.nav-search-form button {
  background: var(--green);
  border: none;
  border-radius: 16px;
  color: #fff;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .8rem;
  transition: background .15s;
}
.nav-search-form button:hover { background: var(--green-dark); }
@media (max-width: 768px) {
  .nav-search-form { display: none !important; }
}


/* ═══════════════════════════════════════════════════════════════
   AVATAR DROPDOWN — see .nav-user-dropdown rules above
   ═══════════════════════════════════════════════════════════════ */

.nav-user-dropdown a,
.nav-user-dropdown button.dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: .88rem;
  color: #333;
  text-decoration: none;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.nav-user-dropdown a:hover,
.nav-user-dropdown button.dd-item:hover { background: var(--green-bg); color: var(--green); }

.nav-user-dropdown .dropdown-header {
  padding: 12px 16px 8px;
  border-bottom: 1px solid #f0f0f0;
}
.nav-user-dropdown .d-name  { font-weight: 600; font-size: .9rem; color: #111; }
.nav-user-dropdown .d-email { font-size: .75rem; color: #888; margin-top: 2px; }
.nav-user-dropdown .dd-divider { height: 1px; background: #f0f0f0; margin: 4px 0; }
.nav-user-dropdown .dd-logout { color: var(--red) !important; }
.nav-user-dropdown .dd-logout:hover { background: var(--red-bg) !important; color: #b91c1c !important; }


/* ═══════════════════════════════════════════════════════════════
   MOBILE MENU — full-screen slide-in (used on all pages)
   ═══════════════════════════════════════════════════════════════ */

.mob-menu {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100% !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  z-index: 9998;
  background: #fff;
  padding: 0 !important;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex !important;
  flex-direction: column;
}
.mob-menu.mob-open { transform: translateX(0) !important; }

/* Mobile menu header row (title + ✕ button) */
.mob-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.mob-menu-title { font-weight: 700; font-size: 1rem; color: #111; }
.mob-close-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #f4f4f4;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #555;
  transition: background .15s;
}
.mob-close-btn:hover { background: #ebebeb; color: #111; }

/* Mobile menu scrollable body */
.mob-menu-body {
  padding: 12px 20px 30px;
  flex: 1;
  overflow-y: auto;
}

/* Mobile search inside menu */
.mob-search-form {
  display: flex;
  align-items: center;
  background: #f4f4f4;
  border: 1.5px solid #e5e5e5;
  border-radius: 20px;
  padding: 0 6px 0 14px;
  height: 42px;
  margin-bottom: 14px;
}
.mob-search-form:focus-within { border-color: var(--green); }
.mob-search-form input {
  border: none; background: transparent; outline: none;
  font-size: .9rem; flex: 1; font-family: inherit;
}
.mob-search-form button {
  background: var(--green); border: none; border-radius: 16px;
  color: #fff; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .9rem;
}

/* Mobile logged-in user card */
.mob-user-card {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--green-bg);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.mob-user-card.visible { display: flex; }
.mob-uavatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem; flex-shrink: 0;
}
.mob-uname  { font-weight: 600; font-size: .88rem; color: #111; }
.mob-uemail { font-size: .72rem; color: #666; margin-top: 1px; }

/* Mobile auth buttons */
.mob-logout-btn {
  display: none;
  width: 100%; text-align: left;
  background: var(--red-bg); color: var(--red);
  border: 1px solid #fecaca;
  border-radius: 8px; padding: 10px 14px;
  font-size: .88rem; font-weight: 600;
  cursor: pointer; margin-top: 4px;
}
.mob-logout-btn.visible { display: block; }
.mob-login-btn {
  width: 100%; background: var(--green); color: #fff;
  border: none; border-radius: 8px; padding: 12px;
  font-size: .92rem; font-weight: 600; cursor: pointer; margin-top: 8px;
}
.mob-login-btn:hover { background: var(--green-dark); }

/* Show/hide rules */
@media (min-width: 769px) {
  .mob-menu    { display: none !important; }
  .hamburger   { display: none !important; }
}


/* ═══════════════════════════════════════════════════════════════
   PROMO SLIDER (index hero carousel)
   ═══════════════════════════════════════════════════════════════ */

.promo-slider-wrap {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
}
.promo-slides {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.promo-slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 5%;
  min-height: 320px;
  box-sizing: border-box;
  overflow: hidden;
}
.promo-slide-left  { flex: 0 0 45%; z-index: 2; position: relative; }
.promo-slide-right { flex: 0 0 50%; display: flex; align-items: center; justify-content: center; gap: 1rem; position: relative; z-index: 1; }
.promo-badge { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem; opacity: .75; }
.promo-title { font-size: clamp(1.6rem,4vw,2.4rem); font-weight: 800; line-height: 1.15; margin: 0 0 .7rem; }
.promo-sub   { font-size: .95rem; line-height: 1.6; margin: 0 0 1.4rem; opacity: .8; max-width: 380px; }
.promo-note  { font-size: .72rem; margin-top: 1rem; opacity: .55; }
.promo-card  {
  background: rgba(255,255,255,.92);
  border-radius: 16px; width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  flex-shrink: 0;
}
.promo-card:nth-child(2) { transform: translateY(-16px); width: 140px; height: 140px; font-size: 4rem; }
.promo-card:nth-child(3) { transform: translateY(8px); }

/* Prev / Next arrows */
.promo-arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; z-index: 10; transition: box-shadow .15s; color: #333;
}
.promo-arr:hover { box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.promo-arr-l { left: 14px; }
.promo-arr-r { right: 14px; }

/* Dot indicators */
.promo-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10;
}
.promo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ccc; cursor: pointer;
  transition: background .2s, transform .2s;
}
.promo-dot.active { background: #333; transform: scale(1.25); }

@media (max-width: 600px) {
  .promo-slide {
    flex-direction: column;
    padding: 2rem 5% 3rem;
    min-height: auto;
    text-align: center;
  }
  .promo-slide-left  { flex: none; width: 100%; }
  .promo-sub         { margin: 0 auto 1.2rem; }
  .promo-slide-right { flex: none; width: 100%; margin-top: 1rem; }
  .promo-card        { width: 80px; height: 80px; font-size: 2.2rem; }
  .promo-card:nth-child(2) { width: 96px; height: 96px; font-size: 2.8rem; }
}


/* ═══════════════════════════════════════════════════════════════
   CTA BAND (bottom green strip above footer)
   ═══════════════════════════════════════════════════════════════ */

.cta-band { margin-bottom: 0 !important; }
footer    { margin-top: 0 !important; }


/* ═══════════════════════════════════════════════════════════════
   FLOATING HELP BUTTON
   ═══════════════════════════════════════════════════════════════ */

.help-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 18px 12px 14px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(22,163,74,.45);
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
  font-family: inherit;
}
.help-fab:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(22,163,74,.5); }
.help-fab-icon  { font-size: 1.1rem; }
@media (max-width: 480px) {
  .help-fab        { padding: 12px; border-radius: 50%; }
  .help-fab-label  { display: none; }
}


/* ═══════════════════════════════════════════════════════════════
   SIDEBAR CONDITION LABELS (shop page stacked checkboxes)
   ═══════════════════════════════════════════════════════════════ */

.sidebar-cond {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: 3px 0;
  user-select: none;
}
.sidebar-cond input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   PROFILE BUTTON + DROPDOWN (bm-* system)
   Used across all pages for login/avatar/dropdown
══════════════════════════════════════════════════════ */
.bm-profile-wrap { position: relative; display: flex; align-items: center; }
.bm-login-btn {
  background: #16a34a; color: #fff; border: none; border-radius: 20px;
  padding: 7px 16px; font-size: .85rem; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background .15s;
  display: flex; align-items: center; gap: 5px;
}
.bm-login-btn:hover { background: #15803d; }
.bm-avatar-wrap { position: relative; display: flex; align-items: center; }
.bm-avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: #16a34a; color: #fff; border: 2.5px solid rgba(255,255,255,.3);
  font-size: .88rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .15s; font-family: inherit;
}
.bm-avatar-btn:hover { box-shadow: 0 0 0 3px rgba(22,163,74,.3); }
.bm-dropdown {
  display: none;
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #fff; border: 1.5px solid #e5e7eb;
  border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.15);
  min-width: 210px; z-index: 99999; overflow: hidden;
}
.bm-dropdown.open { display: block; }
.bm-dd-header { padding: 12px 16px 10px; border-bottom: 1px solid #f0f0f0; }
.bm-dd-name  { font-weight: 700; font-size: .9rem; color: #111; }
.bm-dd-email { font-size: .75rem; color: #888; margin-top: 2px; }
.bm-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: .88rem; color: #333;
  text-decoration: none; background: none; border: none;
  width: 100%; text-align: left; cursor: pointer;
  font-family: inherit; transition: background .12s;
}
.bm-dd-item:hover { background: #f0fdf4; color: #16a34a; }
.bm-dd-div { height: 1px; background: #f0f0f0; margin: 4px 0; }
.bm-dd-logout { color: #dc2626 !important; }
.bm-dd-logout:hover { background: #fef2f2 !important; }


/* ══ STICKY MOBILE BOTTOM BAR — v2 ═══════════════════════════
   Add <div class="mob-sticky-bar"> snippet before </body>
   on every page. Hidden on desktop automatically.
   ════════════════════════════════════════════════════════════ */
.mob-sticky-bar { display: none; }

@media (max-width: 768px) {
  body { padding-bottom: 68px; }

  .mob-sticky-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 8px 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -2px 20px rgba(0,0,0,.10);
    z-index: 9990;
  }

  .mob-sticky-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 42px;
    border-radius: 10px;
    font-size: .76rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: filter .15s, transform .1s;
    white-space: nowrap;
    padding: 0 8px;
  }
  .mob-sticky-btn:active { transform: scale(.97); filter: brightness(.92); }

  .msb-outline {
    background: #fff;
    color: var(--green, #16a34a);
    border: 2px solid var(--green, #16a34a);
  }
  .msb-solid {
    background: var(--green, #16a34a);
    color: #fff;
    box-shadow: 0 2px 10px rgba(22,163,74,.25);
  }
  .msb-dark {
    background: var(--gray-800, #0f172a);
    color: #fff;
  }

  .msb-icon { font-size: .95rem; line-height: 1; }
  .toast    { bottom: 76px; }
  .help-fab { bottom: 76px; }
}

@media (min-width: 769px) {
  .mob-sticky-bar { display: none !important; }
}

/* ══ FOOTER — 3 link columns in one row on mobile ════════════ */
@media (max-width: 768px) {
  /* Override any previous 1-col or 2-col collapse */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr) !important; /* keep 4-col structure */
    gap: 10px !important;
  }

  /* Hide brand column (first child) */
  .footer-grid > *:first-child,
  .footer-brand,
  .footer-about,
  .foot-soc {
    display: none !important;
  }

  /* The 3 link columns span full width evenly */
  .footer-col {
    min-width: 0;
  }
  .footer-col h4,
  .fc-h {
    font-size: .68rem;
    margin-bottom: 8px;
    white-space: nowrap;
  }
  .footer-col a,
  .fl {
    font-size: .75rem;
    margin-bottom: 5px;
  }

  /* Foot bottom & brand elements already hidden */
  .foot-bottom,
  .footer-brand,
  .footer-about,
  .foot-soc { display: none !important; }

  footer, .site-footer {
    padding: 16px 12px 80px;
  }
}
