.compare-page {
    max-width: 1400px;
}

.compare-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--txt-main);
}

.compare-subtitle {
    font-size: 1rem;
    color: var(--txt-sub);
}

.compare-empty {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 4rem 2rem;
    border: 1px solid var(--border-light);
}

.empty-icon i {
    color: var(--txt-sub);
    opacity: 0.25;
}

.compare-table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-app);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.compare-table th,
.compare-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.compare-table th {
    background: var(--bg-body);
    font-weight: 700;
    color: var(--txt-main);
}

.compare-col-label {
    width: 200px;
    position: sticky;
    left: 0;
    background: var(--bg-card);
    z-index: 1;
    font-weight: 700;
    color: var(--txt-main);
}

.compare-col-product {
    min-width: 280px;
    max-width: 320px;
}

.compare-col-empty {
    width: 280px;
    background: var(--bg-body);
}

.compare-product-card {
    position: relative;
}

.compare-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: var(--app-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.compare-remove-btn:hover {
    background: var(--app-accent);
    color: white;
}

.compare-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.compare-product-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--bg-body);
    padding: 1rem;
    margin-bottom: 1rem;
}

.compare-product-img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border-radius: 12px;
    color: var(--txt-sub);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.compare-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--txt-main);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compare-product-price {
    margin-bottom: 0.5rem;
}

.compare-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--app-primary);
}

.compare-price-discount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--app-primary);
}

.compare-price-regular {
    font-size: 0.9rem;
    color: var(--txt-sub);
    margin-left: 0.5rem;
}

.compare-empty-slot {
    text-align: center;
    color: var(--txt-sub);
    padding: 2rem;
}

.compare-empty-slot i {
    font-size: 2.5rem;
    opacity: 0.4;
}

.compare-row {
    transition: background 0.2s ease;
}

.compare-row:hover {
    background: var(--bg-body);
}

.compare-row-highlight {
    background: rgba(16, 185, 129, 0.05);
}

.compare-label {
    font-weight: 600;
    color: var(--txt-main);
    position: sticky;
    left: 0;
    background: var(--bg-card);
}

.compare-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--txt-sub);
}

.compare-brand-link {
    color: var(--app-primary);
    text-decoration: none;
    font-weight: 500;
}

.compare-brand-link:hover {
    text-decoration: underline;
}

.color-preview {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .compare-title {
        font-size: 1.5rem;
    }

    .compare-table th,
    .compare-table td {
        padding: 1rem 0.75rem;
    }

    .compare-col-label {
        width: 150px;
        font-size: 0.9rem;
    }

    .compare-product-img {
        height: 150px;
    }

    .compare-product-name {
        font-size: 0.9rem;
    }
}
