@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:          #060810;
  --sb-bg:       #040609;
  --card:        #0d1020;
  --card-h:      #121528;
  --topbar:      rgba(6,8,16,0.96);
  --border:      rgba(255,255,255,0.1);
  --border-h:    rgba(255,255,255,0.2);
  --red:         #d01020;
  --red2:        #e8192b;
  --red-h:       #ff2235;
  --red-glow:    rgba(232,25,43,0.65);
  --red-sub:     rgba(232,25,43,0.09);
  --text:        #eef0f5;
  --fg:          #eef0f5;
  --muted:       rgba(255,255,255,0.38);
  --dim:         rgba(255,255,255,0.15);
  --green:       #00e676;
  --green-bg:    rgba(0,230,118,0.08);
  --blue:        #3b82f6;
  --yellow:      #f5a623;
  --font:        'Space Grotesk', sans-serif;
  --mono:        'JetBrains Mono', monospace;
  --sb-w:        242px;
  --top-h:       58px;
  --r:           9px;
  --r-lg:        14px;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ── Starfield & Aurora ──────────────────────────────────────────────────────── */
#starfield { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(80,20,120,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(20,40,100,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(232,25,43,0.03) 0%, transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { opacity: 0.6; transform: scale(1) rotate(0deg); }
  50%  { opacity: 1;   transform: scale(1.04) rotate(0.5deg); }
  100% { opacity: 0.7; transform: scale(1.02) rotate(-0.3deg); }
}

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sb-w);
  flex-shrink: 0;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  background: #04060e;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow: hidden;
}

.sb-logo {
  padding: 22px 18px 16px;
  border-bottom: 1px solid var(--border);
}
.sb-logo a {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
}
.sb-logo-mark {
  width: 28px; height: 28px;
  background: var(--red2);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 900; color: #fff;
  box-shadow: 0 0 18px var(--red-glow), 0 0 40px rgba(232,25,43,0.2);
  flex-shrink: 0;
}
.sb-logo em { font-style: normal; color: var(--red2); }

.sb-section {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255,255,255,.2);
  text-transform: uppercase;
  padding: 18px 16px 5px;
}

.sb-nav { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; flex: 1; overflow-y: auto; }
.sb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .25px;
  color: var(--muted);
  transition: all .18s;
  position: relative;
  border: 1px solid transparent;
}
.sb-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .5; transition: opacity .18s; }
.sb-link:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
}
.sb-link:hover svg { opacity: 0.9; }
.sb-link.active {
  color: var(--red2);
  background: rgba(232,25,43,0.08);
  border-color: rgba(232,25,43,0.2);
  box-shadow: inset 0 0 20px rgba(232,25,43,0.05);
}
.sb-link.active svg { opacity: 1; color: var(--red2); }

.sb-footer {
  margin-top: auto;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: .65rem;
  color: var(--dim);
}

/* ── Main area ───────────────────────────────────────────────────────────────── */
.main-area {
  margin-left: var(--sb-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── Topbar ──────────────────────────────────────────────────────────────────── */
.topbar {
  height: var(--top-h);
  background: var(--topbar);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  max-width: 420px;
}
.topbar-search:focus-within {
  border-color: rgba(232,25,43,0.35);
  box-shadow: 0 0 0 3px rgba(232,25,43,0.07);
}
.topbar-search svg { margin-left: 12px; color: var(--dim); flex-shrink: 0; }
.topbar-search input {
  flex: 1; padding: 9px 12px;
  background: none; border: none;
  color: var(--text); font-size: .875rem; outline: none;
}
.topbar-search input::placeholder { color: var(--dim); }
.topbar-search-btn {
  padding: 0 16px; height: 100%;
  background: rgba(255,255,255,0.04);
  border: none; border-left: 1px solid var(--border);
  color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .3px;
  transition: color .2s, background .2s;
}
.topbar-search-btn:hover { color: var(--text); background: rgba(255,255,255,0.07); }

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

.topbar-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--muted); font-size: .8rem; font-weight: 600;
  transition: all .2s; white-space: nowrap;
}
.topbar-btn:hover { border-color: rgba(255,255,255,0.12); color: var(--text); background: rgba(255,255,255,0.07); }

.topbar-balance-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 13px;
  background: rgba(0,230,118,0.07);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: var(--r);
  color: var(--green); font-size: .8rem; font-weight: 700;
  text-decoration: none; transition: all .2s; white-space: nowrap;
}
.topbar-balance-chip:hover { background: rgba(0,230,118,0.13); border-color: rgba(0,230,118,0.35); }

.topbar-login {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 18px;
  background: var(--red2); border: none; border-radius: var(--r);
  color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 0 20px rgba(232,25,43,0.4);
  transition: box-shadow .2s, transform .15s;
}
.topbar-login:hover { box-shadow: 0 0 32px var(--red-glow); transform: translateY(-1px); }

.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 5px;
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--border);
  border-radius: 100px; font-size: .8rem; font-weight: 600;
  color: var(--text); cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.user-chip:hover { border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.07); }
.user-avatar {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--red2), #b01020);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; color: #fff;
  box-shadow: 0 0 10px rgba(232,25,43,0.5);
}
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: rgba(6,9,18,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg); padding: 6px;
  min-width: 168px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(232,25,43,0.06);
  display: none; z-index: 999;
}
.user-chip:hover .user-dropdown,
.user-chip:focus-within .user-dropdown { display: block; animation: dropIn .15s ease; }
@keyframes dropIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.user-dropdown a, .user-dropdown button {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 12px; border-radius: 7px;
  font-size: .8rem; font-weight: 500;
  color: var(--muted); background: none; border: none;
  text-align: left; transition: all .15s;
}
.user-dropdown a:hover, .user-dropdown button:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.user-dropdown button.logout { color: var(--red2); }
.user-dropdown button.logout:hover { background: var(--red-sub); }

