/* Fiche produit (v2) : galerie à miniatures verticales + panneau d'achat + accordéons */
.pdx .px-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 10px; }

/* ----- Galerie ----- */
.px-gallery { position: sticky; top: 150px; display: grid; gap: 14px; }
.px-gallery.has-thumbs { grid-template-columns: 84px minmax(0, 1fr); align-items: start; }
.px-thumbs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 600px; overflow-y: auto; scrollbar-width: none; }
.px-thumbs::-webkit-scrollbar { display: none; }
.px-thumbs button { overflow: hidden; display: grid; place-items: center; width: 84px; height: 84px; padding: 8px; border: 2px solid transparent; border-radius: 18px; background: #f4f7f8; cursor: pointer; transition: border-color .15s, background .15s; }
.px-thumbs button:hover { background: #eaf1f3; }
.px-thumbs button.on { border-color: var(--teal); background: #fff; }
.px-thumbs img { display: block; width: 100%; height: 100%; min-width: 0; object-fit: contain; mix-blend-mode: multiply; }
.px-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 36px; border-radius: 30px; background: radial-gradient(circle at 50% 40%, #ffffff 0%, #f3f7f8 100%); overflow: hidden; cursor: zoom-in; outline: 0; }
.px-stage:focus-visible { box-shadow: 0 0 0 3px rgba(13, 85, 96, .25); }
.px-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .25s ease-out; }
.px-stage:hover img { transform: scale(1.7); }
.px-flags { position: absolute; top: 20px; left: 20px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.px-flag { padding: 6px 14px; border-radius: 999px; background: #e0457b; color: #fff; font-weight: 800; font-size: .85rem; }
.px-flag-new { background: #0f6469; }
.px-flag-soldout { background: #6b7280; }
.px-flag-bestseller { background: #fbbf2c; color: #3a2a00; }
.px-zoom-hint { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--deep, #0d5560); font-size: .78rem; font-weight: 700; box-shadow: 0 4px 14px rgba(13, 85, 96, .12); pointer-events: none; }

/* ----- Colonne d'achat ----- */
.px-side { display: grid; gap: 18px; min-width: 0; }
.px-brand { display: inline-block; margin-bottom: 8px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.px-brand:hover { text-decoration: underline; text-underline-offset: 4px; }
.px-head h1 { margin: 0; font-size: clamp(1.55rem, 2.6vw, 2.15rem); line-height: 1.18; color: var(--deep, #0d5560); letter-spacing: -.015em; }
.px-sub { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: .82rem; }
.px-sub .stars { display: inline-flex; align-items: center; gap: 2px; }
.px-sub .stars span { margin-left: 8px; }

.px-price { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; padding-top: 4px; }
.px-price strong { font-size: 2.5rem; line-height: 1; color: var(--deep, #0d5560); font-weight: 800; letter-spacing: -.02em; }
.px-price strong small { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.px-price s { color: var(--muted); font-size: 1.1rem; }
.px-price em { font-style: normal; padding: 4px 11px; border-radius: 8px; background: #fdeaf1; color: #c2335f; font-size: .8rem; font-weight: 800; }
.px-promo-countdown { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: -4px; padding: 6px 12px; border-radius: 10px; background: #fdeaf1; color: #c2335f; font-size: .82rem; font-weight: 600; }
.px-promo-countdown b { font-weight: 800; }
.px-note { margin: -8px 0 0; color: var(--muted); font-size: .82rem; }
.px-note .ok { color: #1f9d68; font-weight: 700; }
.px-note .low { color: #d9821b; font-weight: 700; }
.px-note .ask { color: var(--muted); font-weight: 700; }
.px-short { margin: 0; color: #3d5a60; line-height: 1.7; }

/* Panneau d'achat */
.px-buy { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px; border-radius: 22px; background: #f4f8f9; }
.px-qty { display: inline-flex; align-items: center; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.px-qty button { width: 44px; height: 56px; border: 0; background: none; color: var(--teal); font-size: 1.3rem; cursor: pointer; border-radius: 14px; }
.px-qty button:hover { background: var(--teal-soft); }
.px-qty input { width: 40px; height: 56px; border: 0; background: none; text-align: center; font: inherit; font-weight: 800; color: var(--deep, #0d5560); -moz-appearance: textfield; }
.px-qty input::-webkit-outer-spin-button, .px-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.px-qty input:focus { outline: 0; }
.px-add { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border: 0; border-radius: 14px; background: var(--teal); color: #fff; font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; box-shadow: 0 10px 24px rgba(13, 85, 96, .25); }
.px-add:hover { background: var(--deep, #0d5560); transform: translateY(-1px); }
.px-add:disabled { opacity: .75; cursor: default; transform: none; }
.px-add.is-added { background: var(--amber, #fbbf2c); color: #3a2a00; box-shadow: none; }

.px-secondary { display: flex; gap: 10px; flex-wrap: wrap; }
.px-secondary .fav-form { display: block; }
.px-secondary .fav.px-fav { position: static; width: auto; height: 46px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: none; color: var(--deep, #0d5560); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.px-secondary .fav.px-fav:hover { border-color: #f3b3c8; color: #e0457b; background: #fff; transform: none; }
.px-secondary .fav.px-fav.active { border-color: #f3b3c8; color: #e0457b; }
.px-secondary .fav.px-fav svg { width: 20px; height: 20px; }
.px-secondary .fav.px-fav.active svg { fill: currentColor; }
.px-wa { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 14px; background: #e9f9ef; color: #157a45; font-size: .88rem; font-weight: 800; text-decoration: none; }
.px-wa:hover { background: #d6f3e2; }

.px-assure { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.px-assure li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; font-size: .86rem; color: var(--muted); }
.px-assure li + li { border-top: 1px solid var(--line); }
.px-assure .icon { flex: none; color: var(--teal); }
.px-assure b { color: var(--deep, #0d5560); }

/* Accordéons */
.px-acc { border-top: 1px solid var(--line); }
.px-acc details { border-bottom: 1px solid var(--line); }
.px-acc summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 2px; cursor: pointer; list-style: none; font-weight: 800; color: var(--deep, #0d5560); }
.px-acc summary::-webkit-details-marker { display: none; }
.px-acc summary i { position: relative; width: 14px; height: 14px; flex: none; }
.px-acc summary i::before, .px-acc summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--teal); transition: transform .2s; }
.px-acc summary i::after { transform: rotate(90deg); }
.px-acc details[open] summary i::after { transform: rotate(0); }
.px-acc-body { padding: 0 2px 20px; color: #3d5a60; line-height: 1.75; }
.px-acc-body a { color: var(--teal); text-decoration: underline; }
.px-specs { display: grid; margin: 0 0 18px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.px-specs > div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 12px 16px; }
.px-specs > div:nth-child(odd) { background: #f8fbfc; }
.px-specs dt { color: var(--muted); font-size: .86rem; }
.px-specs dd { margin: 0; font-weight: 700; color: var(--deep, #0d5560); }

/* Produits associés */
.px-related { margin-top: 70px; }
.px-related header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.px-related h2 { margin: 0; font-size: 1.6rem; color: var(--deep, #0d5560); }
.px-related header a { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 700; font-size: .9rem; }

/* Barre d'achat fixe (mobile) */
.px-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(13, 85, 96, .12); transform: translateY(110%); transition: transform .25s ease; }
.px-sticky.show { transform: none; }
.px-sticky img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: #f4f7f8; }
.px-sticky-info { flex: 1; min-width: 0; display: grid; font-size: .8rem; color: var(--teal); font-weight: 800; }
.px-sticky-info b { color: var(--deep, #0d5560); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-sticky button { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--teal); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }

/* Plein écran */
.px-lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 30px; background: rgba(10, 30, 34, .86); cursor: zoom-out; }
.px-lightbox[hidden] { display: none; }
.px-lightbox img { max-width: min(92vw, 1100px); max-height: 90vh; object-fit: contain; border-radius: 16px; background: #fff; padding: 20px; }
.px-lb-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.px-lb-close:hover { background: rgba(255, 255, 255, .28); }

@media (max-width: 1024px) {
    .pdx .px-layout { grid-template-columns: 1fr; gap: 30px; }
    .px-gallery { position: static; }
}
@media (max-width: 720px) {
    .px-gallery.has-thumbs { grid-template-columns: 1fr; }
    .px-thumbs { grid-auto-flow: column; grid-auto-columns: 72px; max-height: none; overflow-x: auto; order: 2; }
    .px-thumbs button { width: 72px; height: 72px; }
    .px-stage { padding: 20px; border-radius: 24px; }
    .px-stage:hover img { transform: none; }
    .px-zoom-hint { display: none; }
    .px-price strong { font-size: 2.1rem; }
    .px-buy { grid-template-columns: 1fr; }
    .px-qty { justify-content: space-between; }
    .px-qty input { flex: 1; width: auto; }
    .px-specs > div { grid-template-columns: 1fr; gap: 2px; }
    .px-sticky { display: flex; }
    .px-related { margin-top: 50px; margin-bottom: 70px; }
}
