/* ===== Корзина ===== */
.dru-cart {
    padding-top: 40px;
    padding-bottom: 60px;
}

.dru-cart__title {
    margin: 0 0 30px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 36px;
    line-height: 46.8px;
    color: #f4f6ef;
}

.dru-cart__empty {
    text-align: center;
    padding: 80px 0;
    color: #f4f6ef;
    font-family: var(--font);
    font-size: 20px;
}
.dru-cart__empty p { margin-bottom: 20px; }

/* Верх: товары + итог */
.dru-cart__top {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.dru-cart__items {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Карточка товара */
.dru-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #090909;
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
}
.dru-cart-item__left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}
.dru-cart-item__img {
    flex: none;
    width: 86px;
    height: 86px;
    border-radius: 10px;
    overflow: hidden;
    background: #d9d9d9;
}
.dru-cart-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dru-cart-item__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.dru-cart-item__code {
    font-family: var(--font);
    font-size: 15px;
    line-height: 18px;
    color: #676767;
}
.dru-cart-item__name {
    margin: 0;
    font-family: var(--font);
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #ffffff;
}
.dru-cart-item__name a { color: inherit; text-decoration: none; }
.dru-cart-item__volume {
    font-family: var(--font);
    font-size: 15px;
    line-height: 18px;
    color: #ffffff;
}
.dru-cart-item__right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: none;
}
.dru-cart-item__prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
    text-align: right;
}
.dru-cart-item__old-price {
    font-family: var(--font);
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #7b7b7b;
    text-decoration: line-through;
}
.dru-cart-item__price {
    font-family: var(--font);
    font-weight: 700;
    font-size: 30px;
    line-height: 39px;
    color: #6bb022;
}
.dru-cart-item__remove {
    flex: none;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .6;
    transition: opacity .15s;
}
.dru-cart-item__remove:hover { opacity: 1; }

/* Кнопки под товарами */
.dru-cart__actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Итог */
.dru-cart__summary {
    flex: 0 0 318px;
    width: 318px;
    background: #090909;
    border-radius: 20px;
    padding: 25px;
    box-sizing: border-box;
}
.dru-cart__summary-title {
    font-family: var(--font);
    font-weight: 700;
    font-size: 30px;
    line-height: 39px;
    color: #ffffff;
    margin-bottom: 4px;
}
.dru-cart__summary-count {
    font-family: var(--font);
    font-size: 15px;
    line-height: 18px;
    color: #ffffff;
    margin-bottom: 12px;
}
.dru-cart__summary-old {
    font-family: var(--font);
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #7b7b7b;
    text-decoration: line-through;
    margin-bottom: 4px;
}
.dru-cart__summary-total {
    font-family: var(--font);
    font-weight: 700;
    font-size: 30px;
    line-height: 39px;
    color: #6bb022;
    margin-bottom: 24px;
}
.dru-cart__summary .dru-cart__btn {
    width: 100%;
    margin-bottom: 10px;
}

/* Кнопки */
.dru-cart__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 24px;
    border-radius: 15px;
    font-family: var(--font);
    font-size: 15px;
    line-height: 19.5px;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid #6bb022;
    transition: opacity .15s, background .15s;
}
.dru-cart__btn--solid {
    background: #6bb022;
    color: #090909;
    border: 1px solid #6bb022;
}
.dru-cart__btn--solid:hover { opacity: .88; }
.dru-cart__btn--outline {
    background: transparent;
    color: #ffffff;
}
.dru-cart__btn--outline:hover { background: rgba(107, 176, 34, .12); }

/* Оформление */
.dru-cart__checkout {
    margin-top: 40px;
    scroll-margin-top: 40px;
}
.dru-checkout__contacts {
    background: #090909;
    border-radius: 20px;
    padding: 25px;
    box-sizing: border-box;
    margin-bottom: 20px;
    width: 100%;
}

/* Доставка и оплата в одну строку */
.dru-cart__checkout-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.dru-checkout__delivery,
.dru-checkout__payment {
    background: #090909;
    border-radius: 20px;
    padding: 25px;
    box-sizing: border-box;
}
.dru-checkout__delivery {
    flex: 0 0 450px;
    width: 450px;
}
.dru-checkout__payment {
    flex: 1;
    min-width: 0;
}
/* Фолбек, когда методы ещё не настроены */
.dru-checkout__empty {
    font-family: var(--font);
    font-size: 15px;
    line-height: 22px;
    color: #9a9a9a;
    margin: 0;
}

.dru-checkout__block-title {
    margin: 0 0 20px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #ffffff;
}

.dru-checkout__row {
    display: flex;
    gap: 15px;
}
.dru-checkout__input {
    flex: 1;
    height: 56px;
    background: #090909;
    border: 1px solid #373737;
    border-radius: 15px;
    padding: 0 20px;
    color: #ffffff;
    font-family: var(--font);
    font-size: 15px;
    line-height: 18px;
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}
.dru-checkout__input::placeholder { color: #676767; }
.dru-checkout__input:focus { border-color: #6bb022; }
.dru-checkout__input--full { width: 100%; margin-top: 15px; }

/* Табы (Доставка/Самовывоз, Карта/Реквизиты/СБП) */
.dru-checkout__tabs {
    display: flex;
    gap: 10px;
}
.dru-checkout__tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 56px;
    background: #eeeeee;
    border-radius: 15px;
    cursor: pointer;
    transition: background .15s;
}
.dru-checkout__tab.is-active {
    background: #6bb022;
}
.dru-checkout__tab input { display: none; }
.dru-checkout__tab-radio {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #7b7b7b;
    flex: none;
    transition: border-color .15s;
}
.dru-checkout__tab.is-active .dru-checkout__tab-radio {
    border-color: #090909;
}
.dru-checkout__tab-label {
    font-family: var(--font);
    font-size: 15px;
    line-height: 18px;
    color: #5e5e5e;
    transition: color .15s;
}
.dru-checkout__tab.is-active .dru-checkout__tab-label {
    color: #090909;
}

.dru-checkout__pay-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}
.dru-checkout__pay-icons img {
    max-width: 64px;
    max-height: 43px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.dru-checkout__submit {
    margin-top: 0;
}

/* Блок сообщений (ошибки / успех) */
.dru-checkout__message {
    font-family: var(--font);
    font-size: 15px;
    line-height: 20px;
    margin-top: 12px;
}

@media (max-width: 1100px) {
    .dru-cart__top { flex-direction: column; }
    .dru-cart__summary { width: 100%; flex: none; }
    .dru-cart__checkout-row { flex-direction: column; }
    .dru-checkout__delivery,
    .dru-checkout__payment { width: 100%; flex: none; }
}
@media (max-width: 600px) {
    .dru-cart-item { flex-direction: column; align-items: flex-start; gap: 15px; }
    .dru-cart-item__right { width: 100%; justify-content: space-between; }
    .dru-checkout__row { flex-direction: column; }
    .dru-cart__actions { flex-direction: column; }
    .dru-checkout__tabs { flex-direction: column; }
}
