/* ============================================================
   QuickNeeds – Freshyo-inspired Redesign
   White background · Blue primary · Clean & minimal
   Font: Inter (system-feel, readable, modern)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  #eff6ff;
  --blue-mid:    #dbeafe;

  --green:       #16a34a;
  --green-light: #dcfce7;
  --red:         #dc2626;
  --red-light:   #fee2e2;
  --pink:        #e91e8c;
  --orange:      #f97316;
  --purple:      #7c3aed;
  --purple-light:#f5f3ff;
  --yellow:      #eab308;

  --text:        #111827;
  --text-2:      #374151;
  --text-3:      #6b7280;
  --text-4:      #9ca3af;

  --bg:          #f3f4f6;
  --bg-2:        #f9fafb;
  --white:       #ffffff;
  --border:      #e5e7eb;
  --border-2:    #f3f4f6;

  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 24px;
  --r-full:999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-h:        56px;
  --bnav-h:       68px;
  --cart-bar-h:   64px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-2);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a    { text-decoration: none; color: inherit; }
img  { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); border: none; outline: none; }
input, select, textarea { font-family: var(--font); outline: none; }
ul, ol { list-style: none; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 99px; }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: 480px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1200px; } }

.section { padding: 24px 0; }

/* ── Typography ──────────────────────────────────────────── */
.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.3px;
  margin-bottom: 4px;
}
.section-sub {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
  margin-top: 2px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--r-lg);
  font-weight: 600;
  font-size: 14px;
  transition: all .18s ease;
  cursor: pointer;
  border: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

.btn-primary  { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }

.btn-outline {
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-light); }

.btn-ghost {
  background: var(--bg);
  color: var(--text-2);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-danger { background: var(--red); color: #fff; }
.btn-sm     { padding: 8px 14px; font-size: 13px; border-radius: var(--r-md); }
.btn-lg     { padding: 15px 24px; font-size: 15px; border-radius: var(--r-xl); }
.w-full     { width: 100%; }

/* ── Form ────────────────────────────────────────────────── */
.input-field {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-2);
  transition: border-color .18s, box-shadow .18s;
}
.input-field:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.input-field::placeholder { color: var(--text-4); }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
select.input-field { appearance: none; cursor: pointer; }

/* ── Card ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-green  { background: var(--green-light);  color: var(--green); }
.badge-blue   { background: var(--blue-light);   color: var(--blue); }
.badge-orange { background: #fff7ed;             color: var(--orange); }
.badge-red    { background: var(--red-light);    color: var(--red); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-gray   { background: var(--bg);           color: var(--text-3); }

/* ── Toast ───────────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: calc(var(--bnav-h) + var(--cart-bar-h) + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  background: var(--text);
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  box-shadow: var(--shadow-lg);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  opacity: 0;
  pointer-events: none;
}
#toast.show    { transform: translateX(-50%) translateY(0); opacity: 1; }
#toast.success { background: var(--green); }
#toast.error   { background: var(--red); }

/* ═══════════════════════════════════════════════════════
   TOP NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}
.logo {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -.3px;
}
.logo-icon {
  background: var(--blue);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.logo-accent { color: var(--blue); }

/* Search bar in navbar (desktop) */
.search-bar {
  flex: 1;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 7px 12px;
  transition: border-color .18s;
}
.search-bar:focus-within {
  border-color: var(--blue);
  background: var(--white);
}
.search-icon { font-size: 15px; color: var(--blue); flex-shrink: 0; }
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--text);
  min-width: 0;
}
.search-bar input::placeholder { color: var(--text-4); }

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 7px 10px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all .18s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--blue-light); color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 18px;
  padding: 6px 10px;
  border-radius: var(--r-md);
  transition: background .18s;
  cursor: pointer;
  color: var(--text);
}
.cart-btn:hover { background: var(--blue-light); }
.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--white);
}

.user-menu   { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px); right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  min-width: 190px;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  overflow: hidden;
  animation: dropIn .2s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dropdown.open { display: block; }
