/*
 * Стили для блоков, добавленных по аудиту Merchant Center (2026-11).
 * Отдельный файл, т.к. исходники app/front/styl расходятся с собранным bundle.css
 * (пересборка gulp потеряла бы ~2.6 КБ правок, сделанных прямо в CSS).
 * Подключается в layout/head.phtml после bundle.css.
 */

/* --- Карточка товара: цена за 100 г (B8) — под ценой, в той же колонке --- */
.product-in__price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    width: 25%;
}
.product-in__price-box .product-in__price { width: auto; }
.product-in__unit-price {
    margin-top: 6px;
    white-space: nowrap;
    text-align: right;
    font-size: 13px;
    line-height: 1.3;
    color: #8b8d84;
}
@media (max-width: 780px) {
    .product-in__price-box { width: 100%; align-items: flex-start; }
    .product-in__price-box .product-in__price { margin-top: 10px; }
    .product-in__unit-price { text-align: left; margin-top: 4px; }
}

/* --- Чекаут: строки итога «Товари / Доставка» (A6, A14) --- */
.modal-order-sum--line {
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: none;
    color: #5c5e57;
    gap: 12px;
}
.modal-order-sum--line span:last-child { text-align: right; }

/* --- Чекаут: чекбокс согласия (A14) --- */
.order-form__agree.custom-radio { margin-top: 18px; }
.order-form__agree.custom-radio label {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    padding-left: 32px;
    min-height: 24px;
}
.order-form__agree.custom-radio label a { text-decoration: underline; }
/* квадратная галочка вместо круглой радиокнопки */
.order-form__agree .custom-radio__input + label:before { border-radius: 4px; }
.order-form__agree .custom-radio__input:checked + label:after { border-radius: 1px; }
.order-form__btn:disabled { cursor: not-allowed; }

