/* ==========================================================================
   ASUÑA PARFUMERIE — Fiche produit (maquette « Yara »)
   Dépend de tokens.css, favorites.css et cart.css (popups validés).
   Comportement : assets/js/product-page.js
   >= 1024px : vignettes rondes | photo ovale (favori, agrandir) | informations d'achat ; onglets ; produits similaires
   <  1024px : photo, vignettes en ligne, informations, réassurance en 3 colonnes, sections repliables
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/newsreader-latin-600-normal.woff2") format("woff2");
}

/* Couleurs partagées par la page et ses popups (ajoutés à la fin de <body>) */
.pp,
.pp-added,
.pp-lightbox {
  --pp-line: #e6ddd3;
  --pp-field: #d9cdc0;
  --pp-muted: #7b6f68;
  --pp-ok-bg: #e4f3e6;
  --pp-ok-ink: #24733a;
  --pp-ok-dot: #2a9b4b;
  --pp-low-bg: #fbf0dc;
  --pp-low-ink: #8a5a12;
  --pp-out-bg: #f8e4e1;
  --pp-out-ink: #9a3324;
  --pp-sale-bg: #fbe1df;
  --pp-sale-ink: #c0392b;
  --pp-error-bg: #fbeeea;
  --pp-error-line: #ecc9be;
  --pp-error-ink: #8e3a26;
  --pp-radius-btn: 10px;
}

.pp {
  --pp-pad-x: clamp(16px, 5vw, 72px);
  --pp-max: 1240px;

  max-width: var(--pp-max);
  margin: 0 auto;
  padding: clamp(14px, 1.6vw, 22px) var(--pp-pad-x) clamp(36px, 4vw, 56px);
  color: var(--asuna-brown);
  font-family: var(--asuna-font-ui);
}

/* --------------------------------------------------------------------------
   Fil d'Ariane : Accueil > Catégorie > Nom - Marque
   -------------------------------------------------------------------------- */
.pp-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pp-crumbs li {
  display: inline-flex;
  align-items: center;
  color: var(--pp-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.pp-crumbs li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 11px 0 9px;
  border-top: 1.2px solid currentColor;
  border-right: 1.2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.75;
}

.pp-crumbs a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pp-crumbs a:hover,
.pp-crumbs [aria-current="page"] {
  color: var(--asuna-brown);
}

.pp-crumbs [aria-current="page"] {
  font-weight: 500;
}

.pp-crumbs a:focus-visible {
  outline: 2px solid var(--asuna-champagne);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Grille
   -------------------------------------------------------------------------- */
.pp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 4.4vw, 64px);
  align-items: start;
  margin-top: clamp(16px, 1.8vw, 26px);
}

/* --------------------------------------------------------------------------
   Galerie
   -------------------------------------------------------------------------- */
.pp-gallery {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
  align-items: start;
}

.pp-gallery--single {
  grid-template-columns: minmax(0, 1fr);
}

.pp-gallery__stage {
  position: relative;
  grid-column: -2 / -1;
  grid-row: 1;
  width: 100%;
  max-width: 420px;
  padding: 6px 14px 6px 0;
}

/* Ovale (comme les cartes produit) : la photo est rognée par le cadre, jamais déformée */
.pp-gallery__track {
  display: flex;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  list-style: none;
  aspect-ratio: 0.86;
  border-radius: 50%;
  background: var(--asuna-sand);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  isolation: isolate;
}

.pp-gallery__track::-webkit-scrollbar {
  display: none;
}

.pp-gallery__track:focus-visible {
  outline: 2px solid var(--asuna-champagne);
  outline-offset: 4px;
}

.pp-gallery__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.pp-gallery__slide img,
.pp-gallery__slide video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--pp-pos, 50% 50%);
  background: var(--asuna-night);
}

.pp-gallery__slide img {
  background: transparent;
}

/* « Zoom fluide et transition élégante » au choix d'une vignette */
.pp-gallery__slide.is-entering img,
.pp-gallery__slide.is-entering video {
  animation: pp-zoom-in 0.6s var(--asuna-ease) both;
}

