/* ============================================================
   KeyBazaar India — main.css
   Mobile-first, India-themed, BEM naming, CSS custom properties
   ============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea {
  font-family: inherit;
  font-size: 1rem; /* 16px — prevents iOS zoom */
}

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Dark theme (default) */
  --bg-primary:    #0d0d0d;
  --bg-secondary:  #141414;
  --bg-card:       rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --border:        rgba(255,255,255,0.08);
  --border-accent: rgba(255,153,0,0.35);

  --text-primary:   #f5f5f0;
  --text-secondary: #9a9a8f;
  --text-muted:     #555550;

  --accent:       #FF9900;
  --accent-hover: #e68a00;
  --accent-green: #138808;
  --accent-blue:  #000080;
  --gold:         #D4AF37;
  --success:      #22c55e;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --info:         #3b82f6;

  --gradient-hero:   linear-gradient(135deg, #0d0d0d 0%, #1a1205 60%, #0d0d0d 100%);
  --gradient-accent: linear-gradient(135deg, #FF9900, #D4AF37);
  --gradient-india:  linear-gradient(90deg, #FF9900 33%, #ffffff 33% 66%, #138808 66%);
  --glass-bg:        rgba(13,13,13,0.75);
  --glass-border:    rgba(255,153,0,0.18);
  --shadow-glow:     0 0 30px rgba(255,153,0,0.12);
  --shadow-card:     0 4px 24px rgba(0,0,0,0.4);

  --radius:      12px;
  --radius-lg:   20px;
  --radius-full: 9999px;
  --transition:  0.2s cubic-bezier(0.4,0,0.2,1);

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Fluid typography */
  --text-xs:   clamp(0.70rem, 1.5vw, 0.75rem);
  --text-sm:   clamp(0.80rem, 2.0vw, 0.875rem);
  --text-base: clamp(0.90rem, 2.5vw, 1.00rem);
  --text-lg:   clamp(1.00rem, 3.0vw, 1.125rem);
  --text-xl:   clamp(1.10rem, 3.5vw, 1.25rem);
  --text-2xl:  clamp(1.20rem, 4.0vw, 1.50rem);
  --text-3xl:  clamp(1.50rem, 5.0vw, 1.875rem);
  --text-4xl:  clamp(1.80rem, 6.0vw, 2.25rem);
  --text-5xl:  clamp(2.00rem, 8.0vw, 3.00rem);

  --container: 1280px;
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem;    --space-6: 1.5rem; --space-8: 2rem;
  --space-12: 3rem;   --space-16: 4rem;  --space-20: 5rem;
}

[data-theme="light"] {
  --bg-primary:    #fafaf5;
  --bg-secondary:  #ffffff;
  --bg-card:       rgba(0,0,0,0.02);
  --bg-card-hover: rgba(0,0,0,0.04);
  --border:        rgba(0,0,0,0.08);
  --text-primary:  #0d0d0d;
  --text-secondary:#4a4a40;
  --text-muted:    #9a9a8f;
  --glass-bg:      rgba(255,255,255,0.85);
  --shadow-glow:   0 0 30px rgba(255,153,0,0.08);
  --shadow-card:   0 4px 24px rgba(0,0,0,0.08);
}

/* ── Skip Link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -999px; left: 0; z-index: 9999;
  background: var(--accent); color: #000; padding: 8px 16px;
  border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { top: 0; }

/* ── Tricolor Stripe ───────────────────────────────────────── */
.tricolor-stripe {
  height: 4px;
  background: var(--gradient-india);
  width: 100%;
  flex-shrink: 0;
}

/* ── Announcement Banner ───────────────────────────────────── */
.announcement {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding: 10px var(--space-4);
  font-size: var(--text-sm); font-weight: 500;
}
.announcement--info    { background: #1e3a5f; color: #93c5fd; }
.announcement--warning { background: #2d1f00; color: #fbbf24; }
.announcement--success { background: #052e16; color: #86efac; }
.announcement--danger  { background: #2d0a0a; color: #fca5a5; }
.announcement__close {
  background: none; border: none; cursor: pointer; color: inherit;
  padding: 4px; opacity: 0.7; transition: opacity var(--transition);
  min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center;
}
.announcement__close:hover { opacity: 1; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-4);
}
[data-theme="light"] .navbar { background: rgba(250,250,245,0.92); }
.navbar__container {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar__logo-img { height: 36px; width: auto; }
.navbar__links { display: none; gap: var(--space-6); align-items: center; }
.navbar__link {
  color: var(--text-secondary); font-size: var(--text-sm); font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: all var(--transition); display: flex; align-items: center; gap: 6px;
}
.navbar__link:hover, .navbar__link--active {
  color: var(--accent); border-bottom-color: var(--accent);
}
.navbar__actions { display: flex; align-items: center; gap: var(--space-2); }
.navbar__theme-toggle, .navbar__hamburger {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); color: var(--text-secondary);
  transition: all var(--transition); font-size: 1.1rem;
}
.navbar__theme-toggle:hover, .navbar__hamburger:hover {
  background: var(--bg-card-hover); color: var(--accent);
}
.navbar__hamburger { font-size: 1.2rem; }

@media (min-width: 768px) {
  .navbar__links { display: flex; }
  .navbar__hamburger { display: none; }
}

/* ── Mobile Drawer ─────────────────────────────────────────── */
.drawer {
  position: fixed; top: 0; right: -100%; z-index: 200;
  width: min(85vw, 320px); height: 100%; height: 100dvh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.drawer.is-open { right: 0; }
.drawer__overlay {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.drawer__overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--border);
}
.drawer__close {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); border-radius: var(--radius); font-size: 1.2rem;
  transition: all var(--transition);
}
.drawer__close:hover { background: var(--bg-card-hover); color: var(--accent); }
.drawer__nav { flex: 1; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.drawer__link {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4); border-radius: var(--radius);
  color: var(--text-primary); font-size: var(--text-lg); font-weight: 500;
  min-height: 56px; transition: all var(--transition);
}
.drawer__link:hover { background: var(--bg-card-hover); color: var(--accent); }
.drawer__divider { height: 1px; background: var(--border); margin: 0 var(--space-6); }
.drawer__support { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.drawer__support-link {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  color: var(--text-secondary); font-size: var(--text-sm);
  transition: all var(--transition);
}
.drawer__support-link:hover { background: var(--bg-card-hover); color: var(--success); }
.drawer__footer {
  padding: var(--space-4) var(--space-6); text-align: center;
  color: var(--text-muted); font-size: var(--text-xs);
}

/* ── Container ─────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 768px)  { .container { padding: 0 var(--space-6); } }
@media (min-width: 1280px) { .container { padding: 0 var(--space-8); } }

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  overflow: hidden; padding: var(--space-20) var(--space-4) var(--space-12);
  background: var(--gradient-hero);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,153,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero__tricolor { position: absolute; top: 0; left: 0; right: 0; }
.hero__canvas { position: absolute; inset: 0; pointer-events: none; }
.hero__content { position: relative; z-index: 1; max-width: 800px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,153,0,0.1); border: 1px solid rgba(255,153,0,0.3);
  border-radius: var(--radius-full); padding: 6px 16px;
  font-size: var(--text-sm); color: var(--accent); font-weight: 600;
  margin-bottom: var(--space-6);
}
.hero__title {
  font-family: var(--font-heading); font-size: var(--text-5xl); font-weight: 800;
  line-height: 1.1; margin-bottom: var(--space-6); letter-spacing: -0.02em;
}
.hero__title-accent { background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero__subtitle {
  font-size: var(--text-lg); color: var(--text-secondary); margin-bottom: var(--space-8);
  max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero__cta { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-8); }
.hero__trust { font-size: var(--text-sm); color: var(--text-muted); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 600;
  font-size: var(--text-base); transition: all var(--transition);
  min-height: 48px; min-width: 48px; cursor: pointer; border: none;
  position: relative; overflow: hidden; font-family: inherit;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--gradient-accent); color: #0d0d0d;
  box-shadow: 0 4px 20px rgba(255,153,0,0.3);
}
.btn--primary:hover { box-shadow: 0 6px 28px rgba(255,153,0,0.45); filter: brightness(1.05); color: #0d0d0d; }
.btn--secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn--secondary:hover { background: rgba(255,153,0,0.1); color: var(--accent); }
.btn--ghost { background: rgba(255,255,255,0.05); color: var(--text-primary); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #dc2626; color: #fff; }
.btn--success { background: var(--success); color: #fff; }
.btn--success:hover { background: #16a34a; color: #fff; }
.btn--full { width: 100%; }
.btn--lg { padding: 14px 32px; font-size: var(--text-lg); min-height: 56px; }
.btn--sm { padding: 8px 16px; font-size: var(--text-sm); min-height: 40px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn--loading { pointer-events: none; }
.btn__spinner { animation: spin 0.8s linear infinite; }

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--space-8) var(--space-4); }
.stats-bar__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); max-width: var(--container); margin: 0 auto; }
.stats-bar__item { text-align: center; }
.stats-bar__number { font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 800; color: var(--accent); }
.stats-bar__label { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 4px; }
@media (min-width: 768px) { .stats-bar__grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Section ───────────────────────────────────────────────── */
.section { padding: var(--space-12) var(--space-4); }
@media (min-width: 768px) { .section { padding: var(--space-16) var(--space-6); } }
.section__header { text-align: center; margin-bottom: var(--space-12); }
.section__title { font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 700; margin-bottom: var(--space-4); }
.section__subtitle { color: var(--text-secondary); font-size: var(--text-lg); max-width: 560px; margin: 0 auto; }

/* ── Product Cards ─────────────────────────────────────────── */
.products-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-6); max-width: var(--container); margin: 0 auto;
}
@media (min-width: 480px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition); display: flex; flex-direction: column;
}
@media (hover: hover) { .product-card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow-glow); } }
.product-card--featured { border-color: rgba(212,175,55,0.4); }
.product-card__image { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-secondary); }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
@media (hover: hover) { .product-card:hover .product-card__image img { transform: scale(1.05); } }
.product-card__body { padding: var(--space-4); flex: 1; display: flex; flex-direction: column; gap: var(--space-2); }
.product-card__category { font-size: var(--text-xs); color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.product-card__title { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.product-card__price { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.product-card__price-current { font-size: var(--text-xl); font-weight: 800; color: var(--accent); }
.product-card__price-original { font-size: var(--text-sm); color: var(--text-muted); text-decoration: line-through; }
.product-card__gst { font-size: var(--text-xs); color: var(--text-muted); }
.product-card__footer { padding: var(--space-4); padding-top: 0; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600;
}
.badge--success  { background: rgba(34,197,94,0.15); color: var(--success); }
.badge--warning  { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge--danger   { background: rgba(239,68,68,0.15);  color: var(--danger); }
.badge--info     { background: rgba(59,130,246,0.15); color: var(--info); }
.badge--accent   { background: rgba(255,153,0,0.15); color: var(--accent); }
.badge--sale     { background: var(--danger); color: #fff; }
.badge--featured { background: linear-gradient(135deg, #D4AF37, #FF9900); color: #000; }
.badge--new      { background: var(--success); color: #fff; }

/* ── Trust Badges ──────────────────────────────────────────── */
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); padding: var(--space-6) var(--space-4); }
.trust-badge {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 8px 16px;
  font-size: var(--text-sm); color: var(--text-secondary); font-weight: 500;
}
.trust-badge i { color: var(--accent); }

/* ── Payment Methods Row ───────────────────────────────────── */
.payment-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-4); }
.payment-row__item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4);
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); color: var(--text-secondary);
  transition: border-color var(--transition);
}
.payment-row__item:hover { border-color: var(--border-accent); }
.payment-row__item img { height: 24px; width: auto; }

/* ── How It Works ──────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: var(--space-8); max-width: var(--container); margin: 0 auto; }
.step { display: flex; gap: var(--space-4); align-items: flex-start; }
.step__number {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient-accent); color: #0d0d0d;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: var(--text-lg);
}
.step__title { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-xl); margin-bottom: var(--space-2); }
.step__desc { color: var(--text-secondary); }
@media (min-width: 768px) {
  .steps { flex-direction: row; align-items: flex-start; }
  .step { flex-direction: column; text-align: center; align-items: center; }
}

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { position: relative; margin-bottom: var(--space-4); }
.form-label {
  display: block; font-size: var(--text-sm); font-weight: 500;
  color: var(--text-secondary); margin-bottom: 6px;
}
.form-label .required { color: var(--danger); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-secondary);
  color: var(--text-primary); font-size: 1rem; /* 16px - no iOS zoom */
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,153,0,0.15);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-helper { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: var(--text-xs); color: var(--danger); margin-top: 4px; }

