/* ============================================================
   FinalGrow – Main Stylesheet
   Dark Theme | Glassmorphism | Premium Electronics Store
   ============================================================ */

/* ── Variables ── */
:root {
  --bg-primary:    #0a0a14;
  --bg-secondary:  #111120;
  --bg-card:       #16162a;
  --bg-glass:      rgba(22, 22, 42, 0.85);
  --border-color:  rgba(108, 63, 197, 0.2);
  --border-light:  rgba(255,255,255,0.06);

  --purple:        #6c3fc5;
  --purple-light:  #8b5cf6;
  --purple-dark:   #4c2a9e;
  --orange:        #f97316;
  --orange-light:  #fb923c;
  --green:         #22c55e;
  --red:           #ef4444;
  --yellow:        #eab308;

  --text-primary:  #f1f0ff;
  --text-secondary:#a09dc0;
  --text-muted:    #6b6890;

  --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

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

  --shadow-sm:     0 2px 12px rgba(0,0,0,0.3);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:     0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow:   0 0 30px rgba(108, 63, 197, 0.25);

  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-h:      70px;
  --cat-bar-h:     48px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, select, textarea { font-family: var(--font); }
ul { list-style: none; }

/* ── Background Gradient ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(108,63,197,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(249,115,22,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

/* ── Main Content ── */
.main-content {
  padding-top: calc(var(--navbar-h) + var(--cat-bar-h) + 20px);
  min-height: 70vh;
  position: relative;
  z-index: 1;
}

/* ── Flash Message ── */
.flash-message {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(20px);
  border: 1px solid;
  animation: slideDown 0.4s ease;
  max-width: 380px;
}
.flash-message svg { width: 18px; height: 18px; flex-shrink: 0; }
.flash-message button { margin-left: auto; opacity: 0.7; transition: var(--transition); }
.flash-message button:hover { opacity: 1; }
.flash-success {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.4);
  color: #86efac;
}
.flash-error {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.4);
  color: #fca5a5;
}
.flash-info {
  background: rgba(108,63,197,0.15);
  border-color: rgba(108,63,197,0.4);
  color: #c4b5fd;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,20,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; color: #fff; }
.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.logo-accent { color: var(--orange); }

/* Search */
.nav-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: var(--transition);
}
.nav-search:focus-within {
  border-color: var(--purple);
  background: rgba(108,63,197,0.08);
  box-shadow: 0 0 0 3px rgba(108,63,197,0.15);
}
.nav-search input {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search button {
  padding: 10px 16px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-search button:hover { color: var(--purple-light); }
.nav-search button svg { width: 18px; height: 18px; }

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-btn svg { width: 20px; height: 20px; }
.nav-btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}
.nav-btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.nav-btn-label { display: none; }
@media (min-width: 768px) { .nav-btn-label { display: inline; } }

.nav-btn-cart {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  position: relative;
  padding: 10px 14px;
}
.nav-btn-cart:hover {
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-primary);
}

/* Category Bar */
.category-bar {
  background: rgba(10,10,20,0.8);
  border-top: 1px solid var(--border-light);
  height: var(--cat-bar-h);
  display: flex;
  align-items: center;
  overflow-x: auto;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cat-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition);
}
.cat-link svg { width: 15px; height: 15px; }
.cat-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.cat-link.active { color: var(--purple-light); background: rgba(108,63,197,0.15); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 640px) { .hamburger { display: flex; } }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin: 0 20px 48px;
  min-height: 440px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0a3e 0%, #0a1628 50%, #0a0a14 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(108,63,197,0.4) 0%, transparent 70%),
    radial-gradient(ellipse at 70% 20%, rgba(249,115,22,0.25) 0%, transparent 60%);
}
.hero-pattern {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236c3fc5' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 48px;
  max-width: 600px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108,63,197,0.2);
  border: 1px solid rgba(108,63,197,0.4);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 420px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,63,197,0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,63,197,0.5);
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.btn-orange {
  background: linear-gradient(135deg, var(--orange), #ea580c);
  color: #fff;
  box-shadow: 0 4px 20px rgba(249,115,22,0.4);
}
.btn-orange:hover {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249,115,22,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  border-color: var(--purple);
  background: rgba(108,63,197,0.1);
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-label { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section-title span { color: var(--purple-light); }
.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.section-link:hover { color: var(--orange); gap: 8px; }
.section-link svg { width: 16px; height: 16px; }

/* ============================================================
   PRODUCT GRID & CARDS
   ============================================================ */
.products-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108,63,197,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--shadow-glow);
}
.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(22,22,42,1), rgba(10,10,20,1));
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

