/* ==========================================================================
   Vehicle compare page
   ========================================================================== */
.clt-cmp-hero {
	padding: 130px 0 90px; color: #fff; text-align: center;
	background: #0d1f3a;
	background: radial-gradient(900px 300px at 50% 0%, color-mix(in srgb, var(--primary-color) 50%, transparent), transparent), linear-gradient(135deg, #0b1a30, #13345a);
}
.clt-cmp-hero h1 { color: #fff; font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.clt-cmp-hero p { opacity: .85; margin: 0; }
.clt-cmp { padding-bottom: 70px; }
.clt-cmp-slots {
	display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 16px;
	margin-top: -56px; position: relative; z-index: 2;
}
.clt-cmp-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(13, 31, 58, .12);
}
.clt-cmp-img { display: block; aspect-ratio: 16 / 10; background: #eef4fa; overflow: hidden; }
.clt-cmp-img img, .clt-cmp-img .clt-card-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.clt-cmp-card:hover .clt-cmp-img img { transform: scale(1.04); }
.clt-cmp-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.clt-cmp-card-body small { color: #64748b; min-height: 1.2em; }
.clt-cmp-card-body h2 { font-size: 1.1rem; font-weight: 700; margin: 4px 0 6px; }
.clt-cmp-card-body h2 a { color: inherit; }
.clt-cmp-price { color: var(--primary-color); font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; }
.clt-cmp-card-actions { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.clt-cmp-card-actions .btn { border-radius: 10px; }
.clt-cmp-remove {
	position: absolute; top: 10px; right: 10px; z-index: 2;
	width: 34px; height: 34px; border-radius: 50%; border: 0;
	background: rgba(255, 255, 255, .92); box-shadow: 0 4px 12px rgba(0, 0, 0, .15); cursor: pointer;
}
.clt-cmp-remove:hover { background: #fee2e2; color: #b91c1c; }
.clt-cmp-card.is-empty {
	align-items: center; justify-content: center; gap: 10px; padding: 28px 18px; min-height: 280px;
	border: 2px dashed color-mix(in srgb, var(--primary-color) 40%, #e2e8f0); background: #fbfdff; box-shadow: none; text-align: center;
}
.clt-cmp-card.is-empty > i { font-size: 2.4rem; color: var(--primary-color); }
.clt-cmp-card.is-empty label { font-weight: 700; }
.clt-cmp-hint {
	display: flex; gap: 16px; align-items: center; margin-top: 30px; padding: 20px 24px;
	border-radius: 16px; background: #f0f9ff; border: 1px solid #bae6fd;
}
.clt-cmp-hint > i { font-size: 2rem; color: var(--primary-color); }
.clt-cmp-hint p { margin: 2px 0 0; color: #475569; }

.clt-cmp-toolbar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
	margin: 30px 0 14px; padding: 12px 16px; border-radius: 14px; background: #f8fafc;
}
.clt-cmp-toolbar .form-check { margin: 0; }
.clt-cmp-tools { margin-left: auto; display: flex; gap: 6px; }

.clt-cmp-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid #e8eef5; background: #fff; }
.clt-cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; }
.clt-cmp-table th, .clt-cmp-table td { padding: 13px 16px; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.clt-cmp-table thead th { background: #0d1f3a; color: #fff; font-weight: 700; }
.clt-cmp-table tbody th { width: 220px; font-weight: 600; color: #334155; }
.clt-cmp-table thead th:first-child, .clt-cmp-table tbody th[scope="row"] {
	position: sticky; left: 0; z-index: 1;
}
.clt-cmp-table tbody th[scope="row"] { background: #f8fafc; }
.clt-cmp-group th { background: #eef6fd !important; color: var(--primary-color); text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; }
.clt-cmp-table tbody tr:hover td { background: #fafcff; }
.is-highlight .is-diff td { background: #fffbeb; }
.is-highlight .is-diff:hover td { background: #fef3c7; }
.is-diff-only .is-same { display: none; }
td.is-best { font-weight: 700; color: #166534; }
.clt-best { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: .72rem; font-weight: 700; }
.clt-cmp-note { margin-top: 10px; color: #64748b; font-size: .85rem; }

@media (max-width: 991px) {
	.clt-cmp-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
	.clt-cmp-slots { grid-template-columns: 1fr 1fr; gap: 10px; }
	.clt-cmp-card-body { padding: 10px; }
	.clt-cmp-card-body h2 { font-size: .95rem; }
	.clt-cmp-card-actions .btn-primary { display: none; }
	.clt-cmp-table tbody th { width: 130px; }
	.clt-cmp-tools { margin-left: 0; }
}
@media print {
	.header, .footer, .clt-cmp-toolbar, .clt-cmp-remove, .clt-cmp-card.is-empty, .clt-cmp-card-actions, .scroll-top, .clt-tray { display: none !important; }
	.clt-cmp-hero { padding: 20px 0; background: none; color: #000; }
	.clt-cmp-hero h1 { color: #000; }
	.clt-cmp-slots { margin-top: 0; }
	.clt-cmp-card { box-shadow: none; border: 1px solid #ddd; }
	.clt-cmp-table thead th { background: #eee; color: #000; }
}