/* ── Payment Method Selector ───────────────────────────────── */
.payment-methods { display: flex; flex-direction: column; gap: var(--space-3); }
.payment-method-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition); overflow: hidden;
}
.payment-method-card:hover { border-color: var(--border-accent); }
.payment-method-card.is-selected { border-color: var(--accent); background: rgba(255,153,0,0.04); }
.payment-method-card__header {
  display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4);
  min-height: 64px;
}
.payment-method-card__icon { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.payment-method-card__info { flex: 1; }
.payment-method-card__name { font-weight: 600; font-size: var(--text-base); }
.payment-method-card__tagline { font-size: var(--text-xs); color: var(--text-muted); }
.payment-method-card__radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.payment-method-card.is-selected .payment-method-card__radio {
  border-color: var(--accent); background: var(--accent);
}
.payment-method-card.is-selected .payment-method-card__radio::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #000;
}
.payment-method-card__details {
  display: none; padding: 0 var(--space-4) var(--space-4);
  border-top: 1px solid var(--border); padding-top: var(--space-4);
}
.payment-method-card.is-selected .payment-method-card__details { display: block; }
.payment-method-card__qr { max-width: 180px; margin: var(--space-4) auto; }
.payment-method-card__instructions { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }
.payment-method-card__id {
  font-family: var(--font-mono); background: var(--bg-secondary);
  border: 1px solid var(--border); padding: 8px 12px;
  border-radius: 8px; font-size: var(--text-sm); margin-top: var(--space-3);
  word-break: break-all;
}