/* Badges */
.badge-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--orange), #ea580c);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-featured {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(108,63,197,0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* Quick Add overlay */
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.product-card:hover .product-card-overlay { opacity: 1; }

.product-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.stars { color: var(--yellow); font-size: 13px; letter-spacing: 1px; }
.rating-count { font-size: 12px; color: var(--text-muted); }
.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.price-current {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}
.price-original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-discount {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: rgba(34,197,94,0.12);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}
.product-card-footer {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.btn-add-cart {
  flex: 1;
  padding: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-add-cart:hover {
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  transform: translateY(-1px);
}
.btn-add-cart svg { width: 16px; height: 16px; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 48px;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.category-card:hover {
  border-color: rgba(108,63,197,0.5);
  background: rgba(108,63,197,0.08);
  transform: translateY(-3px);
}
.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
}
.category-icon svg { width: 26px; height: 26px; }
.cat-purple { background: rgba(108,63,197,0.2); color: var(--purple-light); }
.cat-orange { background: rgba(249,115,22,0.2); color: var(--orange-light); }
.cat-green  { background: rgba(34,197,94,0.2); color: #4ade80; }
.cat-blue   { background: rgba(59,130,246,0.2); color: #93c5fd; }
.cat-yellow { background: rgba(234,179,8,0.2); color: #fde047; }
.category-card h3 { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 48px;
}
.promo-card {
  background: linear-gradient(135deg, rgba(108,63,197,0.2), rgba(249,115,22,0.1));
  border: 1px solid rgba(108,63,197,0.3);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  position: relative;
}
.promo-card::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(249,115,22,0.15), transparent 70%);
}
.promo-content h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 900; margin-bottom: 8px; }
.promo-content p { color: var(--text-secondary); font-size: 15px; }
.promo-price {
  font-size: 14px;
  color: var(--orange);
  font-weight: 600;
  margin-top: 8px;
}
.promo-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 28px 20px;
  margin-bottom: 48px;
}
.features-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.feature-text p { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   PAGE INNER / CARDS
   ============================================================ */
.page-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--purple);
  background: rgba(108,63,197,0.08);
  box-shadow: 0 0 0 3px rgba(108,63,197,0.15);
}
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input { appearance: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 768px) { .product-detail { grid-template-columns: 1fr; } }
.product-image-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image-box img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info { display: flex; flex-direction: column; gap: 16px; }
.product-detail-name { font-size: 28px; font-weight: 800; line-height: 1.2; }
.product-detail-price .price-current { font-size: 32px; }
.qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { background: rgba(108,63,197,0.2); border-color: var(--purple); }
.qty-input {
  width: 60px;
  text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  padding: 8px;
}
.product-detail-desc { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.product-detail-desc h3 { color: var(--text-primary); font-size: 16px; margin-bottom: 8px; margin-top: 12px; }
.product-detail-desc ul { padding-left: 20px; list-style: disc; color: var(--text-secondary); }
.product-detail-desc li { margin-bottom: 4px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--purple-light); }
.breadcrumb-sep { color: var(--text-muted); opacity: 0.4; }
.breadcrumb-current { color: var(--text-secondary); }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkout-section-title svg { width: 20px; height: 20px; color: var(--purple-light); }

