/* ==========================================================================
   IQRA ONLINE MART — ZERO-DEPENDENCY LUXURY DESIGN SYSTEM
   Palette: Obsidian Black (#09090c) & Metallic Champagne Gold (#d4af37)
   Studio Light Mode: Alabaster Ivory (#f8f6f0) & Rich Gold (#b38b1e)
   ========================================================================== */

:root {
  /* Dark Theme Colors */
  --bg: #09090d;
  --bg-elev: #121217;
  --bg-card: #17171f;
  --bg-card-hover: #20202b;
  --bg-input: #101015;
  --bg-glass: rgba(18, 18, 24, 0.88);

  /* Gold Metallic Accents */
  --gold: #d4af37;
  --gold-light: #fae49d;
  --gold-bright: #ffe699;
  --gold-dim: #997722;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-gradient: linear-gradient(135deg, #fae49d 0%, #d4af37 50%, #9e7516 100%);
  --gold-gradient-hover: linear-gradient(135deg, #ffeaa8 0%, #dfbc45 50%, #b0851d 100%);
  --gold-gradient-subtle: linear-gradient(135deg, rgba(250, 228, 157, 0.12) 0%, rgba(212, 175, 55, 0.04) 100%);

  /* Borders */
  --line: rgba(212, 175, 55, 0.18);
  --line-strong: rgba(212, 175, 55, 0.38);
  --line-faint: rgba(255, 255, 255, 0.08);

  /* Typography */
  --ink: #fcf9f2;
  --ink-secondary: #d8d0c0;
  --muted: #a09788;
  --faint: #6c6457;

  /* States */
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.14);
  --ok: #10b981;
  --ok-bg: rgba(16, 185, 129, 0.14);
  --info: #38bdf8;
  --info-bg: rgba(56, 189, 248, 0.14);
  --warning: #f59e0b;
  --sale: #f97316;
  --hot: #ec4899;
  --new: #8b5cf6;

  /* Radius & Shadows */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 0 28px rgba(212, 175, 55, 0.25);

  /* Typography Stack */
  --font: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hind Siliguri", sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme */
[data-theme="light"] {
  --bg: #f8f6f0;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfaf5;
  --bg-input: #f2efe6;
  --bg-glass: rgba(255, 255, 255, 0.9);

  --gold: #b38b1e;
  --gold-light: #d4af37;
  --gold-bright: #947112;
  --gold-dim: #735509;
  --gold-glow: rgba(179, 139, 30, 0.18);
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #b38b1e 50%, #7d5e0d 100%);
  --gold-gradient-hover: linear-gradient(135deg, #dfbc45 0%, #c49925 50%, #8c6a11 100%);
  --gold-gradient-subtle: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(179, 139, 30, 0.04) 100%);

  --line: rgba(166, 124, 0, 0.18);
  --line-strong: rgba(166, 124, 0, 0.4);
  --line-faint: rgba(0, 0, 0, 0.06);

  --ink: #191611;
  --ink-secondary: #3d372e;
  --muted: #6b6354;
  --faint: #9c9382;

  --shadow-sm: 0 4px 12px rgba(40, 30, 10, 0.05);
  --shadow-md: 0 12px 28px rgba(40, 30, 10, 0.08);
  --shadow-lg: 0 24px 50px rgba(40, 30, 10, 0.12);
  --shadow-gold: 0 0 25px rgba(179, 139, 30, 0.18);
}

/* Reset & Setup */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Grain & Mesh Glow */
body::before {
  content: "";
  pointer-events: none;
  position: fixed; inset: 0;
  background:
    radial-gradient(1000px 600px at 15% -10%, rgba(212, 175, 55, 0.12), transparent 60%),
    radial-gradient(850px 500px at 95% 15%, rgba(212, 175, 55, 0.08), transparent 55%),
    radial-gradient(800px 800px at 50% 100%, rgba(212, 175, 55, 0.05), transparent 65%);
  z-index: 0;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: transparent; }
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.container {
  width: min(1280px, calc(100% - 2.5rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Inline SVG Icon Wrapper */
.svg-icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  flex-shrink: 0;
}

/* Typography & Utility */
.gold { color: var(--gold); }
.gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.lead { font-size: 1.15rem; color: var(--ink-secondary); line-height: 1.7; }
.empty {
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
}
.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: #120e06;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.28);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.45);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  box-shadow: none;
}
.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 0.5rem 0.9rem;
  box-shadow: none;
}
.btn-ghost:hover { color: var(--ink); background: var(--bg-elev); }

.btn-sm { padding: 0.45rem 1rem; font-size: 0.84rem; }
.btn-lg { padding: 0.95rem 2.2rem; font-size: 1.05rem; }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all var(--transition-fast);
  position: relative;
}
.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 0 14px var(--gold-glow);
}