/* ── UTR Input ─────────────────────────────────────────────── */
.utr-input-wrapper { position: relative; }
.utr-badge {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: var(--accent); color: #000; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
}

/* ── File Upload Dropzone ──────────────────────────────────── */
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-4); text-align: center;
  cursor: pointer; transition: all var(--transition); position: relative;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent); background: rgba(255,153,0,0.04); }
.dropzone__icon { font-size: 2.5rem; color: var(--text-muted); margin-bottom: var(--space-3); }
.dropzone__text { font-weight: 600; color: var(--text-secondary); }
.dropzone__sub  { font-size: var(--text-sm); color: var(--text-muted); margin-top: 4px; }
.dropzone__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone__preview { margin-top: var(--space-4); }
.dropzone__preview img { max-height: 200px; border-radius: var(--radius); margin: 0 auto; }

/* ── Order Summary ─────────────────────────────────────────── */
.order-summary {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.order-summary__row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.order-summary__row:last-child { border-bottom: none; }
.order-summary__total { font-size: var(--text-xl); font-weight: 800; color: var(--accent); }
.order-summary__discount { color: var(--success); }

/* ── Sticky Submit Bar ─────────────────────────────────────── */
.sticky-submit {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: var(--space-4);
  padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
}
.sticky-submit::before {
  content: ''; position: absolute; bottom: 100%; left: 0; right: 0; height: 40px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}
@media (min-width: 1024px) { .sticky-submit { display: none; } }

/* ── Order Status Timeline ─────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline__step { display: flex; gap: var(--space-4); position: relative; }
.timeline__step:not(:last-child)::before {
  content: ''; position: absolute; left: 16px; top: 40px; bottom: -8px;
  width: 2px; background: var(--border);
}
.timeline__step.is-done:not(:last-child)::before { background: var(--success); }
.timeline__icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border); background: var(--bg-secondary);
  color: var(--text-muted); z-index: 1;
}
.timeline__step.is-done .timeline__icon { border-color: var(--success); background: var(--success); color: #fff; }
.timeline__step.is-active .timeline__icon { border-color: var(--accent); color: var(--accent); }
.timeline__step.is-error .timeline__icon { border-color: var(--danger); background: var(--danger); color: #fff; }
.timeline__content { padding-bottom: var(--space-6); }
.timeline__title { font-weight: 600; margin-bottom: 4px; }
.timeline__desc { font-size: var(--text-sm); color: var(--text-secondary); }

/* ── Keys Box ──────────────────────────────────────────────── */
.keys-box {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.keys-box__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4); border-bottom: 1px solid var(--border);
}
.key-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding: var(--space-4); border-bottom: 1px solid var(--border);
}
.key-row:last-child { border-bottom: none; }
.key-row__value { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent); word-break: break-all; }
.key-row__copy {
  min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); border-radius: var(--radius); transition: all var(--transition);
  flex-shrink: 0;
}
.key-row__copy:hover { background: var(--bg-card-hover); color: var(--accent); }

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); max-width: var(--container); margin: 0 auto; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.testimonial-card__stars { color: var(--accent); margin-bottom: var(--space-4); }
.testimonial-card__text { color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-4); font-style: italic; }
.testimonial-card__author { font-weight: 700; }
.testimonial-card__location { font-size: var(--text-sm); color: var(--text-muted); }

