﻿/* Page produit */

.product-page {
  position: relative;
}

/* Forme de fond decorative (miroir de celle de la home, en haut a droite) — couleur/symbole selon la collection */
.product-bg-shape-right {
  position: absolute;
  /* colle au bord droit de l ecran : compense la marge auto du .container (max-width 1280px) */
  right: min(-70px, calc((1280px - 100vw) / 2 - 70px));
  top: -180px;
  width: 360px;
  height: 740px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.55) 42%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.55) 42%, transparent 80%);
}

.product-bg-shape-right[data-collection="resines-cbd"] { top: -120px; }
.product-bg-shape-right[data-collection="huiles-cbd"]  { top: -120px; right: min(-80px, calc((1280px - 100vw) / 2 - 80px)); }

/* Wrapper central : aligne hero + onglets + réassurance sur la même largeur que le breadcrumb (padding-inline: 100px côté container) */
.product-main {
  padding-inline: 100px;
  position: relative;
  z-index: 1;
}

/* Hero : 2 colonnes (galerie figée 400px + détails élastiques) */
.product-hero {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 25px;
  margin-bottom: 60px;
  align-items: stretch;
}

/* Galerie */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.product-image-area {
  --hero-halo: 38, 210, 118; /* fleurs (vert) par dÃ©faut */
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(var(--hero-halo), 0.75) 0%, rgba(var(--hero-halo), 0.4) 18%, transparent 50%),
    #462C83;
  border-radius: 16px;
  padding: 32px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image-area[data-collection="resines-cbd"]      { --hero-halo: 255, 128, 0; }
.product-image-area[data-collection="huiles-cbd"]       { --hero-halo: 255, 238, 0; }
.product-image-area[data-collection="accessoires-cbd"]  { --hero-halo: 53, 182, 180; }

.product-main-image,
.product-main-video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.product-main-image {
  object-fit: contain;
}

.product-main-video {
  object-fit: cover;
  background: transparent;
}

/* Badges gauche (repris du design product-card) */
.product-badges-left {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-label {
  background: var(--purple);
  color: var(--green);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 50px;
  white-space: nowrap;
  line-height: 1.2;
}

.badge-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-weight: 700;
  font-size: 0.75rem;
}

.badge-circle svg {
  width: 80%;
  height: 80%;
}

.badge-circle.badge-bestseller svg {
  width: 55%;
  height: 55%;
}

.badge-circle.badge-cbd {
  font-size: 0.75rem;
}

.badge-circle.badge-cbd .cbd-value {
  font-weight: 800;
}

/* Badges emoji (reco / rupture) — cercle vert hérité, emoji plus gros */
.badge-circle.badge-emoji {
  font-size: 1.15rem;
  line-height: 1;
}

/* Badges Promo & New : sticker festonné rouge */
.badge-circle.badge-promo,
.badge-circle.badge-new {
  background: transparent;
  color: var(--white);
  overflow: visible;
  position: relative;
}

