/* ═══════════════════════════════════════════════════
   ATHARVA'S ELECTRONICS — Design System
   Palette: Volcanic Glass (Dark + Orange Accent)
   Fonts: Syne (Display) + DM Sans (Body)
═══════════════════════════════════════════════════ */

:root {
  --bg-primary: #111111;
  --bg-secondary: #1A1A1A;
  --bg-card: #1E1E1E;
  --bg-elevated: #252525;
  --bg-input: #2A2A2A;
  --accent: #FF6B2B;
  --accent-light: #FF8C55;
  --accent-glow: rgba(255, 107, 43, 0.25);
  --accent-subtle: rgba(255, 107, 43, 0.1);
  --text-primary: #F0EDE8;
  --text-secondary: #A09A92;
  --text-muted: #6B6560;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(255, 107, 43, 0.3);
  --success: #4CAF50;
  --warning: #FFC107;
  --danger: #F44336;
  --nav-height: 60px;
  --bottom-nav-height: 68px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-elevated: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-accent: 0 4px 20px rgba(255,107,43,0.3);
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }

/* ══════════════════════════════════════════
   SPLASH SCREEN
══════════════════════════════════════════ */
#splash-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#splash-screen.fade-out { opacity: 0; visibility: hidden; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.splash-logo {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-primary);
  animation: splashPop 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.splash-logo svg { animation: splashRotate 0.8s ease forwards; }
.splash-bar {
  width: 200px; height: 3px;
  background: var(--bg-elevated);
  border-radius: 3px; overflow: hidden;
}
.splash-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 3px;
  animation: splashLoad 1.8s ease forwards;
}
@keyframes splashPop { from { opacity:0; transform:scale(0.8); } to { opacity:1; transform:scale(1); } }
@keyframes splashRotate { from { transform:rotate(-10deg); } to { transform:rotate(0); } }
@keyframes splashLoad { from { width:0; } to { width:100%; } }

/* ══════════════════════════════════════════
   APP WRAPPER
══════════════════════════════════════════ */
#app { display: flex; flex-direction: column; min-height: 100vh; }
#app.hidden { display: none; }

/* ══════════════════════════════════════════
   TOP NAV
══════════════════════════════════════════ */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  transition: box-shadow var(--transition);
}
.top-nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.nav-left, .nav-right { display: flex; align-items: center; gap: 8px; }
.nav-menu-btn {
  width: 40px; height: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-menu-btn:hover { background: var(--bg-elevated); }
.nav-menu-btn span {
  display: block; width: 20px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: var(--transition);
}
.nav-brand {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-primary);
}
.nav-icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.nav-icon-btn:hover { background: var(--bg-elevated); color: var(--accent); }
.cart-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  background: var(--accent); color: white;
  font-size: 0.65rem; font-weight: 700;
  border-radius: 9px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-primary);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.cart-badge.bump { transform: scale(1.4); }

/* ══════════════════════════════════════════
   SIDE DRAWER
══════════════════════════════════════════ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.side-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 201;
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.side-drawer.open { transform: translateX(0); }
.drawer-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-brand { display: flex; align-items: center; gap: 12px; }
.drawer-brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-primary);
}
.drawer-brand-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.drawer-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}
.drawer-close:hover { background: var(--bg-elevated); color: var(--text-primary); }
.drawer-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.drawer-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.drawer-link:hover { background: var(--bg-elevated); color: var(--text-primary); }
.drawer-link.active { background: var(--accent-subtle); color: var(--accent); }
.drawer-link svg { flex-shrink: 0; }
.drawer-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}
.drawer-footer-text { font-size: 0.75rem; color: var(--text-muted); text-align: center; }

/* ══════════════════════════════════════════
   SEARCH OVERLAY
══════════════════════════════════════════ */
.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  overflow-y: auto;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-container {
  max-width: 600px; margin: 0 auto;
  padding: 80px 20px 40px;
}
.search-bar-wrap {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px 18px;
  transition: border-color var(--transition);
}
.search-bar-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.search-bar-wrap svg { color: var(--text-muted); flex-shrink: 0; }
#search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 1rem;
  font-family: var(--font-body);
}
#search-input::placeholder { color: var(--text-muted); }
.search-close-btn {
  color: var(--text-muted); font-size: 1rem;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}
