/* Karşılaştır sayfası responsive */

.compare-table {
    min-width: 500px;
}

.compare-table th,
.compare-table td {
    min-width: 180px;
    vertical-align: middle;
}

.compare-table th:first-child,
.compare-table td:first-child {
    min-width: 120px;
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
}

.compare-table thead th:first-child {
    background: #fff;
}

.compare-table tbody th:first-child {
    background: #f8f9fa;
}

.compare-product-img {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
}

@media (max-width: 767.98px) {
    .sen-karsilastir .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .sen-karsilastir h1 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .compare-table th,
    .compare-table td {
        min-width: 150px;
        padding: 0.75rem;
    }

    .compare-table th:first-child,
    .compare-table td:first-child {
        min-width: 90px;
        font-size: 0.8rem;
    }

    .compare-product-img {
        max-width: 120px;
    }

    .compare-table thead th h6 {
        font-size: 0.75rem;
    }

    .compare-table thead th p {
        font-size: 0.85rem;
    }

    .compare-table thead th .btn {
        font-size: 0.7rem;
        padding: 0.4rem 0.5rem;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .table-responsive::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 24px;
        background: linear-gradient(to right, transparent, rgba(0,0,0,0.04));
        pointer-events: none;
        z-index: 3;
    }

    .sen-karsilastir .text-center .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .compare-table th,
    .compare-table td {
        min-width: 130px;
        padding: 0.5rem;
    }

    .compare-table th:first-child,
    .compare-table td:first-child {
        min-width: 80px;
        font-size: 0.75rem;
        padding: 0.5rem 0.4rem;
    }

    .compare-product-img {
        max-width: 90px;
    }

    .compare-table thead th h6 {
        font-size: 0.7rem;
    }
}