.badge-circle.badge-promo::before,
.badge-circle.badge-new::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ff2020;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='black'><circle cx='50' cy='50' r='42'/><circle cx='50' cy='8' r='8'/><circle cx='71' cy='14' r='8'/><circle cx='86' cy='29' r='8'/><circle cx='92' cy='50' r='8'/><circle cx='86' cy='71' r='8'/><circle cx='71' cy='86' r='8'/><circle cx='50' cy='92' r='8'/><circle cx='29' cy='86' r='8'/><circle cx='14' cy='71' r='8'/><circle cx='8' cy='50' r='8'/><circle cx='14' cy='29' r='8'/><circle cx='29' cy='14' r='8'/></g></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='black'><circle cx='50' cy='50' r='42'/><circle cx='50' cy='8' r='8'/><circle cx='71' cy='14' r='8'/><circle cx='86' cy='29' r='8'/><circle cx='92' cy='50' r='8'/><circle cx='86' cy='71' r='8'/><circle cx='71' cy='86' r='8'/><circle cx='50' cy='92' r='8'/><circle cx='29' cy='86' r='8'/><circle cx='14' cy='71' r='8'/><circle cx='8' cy='50' r='8'/><circle cx='14' cy='29' r='8'/><circle cx='29' cy='14' r='8'/></g></svg>");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.badge-circle.badge-promo {
  flex-direction: column;
  gap: 0;
}
.badge-circle.badge-promo .promo-label {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.45rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.badge-circle.badge-promo .promo-value {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.badge-circle.badge-new {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}
.badge-circle.badge-new .badge-new-label {
  position: relative;
  line-height: 1;
}

/* Cercles de badge : couleur de la categorie (promo/new gardent leur sticker rouge) */
.product-image-area[data-collection="resines-cbd"] .badge-circle:not(.badge-promo):not(.badge-new) {
  background: var(--orange);
}
.product-image-area[data-collection="huiles-cbd"] .badge-circle:not(.badge-promo):not(.badge-new) {
  background: var(--yellow);
}

/* Miniatures : a cheval sur le bas du cadre image (moitie dedans, moitie dessous) */
.product-thumbnails {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 0 24px;
  margin-top: -52px;
  position: relative;
  z-index: 2;
}

.thumbnail {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  background: #5B3FA8;
  transition: border-color 0.2s ease;
}

.thumbnail.active {
  border-color: rgba(255, 255, 255, 0.45);
}

.thumbnail-video {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.thumbnail-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  pointer-events: none;
}

/* Overlay violet sur toute la miniature video */
.thumbnail-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(47, 21, 108, 0.55);
  border-radius: 6px;
  pointer-events: none;
}

.thumbnail-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 90%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

/* Details produit */
.product-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Titre + note inline */
.product-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.product-title {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--green);
  /* Trop long -> coupe a 3 lignes avec ... + force wrap des chaines sans espace */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.product-title-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1;
  color: var(--white);
  align-self: center;
  margin-left: 10px;
}

.product-title-rating svg {
  display: block;
}

/* Description */
.product-tagline {
  font-family: var(--font-body);
  color: var(--orange);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0 0 10px 0;
}

.product-description {
  line-height: 1.6;
  opacity: 0.85;
  font-size: 0.9rem;
}

.product-description p {
  margin: 0 0 0.6em 0;
}

.product-description p:last-child {
  margin-bottom: 0;
}

.product-description a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-description a:hover {
  color: var(--orange);
}

/* Variantes : boutons pill egaux. margin-top: auto pousse les variants + le reste vers le bas du details (space-between vertical) */
.product-variants-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.product-variants-btns .variant-btn {
  flex: 1 1 calc(50% - 5px);
  max-width: calc(50% - 5px);
}

.variant-btn {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 5px 25px 5px 20px;
  background: transparent;
  border: 2px solid var(--green);
  border-radius: 9999px;
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  height: 46px;
  box-sizing: border-box;
}

.variant-btn.active {
  background: var(--green);
  color: var(--purple);
}

.variant-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Produit entièrement en rupture : tous les contrôles d'achat passent en grisé */
.product-details.out-of-stock .toggle-wrapper,
.product-details.out-of-stock .qty-control,
.product-details.out-of-stock #sub-frequency-wrapper,
.product-details.out-of-stock .btn-add-to-cart {
  opacity: 0.35;
  pointer-events: none;
}

.variant-btn-label {
  font-family: var(--font-head);
  font-size: 1.7rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
  color: var(--green);
}

.variant-btn.active .variant-btn-label { color: var(--purple); }
.resines .variant-btn-label { color: var(--orange); }
.resines .variant-btn.active .variant-btn-label { color: var(--purple); }
.huiles .variant-btn-label { color: var(--yellow); }
.huiles .variant-btn.active .variant-btn-label { color: var(--purple); }

.variant-btn-label .variant-sep {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1rem;
  margin: 0 6px;
  vertical-align: middle;
  color: var(--white);
}

.variant-btn-label .variant-unit-price {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-style: italic;
  vertical-align: middle;
  color: var(--white);
}

.variant-btn.active .variant-sep,
.variant-btn.active .variant-unit-price {
  color: var(--purple);
}