.search-close-btn:hover { background: var(--bg-elevated); color: var(--text-primary); }
.search-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 20px;
}
.search-tag {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem; color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.search-tag:hover { background: var(--accent-subtle); border-color: var(--border-accent); color: var(--accent); }
.search-results { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.search-result-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}
.search-result-item:hover { border-color: var(--border-accent); background: var(--bg-elevated); }
.search-result-img {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
  background: var(--bg-elevated);
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-cat { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.search-result-price { font-size: 0.95rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.search-no-results { text-align: center; color: var(--text-muted); padding: 40px 0; font-size: 0.9rem; }

/* ══════════════════════════════════════════
   PAGE CONTAINER
══════════════════════════════════════════ */
.page-container {
  flex: 1;
  margin-top: var(--nav-height);
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
}
.page { display: none; }
.page.active { display: block; animation: pageFadeIn 0.3s ease; }
@keyframes pageFadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ══════════════════════════════════════════
   HOME — HERO
══════════════════════════════════════════ */
.hero-section {
  position: relative; overflow: hidden;
  min-height: 420px;
  background: linear-gradient(135deg, #0D0D0D 0%, #1A1008 50%, #0D0D0D 100%);
  padding: 40px 20px 32px;
  display: flex; flex-direction: column; gap: 32px;
}
.hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,107,43,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,43,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  animation: fadeSlideUp 0.5s ease 0.2s both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  animation: fadeSlideUp 0.5s ease 0.3s both;
}
.hero-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  margin-top: 12px;
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6;
  animation: fadeSlideUp 0.5s ease 0.4s both;
}
.hero-actions {
  display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap;
  animation: fadeSlideUp 0.5s ease 0.5s both;
}
.hero-visual {
  position: relative; z-index: 1;
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: none;
}
.hero-visual::-webkit-scrollbar { display: none; }
.hero-card-float {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 150px;
  box-shadow: var(--shadow-card);
  animation: heroCardFloat 0.6s ease both;
}
.hero-card-float.card-1 { animation-delay: 0.4s; }
.hero-card-float.card-2 { animation-delay: 0.55s; }
.hero-card-float.card-3 { animation-delay: 0.7s; }
.hero-card-float img { width: 100%; height: 110px; object-fit: cover; }
.hero-card-info {
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-card-info span:first-child { font-size: 0.75rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-tag { font-size: 0.85rem; font-weight: 700; color: var(--accent); }
@keyframes heroCardFloat { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeSlideUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

/* ══════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════ */
.stats-bar {
  display: flex; align-items: center; justify-content: space-around;
  padding: 20px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 800;
  color: var(--accent);
}
.stat-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* ══════════════════════════════════════════
   SECTION WRAPPERS
══════════════════════════════════════════ */
.section-wrap { padding: 28px 16px 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: var(--text-primary);
}
.see-all-btn {
  font-size: 0.82rem; font-weight: 600;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.see-all-btn:hover { background: var(--accent-subtle); }

/* ══════════════════════════════════════════
   CATEGORIES SCROLL
══════════════════════════════════════════ */
.categories-scroll {
  display: flex; gap: 12px;
  overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.category-chip {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  min-width: 90px;
}
.category-chip:hover, .category-chip.active {
  background: var(--accent-subtle);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.category-chip-icon { font-size: 1.8rem; }
.category-chip-name { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.category-chip:hover .category-chip-name,
.category-chip.active .category-chip-name { color: var(--accent); }

/* ══════════════════════════════════════════
   PRODUCTS GRID
══════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.products-grid-full {
  padding: 0 16px;
  grid-template-columns: repeat(2, 1fr);
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  animation: cardReveal 0.4s ease both;
}
.product-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.product-card:active { transform: scale(0.97); }
@keyframes cardReveal { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-elevated);
  overflow: hidden;
}
.product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-sale { background: var(--danger); color: white; }
.badge-new { background: var(--success); color: white; }
.badge-hot { background: var(--accent); color: white; }
.badge-top { background: var(--warning); color: #111; }
.product-wishlist {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  background: rgba(17,17,17,0.8);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
  opacity: 0;
}
.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist:hover { background: var(--accent); transform: scale(1.1); }
.product-info { padding: 12px; }
.product-category { font-size: 0.68rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.product-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.stars { font-size: 0.7rem; color: var(--warning); }
.rating-count { font-size: 0.68rem; color: var(--text-muted); }
.product-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.product-price { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--accent); }
.product-original-price { font-size: 0.75rem; color: var(--text-muted); text-decoration: line-through; }
.product-stock { font-size: 0.68rem; margin-top: 4px; }
.in-stock { color: var(--success); }
.low-stock { color: var(--warning); }
.out-stock { color: var(--danger); }
.product-add-btn {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem; font-weight: 300;
  transition: all var(--transition);
  flex-shrink: 0;
}
.product-add-btn:hover { background: var(--accent-light); transform: scale(1.1); box-shadow: var(--shadow-accent); }
.product-add-btn:active { transform: scale(0.9); }

/* ══════════════════════════════════════════
   DEAL BANNER
══════════════════════════════════════════ */
.deal-banner {
  margin: 28px 16px 0;
  background: linear-gradient(135deg, #1A0A00, #2D1200);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex; align-items: center; justify-content: space-between;
  overflow: hidden; position: relative;
}
.deal-banner::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,107,43,0.15), transparent 70%);
  border-radius: 50%;
}
.deal-content { position: relative; z-index: 1; }
.deal-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent);
  border-radius: 6px;
  font-size: 0.65rem; font-weight: 800;
  color: white; letter-spacing: 1px;
  margin-bottom: 10px;
}
.deal-title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-primary); line-height: 1.3;
  margin-bottom: 6px;
}
.deal-sub { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 16px; }
.deal-visual { font-size: 3.5rem; position: relative; z-index: 1; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: var(--shadow-accent); }
.btn-primary:active { transform: scale(0.97); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }

/* ══════════════════════════════════════════
   PRODUCTS PAGE
══════════════════════════════════════════ */
.products-page-header {
  padding: 20px 16px 0;
  position: sticky; top: var(--nav-height); z-index: 50;
  background: var(--bg-primary);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.products-controls { display: flex; flex-direction: column; gap: 10px; }
.filter-scroll {
  display: flex; gap: 8px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--border-accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); border-color: var(--accent); color: white; }
.sort-wrap { display: flex; justify-content: flex-end; }
.sort-select {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--accent); }
.products-count {
  padding: 10px 16px;
  font-size: 0.78rem; color: var(--text-muted);
}
.load-more-wrap { padding: 24px 16px; display: flex; justify-content: center; }
.btn-load-more {
  padding: 14px 32px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.btn-load-more:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }

/* ══════════════════════════════════════════
   PRODUCT DETAIL PAGE
══════════════════════════════════════════ */
.back-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 16px 16px 8px;
  color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition);
}
.back-btn:hover { color: var(--accent); }
.detail-container { padding: 0 0 24px; }
.detail-img-gallery {
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
}
.detail-main-img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
}
.detail-img-thumbs {
  display: flex; gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.detail-img-thumbs::-webkit-scrollbar { display: none; }
.detail-thumb {
  width: 60px; height: 60px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
  opacity: 0.6;
}
.detail-thumb.active { border-color: var(--accent); opacity: 1; }
.detail-info { padding: 16px; }
.detail-category { font-size: 0.75rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-name {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800;
  color: var(--text-primary); line-height: 1.2;
  margin-top: 6px;
}
.detail-rating-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.detail-stars { font-size: 0.9rem; color: var(--warning); }
.detail-rating-num { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.detail-reviews { font-size: 0.8rem; color: var(--text-muted); }
.detail-price-row { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; }
.detail-price {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: var(--accent);
}
.detail-original { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; }
.detail-discount {
  padding: 4px 10px;
  background: rgba(76,175,80,0.15);
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: 6px;
  font-size: 0.8rem; font-weight: 700; color: var(--success);
}
.detail-desc { margin-top: 16px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.detail-specs {
  margin-top: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.detail-specs-title {
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--text-muted); }
.spec-val { color: var(--text-primary); font-weight: 500; text-align: right; }
.detail-qty-row {
  display: flex; align-items: center; gap: 16px;
  margin-top: 20px;
}
.detail-qty-label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.qty-control {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qty-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary); font-size: 1.2rem;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--bg-elevated); color: var(--accent); }
.qty-num {
  width: 44px; text-align: center;
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-primary);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 10px 0;
}
.detail-actions { display: flex; gap: 12px; margin-top: 20px; }
.btn-add-cart {
  flex: 1;
  padding: 16px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-md);
  font-size: 1rem; font-weight: 700;
  font-family: var(--font-body);
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-add-cart:hover { background: var(--accent-light); box-shadow: var(--shadow-accent); }
.btn-add-cart:active { transform: scale(0.97); }
.btn-wishlist-detail {
  width: 52px; height: 52px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  transition: all var(--transition);
}
.btn-wishlist-detail:hover { border-color: var(--accent); background: var(--accent-subtle); }

/* ══════════════════════════════════════════
   CART PAGE
══════════════════════════════════════════ */
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px 12px;
}
.cart-count-label { font-size: 0.82rem; color: var(--text-muted); }
.cart-container { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px; text-align: center; gap: 12px;
}
.cart-empty-icon { font-size: 4rem; }
.cart-empty h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.cart-empty p { font-size: 0.85rem; color: var(--text-muted); }
.cart-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  animation: cardReveal 0.3s ease both;
  transition: border-color var(--transition);
}
.cart-item:hover { border-color: var(--border-accent); }
.cart-item-img {
  width: 80px; height: 80px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-elevated);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.cart-item-cat { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.cart-item-price { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--accent); margin-top: 8px; }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.cart-qty-control {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cart-qty-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary); font-size: 1rem;
  transition: background var(--transition);
}
.cart-qty-btn:hover { background: var(--bg-card); color: var(--accent); }
.cart-qty-num {
  width: 36px; text-align: center;
  font-size: 0.85rem; font-weight: 700;
  color: var(--text-primary);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 6px 0;
}
.cart-item-remove {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 0.85rem;
  transition: all var(--transition);
}
.cart-item-remove:hover { background: rgba(244,67,54,0.1); color: var(--danger); }
.cart-summary { padding: 20px 16px; }
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
}
.summary-title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 16px;
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 0.88rem;
}
.summary-row span:first-child { color: var(--text-secondary); }
.summary-row span:last-child { color: var(--text-primary); font-weight: 500; }
.free-tag { color: var(--success) !important; font-weight: 700 !important; }
.discount-tag { color: var(--success) !important; font-weight: 700 !important; }
.summary-divider { height: 1px; background: var(--border); margin: 10px 0; }
.total-row span { font-family: var(--font-display); font-size: 1.1rem !important; font-weight: 800 !important; }
.total-row span:last-child { color: var(--accent) !important; }
.btn-checkout {
  width: 100%; margin-top: 16px;
  padding: 16px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-md);
  font-size: 1rem; font-weight: 700;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.btn-checkout:hover { background: var(--accent-light); box-shadow: var(--shadow-accent); }
