/* ==========================================================================
   Comparison Table — Responsive product comparison
   ========================================================================== */

.comparison-table-wrap {
	margin: var(--space-xl) 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-bg-white);
}

/* Scroll hint shadow on mobile */
.comparison-table-wrap::after {
	content: '';
	position: sticky;
	right: 0;
	top: 0;
	bottom: 0;
	width: 30px;
	pointer-events: none;
}

.comparison-table {
	width: 100%;
	min-width: 500px;
	border-collapse: collapse;
	font-size: var(--text-sm);
	margin: 0;
}

/* Header */
.comparison-table thead {
	background: var(--color-bg-card);
}

.comparison-table__feature-header {
	width: 120px;
	min-width: 120px;
	position: sticky;
	left: 0;
	background: var(--color-bg-card);
	z-index: 2;
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-text-secondary);
}

.comparison-table__product-header {
	text-align: center;
	padding: var(--space-md);
	min-width: 140px;
	vertical-align: bottom;
}

.comparison-table__product-header img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	margin: 0 auto var(--space-sm);
	border-radius: var(--radius-sm);
}

.comparison-table__product-header span {
	display: block;
	font-family: var(--font-heading);
	font-weight: var(--weight-bold);
	font-size: var(--text-sm);
	line-height: var(--leading-tight);
}

.comparison-table__badge {
	display: inline-block;
	background: var(--color-primary);
	color: var(--color-text-inverse);
	font-size: 10px;
	font-weight: var(--weight-bold);
	padding: 2px 8px;
	border-radius: var(--radius-full);
	margin-top: var(--space-xs);
}

/* Body rows */
.comparison-table tbody tr {
	border-bottom: 1px solid var(--color-border-light);
}

.comparison-table tbody tr:last-child {
	border-bottom: none;
}

.comparison-table__label {
	font-weight: var(--weight-medium);
	color: var(--color-text-secondary);
	position: sticky;
	left: 0;
	background: var(--color-bg-white);
	z-index: 1;
	padding: var(--space-sm) var(--space-md);
}

.comparison-table__value {
	text-align: center;
	padding: var(--space-sm) var(--space-md);
}

.comparison-table__price {
	font-family: var(--font-heading);
	font-weight: var(--weight-bold);
	color: var(--color-text);
}

/* Check / Cross icons */
.check {
	color: var(--color-success);
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
}

.cross {
	color: var(--color-error);
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
}

/* Stars inline */
.stars-inline {
	color: var(--color-star);
	font-weight: var(--weight-semibold);
}

/* CTA row */
.comparison-table__cta-row {
	background: var(--color-bg-card);
}

.comparison-table__cta-row td {
	padding: var(--space-md);
	text-align: center;
}

/* --------------------------------------------------------------------------
   Desktop — wider table
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
	.comparison-table__feature-header {
		width: 160px;
		min-width: 160px;
	}

	.comparison-table__product-header {
		min-width: 180px;
	}

	.comparison-table__product-header img {
		width: 100px;
		height: 100px;
	}
}
