/* Cartify product page template (rendered by pdp.js). Loads after club.css. PDP-ONLY layout lives here (gallery, buy box, conditions, details, sticky bar); every shared pattern (section head, FAQ, trust, product card, review card, chips) is club.css + assets/js/ui.js.
   Order on the page is the conversion order: gallery > title/price/benefits > CTA > trust > conditions > details > reviews > FAQ > related.
   Motion: swipe is native scroll-snap, zoom and sticky bar are transform only, all inside reduced-motion guards. */
.pdp { background: var(--c-cream); }
#pdp { min-height: 60svh; }
.pdp__wrap { padding-top: 8px; padding-bottom: 8px; }
.pdp__ns, .gone { padding-top: 48px; padding-bottom: 48px; }
.gone { display: grid; gap: 14px; justify-items: start; max-width: 40rem; }
.gone__a { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; list-style: none; margin: 0 0 12px; padding: 0; font-size: .875rem; color: var(--c-ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { display: inline-flex; align-items: center; min-height: 36px; color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; align-self: center; }

.pdp__top { display: grid; gap: 20px; }
@media (min-width: 900px) { .pdp__top { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; } }

/* gallery: native swipe (scroll-snap) + thumbs; hover zoom on mouse */
.gal { min-width: 0; }
.gal__main { position: relative; }
.gal__track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: var(--c-r); background: var(--c-alt); border: 1px solid var(--c-line); }
.gal__track::-webkit-scrollbar { display: none; }
.gal__track:focus-visible { outline: 3px solid var(--c-violet); outline-offset: 3px; }
.gal__slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden; }
.gal__slide img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.gal__slide video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.gal__thumbs button.is-vid::after { content: ""; position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; background: rgba(28,18,51,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 16px no-repeat; pointer-events: none; }
.gal__thumbs button { position: relative; }
.gal__count { position: absolute; right: 12px; bottom: 12px; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(28,18,51,.82); color: #fff; font: 600 .8125rem/1.2 var(--f-txt); font-variant-numeric: tabular-nums; pointer-events: none; }
.gal__thumbs { display: flex; gap: 8px; margin-top: 10px; padding: 3px; overflow-x: auto; position: relative; scrollbar-width: none; }
.gal__thumbs::-webkit-scrollbar { display: none; }
.gal__thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--c-alt); opacity: .72; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: opacity 160ms ease, border-color 160ms ease; }
.gal__thumbs button[aria-current="true"] { border-color: var(--c-violet); opacity: 1; }
.gal__thumbs button:focus-visible { outline: 3px solid var(--c-violet); outline-offset: 2px; }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) and (pointer: fine) {
  .gal__slide { cursor: zoom-in; }
  .gal__slide img { transition: transform 240ms var(--e-out); }
  .gal__slide.is-zoom img { transform: scale(2); transform-origin: var(--zx, 50%) var(--zy, 50%); }
  .gal__thumbs button:hover { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .gal__slide img, .gal__thumbs button { transition: none; } }
/* phones: 4:3 so price and button climb into the first screen */
@media (max-width: 899px) {.gal__thumbs button { width: 48px; height: 48px; border-radius: 10px; } .crumbs a { min-height: 32px; } }
@media (min-width: 900px) { .gal { position: sticky; top: calc(var(--sh-h) + 20px); } }

/* buy box */
.buy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.buy__h { font-weight: 800; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.05; }
.buy__blurb { color: var(--c-ink-2); font-size: 1.0625rem; max-width: 46ch; margin-top: -8px; }
.pp p { margin: 0; }
/* variant selector: native radios (keyboard + screen reader for free), chip look from .chip */
.vsel { margin: 0; padding: 0; border: 0; min-width: 0; }
.vsel__l { padding: 0; margin-bottom: 8px; font-weight: 700; }
.vsel__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.vopt { position: relative; }
.vopt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vopt span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--c-card); border: 1.5px solid var(--c-line); font-weight: 600; }
.vopt input:checked + span { background: var(--c-night); color: var(--c-lime); border-color: var(--c-night); }
.vopt input:focus-visible + span { outline: 3px solid var(--c-violet); outline-offset: 2px; }
.vopt small { font-size: .75rem; font-weight: 600; }
.vopt.is-off span { color: var(--c-ink-2); opacity: .6; }
.vopt.is-off input { cursor: not-allowed; }
.vsel__msg { margin: 10px 0 0; padding: 10px 14px; background: var(--c-note-bg); border: 1px solid var(--c-note-line); border-radius: var(--c-r-s); font-weight: 600; }
.buy__cta { display: grid; gap: 10px; }
.buy__cta .cbtn { width: 100%; }
.cbtn.is-busy { opacity: .75; pointer-events: none; }