/* Order Summary Panel */
.order-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--navbar-h) + var(--cat-bar-h) + 20px);
  height: fit-content;
}
.order-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.order-item:last-child { border-bottom: none; }
.order-item-img {
  width: 50px; height: 50px;
  border-radius: 10px;
  background: var(--bg-secondary);
  overflow: hidden;
  flex-shrink: 0;
}
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-info { flex: 1; min-width: 0; }
.order-item-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-item-qty { font-size: 12px; color: var(--text-muted); }
.order-item-price { font-size: 14px; font-weight: 700; flex-shrink: 0; }
.order-totals { margin-top: 16px; }
.order-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  color: var(--text-secondary);
}
.order-row.total {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
  padding-top: 14px;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-state-icon {
  width: 80px; height: 80px;
  background: rgba(108,63,197,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.empty-state-icon svg { width: 36px; height: 36px; color: var(--purple-light); }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); font-size: 14px; max-width: 320px; margin: 0 auto 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-light); }
.footer-top { padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer-logo .logo-icon { width: 34px; height: 34px; border-radius: 9px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; max-width: 260px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-social a:hover {
  background: rgba(108,63,197,0.2);
  border-color: var(--purple);
  color: var(--purple-light);
}
.footer-social a svg { width: 16px; height: 16px; }

.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--purple-light); padding-left: 4px; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.footer-contact li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--purple-light); }
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--purple-light); }

.payment-icons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pay-badge {
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 20px 0;
  display: flex;
  align-items: center;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 12px; color: var(--text-muted); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--purple-light); }

/* ============================================================
   POLICY PAGES
   ============================================================ */
.policy-page { max-width: 800px; margin: 0 auto; padding: 0 20px 60px; }
.policy-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.policy-header h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin-bottom: 8px; }
.policy-date { font-size: 13px; color: var(--text-muted); }
.policy-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--purple-light);
}
.policy-content h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; }
.policy-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; }
.policy-content ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.policy-content ul li { margin-bottom: 6px; }
.policy-content a { color: var(--purple-light); }
.policy-content a:hover { text-decoration: underline; }

/* ============================================================
   AUTH PAGES (Login/Register)
   ============================================================ */
.auth-page {
  min-height: calc(100vh - var(--navbar-h) - var(--cat-bar-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}
.auth-tabs { display: flex; margin-bottom: 28px; border-bottom: 1px solid var(--border-light); }
.auth-tab {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}
.auth-tab.active {
  color: var(--purple-light);
  border-bottom-color: var(--purple);
}
.auth-form { display: none; }
.auth-form.active { display: block; }

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 768px) { .account-layout { grid-template-columns: 1fr; } }
.account-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  height: fit-content;
}
.account-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.account-nav-item svg { width: 18px; height: 18px; }
.account-nav-item:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.account-nav-item.active { color: var(--purple-light); background: rgba(108,63,197,0.12); }

/* ============================================================
   ORDER STATUS BADGES
   ============================================================ */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.status-pending   { background: rgba(234,179,8,0.15);   color: #fde047; }
.status-processing{ background: rgba(59,130,246,0.15);  color: #93c5fd; }
.status-shipped   { background: rgba(168,85,247,0.15);  color: #d8b4fe; }
.status-delivered { background: rgba(34,197,94,0.15);   color: #86efac; }
.status-cancelled { background: rgba(239,68,68,0.15);   color: #fca5a5; }
.status-refunded  { background: rgba(249,115,22,0.15);  color: #fdba74; }
.status-paid      { background: rgba(34,197,94,0.15);   color: #86efac; }
.status-failed    { background: rgba(239,68,68,0.15);   color: #fca5a5; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.contact-info-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(108,63,197,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; color: var(--purple-light); }

/* ============================================================
   SPINNER / LOADING
   ============================================================ */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE UTILS
   ============================================================ */
@media (max-width: 768px) {
  .hero { margin: 0 12px 32px; min-height: 300px; }
  .hero-content { padding: 40px 24px; }
  .nav-search { display: none; }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .main-content { padding-top: calc(var(--navbar-h) + var(--cat-bar-h) + 12px); }
}
@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MISC
   ============================================================ */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 24px 0;
}
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: rgba(108,63,197,0.15);
  color: var(--purple-light);
  border: 1px solid rgba(108,63,197,0.25);
}
.no-products {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.section-divider {
  padding: 0 20px 48px;
  max-width: 1280px;
  margin: 0 auto;
}