/* ── Coupon Input ──────────────────────────────────────────── */
.coupon-row { display: flex; gap: var(--space-2); }
.coupon-row .form-input { flex: 1; text-transform: uppercase; }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--text-muted); }
.breadcrumb__current { color: var(--text-secondary); }

/* ── FAQ Accordion ─────────────────────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--space-3); overflow: hidden; }
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-6); cursor: pointer;
  font-weight: 600; font-size: var(--text-base); min-height: 56px;
  transition: background var(--transition);
}
.faq-item__q:hover { background: var(--bg-card-hover); }
.faq-item__icon { transition: transform 0.2s; color: var(--accent); flex-shrink: 0; }
.faq-item.is-open .faq-item__icon { transform: rotate(180deg); }
.faq-item__a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.2s;
  opacity: 0;
}
.faq-item.is-open .faq-item__a { max-height: 400px; opacity: 1; }
.faq-item__answer { padding: 0 var(--space-6) var(--space-4); color: var(--text-secondary); line-height: 1.7; }

/* ── Pagination ────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-2); flex-wrap: wrap; }
.pagination__btn {
  min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1px solid var(--border); font-size: var(--text-sm);
  font-weight: 500; color: var(--text-secondary); transition: all var(--transition);
}
.pagination__btn:hover, .pagination__btn--active {
  background: var(--accent); color: #000; border-color: var(--accent);
}
.pagination__btn--disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Toast Notifications ───────────────────────────────────── */
.toast-container { position: fixed; top: var(--space-4); right: var(--space-4); z-index: 500; display: flex; flex-direction: column; gap: var(--space-2); max-width: 360px; }
.toast {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-4);
  box-shadow: var(--shadow-card); animation: toastIn 0.3s ease;
}
.toast--success { border-left: 4px solid var(--success); }
.toast--error   { border-left: 4px solid var(--danger); }
.toast--warning { border-left: 4px solid var(--warning); }
.toast--info    { border-left: 4px solid var(--info); }
.toast i { font-size: 1.2rem; flex-shrink: 0; }
.toast--success i { color: var(--success); }
.toast--error   i { color: var(--danger); }
.toast--warning i { color: var(--warning); }
.toast--info    i { color: var(--info); }
.toast__text { font-size: var(--text-sm); color: var(--text-primary); }
.toast__close { margin-left: auto; color: var(--text-muted); font-size: 1rem; padding: 4px; }

