/* ─── RESET & TOKENS ─────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue:        #1d4ed8;
  --blue-dark:   #1e3a8a;
  --blue-light:  #eff6ff;
  --accent:      #f59e0b;
  --accent-light:#fef3c7;
  --green:       #25d366;
  --green-dark:  #16a34a;
  --bg:          #f8fafc;
  --surface:     #ffffff;
  --border:      #e2e8f0;
  --text:        #0f172a;
  --muted:       #64748b;
  --radius:      12px;
  --shadow:      0 1px 8px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.12);
  --font:        'DM Sans', sans-serif;
  --display:     'Outfit', sans-serif;
}

body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
img { display: block; }

/* ─── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.76rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 6px 20px;
  flex-wrap: wrap;
}
.topbar a { color: #94a3b8; }
.topbar a:hover { color: white; }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--blue-dark);
  display: flex; align-items: center; gap: 16px;
  padding: 10px 24px;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.25); }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; color: white; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  color: #1e293b;
  border-radius: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark.sm { width: 30px; height: 30px; font-size: 0.78rem; border-radius: 6px; }
.logo-text { font-family: var(--display); font-size: 0.8rem; line-height: 1.3; }
.logo-text strong { font-size: 0.92rem; font-weight: 700; }

/* Search */
.search-wrap {
  flex: 1; position: relative; max-width: 520px;
}
.search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; pointer-events: none; width: 16px; height: 16px;
}
#search {
  width: 100%;
  padding: 9px 36px 9px 34px;
  border: none; border-radius: 8px;
  font-size: 0.88rem;
  background: rgba(255,255,255,0.12);
  color: white;
  transition: background 0.2s;
}
#search::placeholder { color: rgba(255,255,255,0.45); }
#search:focus { outline: none; background: rgba(255,255,255,0.2); }

.clear-search {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 0.85rem; display: none; padding: 2px 4px;
}
.clear-search:hover { color: white; }

/* Search suggestions */
.search-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: white; border-radius: 10px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  z-index: 500; display: none; overflow: hidden;
}
.suggest-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; cursor: pointer; gap: 10px;
  transition: background 0.12s;
}
.suggest-item:hover { background: var(--blue-light); }
.suggest-item + .suggest-item { border-top: 1px solid #f1f5f9; }
.suggest-name { font-size: 0.84rem; color: var(--text); flex: 1; }
.suggest-name strong { color: var(--blue); }
.suggest-sub { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }

/* Cart btn */
.cart-btn {
  display: flex; align-items: center; gap: 7px;
  color: white; font-size: 0.85rem; font-family: var(--display); font-weight: 600;
  white-space: nowrap;
  padding: 8px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.12);
  transition: background 0.2s;
  flex-shrink: 0;
}
.cart-btn:hover { background: rgba(255,255,255,0.22); }
.cart-badge {
  background: var(--accent); color: #1e293b;
  font-size: 0.7rem; font-weight: 800;
  border-radius: 50%; width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
}

.back-link { color: rgba(255,255,255,0.75); font-size: 0.88rem; flex: 1; }
.back-link:hover { color: white; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f1f5c 0%, #1d4ed8 55%, #3b82f6 100%);
  color: white;
  padding: 56px 24px 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; position: relative; z-index: 1;
}
.hero-left { max-width: 560px; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 14px;
}
.hero-desc { color: rgba(255,255,255,0.72); font-size: 0.95rem; margin-bottom: 28px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #1e293b;
  font-weight: 700; font-family: var(--display); font-size: 0.9rem;
  padding: 11px 24px; border-radius: 8px; border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,158,11,0.4); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-weight: 600; font-size: 0.9rem;
  padding: 11px 20px; border-radius: 8px;
  transition: background 0.2s;
}
.btn-whatsapp:hover { background: rgba(255,255,255,0.2); }

