﻿
/* KT - CSS Responsive */
@media screen and (max-width: 2130px) {
    .product-categories-bar {
        width: 100%;
        height: 75px;
        top: auto;
        bottom: 0;
        display: flex;
        padding-top: env(safe-area-inset-bottom);
    }

        .product-categories-bar > .title {
            width: 100px;
            font-size: 1rem;
            line-height: 1rem;
        }

            .product-categories-bar > .title svg {
                transform: rotate(90deg)
            }

    .category-item-list {
        flex-direction: row;
        width: 100%;
        height: calc(100% + 17px);
        margin-left: 0;
        padding-left: 0;
        margin-top: -1rem;
        padding-top: 1rem;
    }

        .category-item-list button {
            flex-shrink: 0;
            height: 70px;
            overflow: hidden;
        }

            .category-item-list button.active,
            .category-item-list button:hover {
                padding-left: 5px;
                margin-left: 0;
                padding-top: calc(1rem + 5px);
                margin-top: -1rem;
                border-radius: 1rem 1rem 0 0;
                width: 100px;
                height: calc(70px + 1rem);
            }

            .category-item-list button .content img {
                width: auto;
                height: 24px;
            }

            .category-item-list button .content span {
                font-size: 12px;
            }

    .product-categories-bar .dropdown-menu {
        left: 50% !important;
        right: auto;
        top: auto !important;
        bottom: 0;
        transform: translateX(-50%) !important;
        box-shadow: 0px 0px 19.6px 0px #0000004D;
    }

    .system-summary {
        flex-direction: column-reverse;
    }

        .system-summary > .header {
            flex-direction: row;
            border-bottom: 1px solid #d1d1d1;
            padding: 16px 16px 10px 16px;
        }

            .system-summary > .header .title,
            .system-summary > .header .reset {
                flex-direction: row;
                align-items: center;
            }

                .system-summary > .header .title span,
                .system-summary > .header .reset span {
                    writing-mode: inherit;
                    transform: none;
                    padding: 0;
                }

    .product-categories-bar.show .system-summary > .header .title svg,
    .product-categories-bar.show .system-summary > .header .reset svg {
        transform: rotate(90deg)
    }
}

@media screen and (max-width: 1200px) {
    .kt-table thead {
        display: none;
    }

    .kt-table,
    .kt-table tbody,
    .kt-table tr,
    .kt-table tr td {
        display: block;
    }

        .kt-table tr {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            box-shadow: 0 0 0 1px #21252933;
            margin-bottom: 10px;
        }

            .kt-table tr td {
                display: flex;
                justify-content: space-between;
                border: none !important;
                padding: 4px;
            }
            /* .kt-table tr td:not(:nth-child(2))::before {
                            content: attr(data-label);
                            white-space: nowrap;
                            flex-basis: 100px;
                            } */

            .kt-table tr td {
                display: none;
            }

        .kt-table tbody tr td .title {
            max-width: none;
        }

        .kt-table tr td[data-label="counter"],
        .kt-table tr td[data-label="Ürün Adı"],
        .kt-table tr td[data-label="Fiyat"],
        .kt-table tr td[data-label="notFoundProduct"] {
            display: block;
            flex-grow: 1;
        }
        .kt-table tr td[data-label="notFoundProduct"] {
            padding: 30px 0;
        }

            .kt-table tr td[data-label="counter"] + td[data-label="Ürün Adı"] {
                max-width: calc(100% - 52px);
            }

        .kt-table tr td[data-label="Fiyat"] {
            width: 100%;
            flex-grow: 1;
            text-align: center;
            font-size: 20px;
        }

        .kt-table tbody tr td .kt-counter {
            position: relative;
            z-index: 5;
            margin: 10px 10px -27px 10px;
            opacity: 1;
        }

    .kt-counter button {
        width: 30px;
        height: 30px;
    }

    .kt-counter span {
        width: 100%;
        font-size: 16px;
        line-height: 24px;
    }
}

