/* Product page only. Loaded by shop_start() on the product page. */
/* ---------- Product page ---------- */
.pdp { display: grid; gap: 24px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; } .pdp-info { position: sticky; top: calc(var(--top-h) + 64px); } }
.gallery { position: relative; }
.gallery > .badges { top: 14px; left: 14px; }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius-lg); background: var(--surface); border: var(--bw) solid var(--line); scrollbar-width: none; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main > * { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; }
.gallery-main img, .gallery-main .img-ph { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gallery-dots i { width: 7px; height: 7px; border-radius: 9px; background: var(--line-strong); transition: width .2s; } .gallery-dots i.on { width: 20px; background: var(--primary); }
.thumbs { display: none; gap: 10px; margin-top: 12px; overflow-x: auto; }
@media (min-width: 900px) { .thumbs { display: flex; } .gallery-dots { display: none; } }
.thumbs button { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); cursor: pointer; transition: border-color .15s; }
.thumbs button[aria-current="true"] { border-color: var(--primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-details { margin-top: 20px; }
.pdp-kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.pdp-info h1 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); margin: 6px 0 8px; }
.pdp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 8px; }
.sold-by { display: flex; align-items: center; gap: 6px; } .sold-by .icon { width: 16px; height: 16px; color: var(--muted); }
.buy-card { background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.pdp-price .price strong { font-size: 1.9rem; letter-spacing: -.02em; }
.pdp-price .price s { font-size: 1rem; }
.save { color: var(--success); font-weight: 650; margin: 2px 0 8px; }
.pdp-desc { color: var(--muted); }
.stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .9rem; margin: 6px 0 10px; }
.stock .icon { width: 17px; height: 17px; }
.stock-in { color: var(--success); } .stock-low { color: var(--warning); } .stock-out { color: var(--danger); }
.buy-box { display: grid; gap: 14px; margin: 14px 0; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trust { list-style: none; margin: 16px 0 12px; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.trust li { display: flex; gap: 12px; align-items: center; font-size: .88rem; }
.trust b { display: block; } .trust small { color: var(--muted); }
.trust-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); color: var(--primary-ink); flex: none; }
.trust-ic .icon { width: 18px; height: 18px; }
.hint { display: flex; align-items: center; gap: 8px; background: var(--info-soft); color: var(--info); border-radius: 10px; padding: 9px 12px; font-size: .88rem; font-weight: 600; }
.hint .icon { width: 17px; height: 17px; }
.review { border-top: 1px solid var(--line); padding: 14px 0; }
.review:first-of-type { border-top: 0; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 1.8rem; line-height: 1; color: var(--line-strong); cursor: pointer; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f59e0b; }
.rating-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }
.avg { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.avg b { font-size: 2.2rem; letter-spacing: -.03em; }

.buy-box .stepper { align-self: flex-start; }
@media (max-width: 899px) { .pdp-media { display: contents; } .pdp-details { order: 3; margin-top: 0; } }