/* ==========================================================================
   TOPBAR & MAIN HEADER
   ========================================================================== */

.topbar {
  border-bottom: 1px solid var(--line-faint);
  background: rgba(9, 9, 13, 0.9);
  backdrop-filter: blur(20px);
  font-size: 0.82rem;
  color: var(--muted);
  position: relative;
  z-index: 40;
}
[data-theme="light"] .topbar { background: rgba(248, 246, 240, 0.92); }

.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar-info { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Currency & Language Selectors */
.select-dropdown-wrap { position: relative; }
.select-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  transition: all var(--transition-fast);
}
.select-trigger-btn:hover { border-color: var(--gold); color: var(--gold); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  min-width: 150px;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 100;
  backdrop-filter: blur(20px);
}
.select-dropdown-wrap.open .dropdown-menu { display: flex; animation: dropFade 0.2s ease; }
@keyframes dropFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: background var(--transition-fast);
  text-align: left;
  width: 100%;
}
.dropdown-item:hover, .dropdown-item.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

/* Sound Button */
.sound-toggle-btn {
  font-size: 0.85rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
}
.sound-toggle-btn:hover { color: var(--gold); }

/* Main Sticky Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 13, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background var(--transition-fast);
}
[data-theme="light"] header { background: rgba(248, 246, 240, 0.94); }

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand Logo */
.logo { display: flex; align-items: center; gap: 0.85rem; }
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gold-gradient);
  color: #120e06;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.55rem;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}
.logo-text { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1; }
.logo-sub { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-top: 0.15rem; }

/* Navigation Links */
.nav-links { display: flex; gap: 1.6rem; list-style: none; font-size: 0.94rem; font-weight: 500; }
.nav-links a { color: var(--muted); position: relative; padding: 0.4rem 0; }
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-fast);
  border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.65rem; }
.cart-badge, .wish-badge {
  position: absolute;
  top: -5px; right: -5px;
  width: 20px; height: 20px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: #120e06;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.wish-badge { background: var(--hot); color: #fff; }

.mobile-menu-btn { display: none; }

/* ==========================================================================
   HERO BANNER & SHOWCASE
   ========================================================================== */

.hero {
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: var(--gold-gradient-subtle);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.hero-motto {
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero p {
  font-size: 1.15rem;
  color: var(--ink-secondary);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid var(--line-faint);
  padding-top: 1.75rem;
}
.hero-stat-value {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }

/* Visual Showcase */
.hero-visual {
  position: relative;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  overflow: hidden;
}
.hero-visual-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15), transparent 70%);
  pointer-events: none;
}
.hero-visual-main {
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-visual-main svg {
  width: 160px; height: 160px;
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.4));
  animation: floatOrb 5s ease-in-out infinite;
}
@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.03); }
}

