/* ============================================================
   ElectroParts � style.css
   Moderne, sombre, e-commerce professionnel
   ============================================================ */

/* -- Variables -- */
:root {
  --bg-primary:    #0d0d0f;
  --bg-secondary:  #111115;
  --bg-card:       #16161c;
  --bg-card-hover: #1c1c24;
  --bg-input:      #1a1a22;

  --border:        #1f1f2c;
  --border-focus:  #6c5ce7;

  --accent:        #6c5ce7;
  --accent-hover:  #7c6cf7;
  --accent-glow:   rgba(108, 92, 231, 0.25);

  --electric:      #00d4ff;
  --electric-glow: rgba(0, 212, 255, 0.15);

  --orange:        #f97316;
  --orange-glow:   rgba(249, 115, 22, 0.2);

  --green:         #10b981;
  --green-glow:    rgba(16, 185, 129, 0.15);

  --red:           #ef4444;

  --text-primary:   #f8f8ff;
  --text-secondary: #a0a0b8;
  --text-muted:     #5a5a72;

  --gradient-accent: linear-gradient(135deg, #6c5ce7, #00d4ff);
  --gradient-orange: linear-gradient(135deg, #f97316, #fbbf24);

  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card:  0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 40px rgba(108, 92, 231, 0.2);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.6);

  --transition: 0.2s ease;
}

/* -- Reset / Base -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

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

/* ------------------------------------------------
   Announcement Bar
------------------------------------------------ */
.announcement-bar {
  background: var(--gradient-accent);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  color: #fff;
  letter-spacing: 0.01em;
}
.announcement-bar a { color: #fff; text-decoration: underline; opacity: 0.9; }
.announcement-bar a:hover { opacity: 1; }

/* ------------------------------------------------
   Header / Navbar
------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.5); }
.navbar {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(108, 92, 231, 0.12);
  color: var(--text-primary);
}
.nav-links a.active { color: var(--accent); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--text-muted);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav-search:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
  color: var(--text-secondary);
}
.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  width: 180px;
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-icon-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent);
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-primary);
}
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ------------------------------------------------
   Mobile Menu
------------------------------------------------ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.mobile-menu.open { pointer-events: all; }
.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-menu.open .mobile-menu-overlay { opacity: 1; }
.mobile-menu-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 80px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open .mobile-menu-content { transform: translateX(0); }
.mobile-menu-content a {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-content a:hover {
  background: rgba(108, 92, 231, 0.1);
  color: var(--text-primary);
}

/* ------------------------------------------------
   Cart Sidebar
------------------------------------------------ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0,0,0,0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 151;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-sidebar-title { font-size: 18px; font-weight: 700; }
.cart-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.cart-close:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.cart-sidebar-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.cart-sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cart-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cart-total-label { font-size: 13px; color: var(--text-muted); }
.cart-total-amount { font-size: 22px; font-weight: 900; color: var(--accent); }
.cart-empty { text-align: center; padding: 40px 0; }
.cart-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.cart-empty-title { font-size: 16px; font-weight: 600; color: var(--text-secondary); }
.cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 52px;
  height: 52px;
  background: var(--bg-card);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.cart-item-price { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-qty button {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.cart-item-qty button:hover { background: var(--accent); border-color: var(--accent); }
.cart-item-qty span { font-size: 13px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  font-size: 12px;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(239,68,68,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
  margin-top: 4px;
}
.cart-item-remove:hover { background: var(--red); color: #fff; }

/* ------------------------------------------------
   Toast
------------------------------------------------ */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-color: var(--green); }
.toast-info { border-color: var(--accent); }

/* ------------------------------------------------
   Buttons
------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary { background: var(--gradient-accent); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-accent { background: var(--gradient-orange); color: #fff; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--orange-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--border-focus); }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ------------------------------------------------
   Badges
------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-orange { background: rgba(249,115,22,0.18); color: var(--orange); }
.badge-blue   { background: rgba(0,212,255,0.14);  color: var(--electric); }
.badge-green  { background: rgba(16,185,129,0.14); color: var(--green); }
.badge-red    { background: rgba(239,68,68,0.14);  color: var(--red); }

/* ------------------------------------------------
   Product Cards
------------------------------------------------ */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover), 0 0 0 1px var(--accent-glow);
}
.product-img-wrap {
  position: relative;
  padding-top: 65%;
  background: var(--bg-secondary);
  overflow: hidden;
}
.product-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  opacity: 0.7;
}
.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-img-wrap img,
.product-card:hover .product-img-placeholder { transform: scale(1.06); }
.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(13,13,15,0.7);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--transition);
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.product-wishlist:hover { background: rgba(255,255,255,0.1); }
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-brand { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.product-name { font-size: 14px; font-weight: 600; color: var(--text-primary); line-height: 1.35; }
.product-compat { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price-current { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.price-original { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.price-discount {
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.btn-cart {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.btn-cart svg { width: 16px; height: 16px; stroke: #fff; }
.btn-cart:hover { transform: scale(1.1); box-shadow: 0 4px 16px var(--accent-glow); }

/* ------------------------------------------------
   Products Grid
------------------------------------------------ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ------------------------------------------------
   Page Hero (inner pages)
------------------------------------------------ */
.page-hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.page-hero-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  margin-top: 12px;
  letter-spacing: -1px;
}
.page-hero-title span { color: var(--accent); }
.page-hero-desc { color: var(--text-secondary); margin-top: 10px; max-width: 600px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }

/* ------------------------------------------------
   Section Header
------------------------------------------------ */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* ------------------------------------------------
   Catalogue Layout
------------------------------------------------ */
.catalogue-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 40px 0 80px;
}
.filters-panel { display: flex; flex-direction: column; gap: 4px; }
.filter-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 8px;
}
.filter-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-options { display: flex; flex-direction: column; gap: 6px; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background var(--transition);
  font-size: 13px;
  color: var(--text-secondary);
}
.filter-option:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.filter-option.checked { color: var(--text-primary); }
.filter-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  transition: all var(--transition);
}
.filter-option.checked .filter-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filter-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 7px;
  border-radius: 10px;
}
.price-range { display: flex; gap: 10px; align-items: center; }
.price-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  outline: none;
}
.price-input:focus { border-color: var(--accent); }
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-count { font-size: 14px; color: var(--text-secondary); }
.results-count strong { color: var(--text-primary); }
.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.view-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.view-btn.active { background: var(--accent); color: #fff; }
.sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--accent); }

