/* Product detail ───────────────────────────────────────────────────── */
.pdp { padding-bottom: 24px; }
.pdp-crumbs { padding: 12px 0 10px; }
.pdp-top { display: grid; gap: 18px; }
@media (min-width: 1024px) { .pdp-top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 8px; } }

/* Gallery */
.pdp-gallery { min-width: 0; }
@media (max-width: 1023.98px) { .pdp-gallery { margin: 0 calc(var(--gutter) * -1); } }
@media (min-width: 1024px) { .pdp-gallery { position: sticky; top: calc(var(--header-h) + 16px); } }
.pdp-stage { position: relative; background: var(--tile); overflow: hidden; }
@media (min-width: 1024px) { .pdp-stage { border-radius: var(--r-lg); } }
.pdp-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; aspect-ratio: 1 / 1; }
.pdp-slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; cursor: zoom-in; }
.pdp-slide img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pdp-stage__tl { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.pdp-stage__btn { position: absolute; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: var(--sh-1); display: grid; place-items: center; color: var(--ink); font-size: 15px; transition: transform var(--t-fast), color var(--t-fast); }
.pdp-stage__btn:hover { transform: scale(1.06); }
.pdp-stage__wish { top: 12px; right: 12px; }
.pdp-stage__wish.active { color: var(--danger); }
.pdp-stage__zoom { top: 60px; right: 12px; font-size: 13px; }
.pdp-stage__nav { position: absolute; top: 50%; margin-top: -20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: var(--sh-1); display: none; place-items: center; font-size: 12px; z-index: 2; opacity: 0; transition: opacity var(--t-fast); }
.pdp-stage__nav--prev { left: 12px; } .pdp-stage__nav--next { right: 12px; }
.pdp-stage:hover .pdp-stage__nav { opacity: 1; }
@media (min-width: 1024px) { .pdp-stage__nav { display: grid; } }
.pdp-counter { position: absolute; bottom: 12px; right: 12px; z-index: 2; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(18,19,20,.72); color: #fff; font-size: 11.5px; font-weight: 500; display: flex; align-items: center; gap: 3px; }
.pdp-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--gutter) 0; }
@media (min-width: 1024px) { .pdp-thumbs { padding: 12px 0 0; } }
.pdp-thumb-item { flex: 0 0 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--tile); border: 2px solid transparent; transition: border-color var(--t-fast); }
.pdp-thumb-item img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pdp-thumb-item.active { border-color: var(--ink); }
@media (min-width: 1024px) { .pdp-thumb-item { flex-basis: 76px; height: 76px; } }