@keyframes pp-zoom-in {
  from { opacity: 0.35; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

/* Boutons ronds sur la photo : favori (haut) et agrandir (bas) */
.pp-gallery__btn {
  position: absolute;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #eee5dc;
  border-radius: 50%;
  background: var(--asuna-white);
  color: var(--asuna-brown);
  box-shadow: 0 2px 10px rgba(59, 23, 12, 0.08);
  cursor: pointer;
  transition: transform 0.25s var(--asuna-ease), box-shadow 0.25s ease;
}

.pp-gallery__btn svg {
  width: 19px;
  height: 19px;
}

.pp-gallery__btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(59, 23, 12, 0.12);
}

.pp-gallery__btn:focus-visible {
  outline: 2px solid var(--asuna-champagne);
  outline-offset: 3px;
}

.pp-fav {
  top: 0;
}

.pp-fav[aria-pressed="true"] svg path {
  fill: currentColor;
}

.pp-gallery__zoom {
  bottom: 0;
}

/* Vignettes rondes */
.pp-gallery__thumbs {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 4px;
  list-style: none;
}

.pp-thumb {
  position: relative;
  display: block;
  width: 68px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: var(--asuna-sand);
  cursor: pointer;
  transition: transform 0.25s var(--asuna-ease), box-shadow 0.2s ease;
}

.pp-thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--pp-pos, 50% 50%);
}

.pp-thumb:hover {
  transform: scale(1.04);
}

.pp-thumb[aria-current="true"] {
  box-shadow: 0 0 0 2px var(--asuna-ivory), 0 0 0 3.5px var(--asuna-caramel);
}

.pp-thumb:focus-visible {
  outline: 2px solid var(--asuna-champagne);
  outline-offset: 4px;
}

/* Vignette vidéo : bouton lecture */
.pp-thumb--video {
  background: var(--asuna-night);
}

.pp-thumb--video img {
  opacity: 0.65;
}

.pp-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--asuna-white);
}

.pp-thumb__play svg {
  width: 30px;
  height: 30px;
}

/* --------------------------------------------------------------------------
   Informations
   -------------------------------------------------------------------------- */
.pp-info {
  min-width: 0;
  max-width: 440px;
  padding-top: clamp(0px, 1.2vw, 14px);
}

.pp-info__brand {
  margin: 0 0 6px;
  color: var(--pp-muted);
  font-size: 14px;
  line-height: 1.3;
}

.pp-info__name {
  margin: 0;
  color: #241109;
  font-family: var(--asuna-font-display);
  font-size: clamp(32px, 2.8vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

/* Avis réels (WooCommerce) : affichés seulement s'il y en a */
.pp-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--pp-muted);
  font-size: 13.5px;
}

.pp-rating[hidden] {
  display: none;
}

.pp-stars {
  position: relative;
  display: inline-block;
  width: 92px;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 17'%3E%3Cpath d='m9 .9 2.4 5 5.5.7-4 3.8 1 5.4L9 13.2l-4.9 2.6 1-5.4-4-3.8 5.5-.7Z' fill='%23e8ddd2'/%3E%3C/svg%3E") left center / 18.4px 17px repeat-x;
}

.pp-stars__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pp-rating, 0%);
  overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 17'%3E%3Cpath d='m9 .9 2.4 5 5.5.7-4 3.8 1 5.4L9 13.2l-4.9 2.6 1-5.4-4-3.8 5.5-.7Z' fill='%23ef6a2b'/%3E%3C/svg%3E") left center / 18.4px 17px repeat-x;
}

/* Prix */
.pp-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 18px;
}

.pp-price__current {
  color: #241109;
  font-family: var(--asuna-font-display);
  font-size: clamp(30px, 2.5vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}

.pp-price__currency {
  font-size: 0.78em;
}

.pp-price__regular {
  color: #a1958d;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.pp-price__save {
  padding: 4px 12px;
  border-radius: var(--asuna-radius-pill);
  background: var(--pp-sale-bg);
  color: var(--pp-sale-ink);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.pp-price__until {
  margin: 8px 0 0;
  color: var(--pp-muted);
  font-size: 12.5px;
}

.pp-price__regular[hidden],
.pp-price__save[hidden],
.pp-price__until[hidden] {
  display: none;
}

/* Stock : pastille */
.pp-stock {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 16px 0 0;
  padding: 7px 14px;
  border-radius: 10px;
  background: var(--pp-ok-bg);
  color: var(--pp-ok-ink);
  font-size: 13px;
  line-height: 1.35;
}

.pp-stock__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pp-ok-dot);
}