.variant-btn-price {
  font-family: var(--font-head);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--green);
}

.variant-btn.active .variant-btn-price { color: var(--purple); }

.resines .variant-btn-price     { color: var(--orange); }
.resines .variant-btn.active .variant-btn-price { color: var(--purple); }
.huiles .variant-btn-price      { color: var(--yellow); }
.huiles .variant-btn.active .variant-btn-price  { color: var(--purple); }

/* Toggle Mode d'achat â€” split diagonal */
.toggle-wrapper {
  position: relative;
  display: flex;
  border-radius: 9999px;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  height: 46px;
  background: var(--purple);
  box-shadow: inset 0 0 0 2px var(--green);
}

/* Pastille verte qui glisse entre les deux moities (slash conserve a droite de la pastille) */
.toggle-wrapper::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 53%;
  background: var(--green);
  clip-path: polygon(0 0, 100% 0, 88.68% 100%, 0 100%);
  z-index: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, clip-path;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: opacity(1);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), clip-path 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-wrapper::after { display: none; }

.slider { display: none; }

.option {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.7rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.option-unique {
  flex: 1;
}

.option-abo {
  flex: 1;
  gap: 8px;
}

.discount {
  font-size: 1.25rem;
  border-radius: 20px;
  opacity: 0.8;
}

/* Achat unique actif */
.toggle-wrapper[data-active="unique"] .option-unique { color: var(--purple); }
.toggle-wrapper[data-active="unique"] .option-abo    { color: var(--white); }

/* Abonnement actif : zone verte passe Ã  droite */
.toggle-wrapper[data-active="abo"]::before {
  transform: translate3d(88.68%, 0, 0);
  clip-path: polygon(11.32% 0, 100% 0, 100% 100%, 0 100%);
}
.toggle-wrapper[data-active="abo"] .option-unique { color: var(--white); }
.toggle-wrapper[data-active="abo"] .option-abo    { color: var(--purple); }

/* Select frequence abonnement : label vert + valeur blanche (meme pattern que .sorter-select du catalogue) */
.sorter-select {
  position: relative;
  display: flex;
  align-items: center;
  padding: 6px 50px 6px 25px;
  margin: 0;
  border: 2px solid var(--green);
  border-radius: 25px;
  font-family: var(--font-head);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  background: transparent;
}

.sorter-select-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.sorter-select-label {
  color: var(--green);
}

.sorter-select-value {
  color: var(--white);
}

.sorter-select::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 12px;
  height: 7px;
  background-color: var(--green);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateY(-50%);
  pointer-events: none;
}

.sorter-select-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background: transparent;
  color: transparent;
  font: inherit;
  font-size: 1rem;
}

.sorter-select-input:focus-visible + ::after,
.sorter-select:focus-within {
  outline: none;
}

.sorter-select-input option {
  color: var(--white);
  background-color: var(--purple);
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: normal;
  font-variant: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: left;
  text-align-last: left;
  text-transform: none;
  text-shadow: none;
  text-decoration: none;
  cursor: default;
  padding: 4px 8px;
}

/* Ligne panier : qty + bouton + prix */
.product-cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  border-radius: 9999px;
  padding: 0 10px;
  height: 46px;
  box-sizing: border-box;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--purple);
  font-family: var(--font-head);
  font-size: 2.75rem;
  line-height: 1;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.qty-value {
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1;
}

