/* =====================================================================
   BOUTIQUE — shop-product.css
   Fiche produit : galerie, informations, sélecteurs de déclinaison,
   zone d'achat (tous parcours), onglets, avis, barre d'achat mobile.
   ===================================================================== */

.pd-wrap { padding: 24px 0 40px; }

.pd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 44px;
    align-items: start;
}
@media (max-width: 900px) { .pd-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; } }

/* ── Galerie ────────────────────────────────────────────────────────── */
.pd-gallery { position: sticky; top: var(--shop-sticky-top); }
@media (max-width: 900px) { .pd-gallery { position: static; } }

.pd-main-img {
    position: relative; overflow: hidden;
    border-radius: var(--shop-radius);
    background: var(--shop-surface-3);
    aspect-ratio: 3 / 4;
    box-shadow: var(--shop-sh-sm);
}
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-main-img .pd-zoom-hint {
    position: absolute; bottom: 12px; right: 12px;
    padding: 5px 11px; border-radius: 999px;
    background: rgba(255,255,255,.92); color: var(--shop-ink);
    font-size: .72rem; font-weight: 700;
    opacity: 0; transition: opacity var(--shop-tr);
}
.pd-main-img:hover .pd-zoom-hint { opacity: 1; }

.pd-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.pd-thumbs {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 9px; margin-top: 11px;
}
.pd-thumb {
    border: 2px solid transparent; border-radius: var(--shop-radius-sm);
    overflow: hidden; padding: 0; cursor: pointer; background: var(--shop-surface-3);
    aspect-ratio: 1; transition: border-color var(--shop-tr), transform var(--shop-tr);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.is-active { border-color: var(--shop-accent); }

.pd-gallery--grid .pd-thumbs { grid-template-columns: repeat(2, 1fr); }
.pd-gallery--grid .pd-thumb { aspect-ratio: 3 / 4; }

/* ── Informations ───────────────────────────────────────────────────── */
.pd-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.pd-cats a {
    font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: var(--shop-accent); text-decoration: none;
}
.pd-cats a:hover { text-decoration: underline; }

.pd-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.35rem, 1.1rem + 1.4vw, 2.05rem);
    font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
    color: var(--shop-ink); margin: 0 0 10px;
}
.pd-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.pd-sku { font-size: .78rem; color: var(--shop-muted); }
.pd-sku strong { color: var(--shop-body); font-weight: 700; }

