/* Cong cu chon may + so sanh (chon-may.php, so-sanh.php) */
.lf-hero { background: linear-gradient(135deg, #1e3a8a, #2563eb 60%, #0ea5e9); color: #fff; border-radius: 1rem; padding: 1.1rem 1.25rem; }
.lf-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: .9rem; padding: .9rem; position: sticky; top: .75rem; }
.lf-q + .lf-q { border-top: 1px dashed #e2e8f0; margin-top: .75rem; padding-top: .75rem; }
.lf-qt { font-weight: 700; font-size: .92rem; margin-bottom: .45rem; color: #0f172a; }
.lf-qt span { font-weight: 400; font-size: .75rem; color: #94a3b8; margin-left: .25rem; }
.lf-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.lf-chips button { border: 1px solid #cbd5e1; background: #fff; color: #334155; border-radius: 999px; padding: .38rem .75rem; font-size: .84rem; line-height: 1.2; transition: all .12s; }
.lf-chips button:hover { border-color: #60a5fa; color: #1d4ed8; }
.lf-chips button.on { background: #2563eb; border-color: #2563eb; color: #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, .3); }
.lf-card { background: #fff; border: 1px solid #e5e7eb; border-radius: .9rem; padding: .75rem; display: flex; gap: .85rem; margin-bottom: .7rem; position: relative; }
.lf-card:hover { border-color: #93c5fd; box-shadow: 0 6px 20px rgba(15, 23, 42, .06); }
.lf-img { width: 132px; height: 104px; flex: 0 0 132px; border-radius: .6rem; background: #f1f5f9 center/contain no-repeat; }
.lf-name { font-weight: 700; color: #0f172a; text-decoration: none; font-size: .98rem; line-height: 1.3; }
.lf-name:hover { color: #1d4ed8; }
.lf-sum { font-size: .82rem; color: #475569; margin: .15rem 0 .35rem; }
.lf-price { font-weight: 800; color: #dc2626; font-size: 1.05rem; white-space: nowrap; }
.lf-fit { position: absolute; top: .6rem; right: .7rem; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: .15rem .55rem; }
.lf-fit.hi { background: #dcfce7; color: #15803d; } .lf-fit.mid { background: #fef9c3; color: #a16207; } .lf-fit.lo { background: #f1f5f9; color: #64748b; }
.lf-why { list-style: none; padding: 0; margin: 0 0 .4rem; font-size: .8rem; }
.lf-why li { margin: .1rem 0; }
.lf-why .ok { color: #15803d; } .lf-why .warn { color: #b45309; }
.lf-tag { display: inline-block; font-size: .7rem; border-radius: .3rem; padding: 0 .35rem; margin-right: .25rem; background: #eef2ff; color: #3730a3; vertical-align: middle; }
.lf-cmp { font-size: .8rem; }
.lf-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #0f172a; color: #fff; padding: .6rem 0; box-shadow: 0 -6px 20px rgba(0, 0, 0, .2); }
.lf-empty { text-align: center; color: #64748b; padding: 2rem 1rem; background: #fff; border-radius: .9rem; border: 1px dashed #cbd5e1; }
.lf-start { text-align: center; padding: 2.2rem 1rem; background: #fff; border-radius: .9rem; border: 1px solid #e5e7eb; color: #475569; }
@media (max-width: 991px) { .lf-panel { position: static; } }
@media (max-width: 576px) {
  .lf-card { flex-direction: column; }
  .lf-img { width: 100%; height: 170px; flex-basis: auto; }
  .lf-chips button { font-size: .8rem; padding: .34rem .62rem; }
}
/* So sanh */
.cmp-wrap { overflow-x: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: .9rem; }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; font-size: .88rem; }
.cmp-table th, .cmp-table td { padding: .55rem .65rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.cmp-table th.rowh { position: sticky; left: 0; background: #f8fafc; z-index: 1; width: 120px; min-width: 104px; font-weight: 600; color: #475569; font-size: .8rem; }
.cmp-table td.best { background: #f0fdf4; color: #166534; font-weight: 600; }
.cmp-table td.best::after { content: " ★"; color: #16a34a; font-size: .75rem; }
.cmp-table tr.same { display: none; }
.cmp-table.show-same tr.same { display: table-row; }
.cmp-head img { width: 100%; max-width: 180px; height: 120px; object-fit: contain; background: #f8fafc; border-radius: .5rem; }
.cmp-bar { height: 6px; background: #e2e8f0; border-radius: 3px; margin-top: .3rem; overflow: hidden; }
.cmp-bar > div { height: 100%; background: linear-gradient(90deg, #60a5fa, #2563eb); }

.lf-jump { position: fixed; left: 50%; transform: translateX(-50%); bottom: 4.2rem; z-index: 1035; border: 0; border-radius: 999px; background: #2563eb; color: #fff; font-weight: 700; padding: .6rem 1.2rem; box-shadow: 0 8px 24px rgba(37, 99, 235, .4); white-space: nowrap; }
@media (min-width: 992px) { .lf-jump { display: none !important; } }

.lf-tray .container { padding-right: 64px; }
