/* Trang so sánh dạng bài (/vs/). Chỉ dùng token theme, KHÔNG hardcode màu. Bảng dùng lại .acms-cmp__*. */
.pf-vs { max-width: 920px; }
.pf-vs h2 { margin: 36px 0 14px; font-size: var(--fs-h2); }
.pf-vs h3 { margin: 18px 0 8px; font-size: var(--fs-h3); }
.pf-vs__crumb { font-size: 13px; color: var(--color-text-secondary); margin-bottom: 10px; }
.pf-vs__hero { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 18px 0; }
.pf-vs__hero-item { text-align: center; flex: 1; }
.pf-vs__hero-item img { max-width: 220px; width: 100%; height: 220px; object-fit: contain; display: block; margin: 0 auto 8px; }
.pf-vs__vs { font-weight: 800; color: var(--color-text-secondary); }
.pf-vs__winner { border: 1px solid var(--color-border); background: var(--color-primary-light); padding: 16px 18px; margin: 16px 0; }
.pf-vs__winner p { margin: 8px 0 0; line-height: 1.6; }
.pf-vs__intro { line-height: 1.7; }
.pf-vs__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 8px; }
.pf-vs__card { border: 1px solid var(--color-border); padding: 16px; text-align: center; background: var(--color-surface); }
.pf-vs__card.is-winner { border-color: var(--color-primary); }
.pf-vs__card-name { margin: 8px 0; font-size: var(--fs-h3); }
.pf-vs__price { font-weight: 700; margin: 8px 0; }
.pf-vs__cta { display: inline-block; margin-top: 10px; }
.pf-vs__note { font-size: 13px; color: var(--color-text-secondary); line-height: 1.5; }
.pf-vs__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pf-vs__tile { border: 1px solid var(--color-border); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.pf-vs__tile-label { font-size: 12px; font-weight: 700; color: var(--color-text-secondary); text-transform: uppercase; }
.pf-vs__tile-val.is-best { font-weight: 700; color: var(--color-success); }
@media (max-width: 640px) {
  .pf-vs__cards { grid-template-columns: 1fr; }
  .pf-vs__hero-item img { height: 140px; }
}

/* Kho /vs/ */
.pf-vs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pf-vs__gcard { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--color-border); padding: 14px; background: var(--color-surface); color: var(--color-text); text-decoration: none; }
.pf-vs__gcard:hover { border-color: var(--color-primary); }
.pf-vs__gimgs { display: flex; align-items: center; justify-content: center; gap: 10px; }
.pf-vs__gimgs img { width: 42%; height: 130px; object-fit: contain; }
.pf-vs__gtitle { font-weight: 700; line-height: 1.3; }
.pf-vs__gexc { font-size: 13px; color: var(--color-text-secondary); line-height: 1.5; }

/* ============ Bảng dùng chung (.pf-table): specs + chi phí ============
   Cột nhãn bên trái, mọi cột giá trị CÂN BẰNG NHAU và căn giữa (table-layout: fixed).
   Chỉ dùng token theme. Màn hẹp: cuộn ngang trong .pf-table-wrap, không làm vỡ trang. */
.pf-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); margin: 0 0 8px; background: var(--color-surface); }
.pf-table { width: 100%; min-width: 480px; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.45; }
.pf-table th, .pf-table td { padding: 12px 14px; text-align: center; vertical-align: middle; overflow-wrap: anywhere; border-bottom: 1px solid var(--color-border-subtle); }
.pf-table thead th { background: var(--color-bg-alt); color: var(--color-text); font-weight: 700; border-bottom: 1px solid var(--color-border); }
.pf-table tbody th { width: 30%; text-align: left; background: var(--color-bg); color: var(--color-text-secondary); font-weight: 700; font-size: 13px; border-right: 1px solid var(--color-border-subtle); }
.pf-table thead th:first-child { text-align: left; width: 30%; }
.pf-table tbody tr:nth-child(even) td { background: var(--color-bg-subtle); }
.pf-table tbody tr:last-child th, .pf-table tbody tr:last-child td { border-bottom: 0; }
.pf-table td + td, .pf-table thead th + th { border-left: 1px solid var(--color-border-subtle); }
.pf-table td.is-na { color: var(--color-text-muted); font-style: italic; }
.pf-table td.is-best { background: var(--color-success-light); color: var(--color-success); font-weight: 700; }
.pf-table__total th, .pf-table__total td { font-weight: 800; border-top: 1px solid var(--color-border-strong); }
@media (max-width: 640px) {
  .pf-table th, .pf-table td { padding: 10px 10px; font-size: 13px; }
  .pf-table tbody th, .pf-table thead th:first-child { width: 34%; }
}

/* Hàng sản phẩm trong bảng so sánh: nhúng nguyên [acms_card] của bài review, ép về dạng cột cho vừa ô bảng. */
.pf-table td.pf-table__cell-card, .pf-table__product td { padding: 10px; vertical-align: top; text-align: left; background: var(--color-surface); }
.pf-table__product th { vertical-align: middle; }
.pf-table__product .acms-card { margin: 0; box-shadow: none; }
.pf-table__product .acms-card__row { flex-direction: column; min-height: auto; }
.pf-table__product .acms-card__image-col { flex: none; }
.pf-table__product .acms-card__content { padding: 12px; }
.pf-table__product .acms-card__price-current { font-size: var(--fs-card, 20px); }

/* ============ Where Each Excels: 2 khung đối xứng ============ */
.pf-vs__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.pf-vs__col { display: flex; flex-direction: column; border: 1px solid var(--color-border); background: var(--color-surface); }
.pf-vs__col.is-winner { border-color: var(--color-primary); }
.pf-vs__col-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.pf-vs__col.is-winner .pf-vs__col-head { background: var(--color-primary-light); }
.pf-vs__col-head img { width: 56px; height: 56px; object-fit: contain; flex: none; background: var(--color-surface); border: 1px solid var(--color-border-subtle); }
.pf-vs__col-name { margin: 0; flex: 1; font-size: 16px; line-height: 1.3; }
.pf-vs__col-body { flex: 1; padding: 16px; }
.pf-vs__col-sub { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-secondary); }
.pf-vs__col-sub:not(:first-child) { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--color-border); }
.pf-vs__list { list-style: none; margin: 0; padding: 0; }
.pf-vs__list li { position: relative; padding: 0 0 0 26px; margin: 0 0 9px; font-size: 14px; line-height: 1.55; }
.pf-vs__list li::before { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.pf-vs__list--pro li::before { content: "\2713"; color: var(--color-success); background: var(--color-success-light); }
.pf-vs__list--con li::before { content: "\2715"; color: var(--color-error); background: var(--color-error-light); }
.pf-vs__col-foot { padding: 14px 16px; border-top: 1px solid var(--color-border-subtle); text-align: center; }
.pf-vs__col-foot .pf-vs__cta { display: block; margin: 0; }
@media (max-width: 640px) { .pf-vs__cols { grid-template-columns: 1fr; } }