/* conditions: calm warm tint, readable, impossible to miss */
.cond { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 32px; padding: 20px; background: var(--c-note-bg); border: 1px solid var(--c-note-line); border-radius: var(--c-r); }
.cond__ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--c-ink); }
.cond__ic svg { width: 22px; height: 22px; }
.cond h2 { font: 800 1.25rem/1.2 var(--f-disp); margin-bottom: 10px; }
.cond ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cond li { position: relative; padding-left: 20px; }
.cond li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-ink); }
.cond__q { margin-top: 12px; font-size: .9375rem; color: var(--c-ink-2); }
@media (min-width: 700px) { .cond { grid-template-columns: auto 1fr; gap: 20px; padding: 28px 32px; } .cond__ic { width: 48px; height: 48px; } }

/* details */
.det { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.dcard { padding: 22px; }   /* surface (bg, line, radius) comes from the shared card rule in club.css */
.dcard h3 { font: 700 1.125rem/1.2 var(--f-txt); margin-bottom: 12px; }
.specs { margin: 0; display: grid; }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--c-ink-2); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dots li { display: flex; gap: 12px; }
.dots li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em; border-radius: 50%; background: var(--c-violet); }

/* sticky buy bar: mobile only, appears once the main button has scrolled past */
.sbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--c-card); border-top: 1px solid var(--c-line); box-shadow: 0 -8px 24px rgba(28,18,51,.12); transform: translateY(100%); visibility: hidden; transition: transform 220ms var(--e-out), visibility 0s linear 220ms; }
.sbar.is-on { transform: none; visibility: visible; transition: transform 220ms var(--e-out), visibility 0s; }
.sbar__p { margin: 0; display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.sbar__p b { font: 800 1.25rem/1.1 var(--f-disp); font-variant-numeric: tabular-nums; }
.sbar__p small { font-size: .8125rem; color: var(--c-ink-2); white-space: nowrap; }
.sbar .cbtn { flex: 1; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .sbar, .sbar.is-on { transition: none; } }
@media (min-width: 900px) { .sbar { display: none; } }
@media (max-width: 899px) { body.pdp .foot { padding-bottom: 96px; } }

/* related products: horizontal scroll-snap carousel (all other active products), same .pc cards as the catalog */
.rcar { position: relative; margin-top: 16px; }
.rcar .rcar__track.plist { display: flex; gap: 12px; margin-top: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; padding: 6px 16px 10px; margin-inline: -16px; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.rcar__track::-webkit-scrollbar { display: none; }
.rcar__track > .pc { flex: 0 0 min(72%, 280px); scroll-snap-align: start; }
.rcar__track:focus-visible { outline: 3px solid var(--c-violet); outline-offset: -3px; border-radius: var(--c-r); }
.rcar__b { display: none; position: absolute; top: 38%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--c-night); background: var(--c-card); color: var(--c-night); align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(28,18,51,.18); transition: opacity 160ms ease, background-color 160ms ease; touch-action: manipulation; }
.rcar__b:hover:not(:disabled) { background: var(--c-lime); }
.rcar__b:focus-visible { outline: 3px solid var(--c-violet); outline-offset: 2px; }
.rcar__b:disabled { opacity: 0; pointer-events: none; }
.rcar__b--p { left: -10px; } .rcar__b--n { right: -10px; }
@media (min-width: 700px) {
  .rcar .rcar__track.plist { gap: 20px; margin-inline: -8px; padding-inline: 8px; scroll-padding-inline: 8px; }
  .rcar__track > .pc { flex-basis: calc((100% - 40px) / 3.25); }
  .rcar__b { display: inline-flex; }
  .rcar.is-static .rcar__b { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rcar__track { scroll-behavior: auto; } .rcar__b { transition: none; } }

/* ---- price card: ONE tinted card holds online price, contra entrega and the shipping line (markup order kept: tiers.js reads .pp__main / .pp__row and appends .pp__ship) ---- */
.pp { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 4px 0 0; padding: 20px 22px; background: var(--c-lilac); border: 1px solid #e3dcf2; border-radius: var(--c-r); box-shadow: none; }
.pp p { margin: 0; }
.pp__main { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0; border: 0; background: none; }
.pp__main b { order: 2; font: 800 clamp(2rem, 1.6rem + 1.6vw, 2.5rem)/1 var(--f-disp); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pp__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 0 0; border: 0; border-top: 1px solid #d9d0ee; background: none; }
.pp__main span, .pp__row span { font-size: 1rem; font-weight: 600; color: var(--c-ink-2); }
.pp__row b { font: 800 1.375rem/1 var(--f-disp); color: var(--c-ink); font-variant-numeric: tabular-nums; }
.pp__ship { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #d9d0ee; font-size: 1rem; font-weight: 600; color: var(--c-ink); }
.pp__ship svg { width: 18px; height: 18px; flex: none; color: var(--c-violet); }

/* ---- icon row under the button: 4 promises, icon + exactly two label lines; each opens in a new tab ---- */
.tstrip { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.tstrip__a { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 44px; padding: 8px 2px; border-radius: var(--c-r-s); color: inherit; text-align: center; text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tstrip__a:focus-visible { outline: 3px solid var(--c-violet); outline-offset: 2px; }
.tstrip__ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--c-lilac); color: var(--c-violet); }
.tstrip__ic svg { width: 22px; height: 22px; }
.tstrip__t { font-size: .8125rem; line-height: 1.25; font-weight: 600; color: var(--c-ink); white-space: nowrap; }
@media (min-width: 420px) { .tstrip__t { font-size: .875rem; } }
@media (hover: hover) and (pointer: fine) { .tstrip__a:hover { background: var(--c-alt); } }
@media (max-width: 339px) { .tstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- accordion rows in the buy column (native <details>): thin top/bottom lines, chevron on the right ---- */
.acc { margin-top: 4px; border-top: 1px solid var(--c-line); }
.cnd { border-bottom: 1px solid var(--c-line); }
.cnd summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 2px; cursor: pointer; font: 700 1rem/1.3 var(--f-txt); color: var(--c-ink); list-style: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cnd summary::-webkit-details-marker { display: none; }
.cnd summary:focus-visible { outline: 3px solid var(--c-violet); outline-offset: 2px; border-radius: 8px; }
.cnd summary svg { flex: none; width: 22px; height: 22px; color: var(--c-violet); transition: transform 220ms var(--e-out); }
.cnd[open] summary svg { transform: rotate(180deg); }
.cnd__b { display: grid; gap: 12px; padding: 0 2px 18px; }
.cnd__b p { margin: 0; font-size: 1rem; color: var(--c-ink-2); }
.cnd__b b { color: var(--c-ink); }
#tpromo { display: grid; gap: 12px; }
.cnd__b .cnd__h { margin-top: 6px; font-weight: 700; color: var(--c-ink); }
.cnd__b .specs dt, .cnd__b .specs dd { font-size: 1rem; }
@media (hover: hover) and (pointer: fine) { .cnd summary:hover > span { color: var(--c-violet); } }
@media (prefers-reduced-motion: reduce) { .cnd summary svg { transition: none; } }
.hl { padding: 20px 0 0; }
.hl h2 { margin-bottom: 10px; }

/* ---- what happens after you order ---- */
.after { margin-top: 40px; padding: 40px 0 44px; background: var(--c-lilac); border-block: 1px solid #e3dcf2; }
.after h2 { margin-bottom: 20px; }
.after__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: af; }
.after__l li { counter-increment: af; position: relative; padding: 18px 18px 18px 64px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--c-r); }
.after__l li::before { content: counter(af); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--c-night); color: var(--c-lime); font: 800 1.0625rem/1 var(--f-disp); }
.after__l h3 { font: 700 1.125rem/1.25 var(--f-txt); margin-bottom: 4px; }
.after__l p { margin: 0; color: var(--c-ink-2); }
@media (min-width: 900px) { .after__l { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .after { margin-top: 56px; padding: 56px 0 60px; } }

.pdp__ssr .buy__cta { margin-top: 4px; }

.bf-badge { align-self: flex-start; margin: 0; padding: 4px 10px; border-radius: 999px; background: var(--c-night); color: var(--c-lime); font: 800 .75rem/1.2 var(--f-txt); text-transform: uppercase; letter-spacing: .04em; }

.pp__scarce { margin: 10px 0 0; font: 700 .875rem/1.3 var(--f-txt); color: var(--c-violet); }