/* ── Banner ──────────────────────────────────────────────────────────────────── */
.banner {
  background: linear-gradient(90deg, #a00818, #e8192b, #a00818);
  background-size: 200% 100%;
  animation: bannerSlide 6s linear infinite;
  color: #fff; text-align: center; padding: 9px 40px;
  font-size: .72rem; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; position: relative; cursor: pointer;
}
@keyframes bannerSlide { 0%{background-position:0% 0%} 100%{background-position:200% 0%} }
.banner-close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  width: 22px; height: 22px; border-radius: 50%; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.banner-close:hover { background: rgba(255,255,255,0.35); }

/* ── Page content ────────────────────────────────────────────────────────────── */
.page-content { padding: 40px 44px 80px; flex: 1; }
.page-center { max-width: 1140px; margin: 0 auto; width: 100%; }
.page-title { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 6px; }
.page-title em { font-style: normal; color: var(--red2); }
.page-sub { color: var(--muted); font-size: .88rem; margin-bottom: 32px; }

/* ── Home page ───────────────────────────────────────────────────────────────── */
.home-hero {
  background: linear-gradient(140deg, rgba(232,25,43,.1) 0%, rgba(13,16,32,.6) 55%);
  border: 1px solid rgba(232,25,43,.22); border-radius: 22px;
  padding: 70px 60px; margin-bottom: 36px; position: relative; overflow: hidden;
}
.home-hero::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,25,43,.1) 0%, transparent 70%);
  pointer-events: none;
}
.home-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .65rem; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--red2); margin-bottom: 16px;
}
.home-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--red2); }
.home-hero h1 { font-size: 3rem; font-weight: 900; letter-spacing: -1.5px; line-height: 1.08; margin-bottom: 16px; }
.home-hero h1 em { font-style: normal; color: var(--red2); }
.home-hero p { font-size: .95rem; color: var(--muted); max-width: 480px; line-height: 1.75; margin-bottom: 28px; }
.home-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.home-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; background: var(--red2); color: #fff;
  border: none; border-radius: 11px; font-size: .9rem; font-weight: 700;
  box-shadow: 0 0 28px rgba(232,25,43,.45); transition: all .2s;
  text-decoration: none; font-family: var(--font);
}
.home-btn-primary:hover { box-shadow: 0 0 44px var(--red-glow); transform: translateY(-1px); }
.home-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15); color: var(--text);
  border-radius: 11px; font-size: .9rem; font-weight: 600;
  transition: all .2s; text-decoration: none; font-family: var(--font);
}
.home-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }

.home-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 12px; margin-bottom: 36px;
}
.home-stat {
  background: #0d1020; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
  padding: 22px 18px; text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.home-stat:hover { border-color: rgba(232,25,43,.3); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.4); }
.home-stat-num { font-size: 2rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 6px; }
.home-stat-num.red { color: var(--red2); text-shadow: 0 0 20px rgba(232,25,43,.4); }
.home-stat-num.green { color: var(--green); text-shadow: 0 0 20px rgba(0,230,118,.3); }
.home-stat-num.blue { color: var(--blue); text-shadow: 0 0 20px rgba(59,130,246,.3); }
.home-stat-lbl { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.home-section-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -.5px; margin-bottom: 16px; }
.home-section-title em { font-style: normal; color: var(--red2); }

.home-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; margin-bottom: 36px; }
.trust-card {
  background: #0d1020; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
  padding: 24px 22px; transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 12px;
}
.trust-card:hover { border-color: rgba(232,25,43,.3); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(232,25,43,.06); }
.trust-icon { font-size: 1.75rem; }
.trust-title { font-size: .9rem; font-weight: 700; color: var(--text); }
.trust-desc { font-size: .78rem; color: rgba(255,255,255,.45); line-height: 1.65; }

