/* ════════════════════════════════════════════════════════════
   PAGE BOUTIQUE — Computer store style adapté Boturea
   Hero · Catégories alternées · Grille 4 colonnes hover
   ════════════════════════════════════════════════════════════ */

.bsh-page {
  background: var(--gray);
}

/* ─── LAYOUT SIDEBAR + PRODUITS ─────────────────────────────── */
.bsh-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 40px 80px;
  align-items: start;
  box-sizing: border-box;
}

/* ─── SIDEBAR FILTRES ────────────────────────────────────────── */
.bsh-sidebar {
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.bsh-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--gray);
}

.bsh-sidebar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: var(--weight-bold);
  color: var(--black);
  margin: 0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bsh-sidebar__title svg { width: 16px; height: 16px; stroke: var(--g); }

.bsh-clear-filters {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: var(--weight-semibold);
  color: #ef4444;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(239,68,68,0.08);
  transition: background 0.18s ease;
}

.bsh-clear-filters:hover { background: rgba(239,68,68,0.15); }

/* Groupe de filtres */
.bsh-filter-group {
  border-bottom: 1px solid var(--border);
}

.bsh-filter-group:last-child { border-bottom: none; }

.bsh-filter-group__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
  color: var(--black);
  text-align: left;
  transition: background 0.15s ease;
}

.bsh-filter-group__title:hover { background: var(--gray); }

.bsh-filter-group__title svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.bsh-filter-group.open .bsh-filter-group__title svg { transform: rotate(180deg); }

.bsh-filter-group__body {
  display: none;
  flex-direction: column;
  padding: 4px 0 12px;
}

.bsh-filter-group.open .bsh-filter-group__body { display: flex; }

/* Items filtre */
.bsh-filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.bsh-filter-item span { font-size: 0.72rem; color: var(--border); }

.bsh-filter-item:hover { color: var(--g); background: rgba(45,74,53,0.04); }

.bsh-filter-item.active {
  color: var(--g);
  font-weight: var(--weight-semibold);
  background: rgba(45,74,53,0.06);
}

.bsh-filter-item.active::before {
  content: '✓';
  margin-right: 6px;
  font-size: 0.7rem;
}

/* Swatches couleur */
.bsh-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 20px 8px;
}

.bsh-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}

.bsh-color-swatch.transparent {
  background: linear-gradient(135deg, #f0f0f0 25%, #ccc 25%, #ccc 50%, #f0f0f0 50%, #f0f0f0 75%, #ccc 75%) !important;
  background-size: 8px 8px !important;
}

.bsh-color-swatch:hover { transform: scale(1.15); }

.bsh-color-swatch.active {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--g);
}

/* ─── GRILLE PRODUITS (section-3) ────────────────────────────── */
.bsh-main { min-width: 0; }
.bsh-grid-section { /* gardé pour compatibilité */ }

.bsh-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.bsh-grid-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bsh-grid-meta .woocommerce-result-count {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.bsh-empty {
  text-align: center;
  padding: 60px 0;
  font-family: var(--font-body);
  color: var(--muted);
}

.bsh-grid-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: var(--weight-bold);
  color: var(--black);
  margin: 0;
  letter-spacing: -0.02em;
}

/* Tri WooCommerce */
.bsh-ordering select {
  height: 36px;
  padding: 0 32px 0 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--black);
  background: var(--white);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
}

/* Grille 4 colonnes */
.bsh-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Carte produit */
.bsh-product {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
}

.bsh-product:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* Zone image */
.bsh-product__img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--gray);
  overflow: hidden;
}

.bsh-product__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  box-sizing: border-box;
  transition: transform 0.4s ease;
}

.bsh-product:hover .bsh-product__img-wrap img {
  transform: scale(1.06);
}

.bsh-product__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f0f0, #e5e5e7);
}

/* Overlay "Ajouter au panier" — style section-3 */
.bsh-product__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(45,74,53,0.25) 0%,
    rgba(45,74,53,0.65) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bsh-product:hover .bsh-product__overlay {
  opacity: 1;
  transform: scaleY(1);
  transform-origin: top;
}

.bsh-product__cart {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--g);
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.bsh-product__cart:hover { background: var(--gold); color: var(--white); }

/* Infos produit */
.bsh-product__info {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
}

.bsh-product__name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: var(--weight-semibold);
  color: var(--black);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.bsh-product__name:hover { color: var(--g); }

.bsh-product__price {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: var(--weight-bold);
  color: var(--g);
}

.bsh-product__price del { color: var(--muted); font-size: 0.78rem; font-weight: 400; margin-right: 4px; }

/* Pagination */
.bsh-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.bsh-pagination .woocommerce-pagination ul {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.bsh-pagination .woocommerce-pagination ul li a,
.bsh-pagination .woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--black);
  text-decoration: none;
  transition: all 0.18s ease;
}

.bsh-pagination .woocommerce-pagination ul li a:hover,
.bsh-pagination .woocommerce-pagination ul li span.current {
  background: var(--g);
  border-color: var(--g);
  color: var(--white);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .bsh-layout { padding: 28px 24px 60px; }
  .bsh-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .bsh-layout { grid-template-columns: 1fr; padding: 20px 16px 60px; }
  .bsh-sidebar { position: static; }
  .bsh-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .bsh-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bsh-grid-title { font-size: 1.2rem; }
}