/* ── Skeleton Loader ───────────────────────────────────────── */
.skeleton { background: var(--bg-card); border-radius: var(--radius); position: relative; overflow: hidden; }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
}
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }

/* ── WhatsApp Float ────────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  bottom: calc(24px + env(safe-area-inset-bottom));
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
@media (min-width: 768px) { .whatsapp-float { bottom: 32px; right: 32px; } }

/* ── Back to Top ───────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 90px; right: 24px; z-index: 49;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px);
  transition: all var(--transition);
  bottom: calc(90px + env(safe-area-inset-bottom));
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); margin-top: auto; }
.footer-tricolor { }
.footer__container {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-8); padding: var(--space-12) var(--space-4);
}
@media (min-width: 768px)  { .footer__container { grid-template-columns: 2fr 1fr 1fr 1fr; padding: var(--space-12) var(--space-6); } }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__brand p { color: var(--text-secondary); font-size: var(--text-sm); }
.footer__made-in { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: var(--text-sm); font-weight: 600; }
.footer__trust { font-size: var(--text-xs); color: var(--text-muted); }
.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__links h3 { font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-2); }
.footer__links a { font-size: var(--text-sm); color: var(--text-secondary); display: flex; align-items: center; gap: 8px; transition: color var(--transition); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  max-width: var(--container); margin: 0 auto;
  padding: var(--space-4) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4); font-size: var(--text-xs); color: var(--text-muted);
}
.footer__payment-icons { display: flex; align-items: center; gap: var(--space-3); }

/* ── 404 / Error Pages ─────────────────────────────────────── */
.error-page { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--space-8); }
.error-page__code { font-size: 6rem; font-weight: 800; color: var(--accent); font-family: var(--font-heading); line-height: 1; }
.error-page__title { font-size: var(--text-2xl); font-weight: 700; margin: var(--space-4) 0; }
.error-page__text { color: var(--text-secondary); margin-bottom: var(--space-8); }