.hero-float {
  position: absolute;
  padding: 0.85rem 1.15rem;
  background: rgba(23, 23, 31, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: floatBadge 4s ease-in-out infinite alternate;
}
[data-theme="light"] .hero-float { background: rgba(255, 255, 255, 0.9); }
.hf1 { top: 12%; left: -5%; }
.hf2 { bottom: 12%; right: -5%; animation-delay: 1.5s; }
.hf-ico {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.hero-float strong { display: block; font-size: 0.88rem; font-weight: 600; }
.hero-float small { font-size: 0.74rem; color: var(--muted); }
@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   SECTION CONTAINERS & HEADERS
   ========================================================================== */

.section { padding: 4.5rem 0; position: relative; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-tag {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
}
.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold-gradient-subtle);
  opacity: 0;
  transition: opacity var(--transition);
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.cat-card:hover::before { opacity: 1; }
.cat-ico {
  width: 58px; height: 58px;
  border-radius: var(--radius-full);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1.1rem;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.cat-card:hover .cat-ico {
  transform: scale(1.1);
  background: var(--gold);
  color: #120e06;
}
.cat-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.35rem; position: relative; z-index: 1; }
.cat-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.4; position: relative; z-index: 1; }

/* ==========================================================================
   CATALOG LAYOUT, FACETED FILTERS & PRODUCT CARDS
   ========================================================================== */

.catalog-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Sidebar Filters */
.filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: sticky;
  top: 92px;
}
.filter-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-faint);
}
.filter-sidebar-header h3 { font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.filter-reset-btn { font-size: 0.8rem; color: var(--gold); cursor: pointer; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group h4 {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
  margin-bottom: 0.85rem;
}
.filter-chips { display: flex; flex-direction: column; gap: 0.4rem; }
.filter-chip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-chip-item:hover, .filter-chip-item.active {
  background: var(--bg-elev);
  color: var(--gold);
}
.filter-chip-item.active { font-weight: 600; }
.filter-chip-count {
  font-size: 0.75rem;
  background: var(--bg-elev);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  color: var(--faint);
}

/* Price Range */
.price-range-inputs { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.6rem; }
.price-range-input {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--line);
  font-size: 0.84rem;
}

/* Catalog Toolbar */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  background: var(--bg-card);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.toolbar-left { display: flex; align-items: center; gap: 1rem; }
.toolbar-results-count { font-size: 0.88rem; color: var(--muted); }
.toolbar-right { display: flex; align-items: center; gap: 0.75rem; }

.view-toggle-btns { display: flex; gap: 0.25rem; }
.view-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.view-btn.active {
  background: var(--gold-gradient);
  color: #120e06;
  border-color: transparent;
}

.sort-select, .form-select {
  padding: 0.5rem 2rem 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.86rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23d4af37' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.products-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-card));
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-faint);
  padding: 1rem;
}
.product-img-svg {
  width: 100%;
  height: 100%;
  max-height: 150px;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-svg { transform: scale(1.08); }

/* Badges */
.p-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.p-badge.sale { background: var(--sale); color: #fff; }
.p-badge.hot { background: var(--hot); color: #fff; }
.p-badge.new { background: var(--new); color: #fff; }
.p-badge.featured { background: var(--gold-gradient); color: #120e06; }

.product-media-actions {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}
.media-action-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius-full);
  background: rgba(23, 23, 31, 0.75);
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}
[data-theme="light"] .media-action-btn { background: rgba(255, 255, 255, 0.85); }
.media-action-btn:hover {
  background: var(--gold);
  color: #120e06;
  border-color: var(--gold);
}
.media-action-btn.active {
  background: var(--hot);
  color: #fff;
  border-color: var(--hot);
}

/* Quick View Overlay Button */
.quick-view-overlay-btn {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.45rem 1.1rem;
  background: rgba(23, 23, 31, 0.92);
  border: 1px solid var(--gold);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: all var(--transition-fast);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.product-card:hover .quick-view-overlay-btn {
  bottom: 12px;
  opacity: 1;
}

.product-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.product-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.product-card h3 a:hover { color: var(--gold); }

.stars { color: #f59e0b; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.stars-count { color: var(--muted); font-size: 0.78rem; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.85rem 0 1.1rem;
}
.price { font-size: 1.2rem; font-weight: 700; color: var(--ink); font-family: var(--font); }
.old { font-size: 0.88rem; color: var(--faint); text-decoration: line-through; }
.discount-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.product-actions {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.5rem;
  margin-top: auto;
}

/* List View Variant */
.products-grid.list-view .product-card {
  flex-direction: row;
  min-height: 160px;
}
.products-grid.list-view .product-media {
  width: 220px;
  aspect-ratio: auto;
  border-bottom: none;
  border-right: 1px solid var(--line-faint);
}
.products-grid.list-view .product-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

/* ==========================================================================
   PRODUCT DETAIL VIEW & SPECS
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--faint); }

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.pd-gallery { display: flex; flex-direction: column; gap: 1rem; }
.pd-main-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  padding: 2rem;
}
.pd-main-img-wrap svg {
  width: 80%; height: 80%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.pd-main-img-wrap:hover svg { transform: scale(1.08); }

.pd-info h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0.35rem 0 0.75rem;
}
.pd-meta-row { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.pd-sku { font-size: 0.82rem; color: var(--muted); }

.pd-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}
.pd-stock-badge.in-stock { background: var(--ok-bg); color: var(--ok); }
.pd-stock-badge.low-stock { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.pd-stock-badge.out-of-stock { background: var(--danger-bg); color: var(--danger); }

/* Color & Size Swatches */
.variant-section { margin: 1.5rem 0; }
.variant-title { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.6rem; }
.color-swatches { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.color-swatch {
  width: 32px; height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  outline: 1px solid var(--line);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}
.color-swatch.active {
  border-color: var(--bg);
  outline: 2px solid var(--gold);
  transform: scale(1.1);
}

.size-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.size-chip {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.size-chip.active, .size-chip:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

/* Stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 0.25rem;
}
.qty-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--bg-elev);
  color: var(--ink);
  font-weight: 700;
  transition: all var(--transition-fast);
}
.qty-btn:hover { background: var(--gold); color: #120e06; }
.qty-val { min-width: 44px; text-align: center; font-weight: 600; font-size: 1rem; }

/* Tabs */
.pd-tabs-container { margin-top: 4rem; }
.pd-tab-nav {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  overflow-x: auto;
}
.pd-tab-btn {
  padding: 0.75rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}
.pd-tab-btn::after {
  content: "";
  position: absolute; bottom: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-fast);
}
.pd-tab-btn.active { color: var(--gold); }
.pd-tab-btn.active::after { width: 100%; }

.pd-tab-content { display: none; }
.pd-tab-content.active { display: block; animation: tabFade 0.3s ease; }
@keyframes tabFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Specs Table */
.specs-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.specs-table th, .specs-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line-faint);
  font-size: 0.92rem;
  text-align: left;
}
.specs-table th { width: 30%; color: var(--muted); font-weight: 500; }
.specs-table td { color: var(--ink); }

/* Reviews */
.reviews-breakdown {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.rating-big { font-family: var(--serif); font-size: 4rem; font-weight: 700; color: var(--gold); line-height: 1; }
.rating-bar-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.84rem; margin-bottom: 0.45rem; }
.rating-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--bg-elev);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.rating-bar-fill { height: 100%; background: var(--gold-gradient); border-radius: var(--radius-full); }

/* ==========================================================================
   CART DRAWER & FREE SHIPPING PROGRESS
   ========================================================================== */

.cart-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.cart-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: -460px;
  width: min(450px, 100%);
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--line);
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-slow);
}
.cart-drawer.open { right: 0; }