.dropdown a, .dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  transition: background .15s;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
.dropdown a:hover, .dropdown button:hover { background: var(--bg-2); }
.dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

.hamburger {
  display: none;
  width: 36px; height: 36px;
  background: var(--bg-2);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  font-size: 17px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════
   HOME SEARCH BAR (full-width, pill, blue icon)
   ═══════════════════════════════════════════════════════ */
.home-search-wrap {
  background: var(--white);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.home-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 11px 16px;
  box-shadow: var(--shadow-xs);
}
.home-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.home-search .search-icon { font-size: 18px; color: var(--blue); flex-shrink: 0; }
.home-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
}
.home-search input::placeholder { color: var(--text-4); }

/* ═══════════════════════════════════════════════════════
   BOTTOM NAV
   ═══════════════════════════════════════════════════════ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--white);
  border-top: 1px solid var(--border);
  height: var(--bnav-h);
  padding: 0 8px 8px;
  align-items: center;
  justify-content: space-around;
}
.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: var(--r-md);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  transition: color .18s;
  position: relative;
  flex: 1;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
}
.bnav-icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 1px;
}
.bnav-item.active { color: var(--blue); }
.bnav-item.active .bnav-icon { transform: scale(1.05); }

/* Center lightning bolt */
.bnav-center {
  background: var(--blue);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  gap: 2px;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  flex-shrink: 0;
  position: relative;
  top: -8px;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: transform .2s;
  text-decoration: none;
}
.bnav-center:active { transform: scale(.95); }
.bnav-center-icon { font-size: 20px; line-height: 1; }

.bnav-cart-badge {
  position: absolute;
  top: 4px; right: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--white);
}

/* ═══════════════════════════════════════════════════════
   STICKY CART BAR (blue, above bottom nav)
   ═══════════════════════════════════════════════════════ */
.cart-bar {
  display: none;
  position: fixed;
  bottom: var(--bnav-h);
  left: 0; right: 0;
  z-index: 250;
  background: var(--blue);
  padding: 10px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-bar.has-items { display: flex; }
.cart-bar-left { display: flex; flex-direction: column; gap: 2px; }
.cart-bar-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.cart-bar-sub {
  font-size: 11px;
  color: rgba(255,255,255,.8);
}
.cart-bar-sub .free-tag { color: #4ade80; font-weight: 700; }
.cart-bar-btn {
  background: var(--white);
  color: var(--blue);
  border: none;
  border-radius: var(--r-lg);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s;
  font-family: var(--font);
}
.cart-bar-btn:hover { background: var(--blue-light); }

/* ═══════════════════════════════════════════════════════
   MOBILE NAV DRAWER
   ═══════════════════════════════════════════════════════ */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.4);
}
.mobile-nav.open { display: flex; }
.mobile-nav-panel {
  width: min(300px, 85vw);
  background: var(--white);
  height: 100%;
  overflow-y: auto;
  animation: slideIn .25s ease;
  display: flex;
  flex-direction: column;
}
@keyframes slideIn {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
.mobile-nav-header {
  background: var(--blue);
  padding: 24px 20px 20px;
  color: #fff;
}
.mobile-nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.mobile-nav-close {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255,255,255,.2);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-links { padding: 8px 0; }
.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-2);
}
.mobile-nav-links a:hover { background: var(--blue-light); color: var(--blue); }

/* ═══════════════════════════════════════════════════════
   CATEGORY TILES (square image + label below)
   ═══════════════════════════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}
.cat-tile:hover .cat-img { transform: scale(1.04); box-shadow: var(--shadow-md); }
.cat-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  background: var(--cat-bg, var(--bg));
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  transition: transform .2s, box-shadow .2s;
}
.cat-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.cat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════
   PROMO BANNER (image carousel)
   ═══════════════════════════════════════════════════════ */
