#basket {

    .badge-container {
        overflow: hidden;
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    .badge-popular {
        display: inline-block;
        background-color: #28a745;
        color: white;
        padding: 10px 20px;
        font-size: 16px;
        font-weight: bold;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .price {
        width: 150px !important;
        display: flex;
        justify-content: flex-end;
        align-items: baseline;
        width: 100% !important;

        .main {
            font-size: 2.4rem;
            line-height: 50px;
            font-weight: bolder;
            float: left;
            min-width: max-content !important;
        }

        .sub {
            font-size: 21px;
            font-weight: bolder;
            min-width: max-content !important;
        }

        .period {
            font-size: 16px;
            line-height: 13px;
            min-width: max-content !important;
        }
    }

    /* üstü çizilen indirimli fiyat */
    .price-old {
        display: inline;
        width: 150px !important;
        color: #cbcbcb;

        &:after {
            content: "";
            display: inline-block;
            width: 90px;
            height: 3px;
            background: #de2658;
            transform: rotate(165deg);
            position: relative;
            opacity: 0.7;
            left: 0;
            top: -40px;
        }

        .main {
            font-size: 2.4rem;
            line-height: 50px;
            font-weight: bolder;
            float: left;
        }

        .sub {
            font-size: 21px;
            font-weight: bolder;
        }

        .period {
            font-size: 16px;
            line-height: 13px;
        }
    }

    .row.product {
        justify-content: space-between;
        align-items: center;
    }

    /* Sepet stilleri */
    .basket-container {
        border: 1px solid var(--primary-dark-color);
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 10px;
        transition: opacity 0.3s, filter 0.3s;

        &.grayed-out {
            opacity: 0.5;
            filter: grayscale(100%);
        }

        &.active {
            border-color: var(--primary-color);
        }
    }

    .basket-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 20px;

        h3 {
            margin: 0;
        }

        p.small {
            font-size: 13px !important;
        }
    }

    .badge-popular {
        position: absolute;
        top: -10px;
        right: -10px;
        background-color: var(--primary-color);
        color: white;
        padding: 5px 10px;
        font-size: 12px;
        font-weight: bold;
        border-radius: 10px;
        z-index: 1;
    }

    .btn-basket-select {
        background-color: var(--primary-dark-color) !important;
        color: #fff;
        min-width:max-content;
        max-width: max-content;
        max-height: 40px;
    }

    /* Sipariş Özeti kardı  */
    .card.shadow-none {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: calc(100% - 20px);
        /* Sepetlerle aynı height'da ol. */
    }

    .card-body {
        flex-grow: 1;
    }

    /* Sipariş Özeti listesi */
    .list-group.list-group-flush {
        gap: 10px;
        flex-grow: 1;
        overflow-y: auto;
    }

    .card-header {
        background-color: var(--primary-color) !important;
    }

    #promo-message {
        display: none;
    }

    .btn-payment {
        width: 80% !important;
        margin: auto;
        background-color: var(--primary-color) !important;

        &:hover {
            background-color: darkblue;
            color: white;
        }
    }

    @media (max-width: 1200px) {
        .price-old {
            display: none;
        }

        .price .main {
            font-size: 2.0rem;
        }

        .btn-outline-danger {
            padding: 5px;
        }
    }

    @media (max-width: 992px) {
        .row.product {
            .mb-4 {
                margin-bottom: 0 !important;
            }

            p {
                margin-bottom: 0 !important;
            }
        }

        .price-old {
            display: none;
        }

        .col-9 {
            width: 60% !important;
        }

        .basket-container {
            width: 100%;
        }

        p.small {
            max-width: 150px;
        }
    }

    @media (min-width: 768px) and (max-width: 992px) {
        .basket-summary {
            margin: 0 !important;
            width: 100% !important;
        }

        .col-md-8 {
            width: 60% !important;
        }

        .col-md-4 {
            width: 40% !important;
        }
    }

    @media (max-width: 768px) {
        .btn-payment {
            width: 80% !important;
            margin: auto !important;
        }

        .row.product>div {
            flex-direction: row;
            /* Ensure items stay in one line */
            align-items: center;
        }
    }

    @media (min-width: 992px) {
        .basket-container {
            width: 48%;
            margin-right: 2%;

            &:nth-child(2n) {
                margin-right: 0;
            }
        }
    }

    /* Adjust basket summary height and width on mobile devices */
    @media (max-width: 768px) {
        .card.shadow-none {
            height: auto;
            /* Allow the card to adjust its height automatically */
        }

        .card-body {
            flex-grow: 0;
            /* Prevent the card body from growing */
        }

        .basket-summary {
            width: 90%;
            /* Make the basket summary a bit wider */
            margin: auto;
        }
    }

    /* Adjust basket summary height and width on larger mobile devices */
    @media (min-width: 768px) and (max-width: 992px) {
        .card.shadow-none {
            height: auto;
            /* Allow the card to adjust its height automatically */
        }

        .card-body {
            flex-grow: 0;
            /* Prevent the card body from growing */
        }

        .basket-summary {
            width: 80%;
            /* Make the basket summary a bit wider */
            margin: auto;
        }
    }
}