.pp-stock[data-state="low"],
.pp-stock[data-state="backorder"] {
  background: var(--pp-low-bg);
  color: var(--pp-low-ink);
}

.pp-stock[data-state="low"] .pp-stock__dot,
.pp-stock[data-state="backorder"] .pp-stock__dot {
  background: #d38b1e;
}

.pp-stock[data-state="out"] {
  background: var(--pp-out-bg);
  color: var(--pp-out-ink);
}

.pp-stock[data-state="out"] .pp-stock__dot {
  background: #c0392b;
}

.pp-stock[data-state="choose"] {
  background: var(--asuna-ivory-light);
  color: var(--pp-muted);
  box-shadow: inset 0 0 0 1px var(--pp-line);
}

.pp-stock[data-state="choose"] .pp-stock__dot {
  display: none;
}

.pp-stock__ask {
  width: 100%;
  color: var(--asuna-brown);
}

.pp-stock__ask[hidden] {
  display: none;
}

.pp-stock__ask a {
  color: inherit;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Achat : contenances, quantité, boutons
   -------------------------------------------------------------------------- */
.pp-buy {
  margin-top: 20px;
}

.pp-label {
  display: block;
  margin: 0 0 9px;
  padding: 0;
  color: #241109;
  font-size: 14px;
  font-weight: 500;
}

.pp-option {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.pp-option__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.pp-choice {
  position: relative;
  flex: 0 1 112px;
  min-width: 84px;
}

.pp-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pp-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--pp-field);
  border-radius: var(--asuna-radius-pill);
  background: #fffdfa;
  color: var(--asuna-brown);
  font-size: 13.5px;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pp-choice:hover span {
  border-color: var(--asuna-caramel);
}

.pp-choice input:checked + span {
  border-color: #4a1f0f;
  background: #4a1f0f;
  color: var(--asuna-on-dark);
}

.pp-choice input:focus-visible + span {
  outline: 2px solid var(--asuna-champagne);
  outline-offset: 2px;
}

/* Option épuisée : visible et sélectionnable (le stock l'indique) */
.pp-choice[data-out] span {
  color: #a1958d;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.pp-choice[data-out] input:checked + span {
  border-color: var(--pp-muted);
  background: var(--pp-muted);
  color: var(--asuna-on-dark);
}

.pp-choice input:disabled {
  cursor: not-allowed;
}

.pp-choice input:disabled + span {
  border-style: dashed;
  opacity: 0.45;
}

.pp-option[data-invalid] .pp-choice span {
  border-color: var(--pp-error-ink);
}

/* Quantité */
.pp-qty-field {
  margin-bottom: 20px;
}

.pp-qty-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.pp-qty {
  display: inline-grid;
  grid-template-columns: 40px 56px 40px;
  align-items: stretch;
  height: 40px;
  overflow: hidden;
  border: 1px solid var(--pp-field);
  border-radius: 10px;
  background: #fffdfa;
}

.pp-qty__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--asuna-brown);
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.pp-qty__step + .pp-qty__input,
.pp-qty__input + .pp-qty__step {
  border-left: 1px solid var(--pp-field);
}

.pp-qty__step svg {
  width: 14px;
  height: 14px;
}

.pp-qty__step:hover:not(:disabled) {
  background: var(--asuna-sand);
}

.pp-qty__step:disabled {
  opacity: 0.3;
  cursor: default;
}

.pp-qty__step:focus-visible,
.pp-qty__input:focus-visible {
  outline: 2px solid var(--asuna-champagne);
  outline-offset: -2px;
}

.pp-qty__input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--asuna-brown);
  font: inherit;
  font-size: 14.5px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.pp-qty__input::-webkit-outer-spin-button,
.pp-qty__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.pp-qty__available {
  color: var(--pp-muted);
  font-size: 13.5px;
}

.pp-qty__available[hidden] {
  display: none;
}

/* Boutons */
.pp-actions {
  display: grid;
  gap: 10px;
}

