/* Common Tables */
.price-table-main {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #888;
}

.price-table-main th {
	background-color: #a0a0a0;
	color: #fff;
	padding: 10px;
	font-size: 18px;
	border: 1px solid #888;
}

.price-table-main td {
	padding: 8px 15px;
	font-size: 18px;
	font-weight: bold;
	border: 1px solid #888;
	text-align: center;
}

.price-table-main tbody tr:nth-child(even) {
	background-color: #f5f5f5;
}

.price-table-main tbody tr:nth-child(odd) {
	background-color: #ffffff;
}

/* Spec Tables */
.lineup-spec-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

.lineup-spec-table th {
	width: 30%;
	background: #f7f7f7;
	padding: 12px 15px;
	border: 1px solid #ddd;
	text-align: left;
	font-size: 14px;
}

.lineup-spec-table td {
	padding: 12px 15px;
	border: 1px solid #ddd;
	font-size: 14px;
	background: #fff;
}

/* Comparison Table */
.lineup-table-wrapper {
	margin: 40px 0;
	background: #fff;
	padding: 20px;
	border-radius: 15px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	overflow: clip;
}

.table-header-flex {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 15px;
	border-bottom: 2px double #ccc;
	padding-bottom: 10px;
}

.table-sub-title {
	font-size: 1.2rem;
	color: #333;
	margin: 0;
	font-weight: bold;
}

.table-legend {
	font-size: 0.9rem;
	color: #666;
}

.table-legend span {
	color: #e91e63;
	font-weight: bold;
	margin-left: 10px;
}

.scroll-container {
	overflow: visible;
	-webkit-overflow-scrolling: touch;
}

.comparison-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	min-width: 700px;
}

.comparison-table th {
	padding: 15px 10px;
	font-weight: bold;
	border-bottom: 1px solid #eee;
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 10;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	background-color: #fff;
}

.comparison-table tbody th {
	text-align: left;
	background: #f9f9f9;
	padding-left: 20px;
	font-weight: normal;
	color: #444;
	border-bottom: 1px solid #eee;
	border-right: 1px solid #eee;
}

.comparison-table td {
	padding: 12px;
	text-align: center;
	font-size: 1.2rem;
	color: #333;
	border-bottom: 1px solid #eee;
	background: #fff;
	font-weight: bold;
	border-right: 1px solid #fff;
}

/* Category Colors */
.cat-blue {
	background-color: #e3f2fd;
	color: #1976d2;
	border-top: 3px solid #1976d2 !important;
}

.cat-pink {
	background-color: #fce4ec;
	color: #c2185b;
	border-top: 3px solid #c2185b !important;
}

.cat-yellow {
	background-color: #fffde7;
	color: #fbc02d;
	border-top: 3px solid #fbc02d !important;
}

.cat-green {
	background-color: #e8f5e9;
	color: #388e3c;
	border-top: 3px solid #388e3c !important;
}

/* Column Colors */
.comparison-table td:nth-child(2) {
	background-color: #f0f7ff;
}

.comparison-table td:nth-child(3) {
	background-color: #fff5f8;
}

.comparison-table td:nth-child(4) {
	background-color: #fffdf0;
}

.comparison-table td:nth-child(5) {
	background-color: #f6faf5;
}

.comparison-table thead th.cat-blue {
	background-color: #e3f2fd;
}

.comparison-table thead th.cat-pink {
	background-color: #fce4ec;
}

.comparison-table thead th.cat-yellow {
	background-color: #fffde7;
}

.comparison-table thead th.cat-green {
	background-color: #e8f5e9;
}

/* Hover Effects */
.comparison-table tbody tr:hover td,
.comparison-table tbody tr:hover th {
	background-color: #f5faff;
}

.comparison-table tbody tr:hover td:nth-child(2) {
	background-color: #e1f0ff;
}

.comparison-table tbody tr:hover td:nth-child(3) {
	background-color: #fde4ed;
}

.comparison-table tbody tr:hover td:nth-child(4) {
	background-color: #fff9d6;
}

.comparison-table tbody tr:hover td:nth-child(5) {
	background-color: #dceddb;
}

/* Striping for First Column */
.comparison-table tbody tr:nth-child(odd) th {
	background-color: #f2f2f2;
}

.comparison-table tbody tr:nth-child(even) th {
	background-color: #f9f9f9;
}

.scroll-notice {
	display: none;
	text-align: center;
	font-size: 0.8rem;
	color: #999;
	margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
	.scroll-notice {
		display: block;
	}

	.table-header-flex {
		flex-direction: column;
		align-items: flex-start;
	}

	.table-legend {
		margin-top: 5px;
	}

	.comparison-table th:first-child,
	.comparison-table td:first-child {
		position: -webkit-sticky;
		position: sticky;
		left: 0;
		z-index: 5;
	}

	.comparison-table th:first-child {
		z-index: 15;
	}
}