/* Trang chi tiết tool (/san-pham/...) */
.pd-crumbs { color: var(--text-2); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.pd-crumbs a:hover { color: var(--text); }
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-6); align-items: start; }
.pd-media { margin: 0; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.pd-media img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); overflow-x: auto; }
.pd-thumb {
    flex-shrink: 0; width: 96px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm);
    overflow: hidden; background: var(--surface-2); color: var(--text);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.is-active { border-color: var(--text); }
.pd-thumb-video { display: grid; place-items: center; font-size: 18px; }
.pd-thumb-video span { font-size: var(--fs-xs); }
.pd-title { font-size: var(--fs-xl); margin-top: var(--sp-4); }
.pd-stats { margin-top: var(--sp-1); }
.pd-seller { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border); }
.pd-block { margin-top: var(--sp-6); }
.pd-block h2 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.pd-desc { padding: var(--sp-4); border-radius: var(--r-md); background: var(--surface-2); }
.pd-desc p + p { margin-top: var(--sp-2); }
.pd-features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pd-features li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.pd-specs th { width: 180px; color: var(--text-2); font-weight: 400; }
.pd-buy { position: sticky; top: calc(var(--topbar-h) + var(--sp-4)); }
.pd-buy-card { padding: var(--sp-5); }
.pd-price { display: flex; align-items: baseline; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.pd-price #pd-price { font-size: var(--fs-3xl); font-weight: 700; }
.pd-price-old { color: var(--text-3); text-decoration: line-through; }
.pd-plans { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.pd-plan { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--border-strong); border-radius: var(--r-sm); cursor: pointer; }
.pd-plan:has(input:checked) { border-color: var(--text); background: var(--surface-2); }
.pd-plan input { accent-color: var(--primary); }
.pd-plan-name { flex: 1; display: flex; flex-direction: column; }
.pd-plan-name small { color: var(--text-2); font-size: var(--fs-xs); }
.pd-balance { font-size: var(--fs-sm); margin-top: var(--sp-2); text-align: center; }
.pd-guarantees { list-style: none; margin: var(--sp-4) 0 0; padding: var(--sp-4) 0 0; border-top: 1px solid var(--border); display: grid; gap: var(--sp-2); color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 960px) {
    .pd-layout { grid-template-columns: 1fr; }
    /* Điện thoại: ảnh → tên → khung mua → phần còn lại */
    .pd-main { display: contents; }
    .pd-buy { position: static; }
    .pd-media, .pd-thumbs, .pd-title, .pd-stats, .pd-buy { order: -1; }
    .pd-layout { gap: var(--sp-3); }
}