.btn-add-to-cart {
  flex: 1;
  padding: 5px 25px 5px 20px;
  background: var(--green);
  color: var(--purple);
  border: 2px solid var(--green);
  border-radius: 9999px;
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-to-cart:not(:disabled):hover {
  background: var(--purple);
  color: var(--green);
  border-color: var(--green);
}

.btn-add-to-cart:disabled {
  opacity: 0.6;
  background: #327D78;
  border-color: #327D78;
  cursor: not-allowed;
}

.cart-price-display {
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 0;
  color: var(--green);
  white-space: nowrap;
}

.no-variant {
  text-align: center;
  padding: 16px;
  opacity: 0.6;
  font-style: italic;
}

/* SECTION ONGLETS (Composition, Informations, FAQ, Avis) */
.products-details-datas {
  color: #fff;
  border-radius: 25px;
}

/* RÃ©assurance produit : hÃ©rite largeur + responsive de .footer-top, juste un peu d'espacement vertical en plus */
.product-reassurance {
  margin-block: 40px;
}

/* Sections "Produits similaires" / "Produits complÃ©mentaires" */
.related-products {
  margin: 60px 0;
  padding: 0 20px;
}

/* Plus d'air en bas sous le dernier bloc (Produits complementaires) */
.related-products:last-of-type {
  margin-bottom: 95px;
}

.related-products-title {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 400;
  color: var(--green);
  text-align: center;
  margin-bottom: 30px;
}

.related-products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.related-products-grid .product-card {
  width: 265px;
}

@media (min-width: 1280px) {
  .related-products-grid .product-card { width: 295px; }
}

@media (max-width: 1150px) {
  .related-products-grid .product-card { width: 235px; }
}
@media (max-width: 1024px) {
  .related-products-grid { gap: 16px; }
  .related-products-grid .product-card { width: 320px; }
}
@media (max-width: 480px) {
  .related-products-grid .product-card {
    width: 90%;
    max-width: 360px;
  }
}
.products-details-datas button {
  font-family: var(--font-head);
  font-size: 2rem;
}

.button-nav {
  display: flex;
  gap: 15px;
  margin-left: 5%;
  z-index: 2;
  position: relative;
  transform: translateY(50%);
}

.nav-button {
  background: var(--green);
  border: none;
  padding: 0 15px;
  border-radius: 50px;
  color: var(--purple);
  cursor: pointer;
  transition: transform 0.2s;
}

.nav-button.active {
  background: var(--purple);
  border: 2px solid var(--green);
  color: var(--green);
}

.nav-button-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-head);
  line-height: 1;
  margin-left: 4px;
  color: var(--white);
}

.nav-button-rating svg {
  display: block;
}

.details-container {
  /* Dashed border custom (stroke 3px, tirets 6px / gaps 8px). Couleur #26D276 en dur car
     les CSS vars ne marchent pas dans les data URI â€” sync si --green change. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'><rect width='100%25' height='100%25' rx='20' ry='20' fill='none' stroke='%2326D276' stroke-width='3' stroke-dasharray='6 8'/></svg>");
  background-repeat: no-repeat;
  border-radius: 20px;
  padding: 40px;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  color: var(--green);
  font-size: 4rem;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange);
  vertical-align: middle;
}

.subtitle a {
  color: var(--orange);
  text-decoration: underline;
}

.subtitle a:hover {
  opacity: 0.8;
}

.subtitle .flag-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
  margin-left: 4px;
}

.taux-label {
  color: var(--green);
  font-size: 4rem;
  font-family: var(--font-head);
}

.substance-list {
  list-style: none;
  padding: 0;
}

.substance-list li {
  display: flex;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 1.125rem;
}

/* Points avec espacement custom (le `dotted` natif a un ratio non tunable).
   Dot 5px de diametre, espace toutes les 16px. Modifier background-size pour
   ajuster l'espacement, et la radial-gradient pour la taille des points. */
.dots {
  flex-grow: 1;
  height: 7px;
  background-image: radial-gradient(circle, var(--green) 2.5px, transparent 3px);
  background-size: 16px 7px;
  background-repeat: repeat-x;
  background-position: center;
  margin: 0 10px;
  opacity: 0.25;
}

.value { font-weight: normal; }

.action-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.download-button {
  background-color: var(--green);
  border: none;
  /* 2px vertical pour compenser la diff de metriques entre font-body et font-head (nav-buttons) */
  padding: 2px 25px;
  border-radius: 50px;
  color: var(--purple);
  cursor: pointer;
  font-family: var(--font-body);
  text-transform: none;
}

.product-panel-content       { display: none; }
.product-panel-content.active{ display: block; }

/* Paragraphe complementaire (italique gris) */
.informations-extra {
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 12px;
}

/* Onglet Informations : blocs Guide usage / Conservation / Consommation */
.product-info-block {
  margin-bottom: 24px;
}

.product-info-block:last-of-type {
  margin-bottom: 16px;
}

.product-info-title {
  font-family: var(--font-body);
  color: var(--orange);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0 0 10px 0;
}

.product-info-block p {
  margin: 0 0 8px 0;
  line-height: 1.6;
  font-size: 0.9rem;
  opacity: 0.85;
}

.product-info-block p:last-child {
  margin-bottom: 0;
}

/* Titres et listes Effets / Odeur / Aspect */
.cannabinoids h3,
.product-attributes h3 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--green);
}

