/* ===================================
   TEQNIYASTORE — Design System
   Dark Tech E-Commerce Theme
   =================================== */

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

/* ── CSS Variables ── */
:root {
  --yellow:        #F5B731;
  --yellow-light:  #FFD166;
  --yellow-dim:    rgba(245, 183, 49, 0.15);
  --yellow-glow:   rgba(245, 183, 49, 0.35);
  --accent-green:  #A8FF3E;
  --accent-blue:   #4FC3F7;

  --bg-base:       #080808;
  --bg-card:       #111111;
  --bg-surface:    #181818;
  --bg-elevated:   #202020;
  --bg-input:      #1a1a1a;

  --border:        rgba(255,255,255,0.06);
  --border-yellow: rgba(245,183,49,0.3);

  --text-primary:  #FFFFFF;
  --text-secondary:#A0A0A0;
  --text-muted:    #606060;

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --radius-full:   999px;

  --shadow-card:   0 4px 24px rgba(0,0,0,0.6);
  --shadow-glow:   0 0 40px rgba(245,183,49,0.2);
  --shadow-cta:    0 8px 30px rgba(168,255,62,0.3);

  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;

  --font: 'Outfit', sans-serif;
}

/* ── Light Mode Variables ── */
[data-theme="light"] {
  --bg-base:       #F2F2F5;
  --bg-card:       #FFFFFF;
  --bg-surface:    #E8E8EC;
  --bg-elevated:   #DDDDE3;
  --bg-input:      #EAEAEE;

  --border:        rgba(0,0,0,0.08);
  --border-yellow: rgba(245,183,49,0.45);

  --text-primary:  #101010;
  --text-secondary:#505060;
  --text-muted:    #909098;

  --shadow-card:   0 4px 24px rgba(0,0,0,0.1);
  --shadow-glow:   0 0 40px rgba(245,183,49,0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; outline: none; font-family: var(--font); }
ul { list-style: none; }
input { font-family: var(--font); outline: none; border: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--yellow); }

/* ── Container ── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Utility ── */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--yellow-dim);
  border: 1px solid var(--border-yellow);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 0.5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--yellow);
  color: #000;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-green {
  background: var(--accent-green);
  color: #000;
}

/* ═══════════════════════════════════
   ANNOUNCEMENT BAR
   ═══════════════════════════════════ */
.announcement-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--yellow);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1001;
}
.announcement-close {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: inherit;
  opacity: 0.7;
  padding: 2px 6px;
}
.announcement-close:hover { opacity: 1; }

/* ═══════════════════════════════════
   NAVBAR
   ═══════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: var(--navbar-bg, rgba(8, 8, 8, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: var(--navbar-scrolled-bg, rgba(8, 8, 8, 0.97));
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.nav-logo-text span {
  color: var(--yellow);
}

/* Mobile menu toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  color: var(--text-primary);
  font-size: 22px;
  padding: 4px;
}

/* Search */
.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.nav-search input {
  width: 100%;
  height: 42px;
  padding: 0 48px 0 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 14px;
  transition: all var(--transition);
}

.nav-search input::placeholder { color: var(--text-muted); }

.nav-search input:focus {
  border-color: var(--yellow);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px var(--yellow-dim);
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.search-btn:hover {
  background: var(--yellow-light);
  transform: translateY(-50%) scale(1.08);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all var(--transition-fast);
}

.nav-icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--yellow);
  background: var(--yellow-dim);
}

.nav-icon-btn .badge-count {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: var(--yellow);
  color: #000;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-user:hover {
  border-color: var(--yellow);
  background: var(--yellow-dim);
}

.nav-user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 13px;
  font-weight: 700;
}

.nav-user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── Theme Toggle Button ── */
.theme-toggle {
  position: relative;
  width: 54px;
  height: 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--yellow);
  background: var(--yellow-dim);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(24px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 899;
  backdrop-filter: blur(2px);
}
.mobile-nav-overlay.open { display: block; }

/* Mobile Nav Drawer */
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 0;
  z-index: 900;
  gap: 0;
  transform: translateX(-100%);
  opacity: 1;
  pointer-events: none;
  transition: transform var(--transition);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
  pointer-events: all;
}

