/* ═══════════════════════════════════════════════
   SOUNDFORGE — Dark Music Store — style.css
   ═══════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg-deepest:   #080b0f;
  --bg-dark:      #0e1318;
  --bg-card:      #131a22;
  --bg-card-2:    #1a2230;
  --bg-sidebar:   #0c1117;
  --border:       #1e2d3d;
  --border-light: #253344;

  --accent:       #e8a020;
  --accent-dim:   #b87c18;
  --accent-glow:  rgba(232,160,32,0.18);
  --accent-2:     #00c6b8;
  --accent-2-dim: #009e93;

  --text-primary:   #eef2f7;
  --text-secondary: #8fa3b8;
  --text-muted:     #4a6070;
  --text-accent:    #e8a020;

  --danger:  #e84545;
  --success: #2ed573;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Rajdhani', sans-serif;
  --font-mono:    'Courier Prime', monospace;

  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.7);

  --sidebar-w:    260px;
  --nav-h:        64px;
  --topbar-h:     36px;
  --transition:   0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deepest);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dim); }

ul { list-style: none; padding: 0; margin: 0; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ═══════════════════════════════════
   TOPBAR
═══════════════════════════════════ */
.topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.topbar i { color: var(--accent); margin-right: 6px; }

/* ═══════════════════════════════════
   NAVBAR
═══════════════════════════════════ */
.main-nav {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 1040;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-icon { font-size: 22px; color: var(--accent); animation: spin-slow 8s linear infinite; display: inline-block; }
.brand-text {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  line-height: 1;
}
.brand-accent { color: var(--accent); }
@keyframes spin-slow { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* Search */
.search-input {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  height: 40px;
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius) !important;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  background: var(--bg-card-2);
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow);
  color: var(--text-primary);
  outline: none;
}

.btn-search {
  background: var(--accent);
  border: none;
  color: var(--bg-deepest);
  height: 40px;
  padding: 0 16px;
  font-size: 16px;
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  transition: background var(--transition);
}
.btn-search:hover { background: var(--accent-dim); }

/* Search dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-card-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  z-index: 2000;
  display: none;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-card); }
.search-result-item .sri-icon { font-size: 20px; color: var(--accent); }
.search-result-item .sri-info { flex: 1; }
.search-result-item .sri-name { font-weight: 600; font-size: 14px; }
.search-result-item .sri-price { color: var(--accent); font-family: var(--font-mono); font-size: 13px; }

/* Nav buttons */
.nav-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 38px; height: 38px;
  padding: 0;
  border-radius: var(--radius);
  position: relative;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.nav-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

.badge-dot {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
}

.btn-cart {
  background: var(--accent);
  border: none;
  color: var(--bg-deepest);
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: var(--font-body);
  display: flex; align-items: center; gap: 8px;
  font-size: 17px;
  transition: all var(--transition);
  position: relative;
}
.btn-cart:hover { background: var(--accent-dim); transform: translateY(-1px); }

.cart-count {
  background: var(--bg-deepest);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.btn-sidebar-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 38px; height: 38px;
  padding: 0;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
}
.btn-sidebar-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Mobile search bar */
.mobile-search-bar {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  display: none;
}
.mobile-search-bar.visible { display: block; }

/* ═══════════════════════════════════
   CART DRAWER
═══════════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1060;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  max-width: 95vw;
  background: var(--bg-card);
  border-left: 1px solid var(--border-light);
  z-index: 1070;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.btn-close-cart {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 34px; height: 34px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  padding: 0;
}
.btn-close-cart:hover { border-color: var(--danger); color: var(--danger); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty { color: var(--text-muted); }
.cart-empty i { color: var(--border-light); }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeInUp 0.3s ease;
}
.cart-item-img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-brand { color: var(--text-muted); font-size: 12px; }
.cart-item-price { color: var(--accent); font-family: var(--font-mono); font-size: 14px; margin-top: 4px; }
.cart-item-remove {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  padding: 2px 6px;
  transition: color var(--transition);
  align-self: flex-start;
}
.cart-item-remove:hover { color: var(--danger); }

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex; justify-content: space-between;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.cart-total span:last-child { color: var(--accent); }

.btn-checkout {
  background: var(--accent);
  border: none;
  color: var(--bg-deepest);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.12em;
  height: 48px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-checkout:hover { background: var(--accent-dim); transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); }

/* ═══════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════ */
.main-container { padding-top: 16px; padding-bottom: 40px; }

/* ── Sidebar ── */
.sidebar-col { position: relative; }

@media (max-width: 991.98px) {
  .sidebar-col {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    z-index: 1065;
    transform: translateX(-110%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding-top: 12px;
  }
  .sidebar-col.open { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,0.6); }
}

.sidebar-inner {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  max-height: calc(100vh - var(--nav-h) - 32px);
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 991.98px) {
  .sidebar-inner { position: static; max-height: none; padding: 12px; }
}