/* --- Чекаут: самовывоз (A6) --- */
.delivery-sam .order-form__input { width: 100%; }
.delivery-sam label { display: block; margin-top: 10px; font-size: 13px; color: #8b8d84; }
.delivery-sam label:first-child { margin-top: 0; }
.delivery-sam__text { font-size: 15px; color: #212322; line-height: 1.5; }

/* --- Страница «Дякуємо» (A17) --- */
.order-thank__title { margin: 0; font-weight: 600; }
.order-thank__text { margin-top: 16px; }
.order-thank__text .panel-title { margin: 0; font-size: 20px; }
.order-thank__pay {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 15px;
}
.order-thank__pay--paid,
.order-thank__pay--prepaid { background: #e6f4ea; color: #1e6b3a; }
.order-thank__pay--pending { background: #fdf3dc; color: #7a5a0c; }
.order-thank__pay--failed { background: #fbe7e4; color: #a3271b; }
.order-thank__pay a { color: inherit; text-decoration: underline; }
.order-thank__pay .order-form__btn { margin-top: 12px; width: auto; padding: 10px 26px; text-decoration: none; color: #fff; }

.order-thank__data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 860px;
    margin: 36px auto 0;
    text-align: left;
    text-transform: none;
    line-height: 1.55;
}
.order-thank__w50 { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.order-thank__info-title {
    margin-top: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8b8d84;
}
.order-thank__info-title:first-child { margin-top: 0; }
.order-thank__info { font-size: 15px; color: #212322; overflow-wrap: anywhere; }
.order-thank__bottom { margin-top: 28px; font-size: 15px; }
.order-thank__bottom a { color: #dd441b; }
.order-thank__bottom .order-form__btn { display: inline-flex; width: auto; padding: 14px 36px; color: #fff; text-decoration: none; margin-top: 0; }
@media (max-width: 780px) {
    .order-thank__container { padding: 48px 0; }
    .order-thank__title { font-size: 24px; }
    .order-thank__data { grid-template-columns: 1fr; gap: 20px; }
}

/* --- Футер: данные продавца (A3) --- */
.footer-seller {
    margin-top: 10px;
    color: #c1c3b7;
    font-size: 12px;
    line-height: 1.5;
}

/* --- Футер: ровная сетка без переносов в пунктах меню (десктоп и планшет; мобильный аккордеон ≤600px не меняется) --- */
@media (min-width: 601px) {
    .footer__content {
        display: grid;
        grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) auto;
        column-gap: clamp(32px, 5vw, 72px);
        padding-top: 64px;
    }
    .footer__left { width: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
    .footer__left img { width: 200px; height: auto; }
    .footer-menu { margin-top: 0; }
    .footer-menu .lang-block { padding: 0; margin: 0; }
    .footer-menu .lang-block__list { display: flex; align-items: center; gap: 14px; margin: 0; padding: 0; }
    .footer-menu .lang-block__item { display: flex; align-items: center; margin: 0; padding: 0; line-height: 1; }
    .footer-menu .lang-block__item span,
    .footer-menu .lang-block__item a { display: inline-block; font-size: 13px; line-height: 1; letter-spacing: .06em; padding: 0; margin: 0; position: static; }
    .footer-menu .lang-block__item.active span { color: #fff; border-bottom: 1px solid #dd441b; padding-bottom: 4px; }

    .footer__middle {
        width: auto;
        padding-left: 0;
        margin-top: 0;
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, 1.25fr);
        column-gap: clamp(24px, 4vw, 56px);
    }
    .footer__one, .footer__two, .footer__three { width: auto; padding-left: 0; }
    .footer__title { font-size: 12px; letter-spacing: .08em; }
    .footer__menu ul { margin-top: 22px; }
    .footer__menu ul li { margin-bottom: 12px; }
    .footer__menu ul li a { white-space: nowrap; font-size: 14px; letter-spacing: .02em; }

    .footer-phone { margin-top: 22px; }
    .footer-phone a { font-size: 20px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
    .footer-mail { margin-top: 12px; }
    .footer-mail a { font-size: 14px; overflow-wrap: anywhere; }
    .footer-address { font-size: 14px; margin-top: 26px; }
    .footer-work { font-size: 12px; line-height: 1.5; margin-top: 8px; }

    .footer__right { width: auto; flex-direction: row; gap: 12px; align-items: flex-start; margin-top: 0; }
    .social-item { margin-bottom: 0; border-color: #5c5c59; transition: border-color .3s ease-in-out, transform .3s; }
    .social-item:hover { border-color: #dd441b; }
    .footer__bottom { margin-top: 64px; padding: 20px 0; }
}
@media (min-width: 601px) and (max-width: 1040px) {
    .footer__content { grid-template-columns: 1fr auto; row-gap: 40px; }
    .footer__left { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
    .footer__middle { grid-column: 1 / -1; grid-row: 2; }
    .footer__right { grid-column: 2; grid-row: 1; }
    .footer__bottom { margin-top: 48px; }
}

/* --- Автоматический H1 на страницах без собственного заголовка (C4) --- */
.page-h1 h1 { margin: 40px 0 0; font-size: clamp(28px, 4vw, 48px); line-height: 1.1; }

/* --- C6: баннер cookie --- */
.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px 24px;
    padding: 16px 20px;
    background: #212322;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    font-size: 14px;
    line-height: 1.45;
}
.cookie-consent[hidden] { display: none !important; }
.cookie-consent__text { flex: 1 1 auto; min-width: 0; }
.cookie-consent__text a { color: #c1c3b7; text-decoration: underline; }
.cookie-consent__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-consent__btn {
    border: 0;
    border-radius: 58px;
    padding: 10px 18px;
    background: #dd441b;
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}
.cookie-consent__btn--ghost { background: transparent; border: 1px solid #5c5c59; color: #c1c3b7; }
.cookie-consent__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) {
    .cookie-consent { flex-direction: column; align-items: stretch; }
    .cookie-consent__actions { justify-content: stretch; }
    .cookie-consent__btn { flex: 1; }
}
