/* ================================================================
   RushXP Shop — Feuille de styles principale
   Charte : fond #252525, accent orange #FFA500, texte blanc
   ================================================================ */

/* ─── Variables ──────────────────────────────────────────── */
:root {
  --bg:           #1e1e1e;
  --bg-alt:       #252525;
  --bg-card:      #2d2d2d;
  --bg-hover:     #333333;
  --border:       #3a3a3a;
  --border-light: #444444;

  --orange:       #FFA500;
  --orange-dark:  #e69400;
  --orange-light: #ffb733;
  --orange-glow:  rgba(255,165,0,0.15);

  --text:         #f0f0f0;
  --text-muted:   #a0a0a0;
  --text-dim:     #707070;

  --green:        #22c55e;
  --red:          #ef4444;
  --blue:         #3b82f6;

  --radius:       6px;
  --radius-lg:    10px;
  --shadow:       0 2px 8px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 24px rgba(0,0,0,0.5);

  --header-h:     70px;
  --topbar-h:     34px;
  --catnav-h:     44px;

  --font-head:    'Rajdhani', sans-serif;
  --font-body:    'Inter', sans-serif;
  --transition:   0.18s ease;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}
.site-main { flex: 1; }

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

/* ─── Top Bar ────────────────────────────────────────────── */
.topbar {
  background: #181818;
  height: var(--topbar-h);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.topbar__links { display: flex; gap: 16px; }
.topbar__links a:hover { color: var(--orange); }

/* ─── Site Header ────────────────────────────────────────── */
.site-header {
  background: var(--bg-alt);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--orange);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

/* Logo */
.logo {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo__rush { color: var(--text); }
.logo__xp   { color: var(--orange); }
.logo__shop {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 3px;
  margin-left: 3px;
  text-transform: uppercase;
}

/* Barre de recherche */
.search-bar {
  flex: 1;
  display: flex;
  height: 42px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color var(--transition);
}
.search-bar:focus-within { border-color: var(--orange); }
.search-bar__cat {
  background: var(--bg-hover);
  color: var(--text-muted);
  padding: 0 10px;
  border-right: 1px solid var(--border-light);
  cursor: pointer;
  min-width: 120px;
  max-width: 160px;
  font-size: 12px;
}
.search-bar__input {
  flex: 1;
  background: transparent;
  color: var(--text);
  padding: 0 14px;
}
.search-bar__input::placeholder { color: var(--text-dim); }
.search-bar__btn {
  background: var(--orange);
  color: #000;
  padding: 0 16px;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
}
.search-bar__btn:hover { background: var(--orange-dark); }

/* Actions header */
.header-actions { display: flex; gap: 12px; flex-shrink: 0; }
.header-actions__cart {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #000;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  position: relative;
  transition: background var(--transition);
}
.header-actions__cart:hover { background: var(--orange-dark); }
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ─── Navigation catégories ─────────────────────────────── */
.cat-nav {
  background: #202020;
  height: var(--catnav-h);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 99;
}
.cat-nav__list {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav__list::-webkit-scrollbar { display: none; }
.cat-nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  border-bottom: 2px solid transparent;
}
.cat-nav__link:hover,
.cat-nav__link.active {
  color: var(--orange);
  background: var(--orange-glow);
  border-bottom-color: var(--orange);
}
.cat-nav__count {
  background: var(--border-light);
  color: var(--text-dim);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 10px;
}

/* ─── Flash ──────────────────────────────────────────────── */
.flash {
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
}
.flash--success { background: rgba(34,197,94,0.12); color: var(--green); border-bottom: 1px solid var(--green); }
.flash--error   { background: rgba(239,68,68,0.12);  color: var(--red);   border-bottom: 1px solid var(--red); }
.flash--info    { background: rgba(59,130,246,0.12); color: var(--blue);  border-bottom: 1px solid var(--blue); }

/* ─── Boutons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
}
.btn--primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn--outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn--outline:hover { background: var(--orange-glow); }
.btn--ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-light);
}
.btn--ghost:hover { background: var(--bg-hover); }
.btn--danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn--sm  { padding: 6px 12px; font-size: 12px; }
.btn--lg  { padding: 13px 28px; font-size: 15px; }
.btn--full { width: 100%; justify-content: center; }

/* ─── Section titre ──────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--orange);
  border-radius: 2px;
}

/* ─── Product Card ───────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(255,165,0,0.12);
}
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}
.product-card__badge--new { background: var(--green); color: #fff; }
.product-card__badge--promo { background: var(--red); color: #fff; }
.product-card__img-wrap {
  aspect-ratio: 1;
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-card:hover .product-card__img-wrap img { transform: scale(1.05); }
.product-card__body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__brand {
  font-size: 11px;
  color: var(--orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.product-card__name {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.product-card__price {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--orange);
}
.product-card__compare {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: line-through;
}
.product-card__stock {
  font-size: 11px;
  margin-bottom: 10px;
}
.in-stock  { color: var(--green); }
.low-stock { color: #f59e0b; }
.out-stock { color: var(--red); }
.product-card__actions { margin-top: auto; }
.btn-add-cart {
  width: 100%;
  background: var(--orange);
  color: #000;
  border: none;
  padding: 9px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-add-cart:hover { background: var(--orange-dark); }
.btn-add-cart:disabled { background: var(--border-light); color: var(--text-dim); cursor: not-allowed; }

/* ─── Hero banner ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a00 50%, #1a1a1a 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(255,165,0,0.08) 0%, transparent 70%);
}
.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}
.hero__text { max-width: 540px; }
.hero__tag {
  display: inline-block;
  background: var(--orange);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero__title {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
}
.hero__title span { color: var(--orange); }
.hero__sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}
.hero__img { max-width: 400px; opacity: 0.9; }

/* ─── Catégories visuelles ───────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--orange);
  background: var(--orange-glow);
  transform: translateY(-2px);
}
.cat-card__icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.cat-card__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.cat-card__count {
  font-size: 11px;
  color: var(--text-dim);
}

/* ─── Page Produits ──────────────────────────────────────── */
.products-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 0;
}
.sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: sticky;
  top: calc(var(--header-h) + var(--catnav-h) + 12px);
}
.sidebar__title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.filter-group { margin-bottom: 20px; }
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.filter-group label:hover { color: var(--text); }
.filter-group input[type="checkbox"] { accent-color: var(--orange); }
.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.price-inputs input {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  padding: 6px 10px;
  width: 100%;
}