/* Hero stats */
.hero-right { flex-shrink: 0; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center; min-width: 100px;
}
.stat-num {
  display: block;
  font-family: var(--display); font-size: 1.5rem; font-weight: 800;
  margin-bottom: 2px;
}
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.65); }

/* ─── USED LAPTOPS BAND ──────────────────────────────────── */
.used-band {
  background: #1e3a8a;
  padding: 20px 24px;
  border-bottom: 3px solid var(--accent);
}
.used-band-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.used-band-left { display: flex; align-items: center; gap: 14px; flex: 1; }
.new-tag {
  background: var(--accent); color: #1e293b;
  font-family: var(--display); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 9px; border-radius: 4px;
  flex-shrink: 0;
}
.used-band-left h3 { color: white; font-family: var(--display); font-size: 1rem; font-weight: 700; }
.used-band-left p { color: rgba(255,255,255,0.65); font-size: 0.8rem; }
.used-band-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.used-band-badges span {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem; padding: 4px 12px; border-radius: 20px;
}
.used-band-cta {
  background: var(--accent); color: #1e293b;
  font-family: var(--display); font-weight: 700; font-size: 0.88rem;
  padding: 10px 20px; border: none; border-radius: 8px;
  white-space: nowrap; flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.used-band-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(245,158,11,0.35); }

/* ─── CATEGORY BAR ───────────────────────────────────────── */
.cat-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky; top: 60px; z-index: 90;
  overflow: hidden;
}
.cat-pills-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-pills-inner::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: white;
  font-size: 0.84rem; font-weight: 500;
  color: var(--muted);
  transition: all 0.18s;
  white-space: nowrap;
}
.cat-pill:hover { border-color: var(--blue); color: var(--blue); }
.cat-pill.active { background: var(--blue); color: white; border-color: var(--blue); }
.used-pill-btn {
  background: #eff6ff !important;
  color: var(--blue) !important;
  border-color: #bfdbfe !important;
}
.used-pill-btn.active, .used-pill-btn:hover {
  background: var(--blue) !important;
  color: white !important;
  border-color: var(--blue) !important;
}

/* ─── MAIN LAYOUT ────────────────────────────────────────── */
.main {
  max-width: 1280px; margin: 0 auto;
  display: flex; gap: 24px; padding: 28px 24px;
  align-items: flex-start;
}