.home-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 14px; margin-bottom: 36px; }
.mini-review {
  background: #0d1020; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
  padding: 18px 20px; transition: border-color .2s;
}
.mini-review:hover { border-color: rgba(232,25,43,.25); }
.mini-review-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mini-review-av { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--red2), #a01020); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; color: #fff; }
.mini-review-name { font-size: .82rem; font-weight: 700; }
.mini-review-prod { font-size: .68rem; color: var(--muted); }
.mini-review-stars { color: #f59e0b; font-size: .85rem; margin-left: auto; }
.mini-review-body { font-size: .78rem; color: rgba(255,255,255,.6); line-height: 1.6; }

.home-cta {
  background: linear-gradient(135deg, rgba(232,25,43,.1) 0%, rgba(80,20,120,.08) 100%);
  border: 1px solid rgba(232,25,43,.2); border-radius: 18px;
  padding: 44px; text-align: center; margin-bottom: 16px;
}
.home-cta h2 { font-size: 1.8rem; font-weight: 900; letter-spacing: -.5px; margin-bottom: 10px; }
.home-cta h2 em { font-style: normal; color: var(--red2); }
.home-cta p { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }

/* ── Group cards (home) ──────────────────────────────────────────────────────── */
.group-controls {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 28px; flex-wrap: wrap;
}
.group-search {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  flex: 1; max-width: 480px;
  transition: border-color .2s, box-shadow .2s;
}
.group-search:focus-within { border-color: rgba(232,25,43,0.35); box-shadow: 0 0 0 3px rgba(232,25,43,0.06); }
.group-search svg { margin-left: 12px; color: var(--dim); flex-shrink: 0; }
.group-search input {
  flex: 1; padding: 9px 12px; background: none; border: none;
  color: var(--text); font-size: .875rem; outline: none;
}
.group-search input::placeholder { color: var(--dim); }
.search-btn {
  padding: 0 18px; height: 38px;
  background: rgba(255,255,255,0.04); border: none;
  border-left: 1px solid var(--border); color: var(--muted);
  font-size: .82rem; font-weight: 600; transition: color .2s, background .2s;
}
.search-btn:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.filter-dropdown {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: var(--r);
  color: var(--muted); font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.filter-dropdown:hover, .filter-dropdown.active-filter { color: var(--text); border-color: var(--border-h); }
.filter-dropdown.active-filter { background: rgba(232,25,43,.1); border-color: rgba(232,25,43,.35); color: var(--red2); }

.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }

.group-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s;
  backdrop-filter: blur(12px);
  position: relative;
}
.group-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(232,25,43,0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none; z-index: 1;
}
.group-card:hover {
  border-color: rgba(232,25,43,0.4);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(232,25,43,0.12), 0 0 0 1px rgba(232,25,43,0.15);
}
.group-card:hover::before { opacity: 1; }
.group-card-img {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #0a0518 0%, #070412 40%, #050814 100%);
  font-size: 4.5rem; position: relative; overflow: hidden;
}
.group-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center bottom, rgba(232,25,43,0.1) 0%, transparent 65%),
    radial-gradient(ellipse at center, rgba(80,20,160,0.06) 0%, transparent 70%);
}
.group-card-img::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to top, rgba(5,8,16,0.9), transparent);
  z-index: 2;
}
.group-restocked {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  background: rgba(0,230,118,0.1); border: 1px solid rgba(0,230,118,0.25);
  color: var(--green); font-size: .62rem; font-weight: 700;
  padding: 3px 9px; border-radius: 100px;
  display: flex; align-items: center; gap: 4px;
}
.group-restocked::before { content:''; width:5px; height:5px; background:var(--green); border-radius:50%; animation: pulse-dot 2s infinite; }
.group-card-body { padding: 16px 18px 0; position: relative; z-index: 2; }
.group-card-name {
  font-size: .95rem; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 4px; color: var(--text);
}
.group-card-type { font-size: .72rem; color: var(--muted); letter-spacing: .3px; }
.group-card-btn {
  display: block; width: 100%; margin-top: 16px;
  padding: 12px; background: rgba(232,25,43,0.12);
  border: none; border-top: 1px solid rgba(232,25,43,0.2);
  color: var(--red2); font-size: .8rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; text-align: center;
  transition: background .2s, color .2s; position: relative; z-index: 2;
}
.group-card:hover .group-card-btn { background: var(--red2); color: #fff; }

/* ── Products grid ───────────────────────────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 24px; transition: color .2s;
  background: none; border: none; padding: 0;
}
.back-link:hover { color: var(--text); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

.product-card {
  background: #0d1020;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
  cursor: pointer; transition: all .22s cubic-bezier(.2,.8,.2,1);
  position: relative; overflow: hidden;
}
.product-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red2), transparent);
  opacity: 0; transition: opacity .3s;
}
.product-card:hover {
  border-color: rgba(232,25,43,0.3);
  background: var(--card-h);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 20px rgba(232,25,43,0.08);
}
.product-card:hover::after { opacity: 1; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(232,25,43,0.08); border: 1px solid rgba(232,25,43,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.stock-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 100px; font-size: .65rem; font-weight: 700;
}
.stock-badge.in-stock { background: rgba(0,230,118,0.08); color: var(--green); border: 1px solid rgba(0,230,118,0.2); }
.stock-badge.out-stock { background: rgba(255,255,255,0.04); color: var(--dim); border: 1px solid var(--border); }
.stock-badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.stock-badge.in-stock .dot { animation: pulse-dot 2s infinite; box-shadow: 0 0 5px currentColor; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.3} }

.stock-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 100px; font-size: .68rem; font-weight: 700;
}
.stock-pill.in  { background: rgba(0,230,118,0.08); color: var(--green); border: 1px solid rgba(0,230,118,0.2); }
.stock-pill.out { background: rgba(255,255,255,.04); color: var(--dim); border: 1px solid var(--border); }
.stock-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.stock-pill.in .dot { animation: pulse-dot 2s infinite; box-shadow: 0 0 5px currentColor; }

.card-name { font-size: .9rem; font-weight: 700; line-height: 1.3; }
.card-desc { font-size: .74rem; color: var(--muted); line-height: 1.4; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.card-price { font-size: 1.1rem; font-weight: 800; }
.card-price sup { font-size: .6rem; color: var(--muted); vertical-align: super; }
.card-price .each { font-size: .62rem; color: var(--muted); font-weight: 500; }
.btn-buy {
  padding: 6px 16px; background: var(--red2); color: #fff; border: none;
  border-radius: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 0 12px rgba(232,25,43,0.35); transition: all .2s;
}
.btn-buy:hover:not(:disabled) { box-shadow: 0 0 22px var(--red-glow); transform: scale(1.05); }
.btn-buy:disabled { background: rgba(255,255,255,0.06); color: var(--dim); box-shadow: none; cursor: not-allowed; }
.no-results { grid-column: 1/-1; text-align: center; padding: 70px 0; color: var(--muted); }

/* ── Product Popup ───────────────────────────────────────────────────────────── */
#pp-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.9); backdrop-filter: blur(14px);
  z-index: 3000; align-items: flex-start; justify-content: center;
  padding: 24px 16px; overflow-y: auto;
}
#pp-overlay.show { display: flex; }