@media screen and (max-width: 992px) {
    .collect-computer-topbar {
        position: relative;
        top: 0;
        margin: 0 0 1rem 0;
    }

        .collect-computer-topbar .collect-computer-topbar-total {
            display: none;
        }

    .collect-computer-topbar-total {
        display: flex;
        justify-content: center;
        margin: 10px 0 4px 0;
    }

    .collect-computer-topbar-buttons {
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: center;
        margin: 0 0 .75rem 0;
        padding: 5px;
    }

    .collect-computer-topbar .btn-icon {
        flex-basis: 48.75%;
        max-width: 180px;
    }

    .system-summary-list .list-item {
        width: 100%;
        padding-right: 45px;
    }

        .system-summary-list .list-item .delete {
            right: 10px;
            top: 10px;
        }

    .system-summary .content .summary .block .choose-buttons {
        width: 100%;
    }

    .choose-buttons label {
        width: 100%;
    }

        .choose-buttons label > span {
            width: 100%;
        }

    .system-summary .content .summary .add-cart {
        margin: 12px 0;
    }

    .system-summary .content .summary .price {
        font-size: 24px;
        line-height: inherit;
        text-align: center;
    }

    .choose-buttons label > span small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .system-summary .content .summary .installments {
        margin: 0 auto 8px auto;
    }

    html:has(.product-categories-bar.show),
    body:has(.product-categories-bar.show) {
        overflow: hidden !important;
    }

        html:has(.product-categories-bar.show) header,
        body:has(.product-categories-bar.show) header {
            position: fixed;
        }

    .btn-itopya-system-filter + .collapse {
        border: 1px solid #fa9d27;
        padding: 1.2rem 1rem 0px 1rem;
        margin: -1.2rem 0 1rem 0;
        border-radius: 0 0 5px 5px;
    }
}

@media screen and (min-width: 992px) {
    .w-lg-auto {
        width: auto !important;
    }

    .btn-itopya-system-filter {
        display: none;
    }

        .btn-itopya-system-filter + .collapse {
            display: block !important;
        }
}






/* Eski Kodlar */
@media (max-width: 1661px) {
    .collect-yourself-table th, .collect-yourself-table td {
        padding: 11px 10px !important;
    }

    .collect-yourself-info {
        max-width: 230px !important;
    }

    .proImage {
        max-width: 65px !important;
    }

    .stepper-value, .stepper-btn {
        width: 27px !important;
        height: 27px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 1460px) {
    .collect-yourself-table th, .collect-yourself-table td {
        padding: 9px 6px !important;
    }

    .collect-yourself-product-cell {
        gap: 9px !important;
    }

    .proImage {
        max-width: 60px !important;
    }

    .collect-yourself-info {
        font-size: 13px !important;
        max-width: 190px !important;
    }

    .stepper-value, .stepper-btn {
        width: 25px !important;
        height: 25px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 1199px) {
    .collect-yourself-table {
        font-size: 13px !important;
        min-width: 800px !important;
    }

    .collect-yourself-product-cell {
        gap: 7px !important;
    }

    .proImage {
        max-width: 50px !important;
    }

    .collect-yourself-info {
        max-width: 140px !important;
    }

    .stepper-value, .stepper-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 13px !important;
    }

    .collect-yourself-price {
        font-size: 15px !important;
    }
}

@media (max-width: 992px) {
    .collect-yourself-table {
        font-size: 12px !important;
        min-width: 680px !important;
    }

        .collect-yourself-table th, .collect-yourself-table td {
            padding: 8px 4px !important;
        }

    .proImage {
        max-width: 38px !important;
    }

    .collect-yourself-info {
        max-width: 100px !important;
    }

    .stepper-value, .stepper-btn {
        width: 20px !important;
        height: 20px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 768px) {
    .table-responsive {
        padding: 0 3px !important;
    }

    .collect-yourself-table {
        min-width: 600px !important;
        font-size: 11px !important;
    }

        .collect-yourself-table th, .collect-yourself-table td {
            padding: 6px 2px !important;
        }

    .collect-yourself-product-cell {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    .collect-yourself-info {
        max-width: 100px !important;
        font-size: 11px !important;
    }

    .proImage {
        max-width: 32px !important;
    }

    .stepper-value, .stepper-btn {
        width: 18px !important;
        height: 18px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 576px) {
    .table-responsive {
        padding: 0 1px !important;
    }

    .collect-yourself-table {
        font-size: 10px !important;
        min-width: 460px !important;
    }

        .collect-yourself-table th, .collect-yourself-table td {
            padding: 5px 1px !important;
        }

    .collect-yourself-product-cell {
        gap: 3px !important;
    }

    .proImage {
        max-width: 25px !important;
    }

    .stepper-value, .stepper-btn {
        width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
    }

    .collect-yourself-info {
        max-width: 60px !important;
        font-size: 9px !important;
    }

    .collect-yourself-price {
        font-size: 12px !important;
    }
}

/* Tabloyu mobile stack (kolay okuma için) - opsiyonel */
@media (max-width: 480px) {
    .collect-yourself-table,
    .collect-yourself-table thead,
    .collect-yourself-table tbody,
    .collect-yourself-table tr,
    .collect-yourself-table th,
    .collect-yourself-table td {
        display: block !important;
        width: 100% !important;
    }

        .collect-yourself-table thead {
            display: none !important;
        }

    .collect-yourself-row {
        margin-bottom: 13px !important;
        border-radius: 8px !important;
        border: 1px solid #eee !important;
        box-shadow: 0 2px 10px 0 #0001 !important;
        padding: 5px !important;
    }
}
