/**
 * Sen Computer — dedicated "Meilleures ventes" page. Reuses .sc-product-grid/
 * .sc-product-card (homepage-redesign.css) via SenProductCard.build(), with
 * its own hero band and a rank badge overlaid on each card.
 */

.bs-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(120deg, var(--sc-coral) 0%, #ff8a68 100%);
  border-radius: 20px;
  padding: 32px 30px;
  margin-bottom: 8px;
  color: #151515;
  overflow: hidden;
  position: relative;
}
.bs-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 20%, hsla(0, 0%, 100%, 0.35), transparent 55%);
  pointer-events: none;
}

.bs-hero-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.28);
  flex-shrink: 0;
  font-size: 30px;
  animation: bs-trophy-float 3.2s ease-in-out infinite;
}
@keyframes bs-trophy-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-5px) rotate(4deg); }
}

.bs-hero-eyebrow {
  font-size: var(--fs-9);
  font-weight: var(--weight-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-bottom: 4px;
}
.bs-hero h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: var(--weight-800); margin-bottom: 6px; line-height: 1.1; }
.bs-hero-desc { font-size: var(--fs-8); max-width: 62ch; line-height: 1.6; opacity: 0.9; }

.bs-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1024px) { .bs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.bs-card-wrap { position: relative; }

.bs-rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: var(--fs-10);
  font-weight: var(--weight-700);
  color: #151515;
  background: var(--sc-coral-soft);
  box-shadow: 0 2px 6px rgba(21, 21, 21, 0.1);
}
.bs-card-wrap:nth-child(1) .bs-rank-badge { background: linear-gradient(120deg, #ffd84d, #ffb84d); }
.bs-card-wrap:nth-child(2) .bs-rank-badge { background: linear-gradient(120deg, #e4e6ea, #c7cbd1); }
.bs-card-wrap:nth-child(3) .bs-rank-badge { background: linear-gradient(120deg, #e8b98a, #d69a63); }

.bs-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 64px 20px;
  text-align: center;
  color: var(--sc-muted);
}
.bs-empty .sc-icon { font-size: 40px; color: var(--sc-coral); }
.bs-empty p { font-size: var(--fs-7); max-width: 42ch; }
.bs-empty[hidden] { display: none; }
.bs-grid[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .bs-hero-icon { animation: none; }
}