.promo-carousel { position: relative; overflow: hidden; border-radius: var(--r-xl); }
.promo-track { display: flex; transition: transform .5s ease; }
.promo-slide {
  min-width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  padding: 24px 20px;
  gap: 16px;
}
.promo-slide-1 { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.promo-slide-2 { background: linear-gradient(135deg, #065f46, #10b981); }
.promo-slide-3 { background: linear-gradient(135deg, #7e22ce, #a855f7); }
.promo-text { flex: 1; }
.promo-tag {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 6px;
}
.promo-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
}
.promo-code {
  font-size: 12px;
  color: rgba(255,255,255,.85);
}
.promo-code code {
  background: rgba(255,255,255,.2);
  border: 1px dashed rgba(255,255,255,.5);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.promo-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--r-lg);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.promo-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}
.promo-dot {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--border);
  cursor: pointer;
  transition: all .3s;
}
.promo-dot.active { background: var(--blue); width: 16px; }

/* ═══════════════════════════════════════════════════════
   STORE CARD (white card, image row, Explore button)
   ═══════════════════════════════════════════════════════ */
.store-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 16px;
  transition: box-shadow .2s;
}
.store-card:hover { box-shadow: var(--shadow-md); }
.store-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.store-card-img {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 1px solid var(--border);
}
.store-card-img img { width: 100%; height: 100%; object-fit: cover; }
.store-card-name { font-size: 17px; font-weight: 700; color: var(--text); }
.store-card-count {
  margin-left: auto;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--r-md);
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}
.store-card-count small { display: block; font-size: 9px; font-weight: 500; }

/* 3 product preview images in a row */
.store-products-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.store-product-thumb {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 1px solid var(--border);
}
.store-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.store-product-name {
  font-size: 11px;
  color: var(--text-2);
  text-align: center;
  margin-top: 4px;
  line-height: 1.3;
}
.store-explore-btn {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--r-lg);
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .18s;
  font-family: var(--font);
  text-decoration: none;
}
.store-explore-btn:hover { background: var(--blue-dark); }

/* Section left-border accent (like "OUR OUTLETS") */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.section-label-bar {
  width: 4px; height: 20px;
  background: var(--blue);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-label-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* ═══════════════════════════════════════════════════════
   PRODUCT CARD (matches Freshyo exactly)
   ═══════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.product-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-md); }

.product-img {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
  transition: transform .25s ease;
}
.product-card:hover .product-img img { transform: scale(1.06); }

/* Cart icon overlay (bottom-right of image, like Freshyo) */
.product-cart-overlay {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 34px; height: 34px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all .18s;
  border: 1px solid var(--border);
}
.product-cart-overlay:hover { background: var(--blue-light); }

/* Out of Stock overlay */
.out-of-stock-overlay {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
}

.discount-tag {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--green);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: var(--r-xs);
}
.delivery-tag {
  position: absolute;
  bottom: 6px; left: 6px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: var(--r-xs);
}

.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}
.product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.product-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
}
.product-mrp {
  font-size: 12px;
  color: var(--text-4);
  text-decoration: line-through;
}
.product-qty-label {
  font-size: 12px;
  color: var(--text-3);
}
.product-qty-val {
  color: var(--pink);
  font-weight: 600;
  font-size: 12px;
}
.product-weight { font-size: 11px; color: var(--text-4); }

/* Full-width ADD TO CART button (blue, bottom of card) */
.add-to-cart-btn {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  padding: 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: .3px;
  transition: background .18s;
  font-family: var(--font);
  margin-top: auto;
}
.add-to-cart-btn:hover { background: var(--blue-dark); }
.add-to-cart-btn:disabled {
  background: var(--text-4);
  cursor: not-allowed;
}

/* Qty controller (replaces ADD button when item in cart) */
.qty-ctrl-full {
  display: flex;
  align-items: center;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  overflow: hidden;
  margin-top: auto;
}
.qty-ctrl-full button {
  flex: 1;
  padding: 12px;
  background: var(--blue);
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s;
  font-family: var(--font);
}
.qty-ctrl-full button:hover { background: var(--blue-dark); }
.qty-ctrl-full .qty-num {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  background: var(--blue-light);
  padding: 12px 4px;
}