.pd-price-block { margin: 0 0 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-price-block .shop-price { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

.pd-excerpt {
    color: var(--shop-body); font-size: .95rem; line-height: 1.7;
    padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--shop-line);
}
.pd-excerpt p:last-child { margin-bottom: 0; }

/* ── Sélecteurs ─────────────────────────────────────────────────────── */
.pd-variants { margin-bottom: 18px; }
.pd-variant-group + .pd-variant-group { margin-top: 15px; }
.pd-variant-label {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    font-size: .81rem; font-weight: 800; color: var(--shop-ink);
    margin-bottom: 8px; letter-spacing: -.01em;
}
.pd-variant-label .chosen { font-weight: 600; color: var(--shop-accent); font-size: .82rem; }

.pd-stock { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pd-stock-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pd-stock-dot.is-ok  { background: var(--shop-ok); }
.pd-stock-dot.is-low { background: var(--shop-warn); }
.pd-stock-dot.is-out { background: var(--shop-ko); }

/* ── Zone d'achat ───────────────────────────────────────────────────── */
.pd-buy {
    background: var(--shop-surface);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-sh-sm);
    padding: 18px;
    margin-bottom: 18px;
}
.pd-buy-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.pd-buy-row .shop-btn { flex: 1 1 190px; }
.pd-buy-alt { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-buy-alt .shop-btn { flex: 1 1 150px; }
.pd-buy-note { font-size: .8rem; color: var(--shop-muted); margin: 12px 0 0; line-height: 1.55; }

.pd-flow-hint {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 11px 13px; margin-bottom: 14px;
    background: var(--shop-surface-2); border-radius: var(--shop-radius-sm);
    font-size: .82rem; color: var(--shop-body); line-height: 1.5;
}
.pd-flow-hint svg { width: 16px; height: 16px; color: var(--shop-accent); flex-shrink: 0; margin-top: 1px; }

/* ── Options libres ─────────────────────────────────────────────────── */
.pd-options { margin-bottom: 16px; }

/* ── Réassurance ────────────────────────────────────────────────────── */
.pd-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 11px; margin-bottom: 20px; }
.pd-trust-item {
    display: flex; align-items: center; gap: 9px;
    padding: 11px 13px; background: var(--shop-surface); border-radius: var(--shop-radius-sm);
    box-shadow: var(--shop-sh-sm);
    font-size: .8rem; font-weight: 600; color: var(--shop-body); line-height: 1.35;
}
.pd-trust-item svg { width: 18px; height: 18px; color: var(--shop-accent); flex-shrink: 0; }

.pd-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-share span { font-size: .78rem; color: var(--shop-muted); font-weight: 700; }
.pd-share a {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--shop-surface-3); color: var(--shop-ink); text-decoration: none;
    transition: all var(--shop-tr);
}
.pd-share a:hover { background: var(--shop-accent); color: #fff; }
.pd-share svg { width: 15px; height: 15px; }

/* ── Onglets ────────────────────────────────────────────────────────── */
.pd-tabs { margin-top: 44px; }
.pd-tabs-nav {
    display: flex; gap: 4px; overflow-x: auto;
    border-bottom: 1px solid var(--shop-line); margin-bottom: 22px;
    scrollbar-width: none;
}
.pd-tabs-nav::-webkit-scrollbar { display: none; }
.pd-tabs-nav button {
    padding: 12px 18px; border: 0; background: none; cursor: pointer;
    font-family: 'Montserrat', sans-serif; font-size: .88rem; font-weight: 700;
    color: var(--shop-muted); white-space: nowrap;
    border-bottom: 2.5px solid transparent; margin-bottom: -1px;
    transition: color var(--shop-tr), border-color var(--shop-tr);
}
.pd-tabs-nav button:hover { color: var(--shop-ink); }
.pd-tabs-nav button.is-active { color: var(--shop-accent); border-bottom-color: var(--shop-accent); }

.pd-tab-panel { display: none; }
.pd-tab-panel.is-active { display: block; animation: pdFade 260ms ease; }
@keyframes pdFade { from { opacity: 0; transform: translateY(5px); } }

.pd-rte { color: var(--shop-body); font-size: .95rem; line-height: 1.75; max-width: 78ch; }
.pd-rte h2, .pd-rte h3, .pd-rte h4 {
    font-family: 'Montserrat', sans-serif; color: var(--shop-ink);
    font-weight: 800; letter-spacing: -.02em; margin: 26px 0 10px;
}
.pd-rte h2 { font-size: 1.2rem; } .pd-rte h3 { font-size: 1.05rem; } .pd-rte h4 { font-size: .95rem; }
.pd-rte p { margin: 0 0 14px; }
.pd-rte ul, .pd-rte ol { margin: 0 0 14px; padding-left: 22px; }
.pd-rte li { margin-bottom: 6px; }
.pd-rte ul { list-style: disc; }
.pd-rte strong { color: var(--shop-ink); font-weight: 700; }
.pd-rte img { max-width: 100%; height: auto; border-radius: var(--shop-radius-sm); }
.pd-rte a { color: var(--shop-accent); }

.pd-specs { width: 100%; border-collapse: collapse; max-width: 620px; }
.pd-specs td { padding: 11px 0; border-bottom: 1px solid var(--shop-line); font-size: .89rem; }
.pd-specs td:first-child { color: var(--shop-muted); width: 40%; font-weight: 600; }
.pd-specs td:last-child { color: var(--shop-ink); font-weight: 700; }

/* ── Avis ───────────────────────────────────────────────────────────── */
.pd-reviews-head {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--shop-line);
}
.pd-rating-big { text-align: center; }
.pd-rating-big .num { font-family: 'Montserrat', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--shop-ink); line-height: 1; }
.pd-rating-big .out { font-size: .78rem; color: var(--shop-muted); margin-top: 4px; }