.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  animation: fadeInLeft 0.4s ease both;
}

.sidebar-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

/* Category list */
.category-list { display: flex; flex-direction: column; gap: 2px; }

.cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}
.cat-item i:first-child { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.cat-item:hover { background: var(--bg-card-2); color: var(--text-primary); }
.cat-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(232,160,32,0.25);
}
.cat-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.cat-count {
  margin-left: auto;
  background: var(--bg-card-2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  flex-shrink: 0;
}
.cat-item.active .cat-count { background: rgba(232,160,32,0.15); color: var(--accent); }

.sub-arrow { font-size: 11px; transition: transform var(--transition); }
.has-sub.open .sub-arrow { transform: rotate(180deg); }

.sub-list {
  display: none;
  flex-direction: column;
  padding: 0 0 4px 28px;
  gap: 1px;
}
.sub-list.open { display: flex; }

.sub-item {
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition);
  border-left: 2px solid var(--border);
}
.sub-item:hover { color: var(--accent); border-left-color: var(--accent); padding-left: 14px; }

/* Price filter */
.price-label { font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); }
.price-range {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 6px var(--accent-glow);
}
.price-range::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.btn-filter-apply {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  height: 34px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-filter-apply:hover { background: var(--accent); color: var(--bg-deepest); }

/* Brand list */
.brand-list { display: flex; flex-direction: column; gap: 6px; }
.brand-list li label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition);
  user-select: none;
}
.brand-list li label:hover { color: var(--text-primary); }
.brand-list li label span { margin-left: auto; color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; }

.brand-list input[type="checkbox"] {
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background: var(--bg-card-2);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition);
}
.brand-list input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.brand-list input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 2px;
  width: 5px; height: 8px;
  border: 2px solid var(--bg-deepest);
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* Rating filter */
.rating-filter { display: flex; flex-direction: column; gap: 6px; }
.rating-opt {
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.rating-opt i { color: #d4a017; font-size: 11px; }
.rating-opt:hover { background: var(--bg-card-2); color: var(--text-primary); }
.rating-opt.active { background: var(--accent-glow); color: var(--accent); border-color: rgba(232,160,32,0.25); }

/* ═══════════════════════════════════
   HERO BANNER
═══════════════════════════════════ */
.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1400px) { .hero-banner { height: 440px; } }
@media (max-width: 768px) { .hero-banner { height: 280px; border-radius: var(--radius); } }
@media (max-width: 480px) { .hero-banner { height: 240px; } }

.hero-slides { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.hero-slide.active { opacity: 1; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35) saturate(0.7);
  transition: transform 8s ease;
}
.hero-slide.active .hero-bg { transform: scale(1.04); }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 36px 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}

@media (max-width: 768px) { .hero-content { padding: 24px 22px; } }
@media (max-width: 480px) { .hero-content { padding: 16px; } }

.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: rgba(232,160,32,0.12);
  border: 1px solid rgba(232,160,32,0.3);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  margin-bottom: 10px;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

.hero-price {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 42px);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 20px;
}
.hero-price sup { font-size: 0.45em; vertical-align: super; }

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-hero-primary {
  background: var(--accent);
  border: none;
  color: var(--bg-deepest);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.1em;
  padding: 10px 24px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-hero-primary:hover { background: var(--accent-dim); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,160,32,0.35); color: var(--bg-deepest); }

.btn-hero-secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.1em;
  padding: 10px 20px;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.14); border-color: var(--accent); color: var(--accent); }

.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--bg-deepest); }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }

.hero-dots {
  position: absolute;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ═══════════════════════════════════
   FEATURE PILLS
═══════════════════════════════════ */
.pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color var(--transition), background var(--transition);
  height: 100%;
}
.pill:hover { border-color: var(--accent-dim); background: var(--bg-card-2); }
.pill i { font-size: 22px; color: var(--accent); flex-shrink: 0; }
.pill span { font-size: 13px; font-weight: 600; color: var(--text-secondary); line-height: 1.4; }
.pill span small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; }

/* ═══════════════════════════════════
   SECTION BLOCKS
═══════════════════════════════════ */
.section-block { margin-bottom: 32px; }

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

.section-title-wrap { display: flex; align-items: center; gap: 10px; }

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--bg-deepest);
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  line-height: 1;
}

.btn-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-tab:hover { border-color: var(--accent-dim); color: var(--text-secondary); }
.btn-tab.active { background: var(--accent); border-color: var(--accent); color: var(--bg-deepest); font-weight: 700; }

.btn-see-all {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: all var(--transition);
}
.btn-see-all:hover { color: var(--text-primary); gap: 8px; }