/* ------------------------------------------------
   Product Detail Page
------------------------------------------------ */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.gallery-main {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding-top: 90%;
  overflow: hidden;
}
.gallery-main-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
}
.gallery-main-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-badge-group { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.gallery-thumb {
  width: 64px;
  height: 64px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  transition: all var(--transition);
  overflow: hidden;
  padding: 4px;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.gallery-thumb:hover { border-color: var(--accent); }
.gallery-thumb.active { border-color: var(--accent); background: rgba(108,92,231,0.1); }
.product-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.product-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.star-rating { display: flex; gap: 2px; }
.star { font-size: 16px; color: var(--text-muted); }
.star.filled { color: #fbbf24; }
.star.half { color: #fbbf24; }
.rating-count { font-size: 13px; color: var(--text-muted); }
.product-compat-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.compat-badge {
  background: rgba(108,92,231,0.1);
  border: 1px solid rgba(108,92,231,0.25);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}
.product-price-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.product-price-main { font-size: 36px; font-weight: 900; letter-spacing: -1px; }
.product-price-old { font-size: 15px; color: var(--text-muted); text-decoration: line-through; margin-top: 4px; }
.product-savings { font-size: 13px; color: var(--orange); font-weight: 600; margin-top: 6px; }
.product-installment { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.product-stock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.product-stock-status.in-stock {
  background: rgba(16,185,129,0.1);
  color: var(--green);
  border: 1px solid rgba(16,185,129,0.2);
}
.variant-section { margin-bottom: 16px; }
.variant-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.variant-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.variant-btn.active { border-color: var(--accent); background: rgba(108,92,231,0.1); color: var(--accent); }
.product-actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.qty-selector {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.qty-btn {
  width: 40px;
  height: 44px;
  font-size: 20px;
  font-weight: 300;
  color: var(--text-primary);
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--bg-card-hover); }
.qty-value {
  width: 44px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: block;
}
.product-trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.ptrust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

/* Tabs */
.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  gap: 4px;
  overflow-x: auto;
}
.tab-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; color: var(--text-secondary); line-height: 1.7; }
.tab-content.active { display: block; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 12px 16px; font-size: 14px; }
.specs-table td:first-child { color: var(--text-muted); font-weight: 500; width: 40%; }
.specs-table td:last-child { color: var(--text-primary); font-weight: 600; }
.specs-table tr:hover td { background: var(--bg-card); }
.compat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.compat-card-brand { font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--accent); }
.compat-card li { font-size: 13px; color: var(--text-secondary); padding: 4px 0; padding-left: 16px; position: relative; }
.compat-card li::before { content: '�'; position: absolute; left: 0; color: var(--accent); }
.rating-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-secondary); }
.rating-bar { flex: 1; height: 6px; background: var(--bg-card); border-radius: 3px; overflow: hidden; }
.rating-bar div { height: 100%; background: #fbbf24; border-radius: 3px; }
.avis-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.avis-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.avis-avatar {
  width: 36px; height: 36px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.avis-name { font-size: 14px; font-weight: 700; }
.avis-verified { font-size: 11px; color: var(--green); font-weight: 500; margin-left: 6px; }
.avis-date { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.avis-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ------------------------------------------------
   Cart Page
------------------------------------------------ */
.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}
.cart-page-empty { text-align: center; padding: 80px 0; }
.cart-page-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.cpi-img {
  width: 72px; height: 72px;
  background: var(--bg-secondary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  border: 1px solid var(--border);
}
.cpi-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cpi-price { font-size: 14px; color: var(--accent); font-weight: 700; }
.cpi-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cpi-qty {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
}
.cpi-qty button {
  font-size: 16px; color: var(--text-secondary);
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition);
}
.cpi-qty button:hover { color: var(--accent); }
.cpi-qty span { font-size: 13px; font-weight: 700; min-width: 20px; text-align: center; }
.cpi-subtotal { font-size: 16px; font-weight: 800; }
.cpi-remove {
  font-size: 12px; color: var(--text-muted);
  background: rgba(239,68,68,0.1);
  border-radius: 6px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.cpi-remove:hover { background: var(--red); color: #fff; }
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 100px;
  flex-direction: column;
}
.order-summary-title { font-size: 18px; font-weight: 800; margin-bottom: 24px; }
.order-line { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; }
.order-line-lbl { color: var(--text-secondary); }
.order-line-val { font-weight: 700; }
.order-divider { height: 1px; background: var(--border); margin: 12px 0; }
.promo-code-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.promo-code-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.promo-code-input-row { display: flex; gap: 8px; }
.promo-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
}
.promo-input:focus { border-color: var(--accent); }
.payment-icon {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.installment-box {
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 16px;
}

/* ------------------------------------------------
   Contact Page
------------------------------------------------ */
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
.contact-card {
  display: flex; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  transition: all var(--transition);
  text-decoration: none;
}
.contact-card:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-card-whatsapp:hover { border-color: var(--green); }
.contact-card-icon {
  width: 48px; height: 48px;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.contact-card-body { flex: 1; }
.contact-card-title { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.contact-card-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.contact-card-value { font-size: 14px; font-weight: 600; color: var(--accent); }
.contact-card-hours { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.contact-card-arrow { font-size: 18px; color: var(--text-muted); align-self: center; }
.contact-faq-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 12px;
}
.contact-faq-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  padding: 12px 0;
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--text-primary); }
.faq-q::after { content: '+'; font-size: 16px; color: var(--accent); }
details[open] .faq-q::after { content: '-'; }
.faq-a { padding: 0 0 12px; font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.contact-form-header { margin-bottom: 28px; }
.contact-form-header h2 { font-size: 22px; font-weight: 800; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

/* ------------------------------------------------
   Homepage Sections
------------------------------------------------ */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-secondary);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(108,92,231,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(0,212,255,0.06) 0%, transparent 60%);
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 620px; }
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(108,92,231,0.12);
  border: 1px solid rgba(108,92,231,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero-title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { font-size: 17px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 48px; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 28px; font-weight: 900; line-height: 1; }
.hero-stat-value span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.hero-visual {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  font-size: 240px; opacity: 0.06; filter: blur(1px);
  pointer-events: none; user-select: none;
}
.trust-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-items { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 30px;
  border-right: 1px solid var(--border);
  flex: 1; min-width: 200px; justify-content: center;
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 44px; height: 44px;
  background: rgba(108,92,231,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.trust-title { font-size: 14px; font-weight: 700; }
.trust-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.category-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.category-icon { font-size: 40px; margin-bottom: 12px; }
.category-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.category-count { font-size: 12px; color: var(--text-muted); }
.brands-strip { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.brand-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14px; font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition); cursor: pointer;
}
.brand-pill:hover { border-color: var(--accent); color: var(--accent); background: rgba(108,92,231,0.06); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }
.reviews-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-xl);
}
.reviews-empty-icon { font-size: 52px; margin-bottom: 16px; opacity: 0.5; }
.reviews-empty-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.reviews-empty-desc { font-size: 14px; color: var(--text-secondary); max-width: 480px; margin: 0 auto 20px; line-height: 1.7; }
.reviews-empty-platforms { font-size: 13px; color: var(--text-muted); background: var(--bg-secondary); display: inline-block; padding: 8px 18px; border-radius: 50px; border: 1px solid var(--border); }
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}
.review-card:hover { border-color: rgba(108,92,231,0.3); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar {
  width: 40px; height: 40px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.review-name { font-size: 14px; font-weight: 700; }
.review-date { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.review-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.review-product { margin-top: 12px; font-size: 12px; color: var(--accent); font-weight: 600; }
.cta-section {
  background: linear-gradient(135deg, #1a1028 0%, #0d1a2e 100%);
  border: 1px solid rgba(108,92,231,0.2);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 80px 0;
}
.cta-section::before {
  content: '';
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(108,92,231,0.15), transparent 70%);
  pointer-events: none;
}
.cta-title { font-size: clamp(24px, 3.5vw, 38px); font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; }
.cta-title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-desc { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ------------------------------------------------
   Footer
------------------------------------------------ */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); margin-top: 80px; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 40px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-about { font-size: 13px; color: var(--text-muted); line-height: 1.6; max-width: 260px; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all var(--transition);
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.footer-contact-item a { transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: var(--text-muted); transition: color var(--transition); }
.footer-legal a:hover { color: var(--text-secondary); }

/* ------------------------------------------------
   Responsive
------------------------------------------------ */
@media (max-width: 1024px) {
  .catalogue-layout { grid-template-columns: 1fr; }
  .filters-panel { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .cart-page-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .menu-btn { display: flex; }
  .hero { min-height: 520px; }
  .hero-visual { display: none; }
  .trust-items { flex-direction: column; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); width: 100%; }
  .trust-item:last-child { border-bottom: none; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-section { padding: 40px 20px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .product-trust-row { grid-template-columns: 1fr 1fr; }
  .form-row.two-cols { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -1px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cart-sidebar { width: 100vw; }
  .product-detail-layout { gap: 32px; }
  .cart-page-item { grid-template-columns: 60px 1fr; }
  .cpi-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Selection */
::selection { background: var(--accent-glow); color: var(--text-primary); }