.pd-review {
    padding: 16px 0; border-bottom: 1px solid var(--shop-line);
}
.pd-review:last-child { border-bottom: 0; }
.pd-review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.pd-review-author { font-size: .88rem; font-weight: 800; color: var(--shop-ink); }
.pd-review-date { font-size: .76rem; color: var(--shop-muted); }
.pd-review-verified {
    font-size: .68rem; font-weight: 800; color: var(--shop-ok);
    background: var(--shop-ok-bg); padding: 2px 7px; border-radius: 999px;
}
.pd-review-title { font-size: .9rem; font-weight: 700; color: var(--shop-ink); margin: 0 0 4px; }
.pd-review-body { font-size: .89rem; color: var(--shop-body); line-height: 1.65; margin: 0; }
.pd-review-reply {
    margin-top: 10px; padding: 11px 14px;
    background: var(--shop-surface-2); border-left: 2.5px solid var(--shop-accent);
    border-radius: 0 var(--shop-radius-sm) var(--shop-radius-sm) 0;
    font-size: .85rem; color: var(--shop-body); line-height: 1.6;
}
.pd-review-reply strong { color: var(--shop-accent); display: block; margin-bottom: 3px; font-size: .79rem; }

.pd-review-form { margin-top: 26px; max-width: 560px; }
.pd-rate-picker { display: flex; gap: 4px; }
.pd-rate-picker input { position: absolute; opacity: 0; pointer-events: none; }
.pd-rate-picker label { cursor: pointer; color: var(--shop-line-strong); transition: color 140ms; }
.pd-rate-picker label svg { width: 26px; height: 26px; fill: currentColor; }
.pd-rate-picker:hover label { color: var(--shop-accent-2); }
.pd-rate-picker label:hover ~ label { color: var(--shop-line-strong); }
.pd-rate-picker input:checked ~ label { color: var(--shop-line-strong); }
.pd-rate-picker input:checked + label { color: var(--shop-accent-2); }

/* ── Produits associés ──────────────────────────────────────────────── */
.pd-related { margin-top: 50px; }
.pd-related-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pd-related-head h2 { font-family: 'Montserrat', sans-serif; font-size: 1.15rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.pd-related-head .line { flex: 1; height: 1px; background: var(--shop-line); }

/* ── Barre d'achat collante (mobile) ────────────────────────────────── */
.pd-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: none; align-items: center; gap: 12px;
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--shop-line);
    box-shadow: 0 -4px 22px rgba(20,16,28,.1);
    backdrop-filter: blur(8px);
}
.pd-sticky-price { flex-shrink: 0; }
.pd-sticky-price .shop-price { font-size: 1.05rem; }
.pd-sticky .shop-btn { flex: 1; }
@media (max-width: 760px) {
    body.pd-has-sticky .pd-sticky { display: flex; }
    body.pd-has-sticky { padding-bottom: 74px; }
}

/* ══════════ NATURE DU PRODUIT ══════════ */

.pd-kind {
    display: flex; align-items: center; gap: 12px;
    margin: 16px 0 4px; padding: 12px 14px;
    border-radius: var(--shop-radius-sm);
    background: var(--shop-surface-2);
    box-shadow: inset 0 0 0 1px var(--shop-line);
}
.pd-kind-ico {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px;
    display: grid; place-items: center;
    background: var(--shop-surface); color: var(--shop-accent);
}
.pd-kind-ico svg { width: 19px; height: 19px; }
.pd-kind-txt { line-height: 1.35; }
.pd-kind-txt strong { display: block; font-size: .88rem; color: var(--shop-ink); }
.pd-kind-txt small { font-size: .77rem; color: var(--shop-muted); }

.pd-kind--download .pd-kind-ico { color: var(--shop-ok); }
.pd-kind--booking  .pd-kind-ico { color: var(--shop-accent-2); }

.pd-files { list-style: none; margin: 10px 0 0; padding: 0; }
.pd-files li {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 0; border-bottom: 1px dashed var(--shop-line);
    font-size: .82rem; color: var(--shop-body);
}
.pd-files li:last-child { border-bottom: 0; }
.pd-files em { font-style: normal; font-size: .74rem; color: var(--shop-muted); }

/* ══════════ PRÉCOMMANDE ══════════ */

.pd-stock-dot.is-pre { background: var(--shop-accent-2); }
.shop-stock-pre { color: #8a6d10; font-weight: 700; }

.pd-preorder-note {
    display: flex; align-items: flex-start; gap: 9px;
    margin-top: 12px; padding: 11px 13px;
    border-radius: var(--shop-radius-sm);
    background: rgba(201, 162, 39, .10);
    color: #7a5f0c; font-size: .82rem; line-height: 1.5;
}
.pd-preorder-note svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }

/* Le bouton dit ce qu'il fait vraiment */
.shop-btn.is-preorder {
    background: var(--shop-accent-2); color: #17131f;
}
.shop-btn.is-preorder:hover { filter: brightness(.94); }
