/* PromoPC.be v2 — light, dense look. Loaded after style.css by PromoPC's own pages only
   (templates/*.html); PromoTV and PromoSmartphone keep the original look until they are ported. */

:root {
  --bg: #f5f6f8;
  --card-bg: #ffffff;
  --border: #e3e6ec;
  --ink: #161b26;
  --gray: #667085;
  --accent-text: #7a5200;
  --sale: #d8232f;
  --nav-active: #fff4d6;
  --shadow: rgba(22, 27, 38, 0.06);
  --shadow-hover: rgba(22, 27, 38, 0.12);
}

:root[data-theme="dark"] {
  --nav-active: rgba(240, 162, 2, 0.16);
  --sale: #e8334a;
}

.container { max-width: 1180px; }

/* ---- top bar: logo + tabs + Facebook + theme, one sticky line ---- */
.category-nav {
  border-top: none;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
  padding: 0;
}

.category-nav .container { height: 56px; gap: 22px; }

.nav-logo {
  color: var(--ink);
  border-right: none;
  padding-right: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-logo b { font-weight: 800; color: var(--accent); }
.nav-logo .logo-mark { width: 28px; height: 28px; color: var(--ink); }

.category-nav-scroll { gap: 4px; }

.category-nav a {
  color: var(--gray);
  padding: 8px 12px;
  border-bottom: none;
  border-radius: 8px;
}

.category-nav a:hover { color: var(--ink); }

.category-nav a.active {
  background: var(--nav-active);
  color: var(--accent-text);
}

.category-nav .nav-logo,
.category-nav .nav-facebook { padding: 0; background: none; }

.nav-facebook { color: var(--gray); }

.category-nav .theme-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gray);
}

.category-nav .theme-toggle:hover { background: var(--bg); }

/* ---- page title and intro: one heading, one sentence ---- */
.page-title {
  margin: 24px 0 0;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.intro {
  max-width: none;
  margin: 6px 0 4px;
  font-size: 14px;
  line-height: 1.5;
}

.amazon-box { margin: 14px 0 0; padding: 8px 14px; }

/* ---- filters: one compact bar ---- */
.filters {
  top: 56px;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px 0;
  border-bottom: none;
}

.ms-toggle {
  height: 38px;
  padding: 0 30px 0 12px;
  border-radius: 10px;
  font-size: 14px;
}

.ms-toggle.active { background: var(--nav-active); }

.filter-reset {
  height: 38px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.section-title { display: none; } /* "Offres du moment": the grid speaks for itself */

/* ---- cards: image, name, 3 facts, price, button ---- */
.deals-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.deal-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: none;
}

.deal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-hover);
}

.deal-card.is-new { border: 1px solid var(--border); }

.deal-image {
  height: 170px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.deal-body {
  position: static;
  padding: 12px 14px 14px;
  gap: 0;
}

.badge {
  top: 10px;
  right: auto;
  left: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  flex-direction: row;
  box-shadow: none;
}

.badge-pct { font-size: 13px; }
.badge-amount { display: none; }

.badge-bf {
  top: 10px;
  left: auto;
  right: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  box-shadow: none;
}

.badge-new {
  top: 42px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: none;
}

.badge-new ~ .badge-bf { left: auto; }

.brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.name {
  margin: 2px 0 6px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rating { margin: 4px 0 0; font-size: 13px; }

.specs { gap: 0 6px; margin: 0 0 4px; }

.specs li {
  background: none;
  padding: 0;
  font-size: 13px;
}

.specs li:nth-child(n+4) { display: none; }
.specs li + li::before { content: "·"; margin-right: 6px; }
.spec-icon { display: none; }

.prices { gap: 2px 0; padding-top: 8px; }

.price-current { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.price-reference { font-size: 14px; margin-left: 8px; }
.sparkline { display: none; }

.price-low-tag { font-size: 12.5px; margin-top: 2px; }

.price-low-tag::before {
  content: "✓";
  width: auto;
  height: auto;
  background: none;
  font-weight: 800;
}

.retailer {
  display: block;
  margin: 10px 0 0;
  padding: 10px;
  text-align: center;
  background: var(--ink);
  color: var(--card-bg);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.deal-card:hover .retailer { opacity: 0.88; }

/* ---- footer ---- */
footer { background: transparent; margin-top: 8px; }