/* Mobile nav header */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}
.mobile-nav-logo span { color: var(--yellow); }
.mobile-nav-close {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile search */
.mobile-nav-search {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-search input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}
.mobile-nav-search input:focus { border-color: var(--yellow); }
.mobile-search-btn {
  background: var(--yellow);
  border: none;
  border-radius: var(--radius-sm);
  color: #000;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 16px;
}

/* Mobile nav links */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px 12px;
  gap: 4px;
}
.mobile-nav-link {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.mobile-nav-link:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Mobile action buttons */
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.mobile-nav-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.mobile-nav-action-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.mobile-badge {
  background: var(--yellow);
  color: #000;
  border-radius: var(--radius-full);
  min-width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  margin-left: auto;
}

/* ═══════════════════════════════════
   HERO SECTION — Bento Grid
   ═══════════════════════════════════ */
.hero-section {
  padding: 100px 32px 60px;
  max-width: 1320px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  align-items: start;
}

/* Main Hero Card */
.hero-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  transition: box-shadow var(--transition);
}

.hero-main-card::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,183,49,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-main-card::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(79,195,247,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-main-card:hover {
  box-shadow: 0 8px 48px rgba(245,183,49,0.12);
}

.hero-content { position: relative; z-index: 1; }

.hero-tag { margin-bottom: 20px; }

.hero-title {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.hero-title .highlight {
  color: var(--yellow);
  display: inline-block;
}

.hero-spec {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 36px;
  padding: 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.spec-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1;
  min-width: 36px;
}

.spec-divider {
  width: 40px;
  height: 1px;
  background: var(--text-muted);
  margin-top: 14px;
}

.spec-text .spec-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.spec-text .spec-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent-green);
  color: #000;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: var(--shadow-cta);
}

.cta-btn-primary:hover {
  background: #c4ff5a;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168,255,62,0.4);
}

.cta-btn-primary .icon-circle {
  width: 30px; height: 30px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.cta-btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--yellow);
  background: var(--yellow-dim);
}

/* Hero Image */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,195,247,0.12) 0%, rgba(168,90,255,0.08) 50%, transparent 75%);
  z-index: 1;
  pointer-events: none;
}

.hero-img {
  width: 100%;
  max-width: 400px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 20px 60px rgba(79,195,247,0.5)) brightness(1.15) contrast(1.05);
  animation: float 4s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

.hero-float-badge {
  position: absolute;
  padding: 10px 16px;
  background: var(--float-badge-bg, rgba(20,20,20,0.9));
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
}

.hero-float-badge.top-right {
  top: 20px; right: 0;
  color: var(--yellow);
}

.hero-float-badge.bottom-left {
  bottom: 20px; left: 0;
  color: var(--accent-green);
}

.float-badge-val {
  font-size: 18px;
  font-weight: 800;
  display: block;
}

/* Social links */
.hero-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-social-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-social a {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.hero-social a:hover {
  color: var(--yellow);
  border-color: var(--yellow);
  background: var(--yellow-dim);
}

/* Hero Sidebar */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Sidebar Cards */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  transition: all var(--transition);
}

.sidebar-card:hover {
  border-color: var(--border-yellow);
  box-shadow: 0 4px 24px rgba(245,183,49,0.08);
  transform: translateY(-2px);
}

/* Brands Card */
.brands-mini-card .card-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.brand-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-dot {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.brand-dot {
  cursor: pointer;
}

.brand-dot:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: var(--yellow-dim);
}

.brand-dot.nvidia { border-color: rgba(118,185,0,0.3); color: #76b900; background: rgba(118,185,0,0.05); }
.brand-dot.amd { border-color: rgba(237,28,36,0.3); color: #ed1c24; background: rgba(237,28,36,0.05); }
.brand-dot.intel { border-color: rgba(0,113,197,0.3); color: #0071c5; background: rgba(0,113,197,0.05); }
.brand-dot.logitech { border-color: rgba(0,175,80,0.3); color: #00af50; background: rgba(0,175,80,0.05); }
.brand-dot.corsair { border-color: rgba(255,255,255,0.15); color: #ddd; background: rgba(255,255,255,0.03); }

/* New Product Card */
.new-product-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.new-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(245,183,49,0.12);
}

.new-product-card .card-inner {
  padding: 18px 20px;
}

.new-product-card .top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.new-product-card .product-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.new-product-card .product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--yellow);
}

.new-product-card .product-img-wrap {
  background: var(--bg-surface);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  overflow: hidden;
}

.new-product-card .product-img-wrap img {
  max-height: 130px;
  object-fit: contain;
  transition: transform var(--transition);
}

.new-product-card:hover .product-img-wrap img {
  transform: scale(1.06) translateY(-4px);
}

.arrow-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.arrow-btn:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #000;
}

/* Hot Deal Card */
.hot-deal-card {
  background: var(--hot-deal-bg, linear-gradient(135deg, #1a1a1a 0%, #111111 100%));
  border: 1px solid rgba(245,183,49,0.2);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hot-deal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(245,183,49,0.12);
}
  display: flex;
  align-items: center;
  gap: 16px;
}

.hot-deal-info { flex: 1; }

.hot-deal-info .hot-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hot-deal-info .hot-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hot-deal-info .hot-rating {
  font-size: 12px;
  color: var(--yellow);
}

.hot-deal-img {
  width: 80px; height: 80px;
  object-fit: contain;
}

/* Stats mini in hero */
.stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-mini-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  transition: all var(--transition);
}

.stat-mini-item:hover {
  border-color: var(--border-yellow);
  background: var(--yellow-dim);
}

.stat-mini-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--yellow);
  display: block;
}

