/* =========================================================
   PRETTIEST - fiche d'une perruque (perruque.html)
   ========================================================= */
.pdp { padding: calc(var(--nav-h) + 20px) 0 64px; }
.pdp__crumb { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; color: #6d6560; }
.pdp__crumb a { color: var(--black); border-bottom: 1px solid currentColor; }

.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

/* ---------- Galerie ---------- */
.pdp__gallery { position: relative; position: sticky; top: calc(var(--nav-h) + 16px); }
.pdp__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--ash); aspect-ratio: 4 / 5; }
.pdp__track::-webkit-scrollbar { display: none; }
.pdp__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; margin: 0; overflow: hidden; }
.pdp__slide img, .pdp__slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp__slide.vid video { filter: none; }
.pdp__slide.vid.is-playing .vid__play { display: none; }
.pdp__count { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(21, 21, 21, .6); color: #fff; font-size: 12px; letter-spacing: .04em; pointer-events: none; }
.pdp__arrow { position: absolute; top: calc(50% - 60px); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--black); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.pdp__arrow--prev { left: 12px; }
.pdp__arrow--next { right: 12px; }
.pdp__arrow[hidden] { display: none; }
.pdp__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.pdp__thumbs::-webkit-scrollbar { display: none; }
.pdp__thumb { position: relative; flex: 0 0 64px; width: 64px; aspect-ratio: 4 / 5; padding: 0; border: 1.5px solid transparent; background: var(--ash); cursor: pointer; overflow: hidden; }
.pdp__thumb img, .pdp__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pdp__thumb i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 14px; background: rgba(0, 0, 0, .25); }
.pdp__thumb.is-active { border-color: var(--black); }

/* ---------- Infos ---------- */
.pdp__price { font-size: 15px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.pdp__price strong { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; color: var(--rose); }
.pdp__price s { color: #8a7b72; }
.pdp__off { padding: 1px 6px; border: 1px solid var(--rose); color: var(--rose); font-size: 12px; font-weight: 600; }
.pdp__name { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; margin-top: 8px; }
.pdp__meta { margin-top: 8px; color: #6d6560; font-size: 14px; line-height: 1.5; }
.pdp__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pdp__tags span { padding: 4px 10px; background: #f4ebe5; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

.pdp__block { margin-top: 24px; }
.pdp__label { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.pdp__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp__chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 92px; padding: 10px 12px; border: 1px solid #d9d2cc; background: var(--white); color: var(--black); font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.pdp__chip b { font-size: 16px; font-weight: 600; }
.pdp__chip small { font-size: 11px; color: #6d6560; }
.pdp__chip em { position: absolute; top: -8px; right: -6px; padding: 1px 6px; background: #a3382c; color: #fff; font-size: 9px; font-style: normal; letter-spacing: .03em; }
.pdp__chip:hover:not([disabled]) { border-color: var(--black); }
.pdp__chip.is-active { border: 1.5px solid var(--black); background: #f4ebe5; }
.pdp__chip[disabled] { color: #b5aaa3; cursor: not-allowed; background: #faf8f7; }
.pdp__chip[disabled] b { text-decoration: line-through; }
.pdp__chip[disabled] small { color: #a3382c; }
.pdp__chips.is-shake { animation: pdp-shake .4s; }
@keyframes pdp-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

.pdp__qty-row { display: flex; align-items: center; gap: 16px; }
.pdp__qty-row .pdp__label { margin: 0; }
.pdp .qty button:disabled { opacity: .35; cursor: not-allowed; }

.pdp__perks { list-style: none; margin-top: 24px; padding: 14px 16px; background: #f4ebe5; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; }
.pdp__perks b { font-weight: 600; }

.pdp__actions { display: flex; gap: 10px; margin-top: 24px; }
.pdp__actions .btn { flex: 1; padding-left: 16px; padding-right: 16px; }
.btn--ghost-dark { color: var(--black); border-color: var(--black); background: var(--white); }
.btn--ghost-dark:hover { background: #f4ebe5; }
.pdp .btn:disabled, .pdp-bar .btn:disabled { opacity: .45; cursor: not-allowed; }
.pdp__tryon { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 500; color: var(--rose); border-bottom: 1px solid currentColor; }

.pdp__more { margin-top: 24px; border-top: 1px solid var(--ash); padding-top: 14px; }
.pdp__more summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.pdp__more summary::after { content: '+'; font-weight: 400; }
.pdp__more[open] summary::after { content: '−'; }
.pdp__more summary::-webkit-details-marker { display: none; }
.pdp__more p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: #4a423d; }
.pdp__more .specs { margin-top: 10px; }

/* ---------- Vous aimerez aussi ---------- */
.pdp__also { margin-top: 64px; }
.pdp__h2 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 18px; }
.pdp__also-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pdp-card { display: flex; flex-direction: column; gap: 4px; color: var(--black); }
.pdp-card__img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ash); margin-bottom: 6px; }
.pdp-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.pdp-card:hover .pdp-card__img img { transform: scale(1.04); }
.pdp-card__name { font-weight: 500; font-size: 14px; }
.pdp-card__price { font-size: 13px; color: var(--rose); font-weight: 600; }

.pdp__empty { text-align: center; padding: 60px 0; display: grid; gap: 16px; justify-items: center; }

/* Barre d'achat fixe : seulement sur téléphone */
.pdp-bar { display: none; }

@media (max-width: 960px) {
  .pdp__grid { grid-template-columns: 1fr; }
  .pdp__gallery { position: relative; top: 0; }
  .pdp__also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .pdp { padding-top: calc(var(--nav-h) + 8px); padding-bottom: 32px; }
  .pdp__crumb { display: none; }
  .pdp > .container.pdp__grid { padding: 0; }
  .pdp__gallery { margin: 0; }
  .pdp__track { aspect-ratio: 1 / 1.1; }
  .pdp__arrow { display: none; }
  .pdp__thumbs { padding: 0 var(--gutter); }
  .pdp__info { padding: 0 var(--gutter); }
  .pdp__actions--inline { display: none; }
  .pdp-bar {
    display: flex; gap: 8px; align-items: center;
    position: fixed; left: 0; right: 0; z-index: 90;
    bottom: calc(var(--bnav-h, 0px) + env(safe-area-inset-bottom, 0px));
    padding: 8px var(--gutter);
    background: var(--white); border-top: 1px solid var(--ash);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .06);
  }
  .pdp-bar[hidden] { display: none; }
  .pdp-bar .fav-btn { width: 44px; height: 44px; }
  .pdp-bar .btn { flex: 1; padding: 13px 10px; font-size: 12px; }
  .pdp-bar .pdp__add { flex: 1.4; }
  body.page-product { padding-bottom: calc(var(--bnav-h, 0px) + 64px + env(safe-area-inset-bottom, 0px)); }
  .page-product .toast { bottom: calc(var(--bnav-h, 0px) + 76px); }
}
@media (max-width: 720px) {
  body.page-product.has-bnav .chat:not(.is-open) { bottom: calc(var(--bnav-h) + 72px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 720px) {
  body.page-product.has-bnav .toast { bottom: calc(var(--bnav-h) + 72px + env(safe-area-inset-bottom, 0px)); }
  body.page-product.has-bnav .toast:not(.is-visible) { transform: translate(-50%, calc(100% + var(--bnav-h) + 150px)); }
}