.pp-add,
.pp-buynow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 20px;
  border-radius: var(--pp-radius-btn);
  font-family: var(--asuna-font-ui);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.pp-add {
  border: 0;
  background: #4a1f0f;
  color: var(--asuna-on-dark);
  box-shadow: 0 6px 16px rgba(74, 31, 15, 0.16);
}

.pp-add:hover:not(:disabled) {
  background: var(--asuna-brown);
}

.pp-buynow {
  border: 1px solid #6b3420;
  background: transparent;
  color: #4a1f0f;
}

.pp-buynow:hover:not(:disabled) {
  background: #4a1f0f;
  color: var(--asuna-on-dark);
}

.pp-add svg,
.pp-buynow svg {
  flex: none;
  width: 19px;
  height: 19px;
}

.pp-buynow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--asuna-ease);
}

.pp-buynow:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.pp-add:active:not(:disabled),
.pp-buynow:active:not(:disabled) {
  transform: scale(0.985);
}

.pp-add:focus-visible,
.pp-buynow:focus-visible {
  outline: 2px solid var(--asuna-champagne);
  outline-offset: 3px;
}

.pp-add:disabled,
.pp-buynow:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.45;
}

.pp-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pp-spin 0.7s linear infinite;
}

[data-state="loading"] > .pp-spinner {
  display: block;
}

[data-state="loading"] > svg {
  display: none;
}

[data-state="loading"] {
  cursor: progress;
}

.pp-buy__message {
  margin: 12px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--pp-error-line);
  border-radius: 10px;
  background: var(--pp-error-bg);
  color: var(--pp-error-ink);
  font-size: 13px;
  line-height: 1.45;
}

.pp-buy__message[data-tone="info"] {
  border-color: var(--pp-line);
  background: var(--asuna-ivory-light);
  color: var(--asuna-brown);
}

.pp-buy__message[hidden] {
  display: none;
}

/* Réassurance */
.pp-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.pp-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--pp-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.pp-perk svg {
  flex: none;
  width: 27px;
  height: 27px;
  color: #4a1f0f;
}

/* --------------------------------------------------------------------------
   Onglets (ordinateur) / sections repliables (téléphone, tablette)
   -------------------------------------------------------------------------- */
.pp-tabs {
  margin-top: clamp(30px, 3.4vw, 44px);
}

.pp-tabs__list {
  display: flex;
  gap: 8px 34px;
  border-bottom: 1px solid var(--pp-line);
}

.pp-tabs__tab {
  position: relative;
  margin: 0 0 -1px;
  padding: 0 2px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--pp-muted);
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pp-tabs__tab:first-child {
  padding-inline: 2px;
}

.pp-tabs__tab[aria-selected="true"] {
  border-bottom-color: #6b3420;
  color: #4a1f0f;
  font-family: var(--asuna-font-display);
  font-size: 17px;
}

.pp-tabs__tab:hover {
  color: #4a1f0f;
}

.pp-tabs__tab:focus-visible {
  outline: 2px solid var(--asuna-champagne);
  outline-offset: 2px;
}

.pp-panel__toggle {
  display: none;
}

.pp-panel__body {
  max-width: 720px;
  padding: 18px 0 0;
  color: var(--pp-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.pp-panel__body[hidden] {
  display: none;
}

.pp-panel__body > * {
  margin: 0 0 12px;
}

.pp-panel__body > :last-child {
  margin-bottom: 0;
}

.pp-panel__pending {
  font-style: italic;
}

.pp-specs {
  display: grid;
  margin: 14px 0 0;
}

.pp-specs div {
  display: grid;
  grid-template-columns: minmax(120px, 30%) minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed var(--pp-line);
}

.pp-specs dt {
  color: var(--pp-muted);
}

.pp-specs dd {
  margin: 0;
  color: var(--asuna-brown);
}

/* Informations de livraison */
.pp-shipping {
  display: grid;
  gap: 18px;
}

.pp-shipping__title {
  margin: 0 0 8px;
  color: #241109;
  font-size: 14px;
  font-weight: 500;
}

.pp-shipping__zones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pp-shipping__zones li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--pp-line);
  border-radius: 10px;
  background: #fffdfa;
}