.tag-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}

.tag {
  position: relative;
  padding-left: 20px;
  font-size: 0.85rem;
  line-height: 1.25;
  color: var(--white);
  background: none;
  border: none;
  display: flex;
  align-items: center;
}

.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  position: absolute;
  left: 4px;
}

.product-effects-smell-aspect {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 0.25fr));
  gap: 8px;
  margin-top: 8px;
}

/* FAQ accordion (reprise du style FAQ de la home, en colonne unique) */
.product-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-faq-list .accordion-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 35px rgba(132, 76, 170, 1);
  transition: box-shadow 0.3s ease 0.3s;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.product-faq-list .accordion-header {
  background-color: var(--white);
  color: var(--black);
  padding: 14px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0;
  transition: background-color 0.3s ease 0.3s, color 0.3s ease 0.3s;
}

.product-faq-list .question-number {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}

.product-faq-list .question-text {
  padding-left: 10px;
  padding-right: 18px;
  flex: 1;
  font-size: 1rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-faq-list .accordion-item.active .question-text {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.product-faq-list .arrow {
  margin-left: auto;
  flex-shrink: 0;
  width: 14px;
  height: 8px;
  background-color: var(--green);
  clip-path: polygon(50% 100%, 100% 0, 0 0);
  display: inline-block;
  transform-origin: 50% 33.33%; /* barycentre du triangle (pointe en bas) -> rotation sans derive */
  transition: transform 0.3s ease, background-color 0.3s ease 0.3s;
}

.product-faq-list .accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 18px;
  background: var(--white);
  color: var(--black);
  transition: grid-template-rows 0.4s ease, padding 0.4s ease;
}

.product-faq-list .accordion-content > * {
  overflow: hidden;
}

.product-faq-list .accordion-content p + p,
.product-faq-list .accordion-content ul + p,
.product-faq-list .accordion-content p + ul {
  margin-top: 1em;
}

.product-faq-list .accordion-content a[href^="mailto:"] {
  color: var(--orange);
  font-weight: bold;
  text-decoration: none;
}

.product-faq-list .accordion-content a[href^="mailto:"]:hover {
  text-decoration: underline;
}

.product-faq-list .accordion-content p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Etat actif */
.product-faq-list .accordion-item.active {
  box-shadow: 0 0 35px rgba(132, 76, 170, 1);
  transition: box-shadow 0.3s ease;
}

.product-faq-list .accordion-item.active > .accordion-header {
  background-color: var(--purple);
  transition: background-color 0.3s ease 0s;
}

.product-faq-list .accordion-item.active .question-text {
  color: var(--white);
  transition: color 0.3s ease 0s;
}

.product-faq-list .accordion-item.active .arrow {
  background-color: var(--white);
  transform: rotate(-180deg);
  transition: transform 0.3s ease, background-color 0.3s ease 0s;
}

.product-faq-list .accordion-item.active > .accordion-content {
  grid-template-rows: 1fr;
  padding: 25px;
}

.product-faq-list .question-number,
.product-faq-list .question-text {
  transition: color 0.3s ease 0.3s;
}

/* ===== AVIS ===== */
.reviews-scroll {
  display: flex;
  flex-direction: row;
  gap: 24px;
  overflow-x: auto;
  /* padding top/left/right pour laisser la place à box-shadow du highlight-pulse */
  padding: 8px 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.reviews-scroll::-webkit-scrollbar { height: 6px; }
.reviews-scroll::-webkit-scrollbar-track { background: transparent; }
.reviews-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; }

.review-card {
  position: relative;
  flex: 0 0 200px;
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
}

/* Etat agrandi : affiche le commentaire en entier */
.review-card.expanded .review-comment {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
.review-card.expanded .review-name {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

@keyframes review-highlight-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(38, 210, 118, 0); }
  25%  { box-shadow: 0 0 0 5px rgba(38, 210, 118, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(38, 210, 118, 0); }
}

.review-card.highlight-pulse {
  animation: review-highlight-pulse 1.4s ease-in-out 1;
}

.review-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.review-card.is-mine:hover .review-delete-btn,
.review-delete-btn:focus-visible {
  opacity: 1;
}

.review-delete-btn:hover {
  background: var(--green);
  color: var(--purple);
}

.review-already-posted {
  margin-top: 24px;
  padding: 16px 20px;
  text-align: center;
  color: var(--white);
  opacity: 0.7;
  font-size: 0.95rem;
  font-style: italic;
}

.review-jump-link {
  color: var(--green);
  text-decoration: underline;
  cursor: pointer;
}

.review-form.hidden,
.review-already-posted.hidden {
  display: none;
}

.review-name {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2.25rem;
  color: var(--white);
  margin: 0;
  line-height: 0.9;
  /* Trop long -> wrap libre, max 2 lignes avec ... */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.review-date {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2rem;
  color: var(--lightgrey);
  margin: 0;
  line-height: 0.8;
  opacity: 0.9;
}

.review-stars {
  display: flex;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--green);
  letter-spacing: 2px;
  line-height: 0.8;
  margin-top: -2px;
}

.review-stars .star { opacity: 0.25; }
.review-stars .star.filled { opacity: 1; }

.review-comment {
  font-style: italic;
  font-weight: 200;
  color: var(--white);
  opacity: 0.8;
  line-height: 1.5;
  font-size: 0.85rem;
  margin-top: 10px;
  /* Trop long -> on coupe a 5 lignes avec ... */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Force la coupure des chaînes sans espace (ex: "aaaaaa...") */
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Aucun avis */
.no-reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.no-reviews-stars {
  font-size: 1.5rem;
  color: var(--green);
  letter-spacing: 4px;
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 6px;
}

.no-reviews-text {
  color: var(--white);
  font-size: 1rem;
  margin: 0;
}

.no-reviews-sub {
  color: var(--white);
  font-size: 0.9rem;
  opacity: 0.55;
  margin: 0;
  font-style: italic;
}

/* Prompt non-connecté */
.review-login-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  margin-top: 24px;
}

.review-login-text {
  color: var(--white);
  font-size: 1rem;
  margin: 0;
  opacity: 0.85;
}

.review-login-btn {
  background-color: var(--green);
  border: none;
  padding: 2px 25px;
  border-radius: 50px;
  color: var(--purple);
  cursor: pointer;
  font-family: var(--font-body);
  text-transform: none;
}

/* Formulaire "Laissez un avis !" */
.review-form {
  margin-top: 24px;
  max-width: 700px;
}

.review-form-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2.25rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.review-form-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.review-field {
  position: relative;
  flex: 1 1 200px;
  max-width: 240px;
  border: 2px solid var(--green);
  border-radius: 9999px;
  padding: 0 18px;
  margin: 0;
  min-width: 0;
}

.review-field legend {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green);
  padding: 0 6px;
  margin-left: 8px;
}

.review-field input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0 0 8px;
}