.stat-mini-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

/* ═══════════════════════════════════
   CATEGORIES SECTION
   ═══════════════════════════════════ */
.categories-section {
  padding: 24px 0 40px;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-title span { color: var(--yellow); }

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.section-link:hover { color: var(--yellow); }

.categories-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.categories-row::-webkit-scrollbar { display: none; }

.category-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.category-chip:hover, .category-chip.active {
  border-color: var(--yellow);
  background: var(--yellow-dim);
  color: var(--yellow);
}

.category-chip.active {
  box-shadow: 0 0 0 1px var(--yellow);
}

.category-chip .cat-icon {
  font-size: 20px;
}

.category-chip .cat-name {
  font-size: 14px;
  font-weight: 600;
}

.category-chip .cat-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 2px;
}

/* ═══════════════════════════════════
   PRODUCTS SECTION
   ═══════════════════════════════════ */
.products-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px 60px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border-yellow);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--border-yellow);
}

.product-img-box {
  position: relative;
  background: var(--bg-surface);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  overflow: hidden;
}

.product-img-box img {
  max-height: 150px;
  object-fit: contain;
  transition: transform var(--transition);
}

.product-card:hover .product-img-box img {
  transform: scale(1.08) translateY(-6px);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.wishlist-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(20,20,20,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all var(--transition-fast);
  opacity: 0;
}

.product-card:hover .wishlist-btn { opacity: 1; }

.wishlist-btn:hover, .wishlist-btn.active {
  color: #ff4d6d;
  border-color: #ff4d6d;
  background: rgba(255,77,109,0.1);
}

.product-info {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 11px;
  font-weight: 600;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
  flex: 1;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.stars { font-size: 12px; color: var(--yellow); }

.rating-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.product-old-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}

.add-cart-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--yellow);
  color: #000;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
}

.add-cart-btn:hover {
  background: var(--yellow-light);
  transform: scale(1.04);
}

/* ═══════════════════════════════════
   RECENTLY VIEWED
   ═══════════════════════════════════ */
.recently-viewed-section {
  max-width: 1256px;
  margin: 0 auto 60px;
  padding: 0 32px;
}
.recently-viewed-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ═══════════════════════════════════
   STATS BANNER
   ═══════════════════════════════════ */
.thank-you-banner {
  margin: 0 32px 60px;
  max-width: 1256px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-card);
  border: 1px solid rgba(245,183,49,.15);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  text-align: center;
}
.thank-you-content { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.thank-you-text { font-size: 18px; font-weight: 600; color: var(--text-primary); line-height: 1.6; }
.thank-you-phone { font-size: 22px; font-weight: 800; color: var(--yellow); text-decoration: none; letter-spacing: .03em; }
.thank-you-phone:hover { opacity: .8; }

.stats-section {
  margin: 0 32px 60px;
  max-width: 1256px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,183,49,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 60%;
  background: var(--border);
}

.stat-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 36px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -1px;
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════
   BRANDS SECTION
   ═══════════════════════════════════ */
.brands-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px 60px;
}

.brands-scroll {
  display: flex;
  gap: 16px;
  align-items: center;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;
}

.brands-scroll::-webkit-scrollbar { display: none; }

.brand-item {
  flex-shrink: 0;
  padding: 16px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  cursor: pointer;
}

.brand-item:hover {
  border-color: var(--border-yellow);
  background: var(--yellow-dim);
}

.brand-item .brand-logo-icon {
  font-size: 24px;
}

.brand-item .brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.brand-item:hover .brand-name { color: var(--yellow); }

/* ═══════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════ */
.newsletter-section {
  max-width: 1256px;
  margin: 0 auto 80px;
  padding: 0 32px;
}

