/* ════════════════════════════════════════════════════════════
   PAGE CATÉGORIE PRODUIT
   ════════════════════════════════════════════════════════════ */

.bcat-page {
  background: var(--gray);
  min-height: 80vh;
}

/* ─── Hero ───────────────────────────────────────────────── */
.bcat-hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 38vh;
  min-height: 240px;
  max-height: 360px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;

  /* Image de catégorie si disponible */
  background-image: var(--bcat-bg, none);
  background-size: cover;
  background-position: center;
}

.bcat-hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(45,74,53,0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 25%, rgba(232,160,32,0.2) 0%, transparent 50%),
    linear-gradient(135deg, #1a2e1e 0%, #243d28 50%, #1a1a1a 100%);
}

.bcat-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,20,12,0.75) 0%, rgba(10,20,12,0.3) 60%, transparent 100%);
  z-index: 1;
}

.bcat-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 8%;
  max-width: 600px;
}

.bcat-hero__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.bcat-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: var(--weight-extrabold);
  color: var(--white);
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.bcat-hero__desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bcat-hero__count {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── Grille produits ────────────────────────────────────── */
.bcat-grid-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

/* Surcharge WooCommerce pour utiliser notre style */
.bcat-grid-wrap ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 48px !important;
}

.bcat-grid-wrap ul.products li.product {
  background: var(--white) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  border: 1px solid var(--border) !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
  padding: 0 !important;
  margin: 0 !important;
}

.bcat-grid-wrap ul.products li.product:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1) !important;
  transform: translateY(-3px) !important;
}

/* Vide */
.bcat-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
  font-family: var(--font-body);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .bcat-hero { height: 32vh; min-height: 200px; }
  .bcat-hero__content { padding: 0 6%; }
  .bcat-grid-wrap { padding: 28px 20px 60px; }
  .bcat-grid-wrap ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}

@media (max-width: 480px) {
  .bcat-grid-wrap ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}
