.basket {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.basket.active {
    opacity: 1;
    visibility: visible;
}

.basket_about {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 100%;
    background: #FFFFFF;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: 0.3s;
}

.basket.active .basket_about {
    transform: translateX(0);
}

.basket_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.basket-title {
    font-weight: 700;
    font-size: 24px;
    color: #000000;
}

.basket-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #DBDBDB;
    background: #FFFFFF;
    color: #B5B5B5;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.basket-close:hover {
    border-color: #000000;
    color: #000000;
}

.basket_items {
    flex: 1;
    display: none;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-right: 4px;
}

.basket_items.active {
    display: flex;
}

.basket_bottom {
    display: none;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.basket_bottom.active {
    display: flex;
}

.basket_bottom-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 16px;
}

.basket_bottom-line {
    flex: 1;
    border-bottom: 1px dashed #DFDFDF;
}

.basket_order-btn {
    width: 100%;
    height: 55px;
    margin-top: 6px;
    border: none;
    border-radius: 18px;
    background: #9DD558;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: 0.2s;
}

.basket_order-btn:hover {
    background: #8ec749;
}



.basket_item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #FFFFFF;
    border: 1px solid #F3F3F3;
    border-radius: 20px;
    transition: 0.2s;
}

.basket_item:hover {
    border-color: #E5E5E5;
}

.basket_item-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.basket_item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.basket_item-title {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.35;
    color: #000000;
}

.basket_item-price {
    font-weight: 700;
    font-size: 14px;
    color: #000000;
}

.basket_item-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.basket_item-qty {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid #DBDBDB;
    background: #FFFFFF;
    color: #000000;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.basket_item-qty:hover {
    border-color: #9DD558;
    background: #9DD558;
    color: #FFFFFF;
}

/* Soni 1 ga teng bo'lganda .active klassi qo'shilib xira tortadi */
.basket-minus.active {
    opacity: 0.35;
    pointer-events: none;
}

.basket_item-count {
    min-width: 18px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.basket_item-remove {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid #DBDBDB;
    background: #FFFFFF;
    color: #B5B5B5;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.basket_item-remove:hover {
    border-color: #FF8585;
    background: #FFF0F0;
    color: #FF5C5C;
}

.basket_clean {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;
    text-align: center;
    margin: auto;
    gap: 12px;
}

.basket_clean.active {
    display: none;
}

.basket_clean-title {
    font-weight: 700;
    font-size: 22px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #000000;
}

.basket_clean-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    opacity: 0.7;
}

.basket_clean-button {
    width: 245px;
    height: 55px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    background: #9DD458;
    color: #F3F3F3;
    cursor: pointer;
    margin-top: 10px;
}


.basket_ordered {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;
    text-align: center;
    margin: auto;
    gap: 12px;
}

.basket_ordered.active {
    display: flex;
}

.basket_ordered-title {
    font-weight: 700;
    font-size: 22px;
    line-height: 100%;
    color: #87C20A;
}

.basket_ordered-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    opacity: 0.7;
}

.basket_ordered-button {
    width: 245px;
    height: 55px;
    border: none;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-weight: 700;
    font-size: 16px;
    background: #9DD458;
    color: #FFFFFF;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

.basket_ordered-button:hover {
    background: #8ec749;
}