Geizkragen/assets/css/compare.css

159 lines
3.1 KiB
CSS

.compare-page {
margin-top: 2rem;
padding: 1rem;
}
.compare-title {
font-size: 2.5rem;
margin-bottom: 2rem;
text-align: center;
color: #f8fafc;
font-weight: 700;
}
.compare-empty {
text-align: center;
color: #cbd5e1;
margin-top: 3rem;
background: #1e293b;
padding: 3rem;
border-radius: 1.5rem;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}
.compare-category-title {
margin-top: 3rem;
margin-bottom: 1.5rem;
font-size: 1.8rem;
color: #38bdf8;
border-bottom: 2px solid rgba(51, 65, 85, 0.5);
padding-bottom: 0.8rem;
}
.compare-table-wrapper {
overflow-x: auto;
background: #1e293b;
border-radius: 1.5rem;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
padding: 0;
margin-bottom: 3rem;
border: 1px solid rgba(255, 255, 255, 0.05);
}
.compare-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
min-width: 800px;
}
.compare-table th,
.compare-table td {
padding: 1.5rem 1rem;
text-align: center;
border-bottom: 1px solid rgba(51, 65, 85, 0.5);
color: #cbd5e1;
vertical-align: middle;
}
.compare-table tbody tr:last-child td {
border-bottom: none;
}
.compare-table th:first-child,
.compare-table td:first-child {
text-align: left;
font-weight: 600;
position: sticky;
left: 0;
background: #1e293b;
z-index: 2;
color: #f8fafc;
border-right: 1px solid rgba(51, 65, 85, 0.5);
box-shadow: 4px 0 6px -2px rgba(0, 0, 0, 0.2);
}
.compare-table th {
background: #0f172a;
font-weight: bold;
color: #f8fafc;
padding-top: 2rem;
padding-bottom: 2rem;
}
.compare-table th:first-child {
background: #0f172a;
z-index: 3;
font-size: 1.2rem;
}
.compare-table tbody tr:hover td {
background: #2a3a52;
}
.compare-table tbody tr:hover td:first-child {
background: #2a3a52;
}
.compare-product-img {
height: 140px;
object-fit: contain;
margin-bottom: 1.2rem;
border-radius: 0.8rem;
background: linear-gradient(145deg, #ffffff, #f1f5f9);
padding: 0.8rem;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease;
}
.compare-product-img:hover {
transform: scale(1.05);
}
.compare-product-name {
font-size: 1.15rem;
color: #60a5fa;
text-decoration: none;
transition: color 0.2s;
display: block;
margin-bottom: 1rem;
font-weight: 600;
line-height: 1.4;
}
.compare-product-name:hover {
color: #93c5fd;
}
.compare-remove-btn {
background: #ef4444;
color: white;
border: none;
padding: 0.6rem 1.2rem;
border-radius: 9999px; /* Pill shape */
cursor: pointer;
font-size: 0.85rem;
font-weight: 600;
transition: all 0.2s;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.compare-remove-btn:hover {
background: #dc2626;
transform: translateY(-1px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.compare-table tbody tr:nth-child(even) td:not(:first-child) {
background: rgba(15, 23, 42, 0.2);
}
.desc-text {
text-align: left;
display: inline-block;
max-width: 300px;
line-height: 1.6;
font-size: 0.95rem;
}