.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.products-count { font-size: 13px; color: var(--text-muted); }
.sort-select {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
}

/* ─── Page Produit Detail ────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  padding: 32px 0;
}
.product-gallery { position: sticky; top: calc(var(--header-h) + var(--catnav-h) + 12px); }
.gallery-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 10px;
}
.gallery-main img { max-height: 400px; object-fit: contain; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 72px;
  height: 72px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  padding: 6px;
  transition: border-color var(--transition);
}
.gallery-thumb:hover,
.gallery-thumb.active { border-color: var(--orange); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }

.product-info__brand { color: var(--orange); font-size: 13px; font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.product-info__title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}
.product-info__price-block { margin-bottom: 20px; }
.product-info__price {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--orange);
}
.product-info__compare {
  font-size: 18px;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-left: 10px;
}
.product-info__savings {
  display: inline-block;
  background: rgba(239,68,68,0.15);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 6px;
}
.product-info__stock-line { font-size: 14px; margin-bottom: 16px; }
.product-info__desc { color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; font-size: 14px; }

.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 16px;
}
.qty-btn {
  width: 38px;
  height: 42px;
  background: var(--bg-hover);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--border-light); }
.qty-input {
  width: 52px;
  height: 42px;
  background: var(--bg-card);
  color: var(--text);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  text-align: center;
  font-weight: 600;
}

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.specs-table tr:nth-child(even) td { background: var(--bg-alt); }
.specs-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: top;
}
.specs-table td:first-child {
  color: var(--text-muted);
  width: 40%;
  font-weight: 500;
}

/* ─── Panier ─────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  padding: 32px 0;
  align-items: start;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.cart-table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product__img {
  width: 70px;
  height: 70px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-product__img img { width: 100%; height: 100%; object-fit: contain; }
.cart-product__name { font-size: 13px; font-weight: 500; }
.cart-product__sku { font-size: 11px; color: var(--text-dim); }
.cart-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + var(--catnav-h) + 12px);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.cart-summary-row:last-of-type { border-bottom: none; }
.cart-total {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
}

/* ─── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 32px 0;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--orange); color: var(--orange); }
.pagination span.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #000;
  font-weight: 700;
}

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  padding: 12px 0;
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb__sep { color: var(--border-light); }

/* ─── Empty state ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
}
.empty-state__icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }

/* ─── Sections homepage ──────────────────────────────────── */
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ─── Trust badges ───────────────────────────────────────── */
.trust-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.trust-item__icon { font-size: 24px; }
.trust-item__label { font-weight: 600; color: var(--text); }
.trust-item__sub   { font-size: 11px; color: var(--text-muted); }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #181818;
  border-top: 2px solid var(--orange);
  padding: 48px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-logo { font-family: var(--font-head); font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-glow); }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 13px; color: var(--text-muted); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}
.footer-payments {
  display: flex;
  gap: 8px;
}
.footer-payments span {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
}

/* ─── Cat-card avec image ────────────────────────────────── */
.cat-card--img {
  padding: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 110px;
}
.cat-card__bg {
  position: absolute;
  inset: 0;
}
.cat-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat-card--img:hover .cat-card__bg img { transform: scale(1.07); }
.cat-card--img .cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.18) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 12px;
  text-align: left;
}
.cat-card--img .cat-card__name  { font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.cat-card--img .cat-card__count { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* ─── Bannière catégorie (produits.php) ──────────────────── */
.cat-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 160px;
  margin-bottom: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.cat-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.cat-banner__info {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 20px 28px;
  background: linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 100%);
  gap: 16px;
}
.cat-banner__icon { font-size: 38px; line-height: 1; }
.cat-banner__name {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.cat-banner__meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ─── Configurateur PC ────────────────────────────────────── */
.config-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #1e1200 55%, #1a1a1a 100%);
  border-bottom: 2px solid var(--orange);
  padding: 28px 0;
}
.config-hero h1 {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 4px;
}
.config-hero p { color: var(--text-muted); font-size: 13px; }

.config-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 20px;
  padding: 24px 0 40px;
  align-items: start;
}

.config-slots { display: flex; flex-direction: column; gap: 6px; }

.config-slot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color var(--transition), background var(--transition);
}
.config-slot.selected {
  border-color: rgba(255,165,0,0.5);
  background: rgba(255,165,0,0.04);
}
.config-slot__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.config-slot__icon { font-size: 22px; flex-shrink: 0; width: 28px; text-align: center; }
.config-slot__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.config-slot__selected { font-size: 13px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
.config-slot__placeholder { color: var(--text-dim); font-style: italic; }
.config-slot__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.config-slot__price {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
  min-width: 76px;
  text-align: right;
}

/* Résumé */
.config-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: sticky;
  top: calc(var(--header-h) + var(--catnav-h) + 10px);
}
.config-summary__title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.config-summary__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  min-height: 56px;
}
.summary-item { padding: 6px 0; border-bottom: 1px solid var(--border); }
.summary-item:last-child { border-bottom: none; }
.summary-item__label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-dim); }
.summary-item__name  { font-size: 12px; color: var(--text-muted); margin: 1px 0 2px; line-height: 1.3; }
.summary-item__price { font-size: 13px; font-weight: 700; color: var(--orange); }
.config-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.config-summary__total-price {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
}

/* Modal produits */
.config-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.config-modal__box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.config-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.config-modal__header h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.config-modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius);
  transition: color var(--transition);
}
.config-modal__close:hover { color: var(--text); background: var(--bg-hover); }
.config-modal__search {
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  background: var(--bg);
}
.config-modal__search input[type="text"] {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text);
  padding: 7px 12px;
  font-size: 14px;
}
.config-modal__search input[type="text"]:focus { outline: none; border-color: var(--orange); }
.config-modal__search label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.config-modal__search input[type="checkbox"] { accent-color: var(--orange); }
.config-modal__grid {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex: 1;
}
.config-product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.config-product-card:hover:not(.oos)  { border-color: var(--orange); background: rgba(255,165,0,0.06); }
.config-product-card.oos              { opacity: 0.4; cursor: not-allowed; }
.config-product-card.is-selected      { border-color: var(--orange); background: rgba(255,165,0,0.1); }
.config-product-card__img {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.config-product-card__img img { width: 100%; height: 100%; object-fit: contain; }
.config-product-card__no-img { font-size: 22px; color: var(--text-dim); }
.config-product-card__info { flex: 1; min-width: 0; }
.config-product-card__brand { font-size: 10px; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.config-product-card__name  { font-size: 13px; font-weight: 500; color: var(--text); margin: 1px 0; line-height: 1.3; }
.config-product-card__right { text-align: right; flex-shrink: 0; }
.config-product-card__price   { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--orange); }
.config-product-card__compare { font-size: 11px; color: var(--text-dim); text-decoration: line-through; }
.config-product-card__stock   { font-size: 11px; margin-top: 2px; }
.config-product-card__stock.ok  { color: var(--green); }
.config-product-card__stock.low { color: #f59e0b; }
.config-product-card__stock.oos { color: var(--red); }
.config-modal__empty { text-align: center; padding: 48px 20px; color: var(--text-muted); font-size: 14px; }

/* ─── Utility ────────────────────────────────────────────── */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); }
.text-orange { color: var(--orange); }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.hidden { display: none !important; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .config-layout { grid-template-columns: 1fr; }
  .config-summary { position: static; }
}

@media (max-width: 768px) {
  .site-header__inner { gap: 12px; }
  .search-bar__cat { display: none; }
  .hero__title { font-size: 28px; }
  .hero__img { display: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .header-actions__cart-label { display: none; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