.pp-shipping__zones strong {
  color: var(--asuna-brown);
  font-weight: 500;
  white-space: nowrap;
}

.pp-shipping p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Produits similaires (cartes rondes)
   -------------------------------------------------------------------------- */
.pp-similar {
  margin-top: clamp(34px, 4vw, 52px);
}

.pp-similar__title {
  margin: 0 0 20px;
  color: #241109;
  font-family: var(--asuna-font-display);
  font-size: clamp(22px, 1.9vw, 26px);
  font-weight: 600;
  line-height: 1.2;
}

.pp-similar__rail {
  position: relative;
}

.pp-similar__track {
  display: flex;
  gap: clamp(16px, 2.6vw, 34px);
  margin: 0 -8px;
  padding: 8px 8px 14px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.pp-similar__track::-webkit-scrollbar {
  display: none;
}

.pp-similar__item {
  flex: 0 0 clamp(138px, 15.5vw, 172px);
  scroll-snap-align: start;
}

.pp-similar__arrow {
  position: absolute;
  top: calc(8px + clamp(138px, 15.5vw, 172px) * 0.92 / 2);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #eee5dc;
  border-radius: 50%;
  background: var(--asuna-white);
  color: var(--asuna-brown);
  box-shadow: 0 2px 10px rgba(59, 23, 12, 0.1);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
}

.pp-similar__arrow svg {
  width: 15px;
  height: 15px;
}

.pp-similar__arrow--prev {
  left: -12px;
}

.pp-similar__arrow--next {
  right: -12px;
}

.pp-similar__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.pp-similar__arrow:focus-visible {
  outline: 2px solid var(--asuna-champagne);
  outline-offset: 2px;
}

.pp-card {
  position: relative;
  color: var(--asuna-brown);
}

.pp-card__media {
  position: relative;
  z-index: 2; /* au-dessus du lien de la carte : favori et panier restent cliquables */
  aspect-ratio: 1 / 0.92;
  transition: transform 0.35s var(--asuna-ease);
}

.pp-card__image {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: var(--asuna-sand);
  box-shadow: 0 0 0 rgba(59, 23, 12, 0);
  transition: box-shadow 0.35s ease;
}

.pp-card__image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--pp-pos, 50% 50%);
}

.pp-card__fav {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--asuna-white);
  color: var(--asuna-brown);
  box-shadow: 0 2px 8px rgba(59, 23, 12, 0.1);
  cursor: pointer;
}

.pp-card__fav svg {
  width: 16px;
  height: 16px;
}

.pp-card__fav[aria-pressed="true"] svg path {
  fill: currentColor;
}

/* Survol : légère élévation et apparition du panier */
.pp-card__actions {
  position: absolute;
  bottom: 10%;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--asuna-radius-pill);
  background: rgba(36, 17, 9, 0.88);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.3s ease, transform 0.35s var(--asuna-ease);
}

.pp-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--asuna-on-dark);
  cursor: pointer;
  text-decoration: none;
}

.pp-card__action svg {
  width: 18px;
  height: 18px;
}

.pp-card__action:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pp-card__action:focus-visible {
  outline: 2px solid var(--asuna-champagne);
  outline-offset: 1px;
}

.pp-card__action[data-state="loading"] svg {
  animation: pp-pulse 0.8s ease-in-out infinite alternate;
}

@media (hover: hover) {
  .pp-card:hover .pp-card__media {
    transform: translateY(-6px);
  }

  .pp-card:hover .pp-card__image {
    box-shadow: 0 14px 26px rgba(59, 23, 12, 0.16);
  }

  .pp-card:hover .pp-card__actions,
  .pp-card:focus-within .pp-card__actions {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.pp-card__body {
  padding: 14px 4px 0 8px;
}

.pp-card__name {
  margin: 0;
  color: #241109;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
}

.pp-card__name a {
  color: inherit;
  text-decoration: none;
}

.pp-card__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pp-card__name a:focus-visible {
  outline: 2px solid var(--asuna-champagne);
  outline-offset: 3px;
}

.pp-card__brand {
  margin: 4px 0 0;
  color: var(--pp-muted);
  font-size: 12.5px;
}

.pp-card__price {
  margin: 6px 0 0;
  color: #241109;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Popup « Produit ajouté au panier avec succès ! »
   -------------------------------------------------------------------------- */
.pp-added {
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fffdfa;
  color: var(--asuna-brown);
  box-shadow: 0 24px 60px rgba(28, 13, 5, 0.25);
}

.pp-added::backdrop {
  background: rgba(28, 13, 5, 0.45);
}

.pp-added[open] {
  animation: pp-pop 0.35s var(--asuna-ease);
}

.pp-added__inner {
  position: relative;
  padding: 30px 26px 26px;
  text-align: center;
  font-family: var(--asuna-font-ui);
}

.pp-added__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--asuna-brown);
  cursor: pointer;
}

.pp-added__close svg {
  width: 20px;
  height: 20px;
}

.pp-added__close:hover {
  background: var(--asuna-sand);
}

.pp-added__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2a9b4b;
  color: #fff;
}