/* ─── SIDEBAR ────────────────────────────────────────────── */
.sidebar {
  width: 210px; flex-shrink: 0;
  background: var(--surface);
  padding: 20px; border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky; top: 72px;
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar-title {
  font-family: var(--display); font-size: 0.95rem; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
}
.sidebar-section { margin-bottom: 10px; }
.sidebar-section label {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px;
  margin-bottom: 5px;
}
.sidebar-section select {
  width: 100%; padding: 8px 10px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.84rem; background: white; color: var(--text);
}
.sidebar-section select:focus { outline: none; border-color: var(--blue); }
.reset-btn {
  width: 100%; padding: 9px;
  background: #f8fafc; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 0.83rem; color: var(--muted);
  margin-top: 6px; transition: all 0.18s;
}
.reset-btn:hover { background: #f1f5f9; color: var(--text); }

/* ─── CONTENT ────────────────────────────────────────────── */
.content { flex: 1; min-width: 0; }
.results-bar { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; font-weight: 500; }

/* Loading */
.loading-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; padding: 80px 20px; color: var(--muted);
}
.spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── PRODUCTS GRID ──────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

/* ─── PRODUCT CARD ───────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border); }
.card-used { border-color: #bfdbfe; }
.card-used:hover { border-color: var(--blue); }

.card-img {
  position: relative;
  background: #f8fafc;
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  padding: 14px; overflow: hidden;
}
.card-img img {
  max-height: 130px; max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.card:hover .card-img img { transform: scale(1.06); }

.used-tag-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--blue); color: white;
  font-size: 0.68rem; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
}

.card-body { padding: 12px 14px; flex: 1; }
.card-brand { font-size: 0.72rem; font-weight: 600; color: var(--muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.4px; }
.card-name { font-family: var(--display); font-size: 0.86rem; font-weight: 600; line-height: 1.35; color: var(--text); margin-bottom: 8px; }
.card-specs { font-size: 0.72rem; color: #475569; background: #f1f5f9; border-radius: 5px; padding: 4px 7px; margin-bottom: 6px; line-height: 1.4; }
.card-cond {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.73rem; color: var(--muted); margin-bottom: 4px;
}
.cond-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.battery { margin-left: auto; font-size: 0.7rem; font-weight: 600; color: var(--green-dark); }
.card-warranty { font-size: 0.7rem; color: #7c3aed; font-weight: 500; margin-bottom: 6px; }
.card-enquire { font-size: 0.78rem; color: var(--muted); font-style: italic; margin-top: 4px; }

.card-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex; gap: 7px;
  position: relative; z-index: 2;
}
.btn-enquiry {
  flex: 1; padding: 8px 6px;
  background: var(--blue-light); color: var(--blue);
  border: 1.5px solid #bfdbfe; border-radius: 7px;
  font-size: 0.78rem; font-weight: 600;
  transition: all 0.18s;
}
.btn-enquiry:hover { background: var(--blue); color: white; border-color: var(--blue); }
.btn-wa {
  flex: 1; padding: 8px 6px;
  background: var(--green); color: white;
  border: none; border-radius: 7px;
  font-size: 0.78rem; font-weight: 600;
  transition: background 0.18s;
}
.btn-wa:hover { background: #1db954; }

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 20px;
  color: var(--muted); display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.empty-icon { font-size: 3rem; }
.empty-state h3 { font-family: var(--display); font-size: 1.1rem; color: var(--text); }

/* ─── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,42,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: white; border-radius: 16px;
  max-width: 480px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  background: rgba(0,0,0,0.15); color: white;
  border: none; border-radius: 50%;
  width: 30px; height: 30px; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(0,0,0,0.35); }
.modal-used-bar {
  background: #eff6ff; color: var(--blue);
  font-size: 0.78rem; font-weight: 600;
  padding: 8px 18px;
  border-bottom: 1px solid #dbeafe;
}
.modal-img {
  background: #f8fafc; height: 210px;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-img img { max-height: 170px; max-width: 100%; object-fit: contain; }
.modal-body { padding: 20px; }
.modal-brand { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.modal-body h2 { font-family: var(--display); font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.modal-specs { background: #f1f5f9; border-radius: 8px; padding: 8px 12px; font-size: 0.84rem; color: #334155; margin-bottom: 10px; }
.modal-cond { display: flex; align-items: center; gap: 7px; font-size: 0.84rem; color: var(--muted); margin-bottom: 6px; }
.modal-battery { margin-left: auto; font-size: 0.82rem; }
.modal-warranty { font-size: 0.82rem; color: #7c3aed; font-weight: 500; margin-bottom: 10px; }
.modal-desc { font-size: 0.87rem; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.modal-price-note {
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 8px; padding: 10px 14px;
  font-size: 0.82rem; color: var(--green-dark);
  font-weight: 500; margin-bottom: 16px;
}
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn-enquiry, .modal-actions .btn-wa { flex: 1; padding: 12px; font-size: 0.88rem; }

/* ─── TRUST SECTION ──────────────────────────────────────── */
.trust-section {
  background: white;
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  margin-top: 40px;
}
.trust-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
}
.trust-item { text-align: center; padding: 8px; }
.trust-icon { font-size: 2rem; margin-bottom: 10px; }
.trust-item h4 { font-family: var(--display); font-size: 0.95rem; font-weight: 700; margin-bottom: 5px; }
.trust-item p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ─── WA FLOAT ───────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--green); color: white;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(37,211,102,0.55); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer { background: #0f172a; color: #94a3b8; padding: 44px 24px 0; margin-top: 48px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px; padding-bottom: 36px;
  border-bottom: 1px solid #1e293b;
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand strong { color: white; font-family: var(--display); font-size: 0.95rem; }
.footer-brand p { font-size: 0.8rem; margin-top: 2px; }
.footer-col h5 { color: white; font-family: var(--display); font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; }
.footer-col p { font-size: 0.82rem; line-height: 1.9; }
.footer-col a { color: #60a5fa; }
.footer-col a:hover { color: #93c5fd; }
.footer-bottom { text-align: center; padding: 16px; font-size: 0.75rem; color: #475569; }

/* ─── TOAST ──────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #0f172a; color: white;
  padding: 10px 22px; border-radius: 8px;
  font-size: 0.84rem; font-weight: 500;
  opacity: 0; transition: all 0.3s; z-index: 2000;
  white-space: nowrap; box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── CART PAGE ──────────────────────────────────────────── */
.cart-page { max-width: 900px; margin: 0 auto; padding: 36px 24px; }
.cart-header { margin-bottom: 28px; }
.cart-header h1 { font-family: var(--display); font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.cart-header p { color: var(--muted); font-size: 0.88rem; }

.cart-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }

.cart-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1.5px solid var(--border);
  padding: 16px; display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 12px;
}
.cart-card img {
  width: 76px; height: 68px; object-fit: contain;
  background: #f8fafc; border-radius: 8px; padding: 6px; flex-shrink: 0;
}
.cart-info { flex: 1; }
.cart-cat { font-size: 0.72rem; color: var(--muted); margin-bottom: 3px; }
.used-label { color: var(--blue); font-weight: 600; }
.cart-info h4 { font-family: var(--display); font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }
.cart-specs { font-size: 0.72rem; color: #475569; margin-top: 4px; }
.cart-price-note { font-size: 0.75rem; color: var(--muted); font-style: italic; margin-top: 4px; }

.cart-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.qty-ctrl {
  display: flex; align-items: center; gap: 8px;
  background: #f1f5f9; border-radius: 8px; padding: 4px 10px;
}
.qty-ctrl button {
  background: none; border: none; color: var(--blue);
  font-size: 1.1rem; font-weight: 700; width: 20px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.qty-ctrl span { font-weight: 700; font-size: 0.9rem; min-width: 18px; text-align: center; }
.remove-btn { background: none; border: none; color: #ef4444; font-size: 0.75rem; }
.remove-btn:hover { color: #b91c1c; }

/* Cart summary */
.cart-summary {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1.5px solid var(--border);
  padding: 22px; position: sticky; top: 78px;
}
.cart-summary h3 { font-family: var(--display); font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.summary-note { font-size: 0.78rem; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.summary-count {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.88rem; padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px; font-weight: 600;
}
.checkout-btn {
  width: 100%; background: var(--green); color: white;
  border: none; border-radius: 10px;
  padding: 14px; font-size: 0.95rem; font-weight: 700;
  font-family: var(--display);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s, transform 0.2s;
}
.checkout-btn:hover { background: #1db954; transform: translateY(-1px); }
.checkout-note { font-size: 0.74rem; color: var(--muted); text-align: center; margin-top: 8px; }

.empty-cart {
  text-align: center; padding: 80px 20px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty-icon-lg { font-size: 4rem; }
.empty-cart h2 { font-family: var(--display); font-size: 1.3rem; color: var(--text); }

/* ─── MOBILE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; }
  .hero-right { display: none; }
  .trust-inner { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
  .search-wrap { order: 3; width: 100%; max-width: 100%; }
  /* When navbar wraps, it's taller — adjust cat bar sticky top */
  .cat-bar { top: 108px; }
  .main { flex-direction: column; padding: 12px; }
  .sidebar { width: 100%; position: static; }
  /* Always 2 columns on mobile — never 1 unless tiny screen */
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  /* Smaller card text on mobile */
  .card-name { font-size: 0.78rem; }
  .card-brand { font-size: 0.68rem; }
  .card-enquire { font-size: 0.72rem; }
  .btn-enquiry, .btn-wa { font-size: 0.72rem; padding: 7px 4px; }
  .used-band-inner { flex-direction: column; align-items: flex-start; }
  .used-band-cta { width: 100%; text-align: center; }
  /* Hide used band badges on very small screens */
  .used-band-badges { display: none; }
}

@media (max-width: 380px) {
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .trust-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ─── ENQUIRY DRAWER ─────────────────────────────────────── */
.enquiry-drawer {
  position: fixed; top: 0; right: -380px; z-index: 1100;
  width: 360px; max-width: 95vw; height: 100vh;
  background: white;
  box-shadow: -4px 0 32px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
}
.enquiry-drawer.open { right: 0; }

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 1099;
  background: rgba(15,23,42,0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.drawer-backdrop.show { opacity: 1; pointer-events: all; }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--blue-dark);
  color: white; flex-shrink: 0;
}
.drawer-header h4 { font-family: var(--display); font-size: 1rem; font-weight: 700; }
.drawer-header button {
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 28px; height: 28px; border-radius: 50%; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.drawer-header button:hover { background: rgba(255,255,255,0.3); }

.drawer-items {
  flex: 1; overflow-y: auto; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 10px;
}

.drawer-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 10px;
  border: 1px solid var(--border); background: #f8fafc;
}
.drawer-item img {
  width: 48px; height: 42px; object-fit: contain;
  background: white; border-radius: 6px; padding: 4px; flex-shrink: 0;
}
.drawer-item-info { flex: 1; min-width: 0; }
.drawer-item-name {
  font-family: var(--display); font-size: 0.78rem; font-weight: 600;
  color: var(--text); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drawer-item-cat { font-size: 0.68rem; color: var(--muted); margin-top: 2px; }

.drawer-item-ctrl {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.drawer-item-ctrl button {
  background: white; border: 1px solid var(--border);
  border-radius: 5px; width: 24px; height: 24px; font-size: 0.9rem;
  color: var(--blue); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.drawer-item-ctrl button:hover { background: var(--blue-light); }
.drawer-item-ctrl span {
  font-size: 0.82rem; font-weight: 700; min-width: 18px; text-align: center;
}
.drawer-remove {
  font-size: 0.72rem !important; color: #ef4444 !important;
  border-color: #fecaca !important; margin-left: 2px;
}
.drawer-remove:hover { background: #fef2f2 !important; }

.drawer-footer {
  padding: 14px 16px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px; flex-shrink: 0;
}
.drawer-view-btn {
  display: block; text-align: center;
  padding: 10px; border-radius: 8px;
  border: 1.5px solid var(--blue); color: var(--blue);
  font-size: 0.85rem; font-weight: 600;
  transition: all 0.15s;
}
.drawer-view-btn:hover { background: var(--blue); color: white; }
.drawer-wa-btn {
  width: 100%; padding: 11px;
  background: var(--green); color: white; border: none;
  border-radius: 8px; font-size: 0.9rem; font-weight: 700;
  font-family: var(--display);
  transition: background 0.15s;
}
.drawer-wa-btn:hover { background: #1db954; }

.drawer-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--muted); font-size: 0.85rem; line-height: 1.7;
  padding: 24px;
}

/* ─── BACK TO TOP ────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 90px; right: 24px; z-index: 998;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-dark); color: white; border: none;
  font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: var(--blue); }

/* ─── CAT BAR (dynamic) ──────────────────────────────────── */
.cat-bar {
  background: white; border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky; top: 60px; z-index: 90;
  overflow: hidden;
}
.cat-pills-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.cat-pills-inner::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.cat-pill { flex-shrink: 0; } /* prevent pills from shrinking */

@media (max-width: 768px) {
  .enquiry-drawer { width: 100vw; right: -100vw; }
  .back-to-top { bottom: 80px; right: 16px; }
  .cat-bar { top: 56px; }
}
