.basket-page {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Пустая корзина */
.basket-empty {
    text-align: center;
    padding: 60px 20px;
}

.basket-empty__link {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background: #000322;
    color: #fff !important;
    text-decoration: none;
    border-radius: 30px;
}

/* Таблица товаров */
.basket-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    line-height: 1.4;
}

.basket-table th,
.basket-table td {
    padding: 15px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.basket-table th {
    font-weight: 700;
}

.basket-item__image {
    width: 80px;
}

.basket-item__image img {
    width: 80px;
    min-width: 39px;
    height: auto;
    object-fit: cover;
    border-radius: 0px;
}

.basket-item__name a {
    color: #333;
    text-decoration: none;
}

.basket-item__name a:hover {
    text-decoration: underline;
}

/* Количество */
.basket-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.basket-quantity__btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
}

.basket-quantity__btn:hover {
    background: #f5f5f5;
}

.basket-quantity__input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.basket-quantity__input::-webkit-outer-spin-button,
.basket-quantity__input::-webkit-inner-spin-button {
    -webkit-appearance: none
}
/* Удаление */
.basket-remove-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #d42222;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
}

.basket-remove-btn:hover {
    background: #c0392b;
}

/* Итого */
.basket-total__label {
    text-align: right;
    font-weight: 600;
}

.basket-total__value {
    font-size: 20px;
    font-weight: 700 !important;
    color: #000322 !important;
}

/* Форма заказа */
.basket-order {
    max-width: 500px;
    min-width: 360px;
    width: 100%;
    padding: 30px;
    background: #f9fafd;
    border-radius: 8px;
}

.basket-order__title {
    margin: 0 0 20px;
}

.basket-form__row {
    margin-bottom: 15px;
}

.basket-form__label {
    display: block;
}

.basket-form__label span {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.basket-form__label .required {
    color: #d42222;
}

.basket-form__input,
.basket-form__textarea {
    width: 100%;
    padding: 15px 25px;
    border: none;
    box-sizing: border-box;
    border-radius: 30px;
}

.basket-form__submit {
    width: 100%;
    background: #d42222;
    border: 1px solid transparent;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    padding: 20px 20px;
    cursor: pointer;
    border-radius: 40px;
}

.basket-form__submit:hover {
    background: #219a52;
}

.basket-form__submit:disabled {
    background: #d42222;
    cursor: not-allowed;
}

.basket-form__message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.basket-form__message.error {
    display: block;
    background: #fdecea;
    color: #d42222;
}

.basket-form__message.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

.basket-checkout-btn {
    display: inline-block;
    padding: 14px 30px;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
}

.basket-checkout-btn:hover {

}

/* Успешный заказ */
.basket-success {
    text-align: center;
    padding: 60px 20px;
}

.basket-success__link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #000322;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
}


.basket-mini {
    position: relative;
    display: inline-block;
}

.basket-mini__link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.basket-mini__icon {
    width: 24px;
    height: 24px;
}

.basket-mini__count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    background: #d42222;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
}

/* Кнопка "В корзину" */
.add-to-basket {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 5px;
    background: transparent;
    color: #d42222;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.add-to-basket:hover {
    color: #000323;
}

.add-to-basket.in-basket {
    color: #000323;
}

.add-to-basket.in-basket:hover {

}

.add-to-basket.loading {
    opacity: 0.7;
    pointer-events: none;
}


.basket-page .basket-items {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}