.pp-modal {
  background: #07090f;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px; width: 100%; max-width: 640px;
  margin: auto; overflow: hidden;
  box-shadow: 0 48px 120px rgba(0,0,0,.95), 0 0 0 1px rgba(232,25,43,.07), 0 0 100px rgba(232,25,43,.05);
  animation: ppIn .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes ppIn { from{opacity:0;transform:scale(.95) translateY(-18px)} to{opacity:1;transform:none} }

/* ── Popup header ── */
.pp-hd {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px 12px;
  background: linear-gradient(135deg, rgba(232,25,43,.1) 0%, rgba(7,9,15,0) 65%);
  border-bottom: 1px solid rgba(232,25,43,.13);
  position: relative;
}
.pp-hd::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232,25,43,.5) 40%, transparent 100%);
}
.pp-hd-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.pp-hd-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: rgba(232,25,43,.1); border: 1px solid rgba(232,25,43,.25);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(232,25,43,.18);
}
.pp-title { font-size: 1rem; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; }
.pp-subtitle { font-size: .7rem; color: var(--muted); margin-top: 3px; }
.pp-hd-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pp-badge { padding: 5px 13px; border-radius: 100px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.pp-badge-in  { background: rgba(0,230,118,.12); color: var(--green); border: 1px solid rgba(0,230,118,.28); }
.pp-badge-out { background: rgba(232,25,43,.12); color: var(--red2); border: 1px solid rgba(232,25,43,.28); }
.pp-close {
  width: 33px; height: 33px; border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  color: var(--muted); display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.pp-close:hover { border-color: var(--red2); color: var(--red2); background: rgba(232,25,43,.08); }

/* ── Tags ── */
.pp-tags {
  display: flex; gap: 6px; padding: 8px 18px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.pp-tag {
  padding: 4px 12px; border-radius: 100px; font-size: .7rem; font-weight: 600;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}
.pp-tag-green { background: rgba(0,230,118,.08); color: var(--green); border-color: rgba(0,230,118,.22); }

/* ── Category selector ── */
#pp-cat-wrap { padding: 10px 18px 0; }
.pp-search-row {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 8px; padding: 0 12px; margin-bottom: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.pp-search-row:focus-within {
  border-color: rgba(232,25,43,.38);
  box-shadow: 0 0 0 3px rgba(232,25,43,.07);
}
.pp-search-row svg { color: var(--dim); flex-shrink: 0; }
.pp-search {
  flex: 1; padding: 8px 0; background: none; border: none;
  color: var(--text); font-size: .8rem; outline: none; font-family: var(--font);
}
.pp-search::placeholder { color: var(--dim); }

.pp-prod-list {
  max-height: 130px; overflow-y: auto;
  border: 1px solid rgba(255,255,255,.08); border-radius: 8px;
  background: rgba(255,255,255,.015);
}
.pp-prod-list::-webkit-scrollbar { width: 3px; }
.pp-prod-list::-webkit-scrollbar-thumb { background: rgba(232,25,43,.35); border-radius: 2px; }

.pp-prod-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s; position: relative;
}
.pp-prod-item:last-child { border-bottom: none; }
.pp-prod-item:hover { background: rgba(255,255,255,.05); }
.pp-prod-item.sel {
  background: rgba(232,25,43,.08);
  border-left: 2px solid var(--red2);
  padding-left: 12px;
}
.pp-prod-item.sel::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(232,25,43,.3), transparent);
}

/* Icon */
.pp-prod-icon {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
  display: flex; align-items: center; justify-content: center; font-size: .72rem;
  transition: background .15s, border-color .15s;
}
.pp-prod-item.sel .pp-prod-icon {
  background: rgba(232,25,43,.12); border-color: rgba(232,25,43,.3);
}

/* Info */
.pp-prod-info { flex: 1; min-width: 0; }
.pp-prod-name {
  font-size: .74rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: rgba(255,255,255,.85); line-height: 1.1;
}
.pp-prod-item.sel .pp-prod-name { color: var(--text); }
.pp-prod-subprice {
  font-size: .62rem; color: rgba(255,255,255,.35); margin-top: 0; font-weight: 500;
}
.pp-prod-item.sel .pp-prod-subprice { color: rgba(255,255,255,.5); }

/* Stock badge */
.pp-prod-stock {
  padding: 3px 10px; border-radius: 100px; font-size: .64rem; font-weight: 700;
  white-space: nowrap; flex-shrink: 0; letter-spacing: .3px;
}
.pp-prod-stock.in  { background: rgba(0,230,118,.1); color: var(--green); border: 1px solid rgba(0,230,118,.2); }
.pp-prod-stock.out { background: rgba(255,255,255,.04); color: rgba(255,255,255,.3); border: 1px solid rgba(255,255,255,.08); }
.pp-prod-stock.in::before { content: '● '; font-size: .5rem; vertical-align: middle; }

.pp-prod-empty {
  padding: 28px; color: var(--muted); font-size: .82rem;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.pp-prod-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pp-prod-price { font-size: .85rem; font-weight: 800; color: var(--text); }

/* ── Body ── */
#pp-body { padding: 18px 24px 24px; }

.pp-lbl { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 8px; }
.pp-section { margin-bottom: 16px; }
.pp-desc { font-size: .83rem; color: rgba(255,255,255,.62); line-height: 1.8; }
.pp-desc-line { margin-bottom: 3px; }

.pp-select {
  width: 100%; padding: 11px 14px; background: rgba(255,255,255,.035);
  border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  font-size: .85rem; outline: none; appearance: none; font-family: var(--font); transition: border-color .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.25)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px;
}
.pp-select:focus { border-color: rgba(232,25,43,.4); }
.pp-select option { background: #07090f; }

.pp-price-box {
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 14px;
}
.pp-prow { display: flex; justify-content: space-between; align-items: center; font-size: .875rem; margin-bottom: 12px; }
.pp-prow span:last-child { font-weight: 700; }
.pp-qty-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.pp-qty-ctrl { display: flex; align-items: center; gap: 14px; }
.pp-qty-btn {
  width: 34px; height: 34px; background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--text); border-radius: 9px; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center; transition: all .15s; cursor: pointer;
}
.pp-qty-btn:hover { border-color: var(--red2); color: var(--red2); background: rgba(232,25,43,.06); }
.pp-qty-val { font-size: 1.05rem; font-weight: 800; min-width: 32px; text-align: center; }
.pp-stock-lbl { font-size: .73rem; font-weight: 600; }
.pp-total-row { border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; margin-top: 2px; margin-bottom: 0 !important; }
.pp-total-row span:last-child { font-size: 1.45rem; font-weight: 900; }

.pp-coupon-inp {
  flex: 1; padding: 10px 13px; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text); font-size: .82rem; outline: none; font-family: var(--font); min-width: 0;
}
.pp-coupon-inp:focus { border-color: rgba(232,25,43,.4); }
.pp-coupon-btn {
  padding: 10px 18px; background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--muted); border-radius: 9px; font-size: .8rem; font-weight: 600;
  white-space: nowrap; transition: all .15s; cursor: pointer; font-family: var(--font);
}
.pp-coupon-btn:hover { border-color: var(--border-h); color: var(--text); }
.pp-err { color: var(--red2); font-size: .78rem; margin-bottom: 12px; padding: 9px 13px; background: var(--red-sub); border: 1px solid rgba(232,25,43,.2); border-radius: 8px; }

/* ── Action buttons ── */
.pp-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pp-btn-buy {
  width: 100%; padding: 15px; font-family: var(--font); cursor: pointer;
  background: linear-gradient(135deg, var(--red2), #be0f1e);
  color: #fff; border: none; border-radius: 12px; font-size: .95rem; font-weight: 800; letter-spacing: .3px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 0 32px rgba(232,25,43,.5), 0 4px 18px rgba(0,0,0,.4);
  transition: all .2s;
}
.pp-btn-buy:hover:not(:disabled) { box-shadow: 0 0 50px var(--red-glow), 0 6px 24px rgba(0,0,0,.5); transform: translateY(-1px); }
.pp-btn-buy:disabled { background: rgba(255,255,255,.07); color: var(--dim); box-shadow: none; cursor: not-allowed; transform: none; }
.pp-btn-cart {
  width: 100%; padding: 12px; font-family: var(--font); cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  color: var(--text); border-radius: 12px; font-size: .88rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .2s;
}
.pp-btn-cart:hover:not(:disabled) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); }
.pp-btn-cart:disabled { opacity: .38; cursor: not-allowed; }

.pp-addr-box { flex: 1; background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-family: var(--mono); font-size: .7rem; word-break: break-all; color: var(--text); }

@media(max-width:520px){
  .pp-modal { border-radius: 18px; }
  .pp-hd { padding: 18px 18px 16px; }
  #pp-cat-wrap { padding: 14px 18px 0; }
  #pp-body { padding: 14px 18px 20px; }
  .pp-tags { padding: 11px 18px; }
  .pp-price-box { padding: 14px 16px; }
}