/* Small qty-ctrl for cart page */
.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.qty-ctrl button {
  width: 34px; height: 34px;
  background: var(--bg-2);
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.qty-ctrl button:hover { background: var(--blue-light); color: var(--blue); }
.qty-ctrl .qty-num-small {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* ADD button (small, for grids on non-home pages) */
.add-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background .18s;
  white-space: nowrap;
  font-family: var(--font);
  flex-shrink: 0;
}
.add-btn:hover { background: var(--blue-dark); }

/* ═══════════════════════════════════════════════════════
   SERVICE CARD
   ═══════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.service-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-md); }
.service-img {
  height: 100px;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.service-info { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.service-name { font-size: 14px; font-weight: 700; color: var(--text); }
.service-desc { font-size: 11.5px; color: var(--text-3); line-height: 1.5; flex: 1; }
.service-meta { display: flex; gap: 8px; font-size: 11px; color: var(--text-3); margin: 4px 0; flex-wrap: wrap; }
.service-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.service-price { font-size: 14px; font-weight: 800; color: var(--blue); }
.service-price small { font-size: 10px; color: var(--text-3); display: block; font-weight: 400; }

/* ═══════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════ */
.how-it-works {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.step { text-align: center; }
.step-icon {
  width: 56px; height: 56px;
  background: var(--blue-light);
  border-radius: var(--r-lg);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.step h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.step p   { font-size: 12px; color: var(--text-3); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 40px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 14px;
}
.footer-col p  { font-size: 13px; line-height: 1.8; margin-bottom: 4px; }
.footer-col a  { display: block; font-size: 13px; color: #64748b; margin-bottom: 9px; transition: color .18s; }
.footer-col a:hover { color: var(--blue); }
.footer .logo  { color: #fff; }
.footer-bottom { padding: 16px 0; text-align: center; }
.footer-bottom p { font-size: 12px; color: #475569; }

/* ═══════════════════════════════════════════════════════
   PAGE HERO
   ═══════════════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--blue), #60a5fa);
  padding: 28px 0;
  color: #fff;
  margin-bottom: 0;
}
.page-hero h1 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.page-hero p  { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════
   FILTER PILLS
   ═══════════════════════════════════════════════════════ */
.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-pills::-webkit-scrollbar { display: none; }
.pill {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-2);
  cursor: pointer;
  transition: all .18s;
  flex-shrink: 0;
}
.pill:hover  { border-color: var(--blue); color: var(--blue); }
.pill.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ═══════════════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════════════ */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 60px; height: 60px;
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 1px solid var(--border);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info  { flex: 1; min-width: 0; }
.cart-item-name  { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.cart-item-weight { font-size: 11px; color: var(--text-4); margin-bottom: 6px; }
.cart-item-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-item-price { font-size: 15px; font-weight: 800; color: var(--blue); }
.remove-btn {
  background: none; border: none;
  color: var(--red);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.order-summary { position: sticky; top: calc(var(--nav-h) + 12px); }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.summary-row.total {
  font-size: 16px; font-weight: 800; color: var(--text);
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px;
}
.summary-row.total .amount { color: var(--text); }
.free-delivery-note {
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--r-md);
  margin: 8px 0;
}
/* "You saved" green bar */
.saved-bar {
  background: var(--green-light);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
}

/* ═══════════════════════════════════════════════════════
   CHECKOUT
   ═══════════════════════════════════════════════════════ */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.payment-option {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: var(--r-lg);
  border: 1.5px solid var(--border); cursor: pointer;
  transition: all .18s; margin-bottom: 10px;
}
.payment-option:hover { border-color: var(--blue); }
.payment-option.selected { border-color: var(--blue); background: var(--blue-light); }
.payment-option input { accent-color: var(--blue); }

/* ═══════════════════════════════════════════════════════
   ORDER TRACKING
   ═══════════════════════════════════════════════════════ */
.track-steps { display: flex; align-items: flex-start; margin: 20px 0; overflow-x: auto; }
.track-step  { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 52px; }
.track-icon  {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; border: 2px solid var(--border);
  background: var(--white); position: relative; z-index: 1;
  transition: all .3s;
}
.track-icon.done   { border-color: var(--green); background: var(--green-light); }
.track-icon.active { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.2); }
.track-label { font-size: 10px; font-weight: 600; color: var(--text-3); text-align: center; }
.track-label.done   { color: var(--green); }
.track-label.active { color: var(--blue); font-weight: 700; }
.track-line { flex: 1; height: 2px; background: var(--border); margin-top: 19px; transition: background .4s; }
.track-line.done { background: var(--green); }

/* ═══════════════════════════════════════════════════════
   LIVE TRACKING
   ═══════════════════════════════════════════════════════ */
.live-tracking { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); margin-top: 16px; }
.live-tracking-header {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.live-tracking-header h4 { font-size: 14px; font-weight: 700; }
.live-tracking-eta { text-align: right; }
.live-tracking-eta strong { font-size: 22px; font-weight: 800; display: block; line-height: 1; }
.live-tracking-eta span { font-size: 11px; color: rgba(255,255,255,.6); }
.live-tracking-map { height: 220px; background: #e8f0e9; position: relative; }
.live-tracking-footer {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); padding: 10px 16px;
  font-size: 12px; color: var(--text-3); border-top: 1px solid var(--border);
}
.rider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.5)} }
.rider-marker-icon {
  background: var(--blue); border: 3px solid #fff;
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 4px 12px rgba(37,99,235,.5);
}
.leaflet-routing-container { display: none !important; }

/* ═══════════════════════════════════════════════════════
   ADMIN / VENDOR PANEL
   ═══════════════════════════════════════════════════════ */
.admin-layout { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: #0f172a; color: #94a3b8;
  padding: 20px 0; position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.05);
}
.admin-logo { padding: 0 18px 20px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 16px; font-weight: 700; color: #fff; }
.admin-nav { padding: 12px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 500; color: #64748b;
  transition: all .18s; margin-bottom: 2px; white-space: nowrap;
}
.admin-nav a:hover, .admin-nav a.active { background: var(--blue); color: #fff; }
.admin-main { padding: 28px; background: var(--bg-2); min-width: 0; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-title  { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--white); border-radius: var(--r-xl);
  border: 1px solid var(--border); padding: 18px;
  display: flex; align-items: center; gap: 12px;
}
.stat-icon { width: 46px; height: 46px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.stat-label { font-size: 12px; color: var(--text-3); margin-bottom: 3px; }
.stat-value { font-size: 20px; font-weight: 800; }

/* ── Table ───────────────────────────────────────────────── */
.table-wrap { background: var(--white); border-radius: var(--r-xl); border: 1px solid var(--border); overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 500px; }
thead { background: var(--bg-2); }
th { padding: 12px 16px; text-align: left; font-size: 10.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
tr:hover td { background: var(--bg-2); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 500;
  align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--r-2xl);
  width: 100%; max-width: 520px; max-height: 90vh;
  overflow-y: auto; padding: 28px;
  animation: fadeSlideIn .25s ease;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title  { font-size: 18px; font-weight: 800; }
.modal-close  {
  background: var(--bg-2); border: none; font-size: 16px;
  color: var(--text-3); cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════
   AUTH PAGES (blue gradient bg + white card)
   ═══════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(160deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.auth-page::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.auth-hero {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.auth-hero h1 {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.5px;
  margin-bottom: 8px;
}
.auth-hero p {
  font-size: 15px;
  color: rgba(255,255,255,.8);
}
.auth-card {
  background: var(--white);
  border-radius: var(--r-2xl);
  padding: 32px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  animation: fadeSlideIn .35s ease;
}
.auth-logo  { text-align: center; margin-bottom: 20px; }
.auth-title { text-align: center; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.auth-sub   { text-align: center; font-size: 13px; color: var(--text-3); margin-bottom: 22px; }
.auth-demo  {
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin-top: 14px;
}
.auth-demo p { font-size: 12px; color: #713f12; }
.auth-footer { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 18px; }
.auth-footer a { color: var(--blue); font-weight: 700; }

/* ═══════════════════════════════════════════════════════
   PROFILE / ACCOUNT PAGE (Freshyo "Me" style)
   ═══════════════════════════════════════════════════════ */
.account-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 16px 0 8px;
}
.account-menu-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 8px;
}
.account-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border-2);
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: var(--text);
}
.account-menu-item:last-child { border-bottom: none; }
.account-menu-item:hover { background: var(--bg-2); }
.account-menu-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.account-menu-text { flex: 1; }
.account-menu-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 1px; }
.account-menu-sub { font-size: 12px; color: var(--text-3); }
.account-menu-arrow { color: var(--text-4); font-size: 14px; }
.account-logout {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  width: 100%;
  transition: background .18s;
  font-family: var(--font);
}
.account-logout:hover { background: var(--red-light); }

/* ═══════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon  {
  width: 80px; height: 80px;
  background: var(--bg);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.empty-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.empty-sub   { font-size: 14px; color: var(--text-3); max-width: 260px; margin: 0 auto 20px; line-height: 1.6; }

/* ── Spinner ─────────────────────────────────────────────── */
.spinner-wrap { display: flex; align-items: center; justify-content: center; padding: 60px; flex-direction: column; gap: 12px; }
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--blue-light);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-text { font-size: 13px; color: var(--text-3); font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Utility ─────────────────────────────────────────────── */
.text-center   { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
.text-muted  { color: var(--text-3); font-size: 13px; }
.text-blue   { color: var(--blue); }
.font-bold   { font-weight: 700; }
.w-full      { width: 100%; }

/* ── Page enter ──────────────────────────────────────────── */
.page-enter { animation: pageIn .3s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Admin top nav (mobile) ──────────────────────────────── */
.admin-top-nav {
  display: none;
  background: #0f172a;
  overflow-x: auto;
  padding: 0 8px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  scrollbar-width: none;
}
.admin-top-nav::-webkit-scrollbar { display: none; }
.admin-top-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 14px; font-size: 13px; font-weight: 600;
  color: #64748b; white-space: nowrap;
  border-bottom: 3px solid transparent; transition: all .18s;
  text-decoration: none;
}
.admin-top-nav a:hover, .admin-top-nav a.active { color: #fff; border-bottom-color: var(--blue); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .admin-layout      { grid-template-columns: 1fr; }
  .admin-sidebar     { display: none; }
  .admin-top-nav     { display: flex; }
  .admin-main        { padding: 16px; }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .footer-inner      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { padding-bottom: calc(var(--bnav-h) + var(--cart-bar-h)); }
  .navbar .nav-links  { display: none; }
  .navbar .search-bar { display: none; }
  .navbar .btn-outline { display: none; }
  .navbar .cart-btn   { display: none; }
  .navbar .user-menu  { display: none; }
  .hamburger { display: flex; }
  .bottom-nav { display: flex; }
  .section { padding: 16px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .cart-layout     { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary   { position: static; }
  .steps-grid      { gap: 16px; }
  #toast { bottom: calc(var(--bnav-h) + var(--cart-bar-h) + 8px); }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .auth-card { padding: 24px 20px; }
  .admin-main { padding: 12px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── register.html role pills ──────────────────────────── */
.role-pill { transition: all .18s; }
.role-pill.active {
  background: var(--blue-light) !important;
  border-color: var(--blue) !important;
  color: var(--blue) !important;
}