/* ============================================================
   RDA STORE v3 — GLOBAL STYLESHEET
   Aesthetic: Dark Luxury Gaming — deep space blacks, electric blue
   accents, sharp gold highlights, cinematic motion
   ============================================================ */

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

/* ---- NEVER! we use Clash Display via CDN workaround ---- */

:root {
  /* Brand Colors */
  --blue:        #3b82f6;
  --blue-bright: #60a5fa;
  --blue-deep:   #1d4ed8;
  --violet:      #8b5cf6;
  --gold:        #f59e0b;
  --gold-light:  #fcd34d;
  --emerald:     #10b981;
  --red:         #ef4444;

  /* Surface Colors */
  --bg:          #050811;
  --bg-2:        #080d18;
  --surface:     #0c1220;
  --surface-2:   #111827;
  --surface-3:   #1a2540;
  --glass:       rgba(255,255,255,.04);
  --glass-hover: rgba(255,255,255,.07);

  /* Border */
  --border:      rgba(255,255,255,.06);
  --border-blue: rgba(59,130,246,.3);

  /* Text */
  --text:        #f0f4ff;
  --text-2:      #94a3b8;
  --text-3:      #64748b;

  /* Typography */
  --font-d: 'Outfit', sans-serif;
  --font-b: 'Space Grotesk', sans-serif;

  /* Radii */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;

  /* Shadows */
  --sh-blue: 0 0 40px rgba(59,130,246,.15);
  --sh-card: 0 24px 64px rgba(0,0,0,.4);
  --sh-glow: 0 0 80px rgba(59,130,246,.08);

  --ease: cubic-bezier(.25,.46,.45,.94);
  --t: .3s var(--ease);
}

/* LIGHT MODE overrides */
body.light-mode {
  --bg:       #f0f4ff;
  --bg-2:     #e8eeff;
  --surface:  #ffffff;
  --surface-2:#f8faff;
  --surface-3:#eef2ff;
  --glass:    rgba(0,0,0,.03);
  --glass-hover: rgba(0,0,0,.06);
  --border:   rgba(15,23,42,.08);
  --border-blue: rgba(59,130,246,.2);
  --text:     #0f172a;
  --text-2:   #475569;
  --text-3:   #94a3b8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ---- NOISE TEXTURE OVERLAY ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .6;
}

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- GRADIENT TEXT ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--blue-bright), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .95rem;
  transition: var(--t);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.1);
  opacity: 0;
  transition: opacity .2s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 8px 32px rgba(59,130,246,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(59,130,246,.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e08b00);
  color: #0f172a;
  box-shadow: 0 8px 32px rgba(245,158,11,.25);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(245,158,11,.35);
}

.btn-outline {
  border: 1.5px solid var(--border-blue);
  color: var(--blue-bright);
  background: rgba(59,130,246,.05);
}
.btn-outline:hover {
  background: rgba(59,130,246,.12);
  border-color: var(--blue);
}

.btn-ghost {
  color: var(--text-2);
  padding: 10px 18px;
}
.btn-ghost:hover { color: var(--text); }

/* ---- BADGE ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge-blue    { background: rgba(59,130,246,.15); color: var(--blue-bright); border: 1px solid rgba(59,130,246,.2); }
.badge-gold    { background: rgba(245,158,11,.15); color: var(--gold-light); border: 1px solid rgba(245,158,11,.2); }
.badge-green   { background: rgba(16,185,129,.15); color: #34d399; border: 1px solid rgba(16,185,129,.2); }
.badge-violet  { background: rgba(139,92,246,.15); color: #a78bfa; border: 1px solid rgba(139,92,246,.2); }
.badge-red     { background: rgba(239,68,68,.15); color: #f87171; border: 1px solid rgba(239,68,68,.2); }

/* ---- PRODUCT CARD ---- */
.product-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--t);
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(59,130,246,.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59,130,246,.25);
  box-shadow: var(--sh-card), 0 0 0 1px rgba(59,130,246,.1);
}
.product-card:hover::after { opacity: 1; }

.product-card .card-img {
  height: 220px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface-3));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card .card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(59,130,246,.12), transparent 70%);
}

.product-card .card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 22px;
  transition: transform .5s var(--ease);
  position: relative;
  z-index: 1;
}
.product-card:hover .card-img img { transform: scale(1.08); }

.product-card .card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.product-card .card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card .card-brand {
  font-size: .7rem;
  font-weight: 700;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.product-card .card-name {
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.product-card .card-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}

.product-card .card-price {
  font-family: var(--font-d);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
}

.product-card .card-old-price {
  font-size: .82rem;
  color: var(--text-3);
  text-decoration: line-through;
}

.product-card .card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--text-2);
}
.product-card .card-rating .stars { color: var(--gold); letter-spacing: 1px; }

.product-card .card-actions {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  gap: 8px;
}

.product-card .btn-cart {
  flex: 1;
  height: 46px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .88rem;
  transition: var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(59,130,246,.25);
}
.product-card .btn-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59,130,246,.38);
}

.product-card .btn-view {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: var(--t);
  flex-shrink: 0;
}
.product-card .btn-view:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ---- SECTION HEADING ---- */
.section-heading { margin-bottom: 56px; }
.section-heading .eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-heading .eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  border-radius: 1px;
}
.section-heading h2 {
  font-family: var(--font-d);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}
.section-heading p {
  margin-top: 14px;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 680px;
  font-size: 1.05rem;
}

/* ---- TOAST ---- */
.rda-toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-deep); }

/* ---- WA FLOAT ---- */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
}
.wa-float a {
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 8px 32px rgba(37,211,102,.4);
  transition: var(--t);
}
.wa-float a:hover { transform: scale(1.12) translateY(-2px); }

/* ---- LIGHT MODE ADJUSTMENTS ---- */
body.light-mode .product-card .card-img {
  background: linear-gradient(145deg, #f0f4ff, #e8eeff);
}
body.light-mode .product-card .card-img::before {
  background: radial-gradient(circle at 50% 100%, rgba(59,130,246,.08), transparent 70%);
}