.cart-drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer-header h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }

.free-shipping-box {
  padding: 1rem 1.5rem;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line-faint);
  font-size: 0.84rem;
}
.free-shipping-bar-wrap {
  height: 6px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  margin-top: 0.5rem;
  overflow: hidden;
}
.free-shipping-bar-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-elev);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius-md);
}
.cart-item-img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  display: grid;
  place-items: center;
  padding: 0.4rem;
}
.cart-item h4 { font-size: 0.92rem; font-weight: 600; line-height: 1.3; margin-bottom: 0.35rem; }

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.cart-total-row.grand-total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.85rem 0 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-faint);
}

.promo-input-wrap { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.promo-input {
  flex: 1;
  padding: 0.5rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  text-transform: uppercase;
}

/* ==========================================================================
   CHECKOUT, INVOICE & TIMELINE
   ========================================================================== */

.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: start;
}
.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}
.checkout-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Forms */
.form-group { margin-bottom: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 0.4rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}
.form-textarea { min-height: 110px; resize: vertical; }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* Payment Options */
.pay-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.pay-opt-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-elev);
  transition: all var(--transition-fast);
}
.pay-opt-card input { display: none; }
.pay-opt-card:hover, .pay-opt-card.active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
}
.pay-opt-card svg { width: 28px; height: 28px; margin: 0 auto 0.4rem; color: var(--gold); }
.pay-opt-card span { font-size: 0.84rem; font-weight: 600; display: block; }

.pay-gateway-details {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
}

/* Order Success & Timeline */
.order-success-hero {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.order-check-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-full);
  background: var(--ok-bg);
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--ok);
}

.order-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2.5rem 0;
}
.order-timeline::before {
  content: "";
  position: absolute;
  top: 18px; left: 0; right: 0;
  height: 3px;
  background: var(--line);
  z-index: 1;
}
.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.step-circle {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.timeline-step.completed .step-circle {
  background: var(--gold);
  border-color: var(--gold);
  color: #120e06;
}
.timeline-step.active .step-circle {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}
.timeline-step small { font-size: 0.74rem; color: var(--muted); }

/* Printable Invoice */
@media print {
  body::before, header, .topbar, footer, .btn, .cart-drawer, .modal, .live-chat-bubble, .mobile-bottom-nav { display: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .container { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
  .printable-invoice { border: none !important; box-shadow: none !important; padding: 0 !important; }
}

/* ==========================================================================
   MODALS (SEARCH, QUICK VIEW, COMPARE, AUTH)
   ========================================================================== */

.modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 120;
  display: none;
  place-items: center;
  padding: 1.5rem;
  overflow-y: auto;
}
.modal.open { display: grid; animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  width: min(580px, 100%);
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}
.modal-content.modal-lg { width: min(880px, 100%); }
.modal-content.modal-xl { width: min(1080px, 100%); }

.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.modal-close:hover { color: var(--gold); border-color: var(--gold); }

/* Live Search Modal */
.search-modal-box { width: min(720px, 100%); }
.search-input-wrap { position: relative; margin: 1.25rem 0 1.5rem; }
.search-input-wrap svg {
  position: absolute;
  left: 1.25rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  width: 1.3rem; height: 1.3rem;
}
.search-big-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 1.15rem;
}
.search-big-input:focus { border-color: var(--gold); box-shadow: 0 0 20px var(--gold-glow); }

.search-results-list {
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.search-hit-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-elev);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-faint);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.search-hit-item:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  transform: translateX(4px);
}
.search-hit-img { width: 50px; height: 50px; border-radius: var(--radius-sm); object-fit: contain; }

