/* ===== COMPARE PAGE ===== */
.compare-page {
    padding-top: calc(var(--header-height) + var(--space-2xl));
    min-height: 80vh;
}

.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--mid-grey);
    padding: var(--space-md) var(--space-lg);
    z-index: 900;
    transform: translateY(100%);
    transition: var(--transition-med);
}

.compare-bar.visible {
    transform: translateY(0);
}

.compare-bar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.compare-bar-items {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.compare-bar-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--mid-grey);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}

.compare-bar-item .remove-compare {
    width: 20px;
    height: 20px;
    background: var(--steel-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--light-grey);
    transition: var(--transition-fast);
}

.compare-bar-item .remove-compare:hover {
    background: var(--danger);
    color: var(--white);
}

.compare-bar-slot {
    width: 120px;
    height: 40px;
    border: 2px dashed var(--steel-grey);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--steel-grey);
}

/* ===== COMPARE TABLE ===== */
.compare-table-wrapper {
    overflow-x: auto;
    margin-top: var(--space-xl);
}

.compare-table {
    width: 100%;
    min-width: 800px;
    border-collapse: separate;
    border-spacing: 0;
}

.compare-table th,
.compare-table td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--mid-grey);
    text-align: center;
    vertical-align: top;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--light-grey);
    font-size: 0.85rem;
    background: var(--dark-grey);
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 160px;
}

.compare-table thead th {
    background: var(--dark-grey);
    border-bottom: 2px solid var(--electric-blue);
    position: sticky;
    top: var(--header-height);
    z-index: 3;
}

.compare-product-header {
    text-align: center;
}

.compare-product-img {
    width: 120px;
    height: 120px;
    background: var(--mid-grey);
    border-radius: var(--radius-md);
    margin: 0 auto var(--space-sm);
    overflow: hidden;
}

.compare-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-product-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.compare-product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--electric-blue);
    font-family: var(--font-mono);
}

.compare-remove-btn {
    margin-top: var(--space-sm);
}

.compare-highlight {
    background: var(--electric-blue-glow) !important;
    font-weight: 700;
    color: var(--electric-blue);
}

.compare-check {
    color: var(--success);
    font-size: 1.1rem;
}

.compare-cross {
    color: var(--danger);
    font-size: 1.1rem;
}

/* Empty compare state */
.compare-empty {
    text-align: center;
    padding: var(--space-4xl);
}

.compare-empty-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.3;
}

.compare-empty h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.compare-empty p {
    color: var(--light-grey);
    margin-bottom: var(--space-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .compare-bar-inner {
        flex-direction: column;
        gap: var(--space-sm);
    }
}