/* ── Maintenance Page ──────────────────────────────────────── */
.maintenance { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-8); background: var(--bg-primary); }
.maintenance__icon { font-size: 4rem; color: var(--accent); margin-bottom: var(--space-6); }
.maintenance__title { font-size: var(--text-3xl); font-weight: 800; font-family: var(--font-heading); margin-bottom: var(--space-4); }

/* ── Card ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.card--elevated { box-shadow: var(--shadow-card); }

/* ── Alert ─────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius); border: 1px solid; margin-bottom: var(--space-4);
}
.alert--success { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.3); color: var(--success); }
.alert--error   { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3); color: var(--danger); }
.alert--warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.3); color: var(--warning); }
.alert--info    { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.3); color: var(--info); }
.alert__content { flex: 1; }
.alert__title { font-weight: 700; margin-bottom: 4px; }

/* ── Utilities ─────────────────────────────────────────────── */
.text-accent    { color: var(--accent); }
.text-success   { color: var(--success); }
.text-danger    { color: var(--danger); }
.text-warning   { color: var(--warning); }
.text-muted     { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center    { text-align: center; }
.font-mono      { font-family: var(--font-mono); }
.font-heading   { font-family: var(--font-heading); }
.fw-700         { font-weight: 700; }
.fw-800         { font-weight: 800; }
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.focus-ring:focus { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Product Detail Page ───────────────────────────────────── */
.product-detail { max-width: var(--container); margin: 0 auto; padding: var(--space-6) var(--space-4); }
@media (min-width: 1024px) {
  .product-detail { display: grid; grid-template-columns: 1fr 420px; gap: var(--space-12); align-items: start; }
  .product-detail__right { position: sticky; top: 80px; }
}
.product-detail__image { border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; }
.product-detail__price-block { margin: var(--space-4) 0; }
.product-detail__price { font-size: var(--text-4xl); font-weight: 800; color: var(--accent); }
.product-detail__original { font-size: var(--text-lg); color: var(--text-muted); text-decoration: line-through; }
.product-detail__gst { font-size: var(--text-sm); color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.qty-stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; width: fit-content; }
.qty-stepper__btn { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; color: var(--text-secondary); transition: all var(--transition); background: var(--bg-secondary); }
.qty-stepper__btn:hover { background: var(--bg-card-hover); color: var(--accent); }
.qty-stepper__val { min-width: 56px; text-align: center; font-weight: 700; font-size: var(--text-lg); border-left: 1px solid var(--border); border-right: 1px solid var(--border); height: 56px; display: flex; align-items: center; justify-content: center; }

/* ── Order Confirmation ────────────────────────────────────── */
.confirm-page { max-width: 640px; margin: 0 auto; padding: var(--space-8) var(--space-4); text-align: center; }
.confirm-page__icon { font-size: 5rem; color: var(--success); margin-bottom: var(--space-6); }
.confirm-page__title { font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 800; margin-bottom: var(--space-3); }

/* ── Search bar ────────────────────────────────────────────── */
.search-bar { position: relative; }
.search-bar__input { padding-left: 44px; }
.search-bar__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

/* ── Confetti canvas ───────────────────────────────────────── */
#confettiCanvas { position: fixed; inset: 0; pointer-events: none; z-index: 999; }