/* ── Group cards redesign ────────────────────────────────────────────────────── */
.groups-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); gap:20px; }
.group-card {
  background:#0d1020; border:1px solid rgba(255,255,255,0.1); border-radius:16px;
  overflow:hidden; display:flex; flex-direction:column; cursor:pointer;
  transition:transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s;
  position:relative;
}
.group-card:hover { border-color:rgba(232,25,43,.45); transform:translateY(-5px); box-shadow:0 20px 60px rgba(0,0,0,.6), 0 0 30px rgba(232,25,43,.14), 0 0 0 1px rgba(232,25,43,.15); }
.gc-image {
  height:190px; position:relative; overflow:hidden;
  background:linear-gradient(160deg,#080518 0%,#050412 40%,#060814 100%);
  display:flex; align-items:center; justify-content:center;
}
.gc-image::after { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at center bottom, rgba(232,25,43,.12) 0%,transparent 65%); }
.gc-image::before { content:''; position:absolute; bottom:0; left:0; right:0; height:80px; background:linear-gradient(to top,rgba(5,8,16,.95),transparent); z-index:2; }
.gc-logo { position:relative; z-index:1; }
.gc-logo-text { font-size:2rem; font-weight:900; letter-spacing:2px; text-transform:uppercase; color:rgba(255,255,255,.85); text-shadow:0 2px 20px rgba(0,0,0,.6); }
.gc-logo-emoji { font-size:4rem; filter:drop-shadow(0 4px 16px rgba(0,0,0,.5)); }
.gc-watermark { position:absolute; top:12px; left:12px; z-index:3; background:rgba(232,25,43,.9); color:#fff; font-size:.62rem; font-weight:900; letter-spacing:.5px; padding:3px 8px; border-radius:5px; }
.gc-restock { position:absolute; bottom:14px; right:12px; z-index:3; background:rgba(0,230,118,.12); border:1px solid rgba(0,230,118,.3); color:var(--green); font-size:.62rem; font-weight:700; padding:3px 10px; border-radius:100px; display:flex; align-items:center; gap:5px; }
.gc-restock::before { content:''; width:5px; height:5px; background:var(--green); border-radius:50%; animation:pulse-dot 2s infinite; }
.gc-body { padding:16px 18px 0; }
.gc-name { font-size:.95rem; font-weight:800; text-transform:uppercase; letter-spacing:.5px; margin-bottom:3px; }
.gc-type { font-size:.72rem; color:var(--muted); }
.gc-meta { display:flex; gap:10px; margin-top:8px; }
.gc-meta-item { font-size:.68rem; color:var(--muted); display:flex; align-items:center; gap:4px; }
.gc-meta-item .dot { width:4px; height:4px; border-radius:50%; background:currentColor; }
.gc-meta-item.green { color:var(--green); }
.gc-meta-item.red { color:var(--red2); }
.gc-btn { display:block; width:100%; margin-top:14px; padding:12px; background:rgba(232,25,43,.1); border:none; border-top:1px solid rgba(232,25,43,.18); color:var(--red2); font-size:.8rem; font-weight:700; letter-spacing:.8px; text-transform:uppercase; text-align:center; transition:background .2s,color .2s; cursor:pointer; font-family:var(--font); }
.group-card:hover .gc-btn { background:var(--red2); color:#fff; }

/* ── Products page legacy classes ────────────────────────────────────────────── */
.pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pc-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(232,25,43,0.08); border: 1px solid rgba(232,25,43,0.18);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0;
}
.pc-name { font-size: .9rem; font-weight: 700; line-height: 1.3; }
.pc-desc { font-size: .74rem; color: var(--muted); line-height: 1.4; flex: 1; }
.pc-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.pc-price { font-size: 1.1rem; font-weight: 800; }
.pc-price sup { font-size: .6rem; color: var(--muted); vertical-align: super; }
.pc-price small { font-size: .62rem; color: var(--muted); font-weight: 500; }

/* ── Category tabs ───────────────────────────────────────────────────────────── */
.cat-tabs { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.cat-tab {
  padding: 7px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--muted); font-size: .78rem; font-weight: 600;
  transition: all .18s; cursor: pointer;
}
.cat-tab:hover { border-color: var(--border-h); color: var(--text); }
.cat-tab.active { background: rgba(232,25,43,0.1); border-color: rgba(232,25,43,0.35); color: var(--red2); }

/* ── Buttons ──────────────────────────────────────────────────────────────────── */
.btn-red {
  padding: 9px 20px; background: var(--red2); color: #fff; border: none;
  border-radius: var(--r); font-size: .82rem; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 0 18px rgba(232,25,43,0.4); transition: box-shadow .2s, transform .15s;
}
.btn-red:hover { box-shadow: 0 0 30px var(--red-glow); transform: translateY(-1px); }
.btn-red:disabled { background: rgba(255,255,255,.07); color: var(--dim); box-shadow: none; cursor: not-allowed; transform: none; }

.btn-primary {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #e8192b, #c01020);
  color: #fff; border: none; border-radius: var(--r);
  font-size: .92rem; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 0 28px rgba(232,25,43,0.45), 0 4px 16px rgba(0,0,0,0.4);
  transition: box-shadow .2s, transform .15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px;
}
.btn-primary:hover { box-shadow: 0 0 44px var(--red-glow), 0 4px 20px rgba(0,0,0,0.5); transform: translateY(-1px); }
.btn-primary:disabled { background: rgba(255,255,255,.07); color: var(--dim); box-shadow: none; cursor: not-allowed; transform: none; }

.btn-ghost {
  padding: 9px 20px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--muted); border-radius: var(--r); font-size: .875rem; font-weight: 600;
  transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-ghost:hover { border-color: var(--border-h); color: var(--text); background: rgba(255,255,255,.07); }

/* ── Cards ────────────────────────────────────────────────────────────────────── */
.card {
  background: #0d1020;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 24px; margin-bottom: 14px;
  transition: border-color .2s;
}
.card:hover { border-color: rgba(255,255,255,0.18); }
.card-label {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--muted); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.card-label::after { content:''; flex:1; height:1px; background: linear-gradient(90deg, var(--border), transparent); }

/* ── Buy page ────────────────────────────────────────────────────────────────── */
.buy-wrap { max-width: 640px; margin: 0 auto; }
.product-hd { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.product-hd-icon {
  width: 60px; height: 60px; border-radius: 15px;
  background: rgba(232,25,43,0.08); border: 1px solid rgba(232,25,43,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
  box-shadow: 0 0 20px rgba(232,25,43,0.15);
}
.product-hd-cat { font-size: .65rem; font-weight: 700; color: var(--red2); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 5px; }
.product-hd h1 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.4px; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: .65rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .9px; margin-bottom: 7px;
}
.form-input, .form-select {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.035); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text); font-size: .875rem; outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s; appearance: none;
}
.form-input::placeholder { color: var(--dim); }
.form-input:focus, .form-select:focus {
  border-color: rgba(232,25,43,0.45); background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 3px rgba(232,25,43,0.07);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.25)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.form-select option { background: #070b14; }

.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-btn {
  width: 36px; height: 36px; background: rgba(255,255,255,.05);
  border: 1px solid var(--border); color: var(--text);
  border-radius: var(--r); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.qty-btn:hover { border-color: var(--red2); color: var(--red2); box-shadow: 0 0 10px rgba(232,25,43,0.2); }
.qty-val { font-size: 1.1rem; font-weight: 700; min-width: 36px; text-align: center; }

.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0 2px; border-top: 1px solid var(--border); margin-top: 8px;
}
.price-lbl { font-size: .82rem; color: var(--muted); }
.price-val { font-size: 1.6rem; font-weight: 800; letter-spacing: -.6px; color: var(--text); }

/* Payment */
.payment-section { display: none; }
.payment-section.show { display: block; }
.pay-addr-wrap {
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: var(--r); padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px;
}
.pay-addr { font-family: var(--mono); font-size: .75rem; word-break: break-all; line-height: 1.5; }
.copy-btn {
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: var(--muted); padding: 5px 11px; border-radius: 6px;
  font-size: .7rem; font-weight: 600; font-family: var(--font);
  white-space: nowrap; flex-shrink: 0; transition: all .2s;
}
.copy-btn:hover { border-color: var(--green); color: var(--green); }
.copy-btn.ok { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.qr-center { text-align: center; margin: 18px 0; }
.qr-center img {
  border-radius: 12px; border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 40px rgba(255,255,255,.08), 0 0 80px rgba(232,25,43,0.06);
}
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pay-cell {
  background: rgba(255,255,255,.025); border: 1px solid var(--border);
  border-radius: var(--r); padding: 12px 14px;
}
.pay-cell-lbl { font-size: .63rem; color: var(--muted); text-transform: uppercase; letter-spacing: .9px; margin-bottom: 4px; }
.pay-cell-val { font-size: .95rem; font-weight: 700; }

.status-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--r);
  font-size: .875rem; font-weight: 600; margin-bottom: 16px;
}
.status-bar.wait { background: rgba(245,166,35,.06); border: 1px solid rgba(245,166,35,.18); color: var(--yellow); }
.status-bar.ok   { background: rgba(0,230,118,.06); border: 1px solid rgba(0,230,118,.18); color: var(--green); }
.status-bar.fail { background: var(--red-sub); border: 1px solid rgba(232,25,43,.2); color: var(--red2); }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.delivery-box {
  background: rgba(0,230,118,.04); border: 1px solid rgba(0,230,118,.15);
  border-radius: var(--r); padding: 16px;
}
.delivery-hd {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--green); margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.delivery-list { font-family: var(--mono); font-size: .78rem; line-height: 1.9; max-height: 320px; overflow-y: auto; }
.delivery-line { border-bottom: 1px solid rgba(255,255,255,.04); padding: 2px 0; }
.delivery-line:last-child { border-bottom: none; }

