/* =====================================================
   PRICE COMPARISON MODAL
   ===================================================== */

.comparison-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.comparison-modal.active {
    display: flex;
}

.comparison-content {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--border-emphasis);
    position: relative;
}

.comparison-content h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.comparison-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.comparison-close:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.comparison-table thead {
    background: var(--bg-primary);
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    color: var(--accent-gold);
    font-weight: 600;
    border-bottom: 2px solid var(--border-emphasis);
}

.comparison-table td {
    padding: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-table tr:hover {
    background: rgba(212, 175, 112, 0.05);
}

.comparison-table .best-price {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.comparison-table .best-price::after {
    content: " 🏆";
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-modal {
        padding: 1rem;
    }
    
    .comparison-content {
        padding: 1.5rem;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}