.review-rating-input {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.review-rating-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green);
  line-height: 1;
  margin-bottom: -2px;
}

.rating-stars {
  display: flex;
  gap: 4px;
  font-size: 1.7rem;
  color: var(--green);
  cursor: pointer;
}

.rating-star {
  user-select: none;
  transition: transform 0.15s ease;
}

.rating-star.filled::before { content: '★'; }
.rating-star:not(.filled)::before { content: '☆'; }
.rating-star::before { display: inline-block; }

/* Cache le contenu HTML par defaut (le ☆ ou ★ dans le HTML) car on utilise ::before */
.rating-star { font-size: 0; }
.rating-star::before { font-size: 1.7rem; }

.btn-submit-review {
  background-color: var(--green);
  border: none;
  padding: 2px 25px;
  border-radius: 50px;
  color: var(--purple);
  cursor: pointer;
  font-family: var(--font-body);
  text-transform: none;
}

/* Avis */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.review-rating {
  background: var(--green);
  color: var(--purple);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.review-title {
  font-weight: 600;
  font-size: 1rem;
}

.review-comment {
  opacity: 0.8;
  line-height: 1.5;
  font-size: 1rem;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { content: '-'; }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  padding: 0 20px 16px;
  opacity: 0.8;
  line-height: 1.6;
  font-size: 1rem;
}

/* Couleurs par type de produit */
.fleurs .slider,
.fleurs .toggle-wrapper[data-active="abo"] .slider { background-color: var(--green); }
.fleurs .variant-btn.active                        { background: var(--green); color: var(--purple); }
.fleurs .btn-add-to-cart                           { background: var(--green); color: var(--purple); border-color: var(--green); }
.fleurs .btn-add-to-cart:not(:disabled):hover      { background: var(--purple); color: var(--green); }

.resines .slider,
.resines .toggle-wrapper[data-active="abo"] .slider { background-color: var(--orange); }
.resines .toggle-wrapper                            { box-shadow: inset 0 0 0 2px var(--orange); }
.resines .toggle-wrapper::before                    { background: var(--orange); }
.resines .variant-btn                               { border-color: var(--orange); }
.resines .variant-btn.active                        { background: var(--orange); color: var(--purple); }
.resines .btn-add-to-cart                           { background: var(--orange); color: var(--purple); border-color: var(--orange); }
.resines .btn-add-to-cart:not(:disabled):hover      { background: var(--purple); color: var(--orange); }
.resines .qty-control                               { background: var(--orange); }
.resines #sub-frequency-wrapper                     { border-color: var(--orange); }
.resines #sub-frequency-wrapper .sorter-select-label { color: var(--orange); }
.resines #sub-frequency-wrapper::after              { background-color: var(--orange); }
.resines .cart-price-display                        { color: var(--orange); }

.huiles .slider,
.huiles .toggle-wrapper[data-active="abo"] .slider { background-color: var(--yellow); }
.huiles .toggle-wrapper                            { box-shadow: inset 0 0 0 2px var(--yellow); }
.huiles .toggle-wrapper::before                    { background: var(--yellow); }
.huiles .variant-btn                               { border-color: var(--yellow); }
.huiles .variant-btn.active                        { background: var(--yellow); color: var(--purple); }
.huiles .btn-add-to-cart                           { background: var(--yellow); color: var(--purple); border-color: var(--yellow); }
.huiles .btn-add-to-cart:not(:disabled):hover      { background: var(--purple); color: var(--yellow); }
.huiles .qty-control                               { background: var(--yellow); }
.huiles #sub-frequency-wrapper                     { border-color: var(--yellow); }
.huiles #sub-frequency-wrapper .sorter-select-label { color: var(--yellow); }
.huiles #sub-frequency-wrapper::after              { background-color: var(--yellow); }
.huiles .cart-price-display                        { color: var(--yellow); }

.accessoires .slider,
.accessoires .toggle-wrapper[data-active="abo"] .slider { background-color: var(--green); }
.accessoires .variant-btn.active                        { background: var(--green); color: var(--purple); }
.accessoires .btn-add-to-cart                           { background: var(--green); color: var(--purple); border-color: var(--green); }
.accessoires .btn-add-to-cart:not(:disabled):hover      { background: var(--purple); color: var(--green); }

/* Responsive */
@media (max-width: 900px) {
  .product-hero {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .product-details {
    padding: 24px 0;
  }

  .product-title {
    font-size: 2rem;
  }

  .toggle-wrapper {
    min-width: unset;
    width: 100%;
  }
}
