/* ============ Product page ============ */
.pd-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:1.2rem;margin-top:1rem}
@media(min-width:900px){.pd-layout{grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);gap:2rem}}
.pd-main-img{border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;background:var(--surface-sunken);aspect-ratio:1/1;box-shadow:var(--sh-sm)}
.pd-main-img img{width:100%;height:100%;object-fit:cover}
.pd-thumbs{display:flex;gap:.6rem;margin-top:.6rem}
.pd-thumbs button{width:4.4rem;height:4.4rem;border-radius:.8rem;overflow:hidden;border:2px solid var(--line);padding:0;background:var(--surface-sunken);flex:none}
.pd-thumbs button.on{border-color:var(--brand)}
.pd-thumbs img{width:100%;height:100%;object-fit:cover}
.pd-price{font-size:1.9rem;font-weight:800;color:var(--brand);font-family:var(--fd)}
.pd-price .rs{font-size:1rem;color:var(--faint);font-weight:700;font-family:var(--fb)}
.pd-old{font-size:1rem;color:var(--faint);text-decoration:line-through}
.qty{display:inline-flex;align-items:center;border:1px solid var(--line-strong);border-radius:999px;overflow:hidden;background:var(--surface)}
.qty button{width:2.8rem;height:2.8rem;border:0;background:none;display:grid;place-items:center;color:var(--ink)}
.qty button:hover{color:var(--brand);background:var(--brand-soft)}
.qty output{min-width:2.4rem;text-align:center;font-weight:800;font-size:1rem}
.seller-card{display:flex;gap:.8rem;align-items:center;border:1px solid var(--line);border-radius:var(--r);padding:.85rem 1rem;background:var(--surface);box-shadow:var(--sh-sm)}
.seller-card .avatar{width:2.75rem;height:2.75rem;font-size:.9rem}
.note-box{display:flex;gap:.7rem;background:var(--surface-sunken);color:var(--ink-2);border-radius:var(--r);padding:.85rem 1rem;font-size:.88rem;align-items:flex-start;line-height:1.55}
.note-box svg{flex:none;color:var(--ink-2);margin-top:.1rem;width:1.25rem;height:1.25rem}
.note-box.cod-note{background:var(--ok-bg)}
.note-box.cod-note svg{color:var(--ok)}
.stock-note{font-size:.76rem;font-weight:700;color:var(--bad)}
.buybar{position:fixed;left:0;right:0;bottom:calc(3.9rem + env(safe-area-inset-bottom));z-index:66;background:var(--surface);border-top:1px solid var(--line);display:flex;align-items:center;gap:.55rem;padding:.55rem .8rem;box-shadow:0 -2px 10px rgba(var(--ink-rgb),.07)}
.buybar .bb-price{display:flex;flex-direction:column;line-height:1.15;margin-right:.15rem;min-width:0}
.buybar .bb-price b{font-family:var(--fd);color:var(--brand);font-size:1rem;white-space:nowrap}
.buybar .bb-price s{font-size:.68rem;color:var(--faint)}
.buybar .btn{flex:1;padding:.6rem .6rem;min-height:2.9rem;font-size:.84rem}
@media(min-width:900px){.buybar{display:none}}
