/* =========================================================
   Catalogue (catégories) + fiche produit — compléments refonte.
   Le gros du design system catégorie vit dans refonte.css ;
   ce fichier n'ajoute que les pièces spécifiques.
   ========================================================= */

/* Parallaxe hero catégorie : sur-dimensionne le fond pour ne pas révéler les bords */
.category-hero-bg[data-parallax] {
  top: -12%;
  bottom: auto;
  height: 124%;
}

.category-hero-inner {
  position: relative;
  padding-block: clamp(40px, 7vw, 60px) clamp(32px, 5vw, 48px);
}
.category-hero-title {
  font-size: clamp(34px, 5.4vw, 70px);
  line-height: 1.02;
  margin: 12px 0;
  max-width: 20ch;
}
.category-hero-title em {
  font-style: italic;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.category-hero-desc {
  max-width: 62ch;
  margin: 0;
}

/* =========================================================
   Fiche produit
   ========================================================= */
.product-detail {
  padding-block: clamp(28px, 5vw, 56px) clamp(56px, 9vw, 96px);
}
.product-crumb,
.product-detail .crumb {
  margin-bottom: clamp(20px, 4vw, 36px);
}
.product-detail-grid {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.product-gallery-main {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
  background: var(--bg-deep);
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.product-thumb {
  position: relative;
  width: 74px;
  height: 56px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(97, 177, 188, 0.5);
}
.product-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(97, 177, 188, 0.35);
}
.product-thumb-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--accent-soft);
  font-size: 16px;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-title {
  font-size: clamp(30px, 4.4vw, 56px);
  margin: 6px 0 0;
  line-height: 1.04;
}
.product-ref {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}
.product-ref strong {
  color: var(--text);
}
.product-swatch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 4px;
}
.product-swatch img {
  width: 100%;
  max-width: 320px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
}
.product-cta {
  margin-top: 8px;
}
.product-back {
  margin-top: 8px;
}

.product-videos {
  margin-top: clamp(40px, 7vw, 72px);
}
.product-videos-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 14px;
}
@media (min-width: 760px) {
  .product-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.product-videos-grid video {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: #000;
  display: block;
}

/* =========================================================
   Mobile — catalogue + fiche produit
   ========================================================= */
@media (max-width: 719px) {
  /* Hero catégorie : moins de hauteur */
  .category-hero {
    min-height: min(55vw, 320px);
  }
  .category-hero-inner {
    padding-block: 28px 24px;
  }
  .category-hero-title {
    font-size: clamp(28px, 8vw, 48px);
    margin: 8px 0;
  }
  .category-hero-desc {
    font-size: 14px;
  }
  /* Toolbar : empile la meta sous la recherche */
  .category-toolbar {
    padding: 14px 0;
    gap: 10px;
  }
  .category-toolbar-row {
    flex-direction: column;
    gap: 8px;
  }
  .category-search-input {
    width: 100%;
  }
  .category-sort-select {
    width: 100%;
  }
  /* Fiche produit */
  .product-detail {
    padding-block: 20px 48px;
  }
  .product-title {
    font-size: clamp(26px, 8vw, 42px);
  }
  .product-swatch img {
    max-width: 100%;
    height: 56px;
  }
  .product-cta {
    flex-direction: column;
    gap: 10px;
  }
  .product-cta .btn {
    width: 100%;
    justify-content: center;
  }
}