/* ═══════════════════════════════════
   PRODUCT CARDS
═══════════════════════════════════ */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  height: 100%;
  animation: fadeInUp 0.4s ease both;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  border-color: var(--border-light);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card-2);
}
.product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
  display: block;
}
.product-card:hover .product-img { transform: scale(1.07); filter: brightness(1.1); }

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  z-index: 2;
}
.badge-hot { background: var(--danger); color: #fff; }
.badge-new { background: var(--success); color: #000; }
.badge-sale { background: var(--accent); color: var(--bg-deepest); }
.badge-sold { background: var(--text-muted); color: #fff; }

.product-actions {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s ease;
  z-index: 2;
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }

.btn-action {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-action:hover { background: var(--accent); border-color: var(--accent); color: var(--bg-deepest); }
.btn-action.wishlisted { color: var(--danger); border-color: var(--danger); }

.discount-tag {
  position: absolute;
  bottom: 10px; right: 10px;
  background: var(--danger);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
}

.product-body { padding: 14px; }

.product-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.product-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-stars { color: #d4a017; font-size: 12px; margin-bottom: 4px; }
.product-stars .review-count { color: var(--text-muted); font-size: 11px; margin-left: 4px; font-family: var(--font-mono); }

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.price-current {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
}
.price-old {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-add-cart {
  background: var(--bg-card-2);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  width: 100%;
  height: 36px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-add-cart:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-deepest);
  transform: none;
}
.btn-add-cart.adding { background: var(--success); border-color: var(--success); color: #000; }

/* ═══════════════════════════════════
   PROMO CARDS
═══════════════════════════════════ */
.promo-card {
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.promo-orange {
  background: linear-gradient(135deg, #1a0e00 0%, #2d1800 40%, #1a1100 100%);
  border-color: rgba(232,120,20,0.3);
}
.promo-orange::before {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(232,120,20,0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.promo-teal {
  background: linear-gradient(135deg, #001a18 0%, #001f1d 40%, #001412 100%);
  border-color: rgba(0,198,184,0.3);
}
.promo-teal::before {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(0,198,184,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.promo-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  display: inline-block;
}
.promo-orange .promo-tag { color: #ff8c38; }
.promo-teal .promo-tag { color: var(--accent-2); }

.promo-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.btn-promo {
  background: transparent;
  border: 1px solid;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
  width: fit-content;
}
.promo-orange .btn-promo { border-color: #ff8c38; color: #ff8c38; }
.promo-orange .btn-promo:hover { background: #ff8c38; color: #000; }
.promo-teal .btn-promo { border-color: var(--accent-2); color: var(--accent-2); }
.promo-teal .btn-promo:hover { background: var(--accent-2); color: #000; }

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
  margin-top: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.footer-brand i { color: var(--accent); margin-right: 6px; }
.footer-brand span { color: var(--accent); }

.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }

.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: all var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-links a::before { content: '›'; color: var(--border-light); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-links a:hover::before { color: var(--accent); }

.newsletter-form .form-control {
  background: var(--bg-card-2);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-body);
  height: 42px;
  border-radius: var(--radius) 0 0 var(--radius) !important;
}
.newsletter-form .form-control:focus { box-shadow: none; border-color: var(--accent); background: var(--bg-card-2); color: var(--text-primary); }
.newsletter-form .form-control::placeholder { color: var(--text-muted); }

.btn-newsletter {
  background: var(--accent);
  border: none;
  color: var(--bg-deepest);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 0 18px;
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  transition: background var(--transition);
}
.btn-newsletter:hover { background: var(--accent-dim); }

.payment-icons { display: flex; gap: 12px; font-size: 22px; color: var(--text-muted); }
.payment-icons i:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════
   TOAST NOTIFICATIONS
═══════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}

.toast-msg {
  background: var(--bg-card-2);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.35s ease;
  pointer-events: all;
  max-width: 320px;
}
.toast-msg.success { border-left: 3px solid var(--success); }
.toast-msg.success i { color: var(--success); }
.toast-msg.info { border-left: 3px solid var(--accent); }
.toast-msg.info i { color: var(--accent); }
.toast-msg.fade-out { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

/* ═══════════════════════════════════
   ANIMATIONS
═══════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* stagger product cards */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.10s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.20s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.30s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.40s; }

/* ═══════════════════════════════════
   RESPONSIVE ADJUSTMENTS
═══════════════════════════════════ */
@media (max-width: 575.98px) {
  .section-title { font-size: 20px; }
  .hero-btns .btn-hero-secondary { display: none; }
  .main-container { padding-top: 10px; }
  .product-body { padding: 10px; }
  .price-current { font-size: 17px; }
}

@media (min-width: 992px) {
  .main-col { padding-left: 4px; }
}

@media (min-width: 1600px) {
  :root { font-size: 16px; }
  .hero-banner { height: 480px; }
}

@media (min-width: 1921px) {
  .main-container {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  .main-nav .container-fluid,
  .site-footer .container-fluid {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}