.btn-continue {
  width: 100%; margin-top: 10px;
  padding: 14px;
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.btn-continue:hover { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════════
   SUCCESS PAGE
══════════════════════════════════════════ */
.success-container {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 24px; text-align: center; gap: 16px;
}
.success-icon { font-size: 5rem; animation: successPop 0.6s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes successPop { from { transform:scale(0); } to { transform:scale(1); } }
.success-title {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800; color: var(--text-primary);
}
.success-sub { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.success-order-id {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.82rem; color: var(--text-muted);
  font-family: monospace;
}

/* ══════════════════════════════════════════
   BOTTOM NAV
══════════════════════════════════════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--bottom-nav-height);
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.65rem; font-weight: 600;
  transition: all var(--transition);
  position: relative;
}
.bottom-nav-btn:hover { color: var(--text-secondary); }
.bottom-nav-btn.active { color: var(--accent); }
.bottom-nav-btn.active svg { filter: drop-shadow(0 0 6px rgba(255,107,43,0.5)); }
.bottom-cart-wrap { position: relative; }
.bottom-cart-badge {
  position: absolute; top: -6px; right: -8px;
  min-width: 16px; height: 16px;
  background: var(--accent); color: white;
  font-size: 0.6rem; font-weight: 700;
  border-radius: 8px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-primary);
}

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: calc(var(--bottom-nav-height) + 16px); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0; visibility: hidden;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 500;
  box-shadow: var(--shadow-elevated);
  max-width: calc(100vw - 32px);
}
.toast.show {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: rgba(76,175,80,0.4); }
.toast.error { border-color: rgba(244,67,54,0.4); }

/* ══════════════════════════════════════════
   RESPONSIVE — Tablet
══════════════════════════════════════════ */
@media (min-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid-full { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 3.2rem; }
}
@media (min-width: 768px) {
  .products-grid-full { grid-template-columns: repeat(4, 1fr); }
  .hero-section { flex-direction: row; align-items: center; min-height: 500px; padding: 60px 32px; }
  .hero-content { flex: 1; }
  .hero-visual { flex: 1; justify-content: flex-end; }
  .detail-container { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .detail-img-gallery { border-radius: 0; }
}

/* ══════════════════════════════════════════
   UTILITY
══════════════════════════════════════════ */
.hidden { display: none !important; }
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }