/* ============================================================
   CONFIG-GAMER V2 — Design System
   ============================================================ */

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

:root {
  --orange:       #900000;
  --orange-dark:  #6B0000;
  --orange-light: #FFF0F0;
  --orange-100:   #FFE0E0;
  --text-900:     #111827;
  --text-700:     #374151;
  --text-500:     #6B7280;
  --text-400:     #9CA3AF;
  --border:       #E5E7EB;
  --border-100:   #F0F1F3;
  --bg-page:      #F3F4F6;
  --bg-200:       #F3F4F6;
  --bg-card:      #FFFFFF;
  --text-600:     #4B5563;
  --green:        #16A34A;
  --green-bg:     #DCFCE7;
  --blue:         #2563EB;
  --blue-bg:      #DBEAFE;
  --red:          #DC2626;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    14px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.07);
  --shadow:       0 2px 10px rgba(0,0,0,.09);
  --shadow-lg:    0 8px 30px rgba(0,0,0,.13);
  --header-h:     64px;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --transition:   .18s ease;
}

html { font-size: 16px; scroll-behavior: smooth; background: #111827; }
body { font-family: var(--font); background: var(--bg-page); color: var(--text-700); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Typography ------------------------------------------- */
h1 { font-size: 1.75rem; font-weight: 700; color: var(--text-900); line-height: 1.2; }
h2 { font-size: 1.25rem; font-weight: 700; color: var(--text-900); }
h3 { font-size: 1rem; font-weight: 600; color: var(--text-900); }

/* --- Layout utilities ------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #111827;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 1px 8px rgba(0,0,0,.35);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 100%;
}

/* Logo */
.site-logo {
  font-size: 1.3rem; font-weight: 900; letter-spacing: -.5px;
  white-space: nowrap; flex-shrink: 0;
  color: #fff;
}
.site-logo span { color: #c50404; }

/* Search */
.header-search { flex: 1; max-width: 520px; }
.search-form {
  display: flex; border: 2px solid rgba(255,255,255,.18);
  border-radius: 8px; overflow: hidden;
  transition: border-color var(--transition);
  background: rgba(255,255,255,.07);
}
.search-form:focus-within { border-color: var(--orange); }
.search-form input {
  flex: 1; padding: 9px 14px; border: none; outline: none;
  font-size: .95rem; color: #fff;
  background: transparent;
}
.search-form input::placeholder { color: rgba(255,255,255,.4); }
.search-form button {
  background: #c50404; color: #fff;
  padding: 0 16px; font-size: 1.05rem;
  transition: background var(--transition);
}
.search-form button:hover { background: var(--orange-dark); }

/* Nav */
.site-nav { display: flex; gap: 2px; margin-left: auto; flex-shrink: 0; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: var(--radius-sm); position: relative;
  font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.78);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-item:hover > .nav-link { background: rgba(255,255,255,.1); color: #fff; }
.nav-link .arrow { font-size: .65rem; opacity: .6; transition: transform var(--transition); }
.nav-item:hover > .nav-link .arrow { transform: rotate(180deg); }
.nav-bonsplans > .nav-link { color: #c50404; font-weight: 700; }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0;
  margin-top: 4px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: 8px;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity var(--transition) 1s, transform var(--transition) 1s;
  z-index: 200;
}
/* Bridge #1 — attached to nav-link, exactly its width.
   Keeps :hover alive when crossing the gap between text and dropdown. */
.nav-link::after {
  content: ''; position: absolute;
  top: 100%; left: -6px; right: -6px; height: 16px;
}
/* Bridge #2 — top of dropdown, covers the gap from above. Safety net for
   diagonal mouse movements heading into the dropdown body. */
.dropdown::before {
  content: ''; position: absolute;
  top: -12px; left: -6px; right: -6px; height: 14px;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1; pointer-events: auto; transform: translateY(0);
  transition-delay: 0s;
}
.dropdown a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: .875rem; color: var(--text-700);
  transition: background var(--transition), color var(--transition);
}
.dropdown a:hover { background: var(--orange-light); color: var(--orange); }

/* Mobile hamburger */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text-700); border-radius: 2px; transition: var(--transition); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  padding: 12px 0; font-size: .8rem; color: var(--text-500);
}
.breadcrumb a { color: var(--text-500); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: var(--text-400); }
.breadcrumb-current { color: var(--text-700); font-weight: 500; }

/* ============================================================
   PAGE SECTIONS
   ============================================================ */
.page-section { padding: 28px 0; }
.section-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 700; color: var(--text-900);
  padding: 18px 22px 14px; margin: 0;
  border-bottom: 1px solid var(--border);
}
.section-title::before {
  content: ''; display: block;
  width: 4px; height: 18px; border-radius: 2px;
  background: var(--orange);
}

/* ============================================================
   BADGES / CHIPS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 20px; font-size: .75rem; font-weight: 600;
}
.badge-green  { background: var(--green-bg);  color: var(--green); }
.badge-blue   { background: var(--blue-bg);   color: var(--blue); }
.badge-orange { background: var(--orange-100); color: var(--orange-dark); }
.badge-red    { background: #FEE2E2; color: var(--red); }
.badge-gray   { background: #F3F4F6; color: var(--text-500); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 2px 8px rgba(144,0,0,.35);
}
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 4px 14px rgba(144,0,0,.45); }
.btn-secondary {
  background: #fff; color: var(--text-700);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
.btn-sm { padding: 6px 13px; font-size: .8rem; }
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-ghost { color: var(--orange); font-weight: 600; padding: 6px 10px; }
.btn-ghost:hover { background: var(--orange-light); border-radius: var(--radius-sm); }

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a3a 50%, #0f0f1a 100%);
  padding: 60px 0 70px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 400px at 50% 50%, rgba(144,0,0,.12) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; }
.hero-tagline {
  display: inline-block; margin-bottom: 16px;
  background: var(--orange-100); color: var(--orange-dark);
  padding: 5px 14px; border-radius: 20px;
  font-size: .85rem; font-weight: 600; letter-spacing: .3px;
}
.hero h1 {
  color: #fff; font-size: 2.5rem; margin-bottom: 14px; line-height: 1.15;
}
.hero h1 span { color: var(--orange); }
.hero-sub { color: rgba(255,255,255,.65); font-size: 1.05rem; margin-bottom: 34px; max-width: 500px; margin-left: auto; margin-right: auto; }
.hero-search {
  display: flex; max-width: 600px; margin: 0 auto;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.hero-search input {
  flex: 1; padding: 15px 20px; border: none; outline: none;
  font-size: 1rem; color: var(--text-900);
}
.hero-search button {
  background: var(--orange); color: #fff;
  padding: 0 28px; font-size: 1rem; font-weight: 700;
  transition: background var(--transition);
}
.hero-search button:hover { background: var(--orange-dark); }
.hero-hints { margin-top: 14px; color: rgba(255,255,255,.4); font-size: .8rem; }
.hero-hints span { color: rgba(255,255,255,.55); }

/* ============================================================
   HOME — CATEGORIES GRID
   ============================================================ */
.categories-section { padding: 40px 0; }
.categories-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.categories-header h2 { font-size: 1.35rem; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  cursor: pointer; text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cat-card:hover {
  border-color: var(--orange); box-shadow: 0 4px 16px rgba(144,0,0,.15);
  transform: translateY(-2px);
}
.cat-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--orange-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; transition: background var(--transition);
}
.cat-card:hover .cat-icon { background: var(--orange-100); }
.cat-name { font-size: .8rem; font-weight: 600; color: var(--text-700); line-height: 1.3; }
.cat-count { font-size: .72rem; color: var(--text-400); }

/* ============================================================
   HOME — FEATURED DEALS
   ============================================================ */
.deals-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
  padding: 18px 0 4px;
}
.deal-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  cursor: pointer;
}
.deal-card:hover {
  box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--orange);
}
.deal-card-img {
  background: var(--bg-page); height: 150px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; position: relative;
}
.deal-badge-discount {
  position: absolute; top: 10px; right: 10px;
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 3px 7px; border-radius: 5px;
}
.deal-card-body { padding: 14px; }
.deal-card-cat { font-size: .72rem; color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.deal-card-name { font-size: .875rem; font-weight: 600; color: var(--text-900); margin-bottom: 10px; line-height: 1.35; }
.deal-card-prices { display: flex; align-items: baseline; gap: 8px; }
.deal-price-current { font-size: 1.1rem; font-weight: 800; color: var(--orange); }
.deal-price-old { font-size: .85rem; color: var(--text-400); text-decoration: line-through; }
.deal-offers { font-size: .75rem; color: var(--text-500); margin-top: 4px; }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.cat-page-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }

/* Filters sidebar */
.filters-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 4px;
}
.filters-sidebar::-webkit-scrollbar { width: 6px; }
.filters-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.filters-sidebar::-webkit-scrollbar-thumb:hover { background: var(--text-400); }
.filter-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 14px;
}
.filter-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; font-size: .875rem; font-weight: 700; color: var(--text-900);
  cursor: pointer; user-select: none;
  border-bottom: 1px solid var(--border);
}
.filter-header .toggle-icon { color: var(--text-400); font-size: .85rem; transition: transform var(--transition); }
.filter-header.open .toggle-icon { transform: rotate(180deg); }
.filter-body { padding: 14px 18px; }
.filter-search-input {
  width: 100%; padding: 8px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .85rem; outline: none;
  transition: border-color var(--transition);
}
.filter-search-input:focus { border-color: var(--orange); }
.price-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.price-preset {
  padding: 5px 10px; border: 1.5px solid var(--border);
  border-radius: 20px; font-size: .75rem; font-weight: 500; color: var(--text-600);
  cursor: pointer; transition: all var(--transition); background: #fff;
}
.price-preset:hover, .price-preset.active { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
.price-range-inputs { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.price-range-inputs input {
  flex: 1; padding: 7px 10px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .85rem; outline: none; text-align: center;
}
.price-range-inputs input:focus { border-color: var(--orange); }
.price-range-inputs span { color: var(--text-400); font-size: .85rem; }
.brand-list { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; }
.brand-item { display: flex; align-items: center; gap: 9px; }
.brand-item input[type=checkbox] { accent-color: var(--orange); width: 15px; height: 15px; cursor: pointer; }
.brand-item label { font-size: .875rem; cursor: pointer; color: var(--text-700); }
.brand-item label span { color: var(--text-400); font-size: .8rem; }
.filter-apply {
  width: 100%; margin-top: 14px; padding: 9px; background: var(--orange);
  color: #fff; border-radius: var(--radius-sm); font-weight: 600; font-size: .875rem;
  cursor: pointer; transition: background var(--transition);
  border: none;
}
.filter-apply:hover { background: var(--orange-dark); }

/* Products grid */
.products-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
}
.products-header h1 { font-size: 1.3rem; }
.products-meta { font-size: .85rem; color: var(--text-500); }
.products-sort {
  display: flex; align-items: center; gap: 10px;
}
.sort-select {
  padding: 7px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .85rem; background: #fff; color: var(--text-700); outline: none;
  cursor: pointer; transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--orange); }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.product-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  cursor: pointer; display: flex; flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--orange);
}
.product-card-img {
  background: var(--bg-page); height: 160px;
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.product-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-card-name {
  font-size: .875rem; font-weight: 600; color: var(--text-900);
  margin-bottom: 6px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-desc {
  font-size: .78rem; color: var(--text-500); margin-bottom: 10px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-footer { margin-top: auto; }
.product-card-offers { font-size: .75rem; color: var(--text-400); margin-bottom: 6px; }
.product-card-price { font-size: 1.1rem; font-weight: 800; color: var(--orange); }
.product-card-price-old { font-size: .8rem; color: var(--text-400); text-decoration: line-through; margin-left: 6px; }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 30px 0;
}
.page-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 500; color: var(--text-700);
  border: 1.5px solid var(--border); background: #fff;
  cursor: pointer; transition: all var(--transition);
}
.page-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
.page-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); font-weight: 700; }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ============================================================
   RESULTS PAGE — PRODUCT LAYOUT
   ============================================================ */
.results-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }

/* Product header card */
.product-header-card { padding: 24px; }
.product-header-inner { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
.product-img-wrap {
  background: var(--bg-page); border-radius: var(--radius);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; border: 1px solid var(--border);
}
.product-meta-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.product-meta-link { font-size: .8rem; color: var(--orange); font-weight: 600; }
.product-meta-link:hover { text-decoration: underline; }
.product-title { font-size: 1.5rem; font-weight: 800; color: var(--text-900); margin-bottom: 10px; line-height: 1.25; }
.product-desc { font-size: .88rem; color: var(--text-500); margin-bottom: 16px; line-height: 1.55; }
.product-update-note { font-size: .75rem; color: var(--text-400); margin-bottom: 14px; }

/* Variants */
.variants-label { font-size: .78rem; font-weight: 600; color: var(--text-500); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.variants-list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
  padding: 7px 14px; border-radius: 20px;
  border: 2px solid var(--border); background: #fff;
  font-size: .82rem; font-weight: 600; color: var(--text-700);
  cursor: pointer; transition: all var(--transition);
  white-space: nowrap;
}
.variant-btn:hover { border-color: var(--orange); color: var(--orange); }
.variant-btn.active { border-color: var(--orange); background: var(--orange); color: #fff; box-shadow: 0 2px 8px rgba(144,0,0,.3); }

/* Price table */
.price-table-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 22px 14px; font-size: .8rem; color: var(--text-500); flex-wrap: wrap; gap: 6px;
}
.price-table { width: 100%; border-collapse: collapse; }
.price-table thead th {
  padding: 10px 14px; text-align: left;
  font-size: .75rem; font-weight: 600; color: var(--text-500);
  text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 1px solid var(--border); background: var(--bg-page);
}
.price-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.price-table tbody tr:last-child { border-bottom: none; }
.price-table tbody tr:hover { background: #FFF5F5; }
.price-table tbody tr.best-offer { background: #FFF5F5; }
.price-table td { padding: 14px; vertical-align: middle; }
.retailer-logo {
  width: 68px; height: 42px; border-radius: var(--radius-sm);
  background: var(--bg-page); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; color: var(--text-500); text-align: center;
  padding: 4px;
}
.price-cell { white-space: nowrap; }
.price-main { font-size: 1.15rem; font-weight: 800; color: var(--text-900); }
.price-main.best { color: var(--orange); }
.price-ship { font-size: .75rem; color: var(--text-400); }
.price-ship.free { color: var(--green); font-weight: 600; }
.offer-name { font-size: .875rem; font-weight: 500; color: var(--text-900); line-height: 1.35; margin-bottom: 5px; }
.offer-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.btn-offer {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--orange); color: #fff;
  border-radius: var(--radius-sm); font-size: .82rem; font-weight: 700;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-offer:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* ============================================================
   RESULTS PAGE — STICKY SIDEBAR
   ============================================================ */
.results-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }

.sidebar-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.sidebar-header {
  background: var(--orange); padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-header-title { font-size: .8rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .8px; }
.sidebar-header-count { font-size: .75rem; background: rgba(255,255,255,.2); color: #fff; padding: 3px 9px; border-radius: 20px; font-weight: 600; }

.sidebar-body { padding: 18px; }
.sidebar-product-name { font-size: .85rem; font-weight: 600; color: var(--text-700); margin-bottom: 14px; line-height: 1.4; }

.sidebar-price-block { background: var(--bg-page); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.sidebar-price-label { font-size: .72rem; color: var(--text-500); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.sidebar-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sidebar-price-value { font-size: 2rem; font-weight: 900; color: var(--text-900); line-height: 1; white-space: nowrap; }
@media (max-width: 360px) { .sidebar-price-value { font-size: 1.65rem; } }
.sidebar-price-high { font-size: .85rem; color: var(--text-400); text-decoration: line-through; }
.sidebar-price-high-label { font-size: .68rem; color: var(--text-400); }

.sidebar-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.chip-green  { background: var(--green-bg);  color: var(--green); }
.chip-blue   { background: var(--blue-bg);  color: var(--blue); }
.chip-orange { background: var(--orange-100); color: var(--orange-dark); }
.chip-red    { background: #FEE2E2; color: var(--red); }
.chip-gray   { background: #F3F4F6; color: var(--text-500); }

.btn-buy {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 18px; background: var(--orange); color: #fff;
  border-radius: var(--radius); font-weight: 700;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 3px 12px rgba(144,0,0,.35);
}
.btn-buy:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(144,0,0,.45); }
.btn-buy-left { text-align: left; }
.btn-buy-main { font-size: 1rem; font-weight: 800; }
.btn-buy-sub { font-size: .75rem; opacity: .85; margin-top: 1px; }
.btn-buy svg { flex-shrink: 0; }

.sidebar-divider { height: 1px; background: var(--border); margin: 16px 0; }

.sidebar-other-title { font-size: .72rem; font-weight: 700; color: var(--text-500); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.sidebar-offer-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .82rem;
}
.sidebar-offer-row:last-child { border-bottom: none; }
.sidebar-offer-name { font-weight: 600; color: var(--text-700); }
.sidebar-offer-ship { font-size: .72rem; color: var(--text-400); }
.sidebar-offer-price { font-weight: 700; color: var(--text-900); }
.sidebar-offer-link { color: var(--orange); font-size: 1rem; margin-left: 6px; }

.sidebar-trust { margin-top: 14px; font-size: .72rem; color: var(--text-400); text-align: center; }

/* ============================================================
   FAMILLE SECTION
   ============================================================ */
.famille-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
  padding: 16px 22px 18px;
}
.famille-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 14px 10px; text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.famille-card:hover { border-color: var(--orange); box-shadow: 0 3px 12px rgba(144,0,0,.12); transform: translateY(-2px); }
.famille-card-img {
  height: 80px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; font-size: 2rem;
}
.famille-card-img img { max-height: 76px; max-width: 100%; object-fit: contain; display: block; margin: 0 auto; }
.famille-card-name { font-size: .78rem; font-weight: 600; color: var(--text-900); margin-bottom: 4px; line-height: 1.3; }
.famille-card-offers { font-size: .72rem; color: var(--text-500); }
.famille-card-price { font-size: .9rem; font-weight: 700; color: var(--orange); margin-top: 4px; }

/* ============================================================
   GUIDE D'ACHAT
   ============================================================ */
.guide-body { padding: 18px 22px; }
.guide-body p { font-size: .9rem; line-height: 1.7; color: var(--text-700); margin-bottom: 14px; }
.guide-body p:last-child { margin-bottom: 0; }
.guide-body a { color: var(--orange); font-weight: 600; }
.guide-body a:hover { text-decoration: underline; }

/* ============================================================
   BONS PLANS PAGE
   ============================================================ */
.bonsplans-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }

.bonsplans-header {
  background: linear-gradient(135deg, #0f0f1a, #1a1a3a);
  padding: 36px 0; margin-bottom: 28px; position: relative; overflow: hidden;
}
.bonsplans-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 500px 300px at 50% 50%, rgba(144,0,0,.15) 0%, transparent 70%);
}
.bonsplans-header-content { position: relative; z-index: 1; }
.bonsplans-header h1 { color: #fff; font-size: 2rem; margin-bottom: 6px; }
.bonsplans-header h1 span { color: var(--orange); }
.bonsplans-header p { color: rgba(255,255,255,.6); font-size: .95rem; }

.bonsplans-count-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
}
.bonsplans-count { font-size: .9rem; color: var(--text-500); }
.bonsplans-count strong { color: var(--text-900); font-size: 1rem; }

.bonsplan-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  cursor: pointer; display: flex; flex-direction: column;
}
.bonsplan-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--orange); }
.bonsplan-img {
  background: var(--bg-page); height: 150px;
  display: flex; align-items: center; justify-content: center; font-size: 2.8rem;
  position: relative;
}
.bonsplan-discount-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: #fff;
  font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 6px;
}
.bonsplan-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.bonsplan-cat { font-size: .72rem; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 5px; }
.bonsplan-name { font-size: .875rem; font-weight: 600; color: var(--text-900); margin-bottom: 10px; line-height: 1.35; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bonsplan-prices { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.bonsplan-price-now { font-size: 1.15rem; font-weight: 800; color: var(--orange); }
.bonsplan-price-was { font-size: .85rem; color: var(--text-400); text-decoration: line-through; }
.bonsplan-offers { font-size: .75rem; color: var(--text-500); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #111827; color: rgba(255,255,255,.65);
  padding: 50px 0 28px; margin-top: 50px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .site-logo { color: #fff; font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; line-height: 1.65; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: .875rem; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: .82rem; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--orange); }

/* ============================================================
   MOBILE STICKY BAR
   ============================================================ */
.mobile-sticky {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: #fff; border-top: 2px solid var(--border);
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  align-items: center; justify-content: space-between; gap: 12px;
}
.mobile-sticky-info { display: flex; flex-direction: column; }
.mobile-sticky-label { font-size: .7rem; color: var(--text-500); font-weight: 600; text-transform: uppercase; }
.mobile-sticky-price { font-size: 1.2rem; font-weight: 900; color: var(--orange); line-height: 1; }
.mobile-sticky-retailer { font-size: .72rem; color: var(--text-400); }
.mobile-sticky-spacer { height: 70px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .results-layout { grid-template-columns: 1fr 280px; }
}

@media (max-width: 960px) {
  .cat-page-layout { grid-template-columns: 1fr; }
  .bonsplans-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .filter-card { display: none; }
  .filter-card.mobile-open { display: block; }
  .site-nav { display: none; }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .results-layout { grid-template-columns: 1fr; }
  .results-sidebar { position: static; display: none; }
  .mobile-sticky { display: flex; }
  .product-header-inner { grid-template-columns: 120px 1fr; gap: 16px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-search { flex-direction: column; border-radius: 10px; overflow: visible; gap: 8px; }
  .hero-search input { border-radius: 8px; }
  .hero-search button { border-radius: 8px; padding: 14px; width: 100%; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

@media (max-width: 540px) {
  .container { padding: 0 14px; }
  .product-header-inner { grid-template-columns: 1fr; }
  .product-img-wrap { max-width: 200px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* === RESPONSIVE LOGO + HEADER === */
@media (max-width: 767px) {
  .site-logo { font-size: 1.05rem; letter-spacing: -.3px; }
  .header-search { display: none; }
}
@media (max-width: 420px) {
  .site-logo { font-size: .95rem; }
}

/* === MOBILE HEADER (header already dark on all viewports) === */
@media (max-width: 767px) {
  .menu-toggle { background: rgba(255,255,255,.08) !important; }
  .menu-toggle span { background: #fff !important; }
}

/* === MOBILE NAV DRAWER (hamburger panel) === */
.mob-nav-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:990;opacity:0;transition:opacity .25s}
.mob-nav-overlay.open{display:block;opacity:1}
.mob-nav-drawer{position:fixed;top:0;left:-280px;width:280px;height:100%;background:#fff;z-index:995;transition:left .28s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;overflow:hidden}
.mob-nav-drawer.open{left:0}
.mob-nav-head{background:#6B0000;padding:16px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
.mob-nav-logo{color:#fff;font-size:.9rem;font-weight:800}
.mob-nav-logo span{color:#ffcc00}
.mob-nav-close{background:none;border:none;color:#fff;font-size:1.3rem;cursor:pointer;padding:4px 6px;border-radius:6px;line-height:1}
.mob-nav-close:hover{background:rgba(255,255,255,.15)}
.mob-nav-body{flex:1;overflow-y:auto;padding:8px 0}
.mob-nav-sec{font-size:.6rem;font-weight:800;color:#999;text-transform:uppercase;letter-spacing:1px;padding:12px 16px 6px}
.mob-nav-item{display:flex;align-items:center;gap:12px;padding:11px 16px;text-decoration:none;color:#222;font-size:.88rem;font-weight:500;transition:background .1s;border:none;background:none;width:100%;text-align:left;cursor:pointer}
.mob-nav-item:hover,.mob-nav-item.mob-active{background:#FFF5F5;color:#6B0000}
.mob-nav-item.mob-active{font-weight:700}
.mob-nav-icon{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1rem;flex-shrink:0;background:#f5f5f5}
.mob-nav-item.mob-active .mob-nav-icon{background:#FFE4E4}
.mob-nav-divider{height:1px;background:#f0f0f0;margin:6px 0}
.mob-nav-foot{padding:12px 16px;border-top:1px solid #f0f0f0;font-size:.68rem;color:#aaa;flex-shrink:0}