.order-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 14px; font-size: .73rem; color: var(--muted); margin-top: 12px;
}
.order-pill code { color: var(--text); font-family: var(--mono); }

/* ── Login page ──────────────────────────────────────────────────────────────── */
.auth-wrap { max-width: 440px; margin: 60px auto; }
.auth-tabs {
  display: flex; background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: var(--r); padding: 4px;
  margin-bottom: 24px; gap: 4px;
}
.auth-tab {
  flex: 1; padding: 9px; border-radius: 7px; background: none; border: none;
  color: var(--muted); font-size: .875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; transition: all .2s;
}
.auth-tab.active { background: var(--red2); color: #fff; box-shadow: 0 0 18px rgba(232,25,43,0.45); }
.auth-tab:hover:not(.active) { color: var(--text); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-divider { text-align: center; font-size: .72rem; color: var(--dim); margin: 16px 0; }
.auth-link { color: var(--red2); font-weight: 600; font-size: .82rem; transition: color .2s; }
.auth-link:hover { color: var(--red-h); }

/* ── Admin ────────────────────────────────────────────────────────────────────── */
.admin-wrap { padding: 40px; max-width: 1100px; }
.admin-login-wrap { max-width: 380px; margin: 80px auto; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px; backdrop-filter: blur(12px);
}
.stat-val { font-size: 2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px; }
.stat-val.red { color: var(--red2); }
.stat-val.green { color: var(--green); }
.stat-lbl { font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }

.tbl-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.data-table th { padding: 10px 14px; text-align: left; color: var(--muted); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.03); vertical-align: middle; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.data-table tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 100px; font-size: .65rem; font-weight: 700; letter-spacing: .2px; }
.b-green { background: rgba(0,230,118,.08); color: var(--green); border: 1px solid rgba(0,230,118,.2); }
.b-yellow{ background: rgba(245,166,35,.09); color: var(--yellow); border: 1px solid rgba(245,166,35,.2); }
.b-red   { background: var(--red-sub); color: var(--red2); border: 1px solid rgba(232,25,43,.2); }
.b-gray  { background: rgba(255,255,255,.04); color: var(--dim); border: 1px solid var(--border); }

.btn-sm { padding: 5px 12px; border-radius: 6px; font-size: .72rem; font-weight: 700; border: 1px solid; cursor: pointer; font-family: var(--font); transition: all .2s; letter-spacing: .2px; }
.btn-edit { background: none; border-color: var(--border); color: var(--muted); }
.btn-edit:hover { border-color: var(--border-h); color: var(--text); }
.btn-del  { background: none; border-color: rgba(232,25,43,.25); color: var(--red2); }
.btn-del:hover { background: var(--red-sub); }
.btn-ok   { background: var(--red2); border-color: var(--red2); color: #fff; }
.btn-ok:hover { box-shadow: 0 0 14px rgba(232,25,43,.4); }

/* ── Modal ────────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.82); backdrop-filter: blur(8px);
  z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: rgba(6,9,18,0.98); backdrop-filter: blur(20px);
  border: 1px solid rgba(232,25,43,.18); border-radius: 18px;
  padding: 30px; width: 100%; max-width: 500px;
  box-shadow: 0 24px 80px rgba(0,0,0,.8), 0 0 60px rgba(232,25,43,.07);
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity:0; transform:scale(.96) translateY(8px); } to { opacity:1; transform:none; } }
.modal h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -.2px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ── Settings toggle ─────────────────────────────────────────────────────────── */
.toggle {
  width: 42px; height: 22px; background: rgba(255,255,255,.08);
  border: 1px solid var(--border); border-radius: 100px;
  position: relative; cursor: pointer; transition: background .25s, border-color .25s; flex-shrink: 0;
}
.toggle.on { background: var(--red2); border-color: var(--red2); box-shadow: 0 0 14px rgba(232,25,43,.4); }
.toggle-knob {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  background: #fff; border-radius: 50%;
  transition: transform .25s; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.toggle.on .toggle-knob { transform: translateX(20px); }

/* ── Toast ────────────────────────────────────────────────────────────────────── */
#toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast-item {
  background: rgba(6,9,18,0.97); backdrop-filter: blur(16px);
  border: 1px solid var(--border-h); color: var(--text);
  padding: 11px 18px; border-radius: var(--r); font-size: .85rem; font-weight: 500;
  box-shadow: 0 8px 36px rgba(0,0,0,.6); animation: tin .2s ease;
}
.toast-item.success { border-color: rgba(0,230,118,.3); color: var(--green); }
.toast-item.error   { border-color: rgba(232,25,43,.35); color: var(--red2); }
@keyframes tin { from{opacity:0;transform:translateX(16px)} to{opacity:1;transform:none} }

/* ── Spinner ─────────────────────────────────────────────────────────────────── */
.spinner-wrap { display: flex; align-items: center; justify-content: center; padding: 60px; }
.spinner { width: 30px; height: 30px; border: 3px solid rgba(255,255,255,.06); border-top-color: var(--red2); border-radius: 50%; animation: spin .7s linear infinite; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.footer-inner { padding: 24px 40px; border-top: 1px solid var(--border); font-size: .75rem; color: var(--dim); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--red2); }

/* ── Site Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; }
.site-footer .footer-inner {
  max-width: 960px; margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: start;
}
.footer-brand { font-size: 1.3rem; font-weight: 900; letter-spacing: -.5px; color: var(--text); }
.footer-brand em { color: var(--red2); font-style: normal; }
.footer-cols { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-cols > div { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title { font-size: .6rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--dim); margin-bottom: 2px; }
.footer-cols a { font-size: .82rem; color: rgba(255,255,255,.38); text-decoration: none; transition: color .15s; }
.footer-cols a:hover { color: var(--text); }
.footer-copy { grid-column: 1 / -1; font-size: .68rem; color: var(--dim); padding-top: 24px; border-top: 1px solid var(--border); }

/* ── Topbar brand (mobile only) ──────────────────────────────────────────────── */
.topbar-brand {
  display: none;
  font-size: 1.1rem; font-weight: 800; letter-spacing: .5px;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.topbar-brand em { color: var(--red2); font-style: normal; }

/* ── Topbar icon-only button ─────────────────────────────────────────────────── */
.topbar-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--muted); transition: all .2s;
  text-decoration: none;
}
.topbar-icon-btn:hover { border-color: var(--border-h); color: var(--text); background: rgba(255,255,255,0.09); }
.mobile-search-icon { display: none; }

/* ── HoodPay badge ───────────────────────────────────────────────────────────── */
.pp-hoodpay-badge, .hoodpay-badge {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 10px; font-size: .83rem; color: rgba(255,255,255,.75);
}
.pp-hoodpay-badge svg, .hoodpay-badge svg { color: #818cf8; flex-shrink: 0; }
.pp-hoodpay-badge strong, .hoodpay-badge strong { color: #a5b4fc; font-weight: 700; }

/* ── Hamburger button ────────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.hamburger:hover { background: rgba(255,255,255,0.11); border-color: var(--border-h); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 1px; transition: all .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile sidebar overlay ──────────────────────────────────────────────────── */
.sb-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
  z-index: 199;
}
.sb-overlay.show { display: block; }

/* ── Centered hero ───────────────────────────────────────────────────────────── */
.home-hero { text-align: center; }
.home-hero p { margin-left: auto; margin-right: auto; }
.home-hero-btns { justify-content: center; }
.home-eyebrow { justify-content: center; }
.home-eyebrow::after { content: ''; width: 22px; height: 1px; background: var(--red2); }

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — full mobile optimisation
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤1024px) ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sb-w: 210px; }
  .page-content { padding: 32px 28px 80px; }
  .home-hero { padding: 52px 40px; }
  .home-hero h1 { font-size: 2.4rem; }
  .admin-wrap { padding: 28px; }
  .home-trust { grid-template-columns: repeat(3, 1fr); }
  .home-stats { grid-template-columns: repeat(3, 1fr); }
}