/* Comparison Table */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.compare-table th, .compare-table td {
  padding: 1rem;
  border: 1px solid var(--line-faint);
  text-align: center;
  font-size: 0.88rem;
}
.compare-table th { background: var(--bg-elev); color: var(--gold); font-weight: 600; width: 140px; text-align: left; }

/* ==========================================================================
   LIVE CHAT WIDGET & TOASTS
   ========================================================================== */

.live-chat-bubble {
  position: fixed;
  bottom: 25px; right: 25px;
  width: 58px; height: 58px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: #120e06;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(212, 175, 55, 0.4);
  z-index: 80;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.live-chat-bubble:hover { transform: scale(1.1); }

.live-chat-window {
  position: fixed;
  bottom: 95px; right: 25px;
  width: min(380px, calc(100% - 2rem));
  height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 85;
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.live-chat-window.open { display: flex; animation: dropFade 0.25s ease; }

.chat-header {
  padding: 1rem 1.25rem;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-agent-info { display: flex; align-items: center; gap: 0.6rem; }
.agent-avatar {
  width: 34px; height: 34px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: #120e06;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}
.agent-status-dot {
  width: 8px; height: 8px;
  background: var(--ok);
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.chat-messages-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.chat-msg {
  max-width: 80%;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  line-height: 1.4;
}
.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--line-faint);
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--gold-gradient);
  color: #120e06;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.chat-input-footer {
  padding: 0.75rem 1rem;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.5rem;
}
.chat-input {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 0.84rem;
}

/* Toast Container */
.toast-container {
  position: fixed;
  top: 25px; right: 25px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}
.toast {
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(23, 23, 31, 0.94);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-md), 0 0 15px var(--gold-glow);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
[data-theme="light"] .toast { background: rgba(255, 255, 255, 0.96); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(9, 9, 13, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  display: none;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 75;
}
[data-theme="light"] .mobile-bottom-nav { background: rgba(248, 246, 240, 0.96); }
.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72rem;
  color: var(--muted);
  gap: 0.2rem;
  position: relative;
  padding: 0.2rem 0.5rem;
}
.mob-nav-item svg { width: 1.25rem; height: 1.25rem; }
.mob-nav-item.active, .mob-nav-item:hover { color: var(--gold); }

/* ==========================================================================
   ADMIN CMS DASHBOARD
   ========================================================================== */

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--line);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-faint);
}
.admin-nav { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: var(--bg-elev);
  color: var(--gold);
  border-left: 3px solid var(--gold);
}

.admin-main { padding: 2.5rem; overflow-x: auto; }
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-header h1 { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.admin-stat-card b {
  display: block;
  font-size: 1.8rem;
  font-family: var(--serif);
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.admin-stat-card span { font-size: 0.84rem; color: var(--muted); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.admin-table th, .admin-table td {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--line-faint);
  font-size: 0.88rem;
  text-align: left;
}
.admin-table th { background: var(--bg-elev); color: var(--ink-secondary); font-weight: 600; }

/* Status Badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: capitalize;
}
.status.active, .status.delivered { background: var(--ok-bg); color: var(--ok); }
.status.pending, .status.processing { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.status.shipped { background: var(--info-bg); color: var(--info); }
.status.cancelled, .status.inactive { background: var(--danger-bg); color: var(--danger); }

/* ==========================================================================
   FOOTER & RESPONSIVENESS
   ========================================================================== */

footer {
  border-top: 1px solid var(--line);
  background: rgba(9, 9, 13, 0.95);
  padding: 4.5rem 0 2rem;
  margin-top: 5rem;
}
[data-theme="light"] footer { background: rgba(248, 246, 240, 0.95); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin: 1rem 0 1.5rem; max-width: 320px; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.footer-section h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--ink); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a { color: var(--muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--line-faint);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; margin-bottom: 2rem; }
  .pd-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .checkout-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed; left: -280px; top: 0; bottom: 0; z-index: 110;
    transition: left var(--transition);
  }
  .admin-sidebar.open { left: 0; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-float { display: none; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1.5rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: block; }
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: 65px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .reviews-breakdown { grid-template-columns: 1fr; gap: 1.5rem; }
}