.pp-added__check svg {
  width: 24px;
  height: 24px;
}

.pp-added__title {
  margin: 14px auto 20px;
  max-width: 260px;
  color: var(--pp-ok-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.pp-added__product {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  text-align: left;
}

.pp-added__img {
  flex: none;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--asuna-sand);
}

.pp-added__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-added__name {
  margin: 0;
  color: #241109;
  font-size: 14px;
  font-weight: 500;
}

.pp-added__meta {
  margin: 3px 0 0;
  color: var(--pp-muted);
  font-size: 13px;
  line-height: 1.5;
}

.pp-added__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: var(--asuna-radius-pill);
  background: #4a1f0f;
  color: var(--asuna-on-dark);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
}

.pp-added__cta:hover {
  background: var(--asuna-brown);
}

.pp-added__cta:focus-visible,
.pp-added__close:focus-visible {
  outline: 2px solid var(--asuna-champagne);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Agrandissement des photos (plein écran)
   -------------------------------------------------------------------------- */
.pp-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20, 9, 4, 0.94);
  color: var(--asuna-on-dark);
}

.pp-lightbox::backdrop {
  background: rgba(20, 9, 4, 0.94);
}

.pp-lightbox__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 64px clamp(16px, 6vw, 96px) 72px;
}

.pp-lightbox__figure img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  animation: pp-zoom-in 0.45s var(--asuna-ease) both;
}

.pp-lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(251, 247, 241, 0.25);
  border-radius: 50%;
  background: rgba(251, 247, 241, 0.08);
  color: var(--asuna-on-dark);
  cursor: pointer;
}

.pp-lightbox__btn svg {
  width: 20px;
  height: 20px;
}

.pp-lightbox__btn:hover {
  background: rgba(251, 247, 241, 0.18);
}

.pp-lightbox__btn:focus-visible {
  outline: 2px solid var(--asuna-champagne);
  outline-offset: 2px;
}

.pp-lightbox__close {
  top: 14px;
  right: 14px;
}

.pp-lightbox__prev,
.pp-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.pp-lightbox__prev {
  left: 14px;
}

.pp-lightbox__next {
  right: 14px;
}

.pp-lightbox__btn[hidden] {
  display: none;
}

.pp-lightbox__count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   Aperçu : sélecteur d'états de démonstration
   -------------------------------------------------------------------------- */
.pp-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px dashed #d8c3a6;
  border-radius: 12px;
  background: #fffaf3;
  color: var(--asuna-caramel);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