/* ── Mobile (≤768px) ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --sb-w: 0px; --top-h: 58px; }

  /* ── Sidebar as slide-in drawer ── */
  .sidebar {
    display: flex; width: 280px;
    transform: translateX(-280px);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 12px 0 60px rgba(0,0,0,.8);
  }
  .hamburger { display: flex; }

  /* ── Topbar ── */
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar-brand { display: block; }          /* show HitLogz brand */
  .topbar-search { display: none; }          /* hide desktop search bar */
  .mobile-search-icon { display: flex; }     /* show search icon */
  .topbar-btn { padding: 8px 12px; gap: 5px; font-size: .78rem; }
  .topbar-balance-chip { padding: 6px 11px; }
  .topbar-balance-chip svg { display: none; }
  .user-chip { padding: 4px 10px 4px 4px; }
  /* show user avatar only, hide name */
  .user-chip > svg:last-of-type { display: none; }

  /* ── Page layout ── */
  .main-area { min-height: 100dvh; }
  .page-content { padding: 22px 16px 100px; }
  .page-title { font-size: 1.75rem; letter-spacing: -.4px; }
  .page-sub { font-size: .84rem; margin-bottom: 22px; }

  /* ── Hero ── */
  .home-hero {
    padding: 38px 24px; margin-bottom: 28px; border-radius: 18px;
  }
  .home-hero::after { display: none; }
  .home-hero h1 { font-size: 2rem; letter-spacing: -.8px; margin-bottom: 14px; }
  .home-hero p { font-size: .9rem; margin-bottom: 24px; }
  .home-hero-btns { flex-direction: column; gap: 10px; }
  .home-btn-primary, .home-btn-ghost { justify-content: center; width: 100%; }

  /* ── Stats ── */
  .home-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
  .home-stat { padding: 16px 10px; border-radius: 12px; }
  .home-stat-num { font-size: 1.55rem; }
  .home-stat-lbl { font-size: .62rem; letter-spacing: .5px; }

  /* ── Sections ── */
  .home-section-title { font-size: 1.25rem; }
  .home-trust { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-reviews { grid-template-columns: 1fr; }

  /* ── CTA ── */
  .home-cta { padding: 30px 22px; border-radius: 16px; }
  .home-cta h2 { font-size: 1.5rem; }

  /* ── Category cards ── */
  .groups-grid { grid-template-columns: 1fr; gap: 14px; }
  .gc-image { height: 165px; }

  /* ── Products grid ── */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { padding: 14px; gap: 10px; }

  /* ── Group controls (search/filter bar) ── */
  .group-controls { flex-direction: column; gap: 10px; }
  .group-search { max-width: none; flex: 1; }
  #catTabs { gap: 6px; }
  .filter-dropdown { padding: 7px 12px; font-size: .78rem; }

  /* ── Popup → bottom sheet ── */
  #pp-overlay { padding: 0; align-items: flex-end; }
  .pp-modal {
    border-radius: 24px 24px 0 0;
    max-height: 93dvh;
    overflow-y: auto;
    width: 100%; margin: 0;
    animation: ppUp .28s cubic-bezier(.2,.8,.2,1);
  }
  @keyframes ppUp { from { opacity:.6; transform:translateY(80px); } to { opacity:1; transform:none; } }
  .pp-modal::before {
    content: ''; display: block; width: 40px; height: 4px;
    background: rgba(255,255,255,.15); border-radius: 2px;
    margin: 12px auto -4px;
  }
  .pp-hd { padding: 16px 18px 14px; }
  .pp-tags { padding: 10px 18px; }
  #pp-cat-wrap { padding: 12px 18px 0; }
  #pp-body { padding: 14px 18px 32px; }
  .pp-price-box { padding: 14px 16px; }
  .pp-prod-list { max-height: 195px; }

  /* ── Cart / Order pages ── */
  .buy-wrap { max-width: 100%; }
  .pay-grid { grid-template-columns: 1fr; }
  .balance-grid { grid-template-columns: 1fr !important; }
  .product-hd { gap: 12px; }
  .product-hd-icon { width: 48px; height: 48px; font-size: 1.3rem; }

  /* ── Footer ── */
  .site-footer .footer-inner {
    grid-template-columns: 1fr; gap: 20px; padding: 28px 18px 24px;
  }
  .footer-cols { gap: 20px; flex-wrap: wrap; }
  .footer-cols > div { flex: 1; min-width: 110px; }
  .footer-copy { padding-top: 18px; }

  /* ── Admin ── */
  .admin-wrap { padding: 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tbl-wrap { margin: 0 -4px; }
  .data-table { font-size: .78rem; }
  .data-table th, .data-table td { padding: 9px 10px; }

  /* ── Auth ── */
  .auth-wrap { margin: 28px auto; padding: 0 4px; }

  /* ── Cart page ── */
  .cart-wrap { max-width: 100%; }
  .cart-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .cart-item { grid-template-columns: 52px 1fr auto auto; gap: 10px; padding: 12px 14px; }
  .cart-item-thumb { width: 52px; height: 44px; font-size: 1.4rem; border-radius: 8px; }
  .cart-item-name { font-size: .82rem; }
  .cart-item-sub { font-size: .85rem; min-width: 48px; }
  .cart-qty-ctrl { gap: 6px; }
  .cart-qty-btn { width: 24px; height: 24px; font-size: .85rem; }
  .pay-type-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pay-type-btn { padding: 12px 12px; gap: 8px; }
  .pay-type-icon { width: 32px; height: 32px; font-size: 1.1rem; }
  .pay-type-label { font-size: .8rem; }
  .purchase-btn { padding: 14px; font-size: .9rem; }
  .cart-sidebar-inner { position: static; }

  /* ── Orders page ── */
  .acct-grid { grid-template-columns: 1fr !important; }
  .order-row { gap: 8px; padding: 10px 12px; }
  .order-name { font-size: .82rem; }
  .order-meta { font-size: .68rem; }

  /* ── Delivery items ── */
  .delivery-line { font-size: .72rem; word-break: break-all; }

  /* ── Dashboard ── */
  .ds-stats-grid { grid-template-columns: 1fr 1fr !important; gap: 8px; }
}

/* ── Small phones (≤480px) ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --top-h: 54px; }

  /* Topbar: icon-only actions */
  .topbar { gap: 8px; padding: 0 12px; }
  .topbar-balance-chip { display: none; }          /* hide balance */
  .topbar-btn { font-size: 0; padding: 8px 10px; gap: 0; }   /* cart icon only */
  .topbar-btn svg { width: 18px; height: 18px; }

  /* Stats — 2 per row */
  .home-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .home-stat-num { font-size: 1.35rem; }

  /* Hero */
  .home-hero { padding: 30px 18px; }
  .home-hero h1 { font-size: 1.7rem; }

  /* Trust — 1 per row on smallest screens */
  .home-trust { grid-template-columns: 1fr; }

  /* Products — 1 per row */
  .products-grid { grid-template-columns: 1fr; }

  /* Category image shorter */
  .gc-image { height: 140px; }

  /* Popup tweaks */
  .pp-hd-icon { width: 44px; height: 44px; font-size: 1.3rem; }
  .pp-title { font-size: .95rem; }
  .pp-badge { font-size: .65rem; padding: 4px 10px; }
  .pp-btn-buy { padding: 14px; font-size: .9rem; }
  .pp-btn-cart { padding: 11px; font-size: .84rem; }

  /* Sidebar narrower on tiny screens */
  .sidebar { width: 260px; }

  /* Cart mobile tweaks */
  .cart-item { grid-template-columns: 44px 1fr auto; }
  .cart-item-sub { display: none; } /* hide subtotal, shown in qty area */
  .cart-remove { grid-column: auto; }

  /* Section title */
  .home-section-title { font-size: 1.15rem; }

  /* Footer */
  .footer-cols > div { min-width: 90px; }
  .footer-brand { font-size: 1.1rem; }
}
