/* --- Comparison Overlay (Lakshya Theme - Compact) --- */
.compare-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 90%;
    max-width: 1100px;
    /* Reduced max-width slightly for compactness */
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: none;
    border-radius: 0;
    display: flex;
    font-family: 'Outfit', sans-serif !important;
}

.compare-overlay.active {
    transform: translateX(0);
}

/* Sidebar Menu */
.compare-sidebar-buttons {
    width: 60px;
    /* Reduced width */
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    /* Compact gap */
    padding: 1.5rem 0;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border-radius: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.03);
}

.compare-side-btn {
    width: 40px;
    /* Smaller buttons */
    height: 40px;
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.compare-side-btn:hover {
    transform: translateX(5px) scale(1.05);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 8px 15px rgba(33, 94, 97, 0.15);
}

.compare-side-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(33, 94, 97, 0.3);
    border-color: var(--primary);
    transform: scale(1.05);
}

.compare-content {
    flex: 1;
    padding: 2rem;
    /* Reduced padding */
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(33, 94, 97, 0.2) transparent;
}

.compare-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    /* Reduced margin */
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.compare-header-row h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    /* Slightly smaller title */
    letter-spacing: -0.5px;
    color: var(--primary);
}

.compare-close-btn {
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.compare-close-btn:hover {
    color: white;
    background: var(--danger, #e74c3c);
    border-color: var(--danger, #e74c3c);
    transform: rotate(90deg);
}

/* Comparison Table - COMPACT */
.compare-table {
    display: grid;
    gap: 0.75rem;
    /* Reduced Gap */
    width: 100%;
}

.compare-cell {
    padding: 0.85rem;
    /* Reduced Padding */
    background: white;
    border-radius: 12px;
    /* Smoother radius for compact feel */
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    /* Compact font */
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, background-color 0.2s, outline 0.2s;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
}

.compare-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    border-color: rgba(33, 94, 97, 0.2);
}

/* HEADER CELL (Indicator, etc.) */
.compare-cell.header-cell {
    font-weight: 500;
    color: var(--primary);
    background: #E0F2FE;
    border-color: transparent;
}

.compare-cell.header-cell:hover {
    outline: 2px solid var(--primary);
    background: #E0F2FE;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 94, 97, 0.15);
}

.compare-cell.highlight {
    background: #dbeafe;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

/* Section Row Styles */
.comp-section {
    padding-top: 0.5rem;
    /* Compact spacing */
    margin-bottom: 0;
    justify-content: flex-start;
    padding-left: 0;
    font-weight: 600 !important;
    font-size: 1.0rem !important;
    /* Smaller Section Title */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--secondary) !important;
}

.comp-section:hover {
    outline: none !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .compare-overlay {
        width: 100%;
        font-size: 0.85rem;
    }

    .compare-side-btn {
        width: 34px;
        height: 34px;
    }

    .compare-cell {
        padding: 0.6rem;
    }
}