.pp-preview__states {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.pp-preview__states button {
  padding: 5px 11px;
  border: 1px solid var(--asuna-border);
  border-radius: var(--asuna-radius-pill);
  background: #fff;
  color: var(--asuna-brown);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.pp-preview__states button[aria-pressed="true"] {
  border-color: var(--asuna-brown);
  background: var(--asuna-brown);
  color: var(--asuna-on-dark);
}

/* Produit introuvable */
.pp-missing {
  max-width: 520px;
  margin: clamp(30px, 6vw, 80px) auto;
  text-align: center;
}

.pp-missing__title {
  margin: 0 0 10px;
  font-family: var(--asuna-font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
}

.pp-missing__text {
  margin: 0 0 22px;
  color: var(--pp-muted);
  font-size: 14px;
  line-height: 1.6;
}

.pp-missing a {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 24px;
  border-radius: var(--pp-radius-btn);
  background: #4a1f0f;
  color: var(--asuna-on-dark);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

@keyframes pp-spin {
  to { transform: rotate(360deg); }
}

@keyframes pp-pulse {
  to { opacity: 0.4; }
}

@keyframes pp-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Tablette et téléphone
   -------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
  .pp__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .pp-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    justify-items: center;
  }

  .pp-gallery__stage {
    grid-column: 1;
    width: min(84%, 360px);
    padding: 0;
  }

  .pp-gallery__track {
    aspect-ratio: 1 / 1.04;
  }

  .pp-fav {
    top: 0;
    right: 0;
    border-color: transparent;
    background: rgba(201, 154, 82, 0.55);
    color: var(--asuna-white);
    backdrop-filter: blur(4px);
  }

  .pp-gallery__zoom {
    display: none;
  }

  /* Vignettes en ligne sous la photo */
  .pp-gallery__thumbs {
    grid-row: 2;
    flex-direction: row;
    justify-content: center;
    gap: clamp(10px, 4vw, 26px);
    width: 100%;
    max-width: 460px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pp-gallery__thumbs::-webkit-scrollbar {
    display: none;
  }

  .pp-thumb {
    flex: none;
    width: clamp(54px, 15vw, 66px);
    height: clamp(54px, 15vw, 66px);
  }

  .pp-info {
    max-width: none;
    padding-top: 0;
  }

  .pp-choice {
    flex: 1 1 0;
  }

  /* Réassurance en 3 colonnes, icône au-dessus */
  .pp-perks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  .pp-perk {
    flex-direction: column;
    gap: 8px;
    font-size: 11.5px;
    text-align: center;
  }

  /* Sections repliables à la place des onglets */
  .pp-tabs {
    margin-top: 22px;
    border-top: 1px solid var(--pp-line);
  }

  .pp-tabs__list {
    display: none;
  }

  .pp-panel {
    border-bottom: 1px solid var(--pp-line);
  }

  .pp-panel__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px 0;
    border: 0;
    background: none;
    color: #4a1f0f;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
  }

  .pp-panel__toggle > svg:first-child {
    width: 18px;
    height: 18px;
  }

  .pp-panel__toggle > span {
    flex: 1;
  }

  .pp-panel__chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--asuna-ease);
  }

  .pp-panel__toggle[aria-expanded="true"] .pp-panel__chevron {
    transform: rotate(180deg);
  }

  .pp-panel__toggle:focus-visible {
    outline: 2px solid var(--asuna-champagne);
    outline-offset: 2px;
  }

  .pp-panel__body {
    padding: 0 0 18px;
  }

  .pp-similar__arrow {
    display: none;
  }

  .pp-similar__track {
    margin-right: calc(-1 * var(--pp-pad-x));
    padding-right: var(--pp-pad-x);
  }
}

@media (max-width: 479.98px) {
  .pp-info__name {
    font-size: 34px;
  }

  .pp-price__current {
    font-size: 30px;
  }

  .pp-option__choices {
    gap: 8px;
  }

  .pp-choice {
    min-width: 0;
  }

  .pp-choice span {
    padding: 0 8px;
  }

  .pp-perk {
    font-size: 11px;
  }

  .pp-specs div {
    grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
  }
}

@media (max-width: 359.98px) {
  .pp-qty-line {
    gap: 6px 10px;
  }

  .pp-perk svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-gallery__slide.is-entering img,
  .pp-gallery__slide.is-entering video,
  .pp-lightbox__figure img,
  .pp-added[open] {
    animation: none;
  }

  .pp-card__media,
  .pp-card__actions,
  .pp-thumb,
  .pp-gallery__btn,
  .pp-buynow svg {
    transition: none;
  }

  .pp-similar__track {
    scroll-behavior: auto;
  }
}

/* --------------------------------------------------------------------------
   Prix sur demande : commande sur WhatsApp (liens au style des boutons d'achat)
   -------------------------------------------------------------------------- */
a.pp-add,
a.pp-buynow {
  text-decoration: none;
}

.pp-request__text {
  margin: 0 0 18px;
  color: var(--asuna-text-muted);
  font-size: 14px;
  line-height: 1.55;
}