/* Info */
.pdp-info { min-width: 0; }
.pdp-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pdp-brand { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.pdp-sku { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.pdp-title { font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 34px); font-weight: 750; font-stretch: 108%; letter-spacing: -.02em; line-height: 1.12; }
.pdp-rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.pdp-rating .stars, .pdp-score .stars { color: var(--star); font-size: 12px; letter-spacing: 1px; }
.pdp-rating b { color: var(--ink); font-weight: 600; }
.pdp-rating:hover span { text-decoration: underline; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pdp-price__now { font-size: clamp(28px, 4vw, 34px); font-weight: 700; letter-spacing: -.025em; }
.pdp-price__mrp { font-size: 16px; color: var(--subtle); text-decoration: line-through; }
.pdp-price .tag { align-self: center; }
.pdp-tax { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pdp-block { margin-top: 20px; }
.pdp-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pdp-variants { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-variant-pill { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 13.5px; font-weight: 500; text-align: left; transition: border-color var(--t-fast); }
.pdp-variant-pill small { font-size: 12px; color: var(--muted); }
.pdp-variant-pill:hover { border-color: var(--ink); }
.pdp-variant-pill.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.pdp-fit { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.pdp-fit__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px; }
.pdp-fit__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.pdp-fit__title { font-size: 14px; font-weight: 600; }
.pdp-fit__type { font-size: 12.5px; color: var(--muted); }
.pdp-fit__count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.pdp-fit__chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 12px; }
.pdp-fit-chip { flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; white-space: nowrap; transition: all var(--t-fast); }
.pdp-fit-chip:hover { border-color: var(--ink); }
.pdp-fit-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pdp-fit__ok { display: flex; align-items: flex-start; gap: 8px; padding: 10px 14px; background: var(--success-soft); color: var(--success); font-size: 13px; }
.pdp-fit__ok i { margin-top: 2px; }
.pdp-fit__ok strong { font-weight: 600; }
.pdp-fit__wa { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pdp-fit__wa .fa-whatsapp { color: #1FAF55; font-size: 16px; }
.pdp-fit__wa .fa-arrow-right { margin-left: auto; font-size: 11px; color: var(--subtle); transition: transform var(--t-fast); }
.pdp-fit__wa:hover .fa-arrow-right { transform: translateX(3px); color: var(--ink); }

.pdp-actions { display: none; }
@media (min-width: 1024px) {
    .pdp-actions { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; margin-top: 20px; }
}
.qty { display: inline-flex; align-items: center; height: 52px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.qty button { width: 44px; height: 100%; font-size: 18px; color: var(--ink); }
.qty button:hover { background: var(--bg); }
.qty input { width: 34px; text-align: center; border: 0; background: transparent; font-weight: 600; font-size: 15px; outline: 0; font-variant-numeric: tabular-nums; }

.pdp-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pdp-perks li { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--surface); }
.pdp-perks i { font-size: 15px; color: var(--ink-3); width: 18px; text-align: center; }
.pdp-perks b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.pdp-perks span { font-size: 11.5px; color: var(--muted); }
.pdp-offer { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.pdp-offer i { color: var(--accent); margin-top: 3px; }
.pdp-offer b { font-weight: 600; color: var(--ink); }

/* Lower */
.pdp-lower { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 1024px) { .pdp-lower { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; margin-top: 56px; } }
.pdp-details { border-top: 1px solid var(--line); }
.pdp-acc { border-bottom: 1px solid var(--line); }
.pdp-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; cursor: pointer; font-family: var(--font-display); font-size: 17px; font-weight: 700; font-stretch: 106%; }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary i { font-size: 12px; color: var(--muted); transition: transform var(--t-fast); }
.pdp-acc[open] summary i { transform: rotate(45deg); }
.pdp-acc > *:not(summary) { margin-bottom: 20px; }
.pdp-rich { font-size: 14.5px; line-height: 1.7; color: var(--ink-3); }
.pdp-rich p + p, .pdp-rich ul, .pdp-rich ol { margin-top: 10px; }
.pdp-rich ul { list-style: none; display: grid; gap: 6px; }
.pdp-rich ul li { position: relative; padding-left: 18px; }
.pdp-rich ul li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pdp-rich ol { padding-left: 20px; list-style: decimal; }
.pdp-rich h2, .pdp-rich h3, .pdp-rich h4 { font-size: 16px; margin: 16px 0 6px; color: var(--ink); }
.pdp-rich strong, .pdp-rich b { color: var(--ink); }
.pdp-rich img { border-radius: var(--r); margin: 10px 0; }
.pdp-rich table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pdp-rich td, .pdp-rich th { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.pdp-specs { display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pdp-specs > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 14px; font-size: 13.5px; }
.pdp-specs > div:nth-child(odd) { background: var(--surface-2); }
.pdp-specs dt { color: var(--muted); }
.pdp-specs dd { font-weight: 500; }
.pdp-specs .mono { font-family: var(--font-mono); font-size: 12.5px; }
.pdp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pdp-ship { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.pdp-ship div { padding: 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.pdp-ship b { display: block; font-size: 13px; font-weight: 600; }
.pdp-ship span { font-size: 11.5px; color: var(--muted); }
@media (max-width: 480px) { .pdp-ship { grid-template-columns: 1fr; } }

.pdp-score { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; scroll-margin-top: calc(var(--header-h) + 16px); }
@media (min-width: 1024px) { .pdp-score { position: sticky; top: calc(var(--header-h) + 16px); } }
.pdp-score__top { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-bottom: 16px; }
.pdp-score__num { font-family: var(--font-display); font-size: 48px; font-weight: 800; font-stretch: 112%; letter-spacing: -.03em; line-height: 1; }
.pdp-score__count { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pdp-bars { display: grid; gap: 5px; }
.pdp-bars li { display: grid; grid-template-columns: 10px 1fr 22px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pdp-bars i { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.pdp-bars b { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.pdp-bars em { font-style: normal; text-align: right; }

/* Reviews rail */
.pdp-reviews { padding-bottom: 8px; }
.rev-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-padding-left: var(--gutter); }
@media (min-width: 700px) { .rev-rail { grid-auto-columns: 44%; } }
@media (min-width: 1024px) { .rev-rail { grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; margin: 0; padding: 0 0 4px; } }
.rev-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.rev-card__stars { color: var(--star); font-size: 11px; letter-spacing: 2px; }
.rev-card__title { font-family: var(--font-ui); font-size: 15px; font-weight: 600; font-stretch: 100%; }
.rev-card__body { font-size: 14px; line-height: 1.55; color: var(--ink-3); flex: 1; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rev-card__photos { display: flex; gap: 6px; }
.rev-card__photos img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; cursor: zoom-in; }
.rev-card__foot { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.rev-card__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; font-family: var(--font-display); flex-shrink: 0; }
.rev-card__foot b { display: block; font-size: 13px; font-weight: 600; }
.rev-card__foot small { display: block; font-size: 11.5px; color: var(--muted); }

/* Sticky buy bar (mobile) */
.pdp-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 960; display: flex; align-items: center; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.pdp-buybar__price { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.pdp-buybar__price span { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.pdp-buybar__price s { font-size: 12px; color: var(--subtle); }
.pdp-buybar .btn { height: 48px; border-radius: var(--r); }
.pdp-buybar .pdp-btn-cart { width: 48px; padding: 0; font-size: 16px; }
.pdp-buybar .pdp-btn-buy { padding: 0 26px; }
body.page-product .app-nav-bar { display: none; }
body.page-product { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
body.page-product .whatsapp-float { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
body.page-product #toast-wrap { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) {
    .pdp-buybar { display: none; }
    body.page-product { padding-bottom: 0; }
    body.page-product .whatsapp-float { bottom: 24px; }
    body.page-product #toast-wrap { bottom: 28px; }
}

/* Review modal + lightbox */
.pdp-review-card { max-width: 520px; max-height: 92vh; overflow-y: auto; }
.star-pick { display: flex; gap: 6px; font-size: 26px; color: var(--line-2); }
.star-pick i { cursor: pointer; transition: transform var(--t-fast), color var(--t-fast); }
.star-pick i:hover { transform: scale(1.12); }
.star-pick i.gold { color: var(--star); }
.rev-previews { display: flex; gap: 8px; margin-top: 10px; }
.rev-previews img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 1400; background: rgba(18,19,20,.92); display: none; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox.is-open { display: flex; animation: popIn .2s var(--ease-out); }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--r); background: #fff; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; font-size: 17px; }