.newsletter-inner {
  background: linear-gradient(135deg, #141414 0%, #1a1610 100%);
  border: 1px solid rgba(245,183,49,0.25);
  border-radius: var(--radius-xl);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.newsletter-inner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,183,49,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-inner::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 30%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(168,255,62,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-tag {
  margin-bottom: 16px;
}

.newsletter-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.newsletter-title span { color: var(--yellow); }

.newsletter-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.newsletter-input-row {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  height: 52px;
  padding: 0 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 14px;
  transition: all var(--transition);
}

.newsletter-input::placeholder { color: var(--text-muted); }

.newsletter-input:focus {
  border-color: var(--yellow);
  background: rgba(245,183,49,0.05);
  box-shadow: 0 0 0 3px var(--yellow-dim);
}

.newsletter-btn {
  height: 52px;
  padding: 0 28px;
  background: var(--yellow);
  color: #000;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition);
}

.newsletter-btn:hover {
  background: var(--yellow-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,183,49,0.35);
}

.newsletter-note {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-logo-img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo-text {
  font-size: 18px;
  font-weight: 800;
}

.footer-logo-text span { color: var(--yellow); }

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  color: var(--yellow);
  border-color: var(--yellow);
  background: var(--yellow-dim);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid var(--border);
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom p span { color: var(--yellow); }

.footer-payments {
  display: flex;
  gap: 8px;
  align-items: center;
}

.payment-badge {
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ═══════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════
   CART TOAST
   ═══════════════════════════════════ */
.cart-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-yellow);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.cart-toast.show { transform: translateX(0); }

.cart-toast .toast-icon { font-size: 20px; }
.cart-toast .toast-text strong { color: var(--yellow); }

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .hero-main-card { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { order: -1; }
  .hero-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .stats-section { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-user-name { display: none; }

  .hero-section { padding: 90px 20px 40px; }
  .categories-section { padding-left: 20px; padding-right: 20px; }
  .products-section { padding: 0 20px 40px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .recently-viewed-section { padding: 0 20px; }
  .recently-viewed-grid { grid-template-columns: repeat(2, 1fr); }

  .newsletter-inner {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 28px;
  }
  .newsletter-input-row { flex-direction: column; }
  .newsletter-btn { height: 48px; }

  .stats-section { padding: 28px 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px 28px; }
  .footer-bottom { padding: 16px 20px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-sidebar { grid-template-columns: 1fr; }
  .stats-section { grid-template-columns: 1fr; }
  .stat-item::after { display: none; }

  .hero-main-card { padding: 28px 24px; }
  .brands-section { padding: 0 20px 40px; }
}

/* ═══════════════════════════════════
   SPLASH / LOADING
   ═══════════════════════════════════ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo { font-size: 36px; font-weight: 900; }
.loader-logo span { color: var(--yellow); }

.loader-bar {
  width: 200px; height: 3px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: var(--radius-full);
  animation: load 1.4s ease forwards;
}

@keyframes load {
  from { width: 0; }
  to { width: 100%; }
}

/* ═══════════════════════════════════
   LIGHT MODE — Specific Overrides
   ═══════════════════════════════════ */

/* Navbar light */
[data-theme="light"] {
  --navbar-bg:         rgba(242, 242, 245, 0.88);
  --navbar-scrolled-bg: rgba(255, 255, 255, 0.97);
  --mobile-nav-bg:     rgba(242, 242, 245, 0.98);
  --float-badge-bg:    rgba(255, 255, 255, 0.92);
  --hot-deal-bg:       linear-gradient(135deg, #f0f0f4 0%, #e8e8ec 100%);
}

[data-theme="light"] .navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

/* Hero — fix image blend mode on light bg */
[data-theme="light"] .hero-img {
  mix-blend-mode: multiply;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.25)) brightness(0.98);
}

[data-theme="light"] .hero-visual::before {
  background: radial-gradient(circle, rgba(79,195,247,0.08) 0%, rgba(168,90,255,0.05) 50%, transparent 75%);
}

/* Cards shadow on light */
[data-theme="light"] .product-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px var(--border-yellow);
}

[data-theme="light"] .sidebar-card:hover {
  box-shadow: 0 4px 24px rgba(245,183,49,0.15);
}

/* Newsletter light */
[data-theme="light"] .newsletter-inner {
  background: linear-gradient(135deg, #ffffff 0%, #fdfbf0 100%);
  border-color: rgba(245,183,49,0.3);
}

[data-theme="light"] .newsletter-inner::before {
  background: radial-gradient(circle, rgba(245,183,49,0.08) 0%, transparent 70%);
}

[data-theme="light"] .newsletter-input {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
  color: var(--text-primary);
}

[data-theme="light"] .newsletter-input:focus {
  background: rgba(245,183,49,0.04);
}

/* Stats section light */
[data-theme="light"] .stats-section {
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}

[data-theme="light"] .stats-section::before {
  background: linear-gradient(135deg, rgba(245,183,49,0.06) 0%, transparent 60%);
}

[data-theme="light"] .stat-item:not(:last-child)::after {
  background: rgba(0,0,0,0.08);
}

/* Footer light */
[data-theme="light"] footer {
  background: #FFFFFF;
  border-top-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .payment-badge {
  background: var(--bg-surface);
  border-color: rgba(0,0,0,0.1);
  color: var(--text-muted);
}

/* Cart toast light */
[data-theme="light"] .cart-toast {
  background: #FFFFFF;
  border-color: rgba(245,183,49,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  color: var(--text-primary);
}

/* Scrollbar light */
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-surface); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--bg-elevated); }

/* Page loader light */
[data-theme="light"] .page-loader {
  background: var(--bg-base);
  color: var(--text-primary);
}

/* Hero main card light */
[data-theme="light"] .hero-main-card:hover {
  box-shadow: 0 8px 48px rgba(245,183,49,0.15);
}

/* Stat mini items light */
[data-theme="light"] .stat-mini-item:hover {
  background: rgba(245,183,49,0.12);
}

/* Category chips light */
[data-theme="light"] .category-chip.active {
  box-shadow: 0 0 0 1px var(--yellow), 0 4px 16px rgba(245,183,49,0.2);
}

/* Brand items light */
[data-theme="light"] .brand-item:hover {
  background: rgba(245,183,49,0.08);
}

/* Search input light */
[data-theme="light"] .nav-search input {
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Hero spec box light */
[data-theme="light"] .hero-spec {
  background: rgba(255,255,255,0.7);
}

/* Theme toggle thumb shadow adjustment */
[data-theme="light"] .theme-toggle-thumb {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* --------------------------------------
   PRODUCT DETAIL MODAL
-------------------------------------- */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

[data-theme="light"] .product-modal-overlay {
  background: rgba(255, 255, 255, 0.5);
}

.product-modal-window {
  background: var(--bg-card);
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  position: relative;
  overflow-y: auto;
  transform: translateY(30px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.product-modal-overlay.active .product-modal-window {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--yellow);
  color: #000;
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

/* Modal Left: Visual */
.modal-visual {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-base) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.modal-img-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.modal-img-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  transition: transform 0.5s ease;
}

.modal-img-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--yellow-glow) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
}

/* Modal Right: Content */
.modal-content {
  padding: 60px;
  display: flex;
  flex-direction: column;
}

.modal-brand {
  color: var(--yellow);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  margin: 15px 0 8px;
}

.modal-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.modal-rating .stars {
  color: var(--yellow);
  font-size: 18px;
}

.modal-rating .rating-val {
  color: var(--text-muted);
  font-size: 14px;
}

.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 30px;
}

.modal-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-old-price {
  font-size: 20px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.modal-specs {
  margin-bottom: 40px;
}

.modal-specs h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.spec-item-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-item-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Modal Shipping */
.modal-shipping-info {
  margin-bottom: 28px;
}

.modal-shipping-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.modal-shipping-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-shipping-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.modal-shipping-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.modal-shipping-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 8px;
}

.modal-shipping-name {
  font-size: 13px;
  color: var(--text-secondary);
}

.modal-shipping-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  white-space: nowrap;
}

.modal-shipping-note {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 14px;
}

/* Modal Actions */
.modal-actions-box {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

.qty-selector {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 5px;
  border: 1px solid var(--border);
}

.qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-primary);
  font-size: 18px;
  transition: var(--transition);
}

.qty-btn:hover {
  color: var(--yellow);
}

.qty-input {
  width: 40px;
  text-align: center;
  background: transparent;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 16px;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.modal-add-cart {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  height: 52px;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: var(--transition);
}

.modal-add-cart:hover {
  border-color: var(--yellow);
  background: var(--yellow-dim);
}

.modal-buy-now {
  width: 100%;
  margin-top: 12px;
  background: var(--accent-green);
  color: #000;
  height: 52px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-cta);
}

.modal-buy-now:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Responsive Modal */
@media (max-width: 991px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal-visual { padding: 40px; }
  .modal-content { padding: 40px; }
  .modal-title { font-size: 26px; }
}

@media (max-width: 480px) {
  .product-modal-window { max-height: 95vh; }
  .modal-content { padding: 30px; }
  .modal-actions-box { flex-direction: column; }
  .qty-selector { justify-content: space-between; }
  .modal-price { font-size: 28px; }
  .specs-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   SIDE PANELS (Cart & Wishlist)
══════════════════════════════════════ */
.side-panel-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.side-panel-overlay.active {
  opacity: 1; pointer-events: all;
}
.side-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 100vw;
  background: var(--bg-card);
  border-left: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.side-panel-overlay.active .side-panel {
  transform: translateX(0);
}
.side-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.side-panel-header h3 {
  font-size: 18px; font-weight: 700; margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.panel-count {
  background: var(--yellow); color: #000;
  font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 2px 8px;
}
.side-panel-close {
  background: rgba(255,255,255,0.06); border: none;
  color: var(--text-primary); width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.side-panel-close:hover { background: rgba(255,255,255,0.14); }
.side-panel-body {
  flex: 1; overflow-y: auto; padding: 16px 24px;
}
.side-panel-footer {
  padding: 20px 24px; border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; font-size: 15px;
}
.cart-total-val { font-size: 20px; font-weight: 800; color: var(--yellow); }
.side-panel-checkout {
  width: 100%; padding: 14px; background: var(--yellow); color: #000;
  border: none; border-radius: var(--radius-md); font-size: 15px;
  font-weight: 700; cursor: pointer; transition: opacity 0.15s;
}
.side-panel-checkout:hover { opacity: 0.85; }

/* Cart item */
.cart-item {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 60px; height: 60px; object-fit: contain;
  background: var(--bg-surface); border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-brand { font-size: 11px; color: var(--yellow); font-weight: 600; }
.cart-item-name  { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.cart-item-qty   { font-size: 12px; color: var(--text-muted); }
.cart-item-remove {
  background: rgba(255,80,80,0.1); border: none; color: #ff5050;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.15s;
}
.cart-item-remove:hover { background: rgba(255,80,80,0.22); }

/* Wishlist item */
.wishlist-item {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.wishlist-item:last-child { border-bottom: none; }
.wishlist-item-img {
  width: 60px; height: 60px; object-fit: contain;
  background: var(--bg-surface); border-radius: var(--radius-sm); flex-shrink: 0;
}
.wishlist-item-info { flex: 1; min-width: 0; }
.wishlist-item-brand { font-size: 11px; color: var(--yellow); font-weight: 600; }
.wishlist-item-name  { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wishlist-item-price { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.wishlist-item-remove {
  background: rgba(255,80,80,0.1); border: none; color: #ff5050;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.15s;
}
.wishlist-item-remove:hover { background: rgba(255,80,80,0.22); }

.panel-empty {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.panel-empty-icon { font-size: 40px; margin-bottom: 12px; }
.panel-empty p { font-size: 15px; font-weight: 600; }
.panel-empty small { font-size: 13px; }

/* ── Shipping selector in cart ── */
.shipping-selector-wrap {
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(255,255,255,.03);
}
.shipping-selector-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 8px;
}
.shipping-wilaya-select {
  width: 100%; background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 13px; padding: 8px 10px;
  outline: none; cursor: pointer; margin-bottom: 10px;
}
.shipping-wilaya-select:focus { border-color: var(--yellow); }
.shipping-wilaya-select option { background: var(--bg-base); }
.shipping-methods-cart { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.shipping-method-option {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.08); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.shipping-method-option:hover { background: rgba(245,183,49,.06); border-color: rgba(245,183,49,.3); }
.shipping-method-option.selected { background: rgba(245,183,49,.1); border-color: var(--yellow); }
.shipping-method-option input[type="radio"] { accent-color: var(--yellow); flex-shrink: 0; }
.shipping-method-option-info { flex: 1; min-width: 0; }
.shipping-method-option-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.shipping-method-option-days { font-size: 11px; color: var(--text-muted); }
.shipping-method-option-price { font-size: 13px; font-weight: 700; color: var(--yellow); white-space: nowrap; }
.shipping-free-badge {
  font-size: 11px; font-weight: 700; color: #000;
  background: var(--yellow); border-radius: 4px; padding: 2px 6px;
}
.cart-total-row { margin-bottom: 10px; }

/* ═══════════════════════════════════
   PRODUCT MODAL — IMAGE GALLERY
   ═══════════════════════════════════ */
.modal-img-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.modal-nav-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  width: 36px; height: 36px;
  font-size: 16px; cursor: pointer;
  transition: all var(--transition-fast);
  display: flex; align-items: center; justify-content: center;
}
.modal-nav-btn:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: var(--yellow-dim);
}
.modal-gallery {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.modal-gallery::-webkit-scrollbar { height: 4px; }
.gallery-thumb {
  flex-shrink: 0;
  width: 60px; height: 60px;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition-fast);
  padding: 0;
}
.gallery-thumb:hover   { border-color: rgba(245,183,49,.5); }
.gallery-thumb.active  { border-color: var(--yellow); }
.gallery-thumb img     { width: 100%; height: 100%; object-fit: contain; }

/* ═══════════════════════════════════
   CHECKOUT MODAL
   ═══════════════════════════════════ */
.checkout-overlay {
  position: fixed; inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.checkout-overlay.active {
  opacity: 1; pointer-events: all;
}
.checkout-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 680px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.8);
  transform: translateY(20px);
  transition: transform var(--transition);
}
.checkout-overlay.active .checkout-modal { transform: translateY(0); }

.checkout-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
}
.checkout-modal-title {
  font-size: 16px; font-weight: 700; margin: 0;
}
.checkout-back-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: var(--radius-sm);
  padding: 6px 12px; font-size: 13px; cursor: pointer;
  transition: all var(--transition-fast); font-family: var(--font);
}
.checkout-back-btn:hover {
  border-color: var(--yellow); color: var(--yellow);
  background: var(--yellow-dim);
}

.checkout-modal-body {
  overflow-y: auto; padding: 24px;
  flex: 1;
}
.checkout-modal-body::-webkit-scrollbar { width: 6px; }

/* Summary box */
.checkout-summary-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px; margin-bottom: 20px;
}
.checkout-summary-title {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px;
}
.checkout-items-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.checkout-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; background: var(--bg-card);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.checkout-item-img {
  width: 48px; height: 48px; object-fit: contain;
  border-radius: 6px; background: var(--bg-elevated); flex-shrink: 0;
}
.checkout-item-details { flex: 1; min-width: 0; }
.checkout-item-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkout-item-qty  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.checkout-item-price{ font-size: 13px; font-weight: 700; color: var(--yellow); white-space: nowrap; }
.checkout-totals { border-top: 1px solid var(--border); padding-top: 12px; }
.checkout-total-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-secondary); margin-bottom: 6px;
}
.checkout-total-final {
  font-size: 16px; font-weight: 800;
  color: var(--text-primary); margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.checkout-total-final span:last-child { color: var(--yellow); }

/* Form */
.checkout-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: .05em;
  margin: 18px 0 10px;
}
.checkout-section-title span { font-size: 16px; }
.checkout-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.checkout-field { display: flex; flex-direction: column; gap: 6px; }
.checkout-field label {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.checkout-field input {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 11px 14px;
  color: var(--text-primary); font-size: 14px; font-family: var(--font);
  outline: none; transition: border-color var(--transition-fast);
}
.checkout-field input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-dim); }

/* Location display */
.checkout-location-display {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px;
}
.checkout-location-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 14px; flex: 1; min-width: 160px;
}
.checkout-location-icon { font-size: 20px; flex-shrink: 0; }
.checkout-location-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.checkout-location-val   { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* Payment option */
.checkout-payment-option {
  display: flex; align-items: center; gap: 14px;
  background: var(--yellow-dim); border: 1px solid var(--border-yellow);
  border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 4px;
}
.payment-option-icon { font-size: 28px; flex-shrink: 0; }
.payment-option-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.payment-option-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.payment-option-check {
  margin-left: auto; width: 24px; height: 24px;
  background: var(--yellow); color: #000; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; flex-shrink: 0;
}

/* Error */
.checkout-error {
  background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.3);
  color: #f87171; border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13px; margin: 12px 0 0;
  display: none;
}
.checkout-error.visible { display: block; }

/* Submit */
.checkout-submit-btn {
  width: 100%; margin-top: 18px;
  background: var(--accent-green); color: #000;
  border: none; border-radius: var(--radius-md);
  padding: 16px 24px; font-size: 16px; font-weight: 800;
  font-family: var(--font); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: all var(--transition); box-shadow: var(--shadow-cta);
}
.checkout-submit-btn:hover:not(:disabled) {
  background: #c4ff5a; transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168,255,62,.4);
}
.checkout-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.checkout-submit-arrow { font-size: 18px; }
.checkout-note {
  text-align: center; font-size: 12px; color: var(--text-muted);
  margin-top: 10px;
}

/* Success screen */
.checkout-success-screen {
  display: none; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 48px 32px; min-height: 400px;
}
.checkout-success-screen.active { display: flex; }
.checkout-success-anim {
  font-size: 72px; margin-bottom: 16px;
  animation: popIn .5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.checkout-success-title {
  font-size: 26px; font-weight: 900; margin-bottom: 6px;
  color: var(--accent-green);
}
.checkout-success-id {
  font-size: 14px; font-weight: 600; color: var(--yellow);
  background: var(--yellow-dim); border: 1px solid var(--border-yellow);
  border-radius: var(--radius-full); padding: 4px 16px; margin-bottom: 16px;
}
.checkout-success-msg {
  font-size: 14px; color: var(--text-secondary); max-width: 360px;
  line-height: 1.6; margin-bottom: 20px;
}
.checkout-success-details {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; width: 100%;
  max-width: 360px; margin-bottom: 24px;
}
.success-detail-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-secondary); margin-bottom: 8px;
  text-align: left;
}
.success-detail-row:last-child { margin-bottom: 0; }
.success-detail-row span:first-child { font-size: 18px; flex-shrink: 0; }
.checkout-success-close {
  background: var(--yellow); color: #000; font-weight: 700;
  border: none; border-radius: var(--radius-md); padding: 14px 32px;
  font-size: 15px; font-family: var(--font); cursor: pointer;
  transition: all var(--transition);
}
.checkout-success-close:hover { background: var(--yellow-light); transform: translateY(-2px); }

/* ═══════════════════════════════════
   MOBILE — Responsive Fixes
   ═══════════════════════════════════ */
@media (max-width: 768px) {

  /* Cart & Wishlist panels — full width */
  .side-panel {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 92vh;
    bottom: 0; top: auto;
  }
  .side-panel-overlay.active .side-panel {
    transform: translateY(0) !important;
  }

  /* Product modal — single column */
  .product-modal-window {
    max-width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 95vh;
    overflow-y: auto;
    margin-top: auto;
    width: 100%;
  }
  .product-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-grid {
    grid-template-columns: 1fr !important;
  }
  .modal-visual { order: -1; }
  .modal-img-container { max-height: 220px; }
  .modal-content { padding: 16px; }

  /* Checkout modal — full screen */
  .checkout-overlay { padding: 0; align-items: flex-end; }
  .checkout-modal {
    max-width: 100%; width: 100%;
    max-height: 95vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .checkout-form-row { grid-template-columns: 1fr; }
  .checkout-location-display { flex-direction: column; }
  .checkout-location-item { min-width: 0; }

  /* Hero — stack layout */
  .bento-grid { grid-template-columns: 1fr !important; }
  .hero-sidebar { display: none; }
  .hero-main-card { grid-template-columns: 1fr !important; padding: 28px 20px; }
  .hero-visual { display: none; }
  .hero-title { font-size: 32px; }

  /* Navbar */
  .nav-links { display: none; }
  .nav-search { display: none; }
  .nav-user-name { display: none; }
  .nav-mobile-toggle { display: block !important; }

  /* Stats grid */
  .stat-grid { grid-template-columns: 1fr 1fr; }

  /* Products grid */
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr !important; }
  .checkout-modal-header { flex-direction: column; gap: 10px; align-items: flex-start; }
}


/* ══════════════════════════════════════
   STOCK BADGE
══════════════════════════════════════ */
.stock-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  z-index: 3;
  letter-spacing: 0.3px;
}
.stock-out {
  background: #ff4d6d;
  color: #fff;
}
.stock-low {
  background: #f97316;
  color: #fff;
}
.product-card.out-of-stock {
  opacity: 0.7;
}
.product-card.out-of-stock .product-img-box img {
  filter: grayscale(60%);
}
.view-btn:disabled {
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

/* ══════════════════════════════════════
   SOCIAL PROOF (cards)
══════════════════════════════════════ */
.product-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.product-sold {
  font-size: 11px;
  color: var(--accent-green, #4ade80);
  font-weight: 600;
}
.product-viewing {
  font-size: 11px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   SOCIAL PROOF (modal)
══════════════════════════════════════ */
.modal-social-proof {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.modal-sold {
  font-size: 13px;
  color: var(--accent-green, #4ade80);
  font-weight: 600;
}
.modal-viewing {
  font-size: 12px;
  color: var(--text-muted);
}
.modal-low-stock {
  font-size: 12px;
  color: #f97316;
  font-weight: 700;
}

/* ══════════════════════════════════════
   RELATED PRODUCTS
══════════════════════════════════════ */
.modal-related {
  padding: 24px 40px 32px;
  border-top: 1px solid var(--border);
}
.modal-related-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.modal-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.related-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
}
.related-card.out-of-stock { opacity: 0.6; }
.related-card-img {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.related-card-img img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}
.related-card-info {
  padding: 10px;
}
.related-card-brand {
  font-size: 10px;
  color: var(--yellow);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.related-card-name {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-rating {
  font-size: 11px;
  color: var(--yellow);
  margin-bottom: 4px;
}
.related-card-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ══════════════════════════════════════
   PROMO CODE (checkout)
══════════════════════════════════════ */
.promo-code-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.promo-code-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  text-transform: uppercase;
}
.promo-code-input:focus {
  border-color: var(--yellow);
}
.promo-code-btn {
  background: var(--yellow);
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.promo-code-btn:hover { opacity: 0.85; }
.promo-code-feedback {
  font-size: 12px;
  margin-bottom: 12px;
  min-height: 18px;
}
.promo-success { color: var(--accent-green, #4ade80); }
.promo-error   { color: #ff4d6d; }

