/* =========================================================================
   Шрифты — со своего сервера (раньше Google Fonts через настройку темы
   t1_webfont_link). Файлы — из Google Fonts, лицензия SIL OFL, лежат в
   ../fonts/. Переменные: один файл на все насыщенности (Comfortaa 300–700,
   Open Sans 300–800). Наборы: кириллица, латиница и латиница-расширенная
   (в ней знак ₽); браузер качает только те, чьи символы есть на странице
   (unicode-range). font-display: swap — текст виден сразу системным
   шрифтом, потом подменяется. Кириллица обоих шрифтов подгружается заранее
   (preload в той же настройке темы t1_webfont_link).
   ========================================================================= */
/* Comfortaa — кириллица */
@font-face {
    font-family: "Comfortaa";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/comfortaa-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Comfortaa — латиница-расширенная (в ней ₽) */
@font-face {
    font-family: "Comfortaa";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/comfortaa-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Comfortaa — латиница */
@font-face {
    font-family: "Comfortaa";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/comfortaa-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Open Sans, курсив — кириллица */
@font-face {
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/opensans-italic-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Open Sans, курсив — латиница-расширенная (в ней ₽) */
@font-face {
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/opensans-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Open Sans, курсив — латиница */
@font-face {
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/opensans-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Open Sans — кириллица */
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/opensans-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Open Sans — латиница-расширенная (в ней ₽) */
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/opensans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Open Sans — латиница */
@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/opensans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

#ftHeaderLinks ul {
    margin: 0;
    padding: 0;
}

/* Верхняя полоса — как .topbar в прототипе: 40px, основной шрифт 13px,
   обычная насыщенность, лёгкая разрядка; всё выровнено по центру строки. */
#ftHeaderLinks ul li {
    margin-right: 22px;
}

#ftHeaderLinks ul li a {
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .02em;
    transition: color .2s ease;
}

#ftHeaderLinks ul li a:hover {
    color: #ffffff;
    text-decoration: none;

}

.topline {
    background: #123b27;
}

.topline-bg {
    min-height: 40px;
    padding: 0;
}

.topline #h-contacts .row {
    flex-wrap: nowrap;
    align-items: center;
}

.topline-phone {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .88);
    transition: color .2s ease;
}

.topline-phone:hover {
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .topline { display: none; }
}

/* =========================================================================
   Шапка. Десктоп: логотип, «Каталог», поле поиска на всю оставшуюся ширину,
   «Войти», «Избранное», «Корзина». Телефон — см. раздел «Шапка ниже 992px».
   Иконки и подписи — из прототипа.
   ========================================================================= */
.hdr {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 108px;
}

.hdr__logo {
    flex: 0 0 auto;
    margin-right: 18px;
}

.logo img {
    height: 60px;
}

/* Кнопка «Каталог» */
.hdr-catalog {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    height: 46px;
    margin-right: 18px;
    padding: 0 24px 0 18px;
    border: 0;
    border-radius: 23px;
    background: var(--btn-green);
    color: #fff;
    font-family: "Comfortaa", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.hdr-catalog svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.hdr-catalog:hover {
    background: var(--btn-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(18, 59, 39, .18);
}

.hdr-catalog:active {
    transform: translateY(0);
}

.hdr-catalog:focus {
    outline: none;
}

.hdr-catalog:focus-visible {
    outline: 2px solid var(--btn-green);
    outline-offset: 3px;
}

/* Иконка с подписью */
.hdr-action {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 62px;
    padding: 6px 4px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: #5a6760;
    font: inherit;
    cursor: pointer;
    transition: background-color .2s ease;
}

.hdr-action:hover {
    background: #eef4ef;
    text-decoration: none;
}

.hdr-action:focus {
    outline: none;
}

.hdr-action:focus-visible {
    outline: 2px solid var(--btn-green);
    outline-offset: 2px;
}

.hdr-action__ico {
    position: relative;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
}

.hdr-action__ico svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #16211b;
    stroke-width: 1.6;
    transition: stroke .2s ease;
}

.hdr-action__label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: #5a6760;
    white-space: nowrap;
    transition: color .2s ease;
}

.hdr-action:hover .hdr-action__ico svg {
    stroke: var(--btn-green);
}

.hdr-action:hover .hdr-action__label {
    color: var(--btn-green);
}

/* Счётчики. Содержимое #ft_cart_total и #wishlist-total подменяет common.js,
   поэтому стилизуем то, что он туда кладёт. #ft_cart в селекторах перебивает
   правила stylesheet.css вида #ft_cart_total > span:not(.loading-wrapper). */
#ft_cart #ft_cart_total {
    position: absolute;
    top: -5px;
    right: -8px;
    margin: 0;
}

#ft_cart #ft_cart_total .products,
.hdr-action--wish .myWishCount {
    display: block;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: #b4623a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.hdr-action--wish .myWishCount {
    position: absolute;
    top: 1px;
    right: calc(50% - 20px);
}

#ft_cart #ft_cart_total .loading-wrapper {
    display: block;
    width: 9px;
    height: 9px;
    margin: 4px 4px 0 0;
    border-radius: 50%;
    background: #b4623a;
    font-size: 0;
    animation: hdr-pulse 1s ease-in-out infinite;
}

@keyframes hdr-pulse {
    50% { opacity: .3; }
}

/* =========================================================================
   Выдвижное меню каталога — как в прототипе, но слева.
   z-index выше всплывающей кнопки фильтра «Показать N товаров» (1080),
   но ниже панели поиска на телефоне (9998/9999).
   ========================================================================= */
.catdrawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1090;
    width: min(380px, 88vw);
    padding: 26px;
    background: var(--cream);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform .42s cubic-bezier(.22, .61, .36, 1), visibility 0s linear .42s;
}

.catdrawer.is-open {
    visibility: visible;
    transform: none;
    transition: transform .42s cubic-bezier(.22, .61, .36, 1), visibility 0s;
}

/* Прокрутка, когда список не помещается по высоте экрана: тонкая,
   бежевая, при наведении зелёная; дорожка прозрачная */
.catdrawer {
    scrollbar-width: thin;
    scrollbar-color: #d6c8ae transparent;
}

.catdrawer::-webkit-scrollbar {
    width: 10px;
}

.catdrawer::-webkit-scrollbar-track {
    margin: 12px 0;
    background: transparent;
}

.catdrawer::-webkit-scrollbar-thumb {
    border: 3px solid var(--cream);
    border-radius: 10px;
    background: #d6c8ae;
}

.catdrawer::-webkit-scrollbar-thumb:hover {
    background: var(--btn-green);
}

/* Шапка с логотипом и крестиком остаётся сверху при прокрутке */
.catdrawer__head {
    position: sticky;
    /* отсчёт от внутреннего отступа панели (26px) — так шапка встаёт вплотную к краю */
    top: -26px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -26px -26px 26px;
    padding: 26px 26px 12px;
    background: var(--cream);
}

.catdrawer__head .logo img {
    height: 46px;
}

.catdrawer__close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    transition: background-color .2s ease;
}

.catdrawer__close:hover {
    background: #eef4ef;
}

.catdrawer__close:focus {
    outline: none;
}

.catdrawer__close:focus-visible {
    outline: 2px solid var(--btn-green);
    outline-offset: 2px;
}

.catdrawer__close svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #16211b;
    stroke-width: 1.6;
}

.catnav,
.catnav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.catnav {
    display: grid;
    gap: 4px;
}

.catnav__item {
    border-bottom: 1px solid var(--line-soft);
}

.catnav__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catnav__link {
    display: block;
    flex: 1 1 auto;
    padding: 11px 0;
    color: #16211b;
    font-family: "Comfortaa", sans-serif;
    font-size: 16px;
    line-height: 1.3;
    transition: color .2s ease;
}

.catnav__link:hover,
.catnav__item.is-active > .catnav__link,
.catnav__item.is-active > .catnav__row > .catnav__link {
    color: var(--btn-green);
    text-decoration: none;
}

.catnav__toggle {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    transition: background-color .2s ease;
}

.catnav__toggle:hover {
    background: #eef4ef;
}

.catnav__toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #5a6760;
    stroke-width: 1.8;
    transition: transform .3s ease;
}

.catnav__item.is-open .catnav__toggle svg {
    transform: rotate(180deg);
}

.catnav__sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s cubic-bezier(.22, .61, .36, 1);
}

.catnav__item.is-open .catnav__sub {
    grid-template-rows: 1fr;
}

.catnav__sub > ul {
    min-height: 0;
    overflow: hidden;
}

.catnav__sub a {
    display: block;
    padding: 7px 0 7px 12px;
    color: #5a6760;
    font-size: 14.5px;
    transition: color .2s ease;
}

.catnav__sub > ul > li:last-child {
    padding-bottom: 8px;
}

.catnav__third a {
    padding-left: 24px;
    font-size: 13.5px;
}

.catnav__sub a:hover,
.catnav__sub .is-active > a {
    color: var(--btn-green);
    text-decoration: none;
}

.catscrim {
    position: fixed;
    inset: 0;
    z-index: 1085;
    background: rgba(18, 32, 25, .4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s;
}

.catscrim.is-on {
    opacity: 1;
    visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
    .catdrawer,
    .catdrawer.is-open,
    .catscrim,
    .catnav__sub {
        transition: none;
    }
}

/* =========================================================================
   Поиск: на десктопе — поле в строке шапки на всю свободную ширину,
   ниже 992px — панель, которая выезжает сверху по иконке «Поиск».
   ========================================================================= */
.search-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 18px;
}

.search-wrapper #ftSearch {
    width: 100%;
}

.search-wrapper .mysearch {
    width: 100%;
    margin: 0;
}

.hdr-action--search,
.mobile-search-overlay {
    display: none;
}

/* =========================================================================
   Шапка ниже 992px: слева меню и «Избранное», по центру логотип,
   справа «Поиск», «Войти», «Корзина». Нижней панели нет.
   ========================================================================= */
@media (max-width: 991.98px) {
    .hdr {
        gap: 2px;
        min-height: 72px;
    }

    .hdr__logo {
        position: absolute;
        top: 50%;
        left: 50%;
        margin: 0;
        transform: translate(-50%, -50%);
    }

    .hdr-catalog {
        order: 1;
        width: 42px;
        height: 42px;
        margin: 0;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        background: none;
        color: #16211b;
    }

    .hdr-catalog svg {
        stroke-width: 1.6;
    }

    .hdr-catalog:hover {
        background: #eef4ef;
        transform: none;
        box-shadow: none;
    }

    .hdr-catalog__text {
        display: none;
    }

    .hdr-action--wish    { order: 2; margin-right: auto; }
    .hdr-action--search  { order: 3; display: flex; }
    .hdr-action--account { order: 4; }
    #ft_cart             { order: 5; }

    .search-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9999;
        width: 100%;
        margin: 0;
        padding: 15px;
        background: var(--cream);
        box-shadow: 0 3px 20px rgba(0, 0, 0, .15);
        visibility: hidden;
        transform: translateY(-120%);
        transition: transform .3s ease, visibility 0s linear .3s;
    }

    .search-wrapper.active {
        visibility: visible;
        transform: translateY(0);
        transition: transform .3s ease, visibility 0s;
    }

    .search-wrapper #ftSearch {
        max-width: 720px;
        margin: 0 auto;
    }

    .mobile-search-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9998;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, .45);
        opacity: 0;
        visibility: hidden;
        transition: .3s;
    }

    .mobile-search-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Ниже 992px у кнопок только иконки, без подписей.
   Подпись «Избранного» не прячем целиком: внутри неё значок-счётчик. */
@media (max-width: 991.98px) {
    .hdr-action {
        min-width: 42px;
        height: 42px;
        padding: 9px;
        justify-content: center;
    }

    .hdr-action__label {
        display: none;
    }

    .hdr-action--wish .hdr-action__label {
        display: block;
        position: absolute;
        inset: 0;
        font-size: 0;
    }

    .hdr-action--wish .myWishCount {
        top: 4px;
    }
}

/* =========================================================================
   Плавающая шапка, как в прототипе: зелёная полоса уезжает, строка шапки
   остаётся наверху на полупрозрачном размытом фоне. После отрыва от верха
   (класс is-stuck ставит скрипт в header.twig) шапка становится ниже,
   а margin-bottom возмещает разницу — контент под ней не прыгает.
   Размытие на ::before, а не на самой шапке: backdrop-filter у предка
   сломал бы position: fixed у выезжающего поиска внутри неё.
   ========================================================================= */
header {
    position: sticky;
    top: calc(-1 * var(--topline-h, 0px));
    z-index: 1035;
    transition: margin-bottom .3s ease, top .5s cubic-bezier(.16, 1, .3, 1);
}

/* Прокрутка вниз — шапка уезжает вверх целиком (с запасом на тень),
   прокрутка вверх — возвращается. Класс ставит скрипт в header.twig. */
header.is-hidden {
    top: calc(-1 * var(--header-h, 200px) - 12px);
}

/* В корзине (оформление заказа) шапка не плавает. :has — чтобы не было
   рывка до того, как скрипт поставит is-still. */
header.is-still,
body:has(.simplecheckout) header {
    position: relative;
    top: 0;
    margin-bottom: 0;
}

/* Переход по якорю не должен прятать цель под шапкой */
html {
    scroll-padding-top: 90px;
}

/* Без isolation: он сделал бы .headline контекстом наложения, и выезжающий
   поиск (fixed, z-index 9999) оказался бы под затемнением .mobile-search-overlay
   (9998, лежит в header рядом с .headline) — поле не нажать. Слой ::before
   с z-index: -1 и так остаётся внутри шапки: header — sticky с z-index */
.headline {
    position: relative;
}

.headline::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-bottom: 1px solid transparent;
    background: rgba(251, 248, 243, .72);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    transition: background-color .3s ease, border-color .3s ease;
}

header.is-stuck .headline::before {
    border-bottom-color: var(--line);
    background: rgba(251, 248, 243, .93);
}

.hdr {
    transition: min-height .3s ease;
}

.hdr__logo img {
    transition: height .3s ease;
}

header.is-stuck {
    margin-bottom: 32px;
}

header.is-stuck .hdr {
    min-height: 76px;
}

header.is-stuck .hdr__logo img {
    height: 46px;
}

@media (max-width: 991.98px) {
    header.is-stuck {
        margin-bottom: 12px;
    }

    header.is-stuck .hdr {
        min-height: 60px;
    }

    header.is-stuck .hdr__logo img {
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    header,
    .headline::before,
    .hdr,
    .hdr__logo img {
        transition: none;
    }
}

@media (max-width: 359.98px) {
    .logo img {
        height: 46px;
    }

    header.is-stuck .hdr__logo img {
        height: 40px;
    }

    .hdr-catalog,
    .hdr-action {
        width: 38px;
        min-width: 38px;
        height: 38px;
        padding: 7px;
    }

    .hdr-action--wish .myWishCount {
        top: 2px;
    }
}

.mysearch {
    height: 46px;
    border: 0;
    border-radius: 23px;
    background: var(--sand);
    color: #333333;
    font-family: "Comfortaa", sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.mysearch .form-control:focus {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

.mysearch .form-control::placeholder {
    color: #5a6760;
    opacity: 1;
}

/* Живой поиск: список результатов продолжает поле — тот же фон, без рамки,
   у поля пропадают нижние скругления, у списка — верхние. Класс .border на
   списке из Bootstrap с !important, поэтому и здесь !important. */
.live-search-open .search-wrapper .mysearch {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.search-wrapper #ftSearch .livesearch {
    margin-top: 0;
    padding: 0 0 8px;
    border: 0 !important;
    border-radius: 0 0 23px 23px;
    background: var(--sand);
    overflow: hidden;
}

.search-wrapper #ftSearch .livesearch .dropdown-item:not(.active) {
    background: transparent;
}

/* Наведение, фокус и нажатие выглядят одинаково. Без :active срабатывало
   правило Bootstrap .dropdown-item:active { color: #fff } — фон оставался
   песочным от :hover, и название товара белело в момент нажатия. */
.search-wrapper #ftSearch .livesearch .dropdown-item:not(.active):hover,
.search-wrapper #ftSearch .livesearch .dropdown-item:not(.active):focus,
.search-wrapper #ftSearch .livesearch .dropdown-item:active {
    color: #262626;
    background: #ebe4d7;
}

.search-wrapper #ftSearch .livesearch .dropdown-item.border-bottom {
    border-bottom-color: var(--line) !important;
}

/* Иконки в поле — контурные, как в шапке */
.mysearch .search-button {
    display: grid;
    place-items: center;
    padding: 0 16px 0 8px;
    border: 0;
    background: none;
}

.mysearch .search-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #16211b;
    stroke-width: 1.6;
    transition: stroke .2s ease;
}

.mysearch .search-button:hover svg {
    stroke: var(--btn-green);
}

.search-wrapper #ftSearch input[type="search"]::-webkit-search-cancel-button {
    width: 21px;
    height: 21px;
    padding: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%2316211b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 21px no-repeat;
    opacity: .7;
}

.search-wrapper #ftSearch input[type="search"]::-webkit-search-cancel-button:hover {
    opacity: 1;
}



/* header slider */
.header-slider .container .row .col-12 {
    padding: 0;
    margin: 0;
}


.mainintrotext {
    text-align: center;
    margin: 0 auto var(--home-gap, 55px) auto;
    max-width: 992px;
}

.mainintrotext h1 {
    font-family: "Comfortaa", sans-serif;
    color: #333333;
    font-size: 28px;
    line-height: 1.6;
}

.mainintrotext p {
    font-size: 16px;

}

.category-item {
    font-family: "Comfortaa", sans-serif;
}

.category-item img {
    border-radius: 20px;
}

.products-carousel-title {
    font-family: "Comfortaa", sans-serif;
    color: #333333;
    font-size: 22px;
    line-height: 1.6;
}

.owl-carousel .owl-item img {
    background: #fff;
    border-radius: 16px;
}

/* =========================================================================
   Главная: баннер (модуль «Слайдер на главной», слайд типа HTML). Как в
   прототипе: фото на весь баннер, поверх — полупрозрачная панель с заголовком,
   описанием и кнопками. Панель по размеру содержимого: длинное слово
   раздвигает её, а не вылезает. Разметку слайда правят в админке
   (Модули → Слайдер на главной → Описание):
     .header-slideritem
       .header-slideritem__img > img  ({image}, {image2x})
       .header-slideritem__panel
         .header-slideritem__eyebrow  — надпись над заголовком, необязательно
         .header-slideritem__title
         .header-slideritem__des
         .header-slideritem__actions > a.greenButton [+ .greenButton--light]
   Размеры — ступенями по ширине контейнера (1316 / 1116 / 936px), а не по
   ширине окна: иначе картинка растёт, флакон уезжает влево и уходит под
   панель. Ширина панели ограничена так, чтобы флакон и лилия оставались
   справа от неё. Высота — минимальная (было 460px везде): 540 / 520 / 480px,
   на планшете 480–580, на телефоне вертикальный 3:4. Если текст длиннее,
   баннер растёт, а не режет его.
   Картинка в админке — 1150×460 (пропорция 5:2), {image2x} — 2300×920.
   ========================================================================= */
.header-slideritem {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 540px;
    padding: 52px;
    border-radius: 32px;
    background: var(--sand);
}

.header-slideritem__img {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

.owl-carousel .header-slideritem__img img,
.header-slideritem__img img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 80% 50%;
    border-radius: 0;
    background: none;
}

.header-slideritem__panel {
    position: relative;
    z-index: 1;
    width: fit-content;
    max-width: min(640px, 100%);
    padding: 36px;
    border-radius: 24px;
    background: rgba(251, 248, 243, .88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 20px 48px rgba(22, 33, 27, .1);
}

.header-slideritem__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--btn-green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.header-slideritem__eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
}

.header-slideritem__title {
    display: block;
    margin: 0 0 14px;
    color: #333;
    font-family: "Comfortaa", sans-serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.01em;
    text-wrap: balance;
    /* Страховка: слово шире панели переносится, а не вылезает.
       Без hyphens: auto — иначе «кос-метические» вместо переноса слова */
    overflow-wrap: break-word;
}

.header-slideritem__des {
    display: block;
    max-width: 40ch;
    margin: 0 0 22px;
    color: #5a6760;
    font-size: 16px;
    line-height: 1.6;
}

.header-slideritem__panel > :last-child {
    margin-bottom: 0;
}

.header-slideritem__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Кнопка — как остальные фирменные («Перейти в каталог» у стран):
   цвета и наведение — в общем разделе кнопок ниже */
.greenButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 28px;
    border: 0;
    border-radius: 23px;
    font-family: "Comfortaa", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

/* Вторая кнопка — контурная */
.header-slideritem .greenButton.greenButton--light {
    border: 1px solid var(--line);
    background: transparent;
    color: #16211b !important;
}

.header-slideritem .greenButton.greenButton--light:hover,
.header-slideritem .greenButton.greenButton--light:focus {
    border-color: #16211b;
    background: #16211b;
    color: #fff !important;
}

/* Точки: при одном слайде не нужны; при нескольких — под баннером,
   чтобы на телефоне не наезжали на панель. До запуска слайдера (пока
   на месте заготовка) скрыты: иначе страница прыгает на их высоту */
#common-home [id^="ftSlideshow_"] .owl-pagination {
    position: static !important;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 0 !important;
}

#common-home [id^="ftSlideshow_"] .owl-pagination.disabled,
#common-home [id^="ftSlideshow_"] .slideshow-placeholder ~ .owl-pagination {
    display: none;
}

/* Точки — полоски. Активная заполняется за время до смены слайда
   (--hl-autoplay ставит скрипт в common.js из настроек карусели), при
   наведении замирает вместе с автопрокруткой. Без автопрокрутки — залита */
#common-home [id^="ftSlideshow_"] .owl-pagination .btn-dot {
    position: relative;
    width: 36px !important;
    height: 4px !important;
    min-width: 0;
    margin: 0 4px !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 4px !important;
    background: rgba(22, 33, 27, .14) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
}

#common-home [id^="ftSlideshow_"] .owl-pagination .btn-dot > span {
    display: none;
}

#common-home [id^="ftSlideshow_"] .owl-pagination .btn-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--btn-green);
    transform: scaleX(0);
    transform-origin: left center;
}

#common-home [id^="ftSlideshow_"] .owl-pagination .btn-dot.active::after {
    transform: scaleX(1);
}

#common-home [id^="ftSlideshow_"] .owl-pagination .btn-dot.active.hl-run::after {
    animation: hl-progress var(--hl-autoplay, 7s) linear both;
}

#common-home [id^="ftSlideshow_"]:hover .owl-pagination .btn-dot.hl-run::after {
    animation-play-state: paused;
}

@keyframes hl-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Живой баннер. Картинки слайдов не меняются — эффекты поверх фото, поэтому
   работают с любым слайдом из админки. Слои кладёт скрипт в common.js внутрь
   .header-slideritem__img (он со скруглением и обрезкой).

   1. Пыльца и лепестки — поверх фото и тени, под плашкой */
.hl-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 2. Тень листвы: размытые ветки из верхних углов в режиме «умножение» */
.hl-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: .34;
}

.hl-shade svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Качание нарочно сильное (±6°, ~24px, 3–3,5 с) — так утвердили на макете.
   Спокойнее: ±1,2–1,5°, 6px, 8–10 с, прозрачность тени .24 */
.hl-shade__a,
.hl-shade__b,
.hl-shade__c {
    transform-box: view-box;
    animation: hl-sway 3.5s ease-in-out infinite alternate;
    /* --hl-phase — сдвиг такта: у карточек «Происхождения» свой, чтобы
       соседние тени не качались в ногу; в баннере не задан — 0 */
    animation-delay: var(--hl-phase, 0s);
}

.hl-shade__a {
    transform-origin: 0 0;
}

.hl-shade__b {
    transform-origin: 0 300px;
    animation-duration: 3s;
    animation-delay: calc(var(--hl-phase, 0s) - 1s);
}

.hl-shade__c {
    transform-origin: 1000px 0;
    animation-name: hl-sway-r;
    animation-duration: 3.2s;
    animation-delay: calc(var(--hl-phase, 0s) - 2s);
}

@keyframes hl-sway {
    from { transform: rotate(-6deg) translate(0, 0); }
    to { transform: rotate(6deg) translate(24px, 14px); }
}

@keyframes hl-sway-r {
    from { transform: rotate(6deg) translate(0, 0); }
    to { transform: rotate(-6deg) translate(-24px, 14px); }
}

/* 3. Смена слайдов. Уходящий кадр гаснет (fadeOut в настройках модуля),
   под ним уже новый; фото нового кадра медленно «отъезжает» (меняется только
   масштаб), текст плашки поднимается по очереди */
#common-home [id^="ftSlideshow_"] .owl-carousel .owl-item.animated {
    animation-duration: .9s;
    animation-timing-function: ease;
}

#common-home [id^="ftSlideshow_"] .owl-item.active .header-slideritem__img > img {
    animation: hl-kenburns 9s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes hl-kenburns {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

#common-home [id^="ftSlideshow_"] .owl-item.active .header-slideritem__panel > * {
    animation: hl-rise .8s cubic-bezier(.22, .61, .36, 1) .25s both;
}

#common-home [id^="ftSlideshow_"] .owl-item.active .header-slideritem__panel > :nth-child(2) {
    animation-delay: .35s;
}

#common-home [id^="ftSlideshow_"] .owl-item.active .header-slideritem__panel > :nth-child(3) {
    animation-delay: .45s;
}

@keyframes hl-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hl-shade__a,
    .hl-shade__b,
    .hl-shade__c,
    #common-home [id^="ftSlideshow_"] .owl-item.active .header-slideritem__img > img,
    #common-home [id^="ftSlideshow_"] .owl-item.active .header-slideritem__panel > *,
    #common-home [id^="ftSlideshow_"] .owl-pagination .btn-dot.active.hl-run::after {
        animation: none;
    }

    #common-home [id^="ftSlideshow_"] .owl-carousel .owl-item.animated {
        animation-duration: .001s;
    }
}

/* Контейнер 1116px */
@media (max-width: 1399.98px) {
    .header-slideritem {
        min-height: 520px;
        padding: 48px;
    }

    .header-slideritem__panel {
        max-width: min(560px, 100%);
    }

    .header-slideritem__title {
        font-size: 44px;
    }
}

/* Контейнер 936px */
@media (max-width: 1199.98px) {
    .header-slideritem {
        min-height: 480px;
        padding: 40px;
    }

    .header-slideritem__panel {
        max-width: min(440px, 100%);
        padding: 30px;
    }

    .header-slideritem__title {
        font-size: 38px;
    }
}

/* Планшет: панель внизу слева, букет на фото остаётся открытым сверху */
@media (max-width: 991.98px) {
    .header-slideritem {
        align-items: flex-end;
        min-height: clamp(480px, 62vw, 580px);
        padding: 24px;
        border-radius: 24px;
    }

    .header-slideritem__panel {
        max-width: min(520px, 100%);
        padding: 28px;
    }

    .header-slideritem__title {
        font-size: 36px;
    }
}

/* Телефон: баннер вертикальный, панель на всю ширину снизу. Над панелью
   всегда остаётся фото (отступ сверху): при длинном тексте баннер растёт */
@media (max-width: 575.98px) {
    .header-slideritem {
        min-height: clamp(460px, calc((100vw - 24px) * 4 / 3), 620px);
        padding: 12px;
    }

    .header-slideritem__panel {
        width: 100%;
        max-width: none;
        margin-top: 44vw;
        padding: 20px 18px;
        border-radius: 18px;
    }

    /* 30px, как заголовки разделов; уже 360px — мельче, чтобы длинное
       слово («Косметические») вставало в строку целиком */
    .header-slideritem__title {
        font-size: clamp(24px, 8.4vw, 30px);
    }

    .header-slideritem__des {
        margin-bottom: 18px;
        font-size: 15px;
    }

    /* Длинная надпись на кнопке переносится, а не вылезает за панель */
    .header-slideritem .greenButton {
        height: auto;
        min-height: 46px;
        max-width: 100%;
        padding: 12px 24px;
        line-height: 1.25;
        text-align: center;
        white-space: normal;
    }
}

/* =========================================================================
   Главная: единый ритм отступов. Две величины на всю страницу:
   --home-gap  — между блоками и внутри песочных полос (от края полосы
                 до содержимого столько же, сколько снаружи);
   --home-head — от заголовка раздела до его содержимого.
   Отступы из шаблонов модулей (mb-3/4/5, pt-2) — с !important, поэтому
   перебиваются так же.
   ========================================================================= */
#common-home,
#product-product {
    --home-gap: clamp(56px, 7vw, 100px);
    --home-head: clamp(24px, 3vw, 36px);
}

#common-home [id^="ftSlideshow_"] > .mb-5,
#common-home [id^="ftCategoryWall_"] {
    margin-bottom: var(--home-gap) !important;
}

/* Плитки категорий: поля плитки (4+4px) гасит отрицательный отступ обёртки.
   На телефоне он −4px вместо −8px — выравниваем по вертикали */
#common-home [id^="ftCategoryWall_"] > .m-n1 {
    margin-top: -8px !important;
    margin-bottom: -8px !important;
}

/* =========================================================================
   Главная: «Новинки» — как «Хиты продаж» в прототипе. Песочная полоса на всю
   ширину окна (тень + clip-path, без изменения сетки), заголовок, стрелки
   справа, белые карточки. Число карточек — в админке модуля, можно дробное
   (4.4 — четыре и пятая частично): в шаблоне у owl включён merge.
   Главная и страница товара: там так же оформлены «Рекомендуемые товары»
   (#related-products.products-carousel) и «Вы недавно смотрели» (этот же модуль;
   у него на странице товара нет песочной полосы — правило ниже).
   ========================================================================= */
:is(#common-home, #product-product) .products-carousel {
    position: relative;
    margin: 0 0 var(--home-gap) !important;
    padding: var(--home-gap) 0;
    background: var(--sand);
    box-shadow: 0 0 0 100vmax var(--sand);
    clip-path: inset(0 -100vmax);
}

/* Страница товара: «Вы недавно смотрели» (модуль, обёртка #ftProductsCarousel_N) —
   на кремовом фоне страницы, без песочной полосы: второй полосой сразу под
   песочными «Рекомендуемыми» он отделялся от них кремовой щелью. Сверху отступ
   даёт margin блока выше (--home-gap), заголовок и карточки — общие правила */
#product-product .products-carousel[id^="ftProductsCarousel_"] {
    padding: 0;
    background: none;
    box-shadow: none;
    clip-path: none;
}

/* Последний блок перед подвалом: до подвала тот же шаг, у подвала свои 24px
   (#content во flex-ряду, margin не схлопывается). :last-of-type — последний
   div, после него в .content-bottom только script */
#product-product .content-bottom > .products-carousel[id^="ftProductsCarousel_"]:last-of-type {
    margin-bottom: calc(var(--home-gap) - 24px) !important;
}

/* От 992px подвал — тёмная полоса без скруглений: если последний блок
   товара — песочные «Рекомендуемые» (ниже нет «Вы недавно смотрели»),
   полоса упирается прямо в подвал, без кремового зазора, как «Блог» на
   главной. Уже 992px подвал — карточка со скруглением, зазор остаётся */
@media (min-width: 992px) {
    #product-product #content:not(:has(.content-bottom .products-carousel)) > #related-products {
        margin-bottom: 0 !important;
    }

    /* :has внутри :has не работает — условие «ниже нет карусели» отдельно */
    body:has(#product-product #content > #related-products):not(:has(#product-product .content-bottom .products-carousel)) footer.mt-4 {
        margin-top: 0 !important;
    }
}

:is(#common-home, #product-product) .products-carousel-title {
    margin: 0 0 var(--home-head);
    color: #333;
    font-family: "Comfortaa", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
}

:is(#common-home, #product-product) .products-carousel-title .row {
    align-items: flex-end !important;
}

/* Вместо точек под каруселью — стрелки рядом с заголовком */
:is(#common-home, #product-product) .products-carousel > .px-3.py-2 {
    display: none;
}

.pcar-nav {
    display: flex;
    gap: 8px;
}

.pcar-nav--home-only {
    display: none;
}

:is(#common-home, #product-product) .pcar-nav--home-only {
    display: flex;
}

.pcar-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: #16211b;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.pcar-btn:hover:not(:disabled) {
    border-color: #16211b;
    background: #16211b;
    color: #fff;
}

.pcar-btn:disabled {
    opacity: .35;
    cursor: default;
}

.pcar-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

/* Карточки */
:is(#common-home, #product-product) .products-carousel .owl-carousel {
    width: calc(100% + 16px);
    margin: 0 -8px;
}

:is(#common-home, #product-product) .products-carousel .owl-item > .product-item {
    position: relative;
    width: calc(100% - 16px);
    margin: 0 8px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    background: #fff;
    transition: border-color .3s ease;
}

:is(#common-home, #product-product) .products-carousel .owl-item > .product-item:hover {
    border-color: var(--line);
}

/* Фото на белом, вровень с краями карточки */
:is(#common-home, #product-product) .products-carousel .product-item .image {
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
}

:is(#common-home, #product-product) .products-carousel .product-item .image img,
:is(#common-home, #product-product) .products-carousel .product-item:hover .image img {
    border-radius: 0;
}

:is(#common-home, #product-product) .products-carousel .product-item .image img {
    transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}

:is(#common-home, #product-product) .products-carousel .product-item:hover .image img {
    transform: scale(1.05);
}

:is(#common-home, #product-product) .products-carousel .xdstickers_wrapper.position_upleft {
    top: 14px;
    left: 14px;
}

/* «В избранное»: круглая кнопка, появляется при наведении на карточку */
:is(#common-home, #product-product) .products-carousel .owl-item .my-wishlist-button {
    top: 10px;
    right: 10px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: #16211b;
    opacity: 1;
    transition: opacity .3s ease, transform .3s ease, color .2s ease;
}

:is(#common-home, #product-product) .products-carousel .my-wishlist-button svg {
    width: 18px;
    height: 18px;
    color: inherit !important;
    fill: currentColor;
}

:is(#common-home, #product-product) .products-carousel .owl-item .my-wishlist-button:hover {
    color: #b4623a;
}

@media (hover: hover) {
    :is(#common-home, #product-product) .products-carousel .owl-item .my-wishlist-button {
        opacity: 0;
        transform: translateY(-6px);
    }

    :is(#common-home, #product-product) .products-carousel .product-item:hover .my-wishlist-button,
    :is(#common-home, #product-product) .products-carousel .my-wishlist-button:focus-visible {
        opacity: 1;
        transform: none;
    }
}

/* Название, цена, кнопка «В корзину» внизу */
:is(#common-home, #product-product) .products-carousel .product-item > .pb-1 {
    padding: 18px 20px 0 !important;
}

:is(#common-home, #product-product) .products-carousel .product-item > .mt-auto {
    padding: 10px 20px 20px !important;
}

:is(#common-home, #product-product) .products-carousel .product-name a {
    margin: 0;
    color: #16211b !important;
    font-family: "Comfortaa", sans-serif;
    font-size: 16px;
    font-weight: 600 !important;
    line-height: 1.25;
    transition: color .2s ease;
}

:is(#common-home, #product-product) .products-carousel .product-name a:hover {
    color: var(--btn-green) !important;
    text-decoration: none;
}

:is(#common-home, #product-product) .products-carousel .seealso-price {
    padding-right: 9px;
    color: #16211b;
    font-family: inherit;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

:is(#common-home, #product-product) .products-carousel .price > div > .seealso-price {
    color: #b4623a;
}

:is(#common-home, #product-product) .products-carousel .price .h6 {
    margin: 0 !important;
    font-size: inherit;
    font-weight: inherit;
}

:is(#common-home, #product-product) .products-carousel .seealso-old-price {
    color: #8b968f;
    font-family: inherit;
    font-size: 14px;
}

:is(#common-home, #product-product) .products-carousel .ft-card-cart {
    margin-top: 14px !important;
}

/* Узкие карточки на телефоне: меньше отступы и шрифт, длинное слово переносится,
   а не обрезается краем карточки */
@media (max-width: 639.98px) {
    :is(#common-home, #product-product) .products-carousel .product-item > .pb-1 {
        padding: 14px 14px 0 !important;
    }

    :is(#common-home, #product-product) .products-carousel .product-item > .mt-auto {
        padding: 8px 14px 16px !important;
    }

    :is(#common-home, #product-product) .products-carousel .product-name a {
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    :is(#common-home, #product-product) .products-carousel .seealso-price {
        font-size: 17px;
    }
}

/* Заголовки разделов главной на телефоне — 30px, как в прототипе
   («Новинки», «Товары со скидкой», «Блог»; «О бренде» — в своём разделе) */
@media (max-width: 575px) {
    :is(#common-home, #product-product) .products-carousel-title {
        font-size: 30px;
    }
}

/* =========================================================================
   Главная: «Блог» (модуль xds_news_carousel) — как «Журнал» в прототипе.
   Песочная полоса на всю ширину окна, как у «Новинок» и «Товаров со
   скидкой» (полосы чередуются с кремовыми блоками), заголовок и стрелки —
   как у них. Карточки — как на странице блога: без подложки, фото 4:3 со
   скруглением 20px, заголовок Comfortaa, начало статьи в три строки,
   просмотры и дата. Вся карточка — ссылка на статью.
   Стрелки и точки включаются в настройках модуля («Элементы управления»).
   ========================================================================= */
#common-home [id^="ftNewsCarousel_"] {
    position: relative;
    /* последний блок: до подвала тот же шаг (у подвала свои 24px) */
    margin: 0 0 calc(var(--home-gap) - 24px) !important;
    padding: var(--home-gap) 0;
    background: var(--sand);
    box-shadow: 0 0 0 100vmax var(--sand);
    clip-path: inset(0 -100vmax);
}

/* От 992px подвал — тёмная полоса во всю ширину без скруглений: песочная
   полоса блога упирается прямо в неё, без кремового зазора. На узких
   экранах подвал — карточка со скруглёнными углами, зазор остаётся */
@media (min-width: 992px) {
    #common-home [id^="ftNewsCarousel_"] {
        margin-bottom: 0 !important;
    }

    body:has(#common-home [id^="ftNewsCarousel_"]) footer.mt-4 {
        margin-top: 0 !important;
    }
}

/* «Все статьи» — как .link-arrow в прототипе; по высоте — по центру стрелок */
[id^="ftNewsCarousel_"] .blog-all {
    align-self: center;
}

[id^="ftNewsCarousel_"] .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--btn-green);
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
}

[id^="ftNewsCarousel_"] .link-arrow:hover {
    color: var(--btn-green-hover);
    text-decoration: none;
}

[id^="ftNewsCarousel_"] .link-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}

[id^="ftNewsCarousel_"] .link-arrow:hover svg {
    transform: translateX(5px);
}

/* 16px между карточками на всех ширинах, как у «Новинок» (m-1 / m-sm-2 в шаблоне) */
[id^="ftNewsCarousel_"] > .m-n1 {
    margin: 0 -8px !important;
}

[id^="ftNewsCarousel_"] .article-item {
    position: relative;
    margin: 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

/* Фото 4:3 (квадратная распорка из шаблона не нужна), обрезка по центру */
[id^="ftNewsCarousel_"] .article-item a.position-relative {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 20px;
    background: var(--line-soft);
}

[id^="ftNewsCarousel_"] .article-item a.position-relative > svg {
    display: none !important;
}

[id^="ftNewsCarousel_"] .article-item > .px-3 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

[id^="ftNewsCarousel_"] .article-item > .pt-3 {
    padding-top: 18px !important;
}

[id^="ftNewsCarousel_"] .article-item > .pb-3 {
    padding-top: 16px;
    padding-bottom: 0 !important;
}

/* Высота по тексту (в теме min-height 4rem — под одной строкой оставалась дыра) */
[id^="ftNewsCarousel_"] .article-name {
    min-height: 0;
    margin-bottom: 10px !important;
}

[id^="ftNewsCarousel_"] .article-name a {
    color: #333 !important;
    font-family: "Comfortaa", sans-serif;
    font-size: 20px;
    font-weight: 700 !important;
    line-height: 1.25;
    text-decoration: none;
    transition: color .2s ease;
}

/* Вся карточка — ссылка на статью (как .post в прототипе) */
[id^="ftNewsCarousel_"] .article-name a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

@media (hover: hover) {
    [id^="ftNewsCarousel_"] .article-item:hover .article-name a {
        color: var(--btn-green) !important;
    }
}

[id^="ftNewsCarousel_"] .article-lede {
    margin: 0;
    color: #5a6760;
    font-size: 14.5px;
    line-height: 1.6;
}

/* Просмотры и дата — как на странице блога; плашка на песке — кремовая */
[id^="ftNewsCarousel_"] .badge-light {
    background: var(--cream);
}

/* Точки (если в настройках включена «Пагинация») — полоски, как у баннера */
[id^="ftNewsCarousel_"] .owl-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 28px 0 0 !important;
}

[id^="ftNewsCarousel_"] .owl-pagination.disabled {
    display: none;
}

[id^="ftNewsCarousel_"] .owl-pagination .btn-dot {
    width: 36px !important;
    height: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: rgba(22, 33, 27, .14) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: background-color .3s ease;
}

[id^="ftNewsCarousel_"] .owl-pagination .btn-dot > span {
    display: none;
}

[id^="ftNewsCarousel_"] .owl-pagination .btn-dot.active {
    background: var(--btn-green) !important;
}

/* Телефон: две узкие карточки — заголовок мельче, длинное слово переносится;
   «Все статьи» — второй строкой под заголовком раздела, как в прототипе */
@media (max-width: 575px) {
    [id^="ftNewsCarousel_"] .blog-all {
        order: 3;
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 10px;
    }

    [id^="ftNewsCarousel_"] .article-item > .pt-3 {
        padding-top: 14px !important;
    }

    [id^="ftNewsCarousel_"] .article-name {
        margin-bottom: 8px !important;
    }

    [id^="ftNewsCarousel_"] .article-name a {
        font-size: 16px;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    [id^="ftNewsCarousel_"] .article-lede {
        font-size: 13.5px;
        line-height: 1.5;
    }
}

/* Самые узкие телефоны (карточка 140px): заголовок ещё на ступень мельче */
@media (max-width: 359px) {
    [id^="ftNewsCarousel_"] .article-name a {
        font-size: 15px;
    }
}

/* =========================================================================
   Звёзды рейтинга в каруселях товаров (главная, «Рекомендуемые товары»,
   товары в статье). Цвет — как в прототипе; пустые звёзды — светлые.
   Остальные звёзды сайта (карточки категорий, отзывы, форма отзыва) —
   того же цвета.
   ========================================================================= */
:root {
    --star: #e0a33c;
    --star-off: #e6ddcd;
}

.pstars-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    color: #5a6760;
    font-size: 13px;
    line-height: 1;
}

.pstars {
    display: inline-flex;
    gap: 2px;
    color: var(--star);
}

.pstars svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: var(--star-off);
}

.pstars svg.is-on {
    fill: currentColor;
}

.pstars-count {
    white-space: nowrap;
}

svg.text-warning,
.rating-selection label.active,
.rating-selection label.hover {
    color: var(--star) !important;
}

.owl-carousel .price {
    font-weight: 500;
    font-size: 18px;
}

.owl-carousel a {}

.owl-carousel a:hover {
    text-decoration: none;

}


.my-wishlist-button {
    background: none;
    border: none;
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    opacity: 0.7;
}

.owl-item .my-wishlist-button {
    background: none;
    border: none;
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px;
    opacity: 0.7;
}

.product-image img {
    background: #fff;
    border-radius: 16px;
    transition: all ease-in-out .15s;
}

.product-name-link {
    font-size: 14px;
    line-height: 1.3;
    color: #333;
}

.product-item:hover img {
    border-radius: 24px;
}

.product-item:hover .my-wishlist-button {
    opacity: 0.8;
}

.product-item:hover .my-wishlist-button:hover {
    opacity: 1;
}

.product-name-link:hover {
    text-decoration: none;
}


/*Стикеры*/

.xdstickers_wrapper {
    color: #fff;
    /* Каждый шильдик по ширине своего текста. Обёртка — блок, и без этого
       блочные шильдики растягивались по самому широкому из них: «-15%»
       получался шириной с «Новинку». */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.xdstickers_wrapper.position_upright {
    align-items: flex-end;
}

.xdstickers_wrapper.position_upleft {
    top: 22px;
    left: 15px;
    right: auto;
}

.xdstickers {
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    line-height: 14px;
    padding: 4px 10px;
    margin-bottom: 5px;
}

.myfooter-bg {
    background: #333333;
    color: #fff;
    border-radius: 24px;
    padding: 60px 60px;
}

.myfooter-bg a {
    color: #fff;
}

.myfooter-bg a:hover {
    text-decoration: none;
}

.myfooter-logo {
    max-width: 100px;
    margin-bottom: 30px;
}

.myfooter-contacts {
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

.myfooter-contacts span {
    margin-bottom: 6px;
}

.myfooter-menutitle {
    font-weight: 500;
    display: block;
    font-size: 18px;
    margin: 9px 0 12px 0;
}

.myfooter-list {
    margin: 0;
    padding: 0;
}

.myfooter-list li {
    list-style-type: none;
    margin-bottom: 8px;
    font-size: 16px;
}

/* От 992px подвал — полоса на всю ширину окна, как верхняя зелёная и
   песочные полосы. Фон переезжает на .myfooter (он уже вне .container),
   у .myfooter-bg нет ни фона, ни скругления, ни боковых полей — колонки
   стоят по сетке сайта. Без фона у .myfooter-bg при появлении (.rv,
   сдвиг на 22px) едет только содержимое, а не тёмный прямоугольник */
@media (min-width: 992px) {
    .myfooter {
        background: #333333;
    }

    .myfooter-bg {
        background: none;
        border-radius: 0;
        padding: 60px 0;
    }
}

/* Главная уже 992px идёт во всю ширину (.container-lg), товар — уже 768px
   (.container-md), а подвал и копирайт стояли в .container — карточкой
   540/720px посреди экрана. Там растягиваем их, как остальные блоки, — те же
   поля по 12px от края. Остальные страницы сами в .container: подвал с ними
   и так вровень, не трогаем */
@media (max-width: 991.98px) {
    body:has(#common-home) :is(.myfooter, .mycopyright) > .container {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    body:has(#product-product) :is(.myfooter, .mycopyright) > .container {
        max-width: none;
    }
}

.mycopyright {
    font-size: 14px;
    margin: 20px 0;
}

.seealso-price {
    font-family: "Comfortaa", sans-serif;
    color: #333333;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 700;
    padding-right: 8px;    
}

.seealso-old-price {
    font-size: 16px;
    text-decoration: line-through;
    font-family: "Comfortaa", sans-serif;
    color: #b2b2b2;
}

/* =========================================================================
   Страница товара — как в прототипе (prototip/product.html).
   Фото и текст делят экран пополам (col-lg-6 + col-lg-6 в product.twig).
   Слева: рамка со скруглением 40px на белом, за ней коричневое пятно;
   миниатюры — прежние. Справа сверху вниз: категория, звёзды, артикул;
   заголовок; характеристики (вместо короткого описания); цена с плашкой
   «Выгода»; опции «таблетками»; кнопка, количество, избранное; доставка
   песочным блоком. Ниже — вкладки с подчёркиванием, «Рекомендуемые» —
   песочной полосой, как «Новинки» на главной, «Вы недавно смотрели» — на
   кремовом фоне страницы (правило в разделе «Главная: «Новинки»»).
   Всё под #product-product: #product — это форма покупки, а не страница.
   ========================================================================= */
#product-product {
    --pd-ink: #16211b;
    --pd-soft: #5a6760;
    --pd-mute: #8b968f;
    --pd-line: var(--line);
    --pd-line-soft: var(--line-soft);
    --pd-clay: #b4623a;
}

@media (min-width: 992px) {
    #product-product .pd-info {
        padding-left: clamp(24px, 3vw, 56px);
    }

    /* Фото едет вместе с прокруткой, пока справа длинная колонка.
       !important — у обёртки класс .position-relative (он тоже !important) */
    #product-product .pd-gallery-col > .position-relative {
        position: sticky !important;
        top: 96px;
    }
}

/* --- фото ---------------------------------------------------------------
   Рамку даёт обёртка слайдера (.col-12.mb-3): отдельный блок-обёртка
   сломал бы подсветку активной миниатюры (скрипт ищет её через два уровня). */
#product-product #product-gallery > .row > .col-12.mb-3 {
    position: relative;
}

#product-product #product-gallery > .row > .col-12.mb-3::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 7% -22px -14px 10%;
    border-radius: 44% 56% 40% 60% / 55% 45% 58% 42%;
    background: linear-gradient(150deg, #eadcc4 0%, #d4bd97 100%);
}

#product-product #product-gallery .gallery-placeholder,
#product-product #product-gallery .owl-carousel {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid var(--pd-line-soft);
    border-radius: 40px;
    background: #fff;
}

#product-product #product-gallery .owl-carousel .item {
    padding: clamp(20px, 3vw, 40px);
}

/* Товар без фото: заглушка стоит вне #product-gallery — та же рамка */
#product-product .pd-gallery-col > .position-relative > svg.ft-icon {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    padding: 22%;
    border: 1px solid var(--pd-line-soft);
    border-radius: 40px;
    background: #fff;
}

#product-product #product-gallery .owl-item img {
    border-radius: 0;
    background: none;
}

#product-product .pd-gallery-col .xdstickers_wrapper.position_upleft {
    top: 28px;
    left: 40px;
}

@media (hover: hover) and (pointer: fine) {
    #product-gallery .product-hover-zoom-stage {
        position: relative;
        overflow: hidden;
        cursor: crosshair;
    }

    #product-gallery .product-hover-zoom__hd {
        opacity: 0;
        z-index: 2;
        pointer-events: none;
        transform: scale(1);
        transform-origin: center center;
        transition: opacity 0.2s ease;
        will-change: transform;
    }

    #product-gallery .product-hover-zoom.is-zoomed .product-hover-zoom__hd {
        opacity: 1;
    }
}

/* --- шапка колонки: категория, звёзды, артикул -------------------------- */
#product-product .pd-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    color: var(--pd-mute);
    font-size: 13.5px;
}

#product-product .pd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--btn-green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
}

#product-product .pd-eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
}

#product-product .pd-rating {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--pd-soft);
    text-decoration: none;
}

#product-product .pd-rating:hover {
    color: var(--btn-green);
}

#product-product .pd-rating .pstars svg {
    width: 13px;
    height: 13px;
}

#product-product h1.pd-title {
    margin: 12px 0 18px;
    color: #333;
    font-family: "Comfortaa", sans-serif;
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.01em;
    text-wrap: balance;
}

/* --- характеристики вместо короткого описания --------------------------- */
#product-product .pd-attrs {
    display: grid;
    gap: 6px;
    margin: 0 0 26px;
    font-size: 15.5px;
    line-height: 1.5;
}

#product-product .pd-attrs__row {
    display: flex;
    gap: 16px;
}

#product-product .pd-attrs dt {
    flex: 0 0 140px;
    color: var(--pd-mute);
    font-weight: 400;
}

#product-product .pd-attrs dd {
    margin: 0;
    color: var(--pd-ink);
}

/* --- цена --------------------------------------------------------------- */
#product-product .pd-price {
    margin: 0 0 24px;
    padding: 22px 0;
    border-top: 1px solid var(--pd-line);
    border-bottom: 1px solid var(--pd-line);
}

#product-product .pd-price__main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
}

#product-product .pd-price__now {
    color: var(--pd-ink);
    font-family: "Comfortaa", sans-serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.1;
    white-space: nowrap;
}

/* Цена со скидкой — терракотовая, как в карточках */
#product-product .pd-price__main:has(.old-price) .pd-price__now {
    color: var(--pd-clay);
}

#product-product .pd-price .old-price {
    color: var(--pd-mute);
    font-family: inherit;
    font-size: 16px;
    text-decoration: line-through;
}

#product-product .pd-save {
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(180, 98, 58, .12);
    color: var(--pd-clay);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* --- опции: объём (модуль colorasproduct) и опции товара «таблетками» --- */
#product-product .pd-changer,
#product-product #my-option-changer,
#product-product .slider_colors_wrapper {
    margin: 0;
}

/* :not(:empty) не годится — в пустом блоке остаются пробелы из шаблона */
#product-product #my-option-changer:has(.slider_colors_wrapper) {
    margin-bottom: 22px;
}

#product-product .color_slider.color-style__bordered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

#product-product .color_slider .color-option-value-name,
#product-product .pd-opt__label,
#product-product #product .control-label {
    display: block;
    order: -1;
    flex: 0 0 100%;
    margin: 0 0 1px !important;
    color: var(--pd-mute);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

#product-product .pd-opt__label,
#product-product #product .control-label {
    margin-bottom: 10px !important;
}

/* Опции-кнопки: без сдвига .mx-n1 и с тем же шагом до кнопки, что у объёма */
#product-product .pd-opt > [id^="input-option"] {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

#product-product #product > div:has(> .pd-opt) {
    margin-bottom: 13px !important;
}

#product-product .color-style__bordered .slider_block,
#product-product .option-button-label {
    width: auto;
    margin: 0;
    min-width: 0;
    height: auto;
    padding: 11px 20px;
    border: 1px solid var(--pd-line);
    border-radius: 100px;
    background: #fff;
    color: var(--pd-ink);
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

#product-product .color-style__bordered .slider_block .option-value-color {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

#product-product .color-style__bordered .slider_block:hover,
#product-product .option-button-label:hover {
    border: 1px solid var(--btn-green);
    background: #fff;
    color: var(--pd-ink);
}

#product-product .color-style__bordered .slider_block.active,
#product-product .color-style__bordered .slider_block.active:hover,
#product-product .option-button-input:checked + .option-button-label {
    border-color: var(--btn-green);
    background: var(--btn-green);
    color: #fff;
}

#product-product .option-button {
    margin: 0 9px 9px 0;
}

/* Сам переключатель скрыт, но не display:none — иначе опцию нельзя выбрать
   с клавиатуры (Tab и стрелки); фокус виден обводкой на кнопке. */
#product-product .option-button {
    position: relative;
}

#product-product .option-button-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#product-product .option-button-input:focus-visible + .option-button-label {
    outline: 2px solid var(--btn-green);
    outline-offset: 2px;
}

#product-product .option-price {
    margin-left: 5px;
    font-size: 13px;
    opacity: .75;
}

/* --- покупка: кнопка, количество, избранное ----------------------------- */
#product-product .pd-buy {
    margin: 0 0 22px;
}

#product-product .product-buy-block {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: none;
}

#product-product .product-buy-block > .row {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 0;
}

#product-product .product-buy-block > .row > .col,
#product-product .product-buy-block > .row > .col-auto {
    min-width: 0;
    padding: 0;
}

#product-product .my-button-basket {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 28px !important;
    border-radius: 100px;
    font-family: "Comfortaa", sans-serif;
    font-size: 16px;
}

/* «В корзине» — ссылка в корзину после добавления: контурная */
#product-product #button-in-cart {
    border: 1px solid var(--btn-green);
    background: transparent;
    color: var(--btn-green);
}

#product-product #button-in-cart:hover,
#product-product #button-in-cart:focus {
    background: var(--btn-green);
    color: #fff;
}

#product-product .product-buy-block .ft-stepper {
    height: 56px;
    margin: 0;
    border: 1px solid var(--pd-line);
    border-radius: 100px;
    background: #fff;
    overflow: hidden;
}

#product-product .product-buy-block .ft-stepper-btn {
    flex: 0 0 46px;
    width: 46px;
    height: 54px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#product-product .product-buy-block .ft-stepper-btn:hover {
    background: #eef4ef;
}

/* Под кнопкой у товара с опциями: что уже в корзине, по позициям.
   Кнопка и счётчик относятся к выбранной крышке; клик по позиции выбирает её. */
#product-product .pd-cartlines {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

#product-product .pd-cartlines__label {
    margin-right: 2px;
    color: var(--pd-mute);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

#product-product .pd-cartline {
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--pd-line);
    border-radius: 100px;
    background: #fff;
    color: var(--pd-ink);
    font-size: 14px;
    line-height: 1;
    transition: border-color .2s ease, background-color .2s ease;
}

#product-product .pd-cartline:hover {
    border-color: var(--btn-green);
}

#product-product .pd-cartline.is-current {
    border-color: var(--btn-green);
    background: #eef4ef;
    color: var(--btn-green);
    font-weight: 600;
}

#product-product .product-buy-block .ft-stepper-value {
    min-width: 34px;
    color: var(--pd-ink);
    font-size: 16px;
    font-weight: 600;
}

#product-product .my-button-wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--pd-line);
    border-radius: 50%;
    background: #fff;
    transition: border-color .2s ease;
}

#product-product .my-button-wishlist svg path {
    fill: var(--pd-ink);
    transition: fill .2s ease;
}

#product-product .my-button-wishlist:hover {
    border-color: var(--pd-clay);
}

#product-product .my-button-wishlist:hover svg path {
    fill: var(--pd-clay);
}

/* --- доставка: песочный блок с иконками (текст из шаблона прежний) ------ */
#product-product .pd-usp {
    display: grid;
    gap: 16px;
    margin: 0 0 8px;
    padding: 22px;
    border-radius: 12px;
    background: var(--sand);
}

#product-product .pd-usp__item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    color: var(--pd-soft);
    font-size: 14.5px;
    line-height: 1.55;
}

#product-product .pd-usp__ico {
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    margin-top: 2px;
    fill: none;
    stroke: var(--btn-green);
    stroke-width: 1.7;
}

#product-product .pd-usp__text b {
    display: block;
    margin: 0 0 2px;
    color: var(--pd-ink);
    font-weight: 600;
}

#product-product .pd-usp__text ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#product-product .pd-usp__text p {
    margin: 4px 0 0;
}

/* --- вкладки ------------------------------------------------------------ */
.nav-tabs .nav-item {
    margin-bottom: 0;
}

.nav-tabs .nav-link.active {
    color: #333;
    padding: 0;
    position: relative;
}

.nav-link:hover {
    text-decoration: none;
}

#product-product .my-tabs-cover {
    margin: var(--home-gap) 0;
}

#product-product .my-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 0 32px !important;
    padding: 0;
    border-bottom: 1px solid var(--pd-line);
    overflow-x: auto;
    scrollbar-width: none;
}

#product-product .my-tabs::-webkit-scrollbar {
    display: none;
}

#product-product .my-tabs .nav-item {
    flex: none !important;
    margin: 0 !important;
}

#product-product .my-tabs .nav-link,
#product-product .my-tabs .nav-link.active {
    position: relative;
    padding: 16px 22px;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--pd-soft);
    font-size: 15px;
    font-weight: 400;
    text-decoration: none !important;
    text-transform: none;
    white-space: nowrap;
    transition: color .25s ease;
}

#product-product .my-tabs .nav-link.active {
    color: var(--pd-ink);
}

#product-product .my-tabs .nav-link:hover {
    color: var(--pd-ink);
}

#product-product .my-tabs .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--btn-green);
    transform: scaleX(0);
    transition: transform .3s ease;
}

#product-product .my-tabs .nav-link.active::after {
    transform: scaleX(1);
}

#product-product .my-tabs .nav-link:focus-visible {
    outline-offset: -3px;
}

#product-product .my-tabs-cover .tab-pane {
    padding: 0 !important;
}

#product-product .my-tabs-cover .tab-pane.active {
    animation: pd-fade .45s ease;
}

@keyframes pd-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* Описание */
#product-product #tab-description > .row > .col {
    max-width: 72ch;
    color: var(--pd-soft);
    font-size: 16px;
    line-height: 1.72;
}

#product-product #tab-description p {
    margin: 0 0 1.1em;
}

/* В описаниях из админки встречаются инлайновые justify и Helvetica —
   текст не трогаем, только приводим к общему виду */
#product-product #tab-description [style] {
    font-family: inherit !important;
    font-size: inherit !important;
    text-align: left !important;
}

/* Заголовки внутри описания — одного размера, со стилем из админки или без.
   Размер ниже названия товара, шрифт как у заголовков сайта */
#product-product #tab-description :is(h1, h2, h3, h4, h5, h6),
#product-product #tab-description :is(h1, h2, h3, h4, h5, h6)[style] {
    margin: 1.5em 0 .6em;
    color: #333;
    font-family: "Comfortaa", sans-serif !important;
    font-size: 20px !important;
    font-weight: 700;
    line-height: 1.3;
}

#product-product #tab-description > .row > .col > :first-child:is(h1, h2, h3, h4, h5, h6) {
    margin-top: 0;
}

#product-product #tab-description strong,
#product-product #tab-description b {
    color: var(--pd-ink);
    font-weight: 600;
}

/* Характеристики: строки «название — значение», без рамок таблицы */
#product-product #tab-specification .table {
    max-width: 620px;
    margin: 0;
    border: 0;
    background: none;
}

#product-product #tab-specification td {
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid var(--pd-line-soft);
    background: none !important;
    color: var(--pd-ink);
    font-size: 15px;
}

#product-product #tab-specification td:first-child {
    color: var(--pd-mute);
}

#product-product #tab-specification td + td {
    padding-left: 22px;
    text-align: right;
}

/* Название группы повторяло бы вкладку; следующие группы — подписью */
#product-product #tab-specification tr:first-child > td[colspan] {
    display: none;
}

#product-product #tab-specification td[colspan] {
    padding-top: 26px;
    border-bottom-color: var(--pd-line-soft) !important;
    color: var(--pd-mute);
    font-size: 13px;
    letter-spacing: .05em;
    text-align: left;
    text-transform: uppercase;
}

#product-product #tab-specification td[colspan] strong {
    font-weight: 600;
}

/* Отзывы */
#product-product #tab-review > .btn[data-toggle="collapse"] {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: 48px;
    margin: 0 0 20px !important;
    padding: 0 26px;
    border: 1px solid var(--pd-line) !important;
    border-radius: 100px;
    background: #fff;
    color: var(--pd-ink) !important;
    font-size: 15px;
}

#product-product #tab-review > .btn[data-toggle="collapse"]:hover {
    border-color: var(--btn-green) !important;
    color: var(--btn-green) !important;
}

/* Форма отзыва — как остальные формы сайта (контакты, регистрация):
   песочная панель без рамки, белые поля-«таблетки» (общие правила полей —
   в разделе «Внутренние страницы»), заголовок без значка — как «Доставка»
   и «Оплата» во вкладке, фирменная кнопка. Скрипт отправки кладёт
   сообщения об ошибке и успехе в .card-body */
#product-product #collapse-review .card {
    max-width: 800px;
    border: 0;
    border-radius: 20px;
    background: var(--sand);
}

#product-product #collapse-review .card-header {
    padding: 26px 28px 0;
    border: 0;
    background: none;
}

#product-product #collapse-review .card-title {
    margin: 0;
    color: #333;
    font-family: "Comfortaa", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

#product-product #collapse-review .card-body {
    padding: 20px 28px 28px;
}

#product-product #form-review textarea.form-control {
    resize: vertical;
}

/* Согласие: квадрат 18px по центру строки подписи — строка 20px,
   отступ сверху (20 − 18) / 2 = 1px. Длинная подпись переносится,
   квадрат остаётся у первой строки */
#product-product #form-review .custom-control {
    min-height: 20px;
    padding-left: 28px;
}

#product-product #form-review .custom-control-label {
    color: var(--pd-soft);
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}

#product-product #form-review .custom-control-label::before,
#product-product #form-review .custom-control-label::after {
    top: 1px;
    left: -28px;
    width: 18px;
    height: 18px;
}

#product-product #form-review .custom-control-label::before {
    transition: background-color .2s ease, border-color .2s ease;
}

#product-product #form-review .custom-control-label:hover::before {
    border-color: var(--btn-green);
}

/* Без свечения Bootstrap вокруг квадрата при клике; с клавиатуры —
   рамка, как у кнопок */
#product-product #form-review .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: none;
}

#product-product #form-review .custom-control-input:focus:not(:checked) ~ .custom-control-label::before,
#product-product #form-review .custom-control-input:not(:disabled):not(:checked):active ~ .custom-control-label::before {
    border-color: var(--btn-green);
    background-color: #fff;
}

#product-product #form-review .custom-control-input:focus-visible ~ .custom-control-label::before {
    outline: 2px solid var(--btn-green);
    outline-offset: 2px;
}

/* Звёзды оценки: пустые — белые, как поля на песке; при наведении и
   выбранные — цвет звёзд сайта (--star). !important — у меток в шаблоне
   утилита .text-gray-400, она сама с !important */
#product-product #form-review .rating-selection {
    gap: 4px;
}

#product-product #form-review .rating-selection label {
    color: #fff !important;
    transition: color .15s ease, transform .15s ease;
}

#product-product #form-review .rating-selection label:is(.hover, .active) {
    color: var(--star) !important;
}

#product-product #form-review .rating-selection label:hover {
    transform: scale(1.12);
}

#product-product #form-review .rating-selection svg {
    width: 28px;
    height: 28px;
}

/* Белая звезда на песке почти не видна (1,2:1) — контур #8f846f (3,2:1),
   у выбранных и под курсором он цвета звезды */
#product-product #form-review .rating-selection svg path {
    stroke: #8f846f;
    stroke-width: 1.2px;
    stroke-linejoin: round;
    transition: stroke .15s ease;
}

#product-product #form-review .rating-selection label:is(.hover, .active) svg path {
    stroke: var(--star);
}

/* Радио оценки скрыты визуально, а не display:none — до них доходит Tab,
   стрелки меняют оценку (звёзды подсвечивает скрипт шаблона по change);
   рамка фокуса — вокруг ряда звёзд */
#product-product #form-review .rating-selection {
    position: relative;
    border-radius: 8px;
}

#product-product #form-review .rating-selection .ft-rating-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

#product-product #form-review .rating-selection:has(.ft-rating-input:focus-visible) {
    outline: 2px solid var(--btn-green);
    outline-offset: 4px;
}

/* Кнопка — как «В корзину» (Comfortaa 16px), высотой с поле — 48px */
#product-product #button-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 32px;
    border-radius: 100px;
    font-family: "Comfortaa", sans-serif;
    font-size: 16px;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    /* Боковые поля — 18px, как у тела панели на телефоне
       (общее правило #content .card > .card-body) */
    #product-product #collapse-review .card-header {
        padding: 22px 18px 0;
    }

    /* Звёзды — своей строкой, кнопка под ними на всю ширину */
    #product-product #form-review .row > * {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #product-product #button-review {
        width: 100%;
        margin-top: 16px;
    }
}

#product-product .pd-reviews {
    display: grid;
    gap: 14px;
    max-width: 800px;
    margin: 0 0 16px;
}

#product-product .pd-review {
    padding: 24px;
    border: 1px solid var(--pd-line-soft);
    border-radius: 12px;
    background: #fff;
}

#product-product .pd-review__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
}

#product-product .pd-review__av {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eef4ef;
    color: var(--btn-green);
    font-family: "Comfortaa", sans-serif;
    font-size: 17px;
}

#product-product .pd-review__who {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#product-product .pd-review__name {
    color: var(--pd-ink);
    font-weight: 600;
}

#product-product .pd-review__who .pstars svg {
    width: 13px;
    height: 13px;
}

#product-product .pd-review__date {
    margin-left: auto;
    color: var(--pd-mute);
    font-size: 13px;
    white-space: nowrap;
}

#product-product .pd-review__text {
    color: var(--pd-soft);
    font-size: 15px;
    line-height: 1.65;
}

/* Доставка и оплата — тексты страниц «Доставка» и «Оплата» */
#product-product .pd-delivery__part + .pd-delivery__part {
    margin-top: 40px;
}

#product-product .pd-delivery__title {
    margin: 0 0 16px;
    color: #333;
    font-family: "Comfortaa", sans-serif;
    font-size: 24px;
    font-weight: 700;
}

/* --- телефон и планшет -------------------------------------------------- */
@media (max-width: 991.98px) {
    /* Пятно не выходит за край экрана: справа только в пределах поля колонки */
    #product-product #product-gallery > .row > .col-12.mb-3::before {
        inset: 7% 2px -10px 10%;
    }

    #product-product #product-gallery .gallery-placeholder,
    #product-product #product-gallery .owl-carousel {
        border-radius: 28px;
    }

    #product-product .pd-gallery-col .xdstickers_wrapper.position_upleft {
        top: 24px;
        left: 32px;
    }

    #product-product .pd-info {
        margin-top: 8px;
    }
}

@media (max-width: 575.98px) {
    #product-product .pd-attrs dt {
        flex-basis: 118px;
    }

    #product-product .pd-price__now {
        font-size: 32px;
    }

    #product-product .my-button-basket {
        padding: 0 18px !important;
    }

    #product-product .my-tabs .nav-link,
    #product-product .my-tabs .nav-link.active {
        padding: 14px 16px;
    }

    #product-product .pd-review {
        padding: 18px;
    }

    #product-product .pd-review__head {
        flex-wrap: wrap;
    }
}
@media (max-width: 991px) {

.products-carousel-title {
    font-family: "Comfortaa", sans-serif;
    color: #333333;
    font-size: 18px;
    line-height: 1.6;
}

}


@media (max-width: 576px) {

    .myfooter-bg {
        background: #333333;
        color: #fff;
        border-radius: 24px;
        padding: 40px 30px;
    }

}

.dm-origins {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    margin: 0 0 var(--home-gap, 60px) 0;
}

.dm-origins__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
    padding: 36px 40px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #f3eee6;
    background-repeat: no-repeat;
    background-size: cover;
    color: #333;
    font-family: "Comfortaa", sans-serif;
}

.dm-origins__card--ma {
    grid-row: 1 / 3;
    justify-content: flex-end;
    min-height: 520px;
    padding: 40px;
    background-image: url("/image/design/mainpage/dm-ma.jpg");
    background-position: top left;
}

.dm-origins__card--ru {
    background-image: url("/image/design/mainpage/dm-ru.jpg");
    background-position: right center;
}

.dm-origins__card--az {
    background-image: url("/image/design/mainpage/dm-az.jpg");
    background-position: right center;
}

.dm-origins__content {
    max-width: 340px;
}

.dm-origins__title {
    margin: 0 0 8px;
    color: #333;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    font-family: "Comfortaa", sans-serif;
}

.dm-origins__card--ma .dm-origins__title {
    font-size: 36px;
}

.dm-origins__text {
    margin: 0 0 22px;
    color: #333;
    font-size: 16px;
    line-height: 1.45;
    font-family: "Comfortaa", sans-serif;
}

.dm-origins__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 25px;
    border: none;
    border-radius: 23px;
    background: #206040;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 46px;
    text-decoration: none;
    white-space: nowrap;
    font-family: "Comfortaa", sans-serif;
    transition: background-color .2s ease, color .2s ease;
}


@media (max-width: 1199px) {
    .dm-origins__card {
        padding: 28px;
        min-height: 220px;
    }

    .dm-origins__card--ma {
        min-height: 460px;
    }

    .dm-origins__title {
        font-size: 26px;
    }

    .dm-origins__card--ma .dm-origins__title {
        font-size: 30px;
    }
}

@media (max-width: 991px) {
    .dm-origins {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .dm-origins__card--ma {
        grid-row: auto;
        min-height: 380px;
        justify-content: flex-end;
    }

    .dm-origins__card--ru,
    .dm-origins__card--az {
        min-height: 240px;
    }

    .dm-origins__content {
        max-width: 420px;
    }
}

@media (max-width: 575px) {
    .dm-origins {
        gap: 10px;
    }

    .dm-origins__card,
    .dm-origins__card--ma {
        padding: 24px 20px;
    }

    .dm-origins__card--ma {
        min-height: 340px;
        background-position: 70% top;
    }

    .dm-origins__card--ru,
    .dm-origins__card--az {
        min-height: 220px;
    }

    .dm-origins__title,
    .dm-origins__card--ma .dm-origins__title {
        font-size: 24px;
    }

    .dm-origins__text {
        margin-bottom: 16px;
        font-size: 15px;
    }

    .dm-origins__btn {
        height: 42px;
        padding: 0 20px;
        font-size: 14px;
        line-height: 42px;
    }
}

/* =========================================================================
   Главная: «О бренде» — как в прототипе (#story). Модуль «HTML контент»
   «О бренде на главной», текст правится в админке. Фото 5:6 со штампом,
   справа надпись, заголовок, абзац и три преимущества с иконками.
   ========================================================================= */
.dm-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(28px, 5vw, 80px);
    margin: 0 0 var(--home-gap, 60px);
}

.dm-story__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 6;
    border-radius: 20px;
}

.dm-story__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dm-story__stamp {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: grid;
    place-items: center;
    align-content: center;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: #fff;
    text-align: center;
    box-shadow: 0 14px 40px rgba(22, 33, 27, .16);
}

.dm-story__stamp b {
    display: block;
    color: var(--btn-green);
    font-family: "Comfortaa", sans-serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
}

.dm-story__stamp small {
    color: #8b968f;
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.dm-story__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--btn-green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dm-story__eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
}

/* Размер — как у заголовков разделов главной («Новинки», «Блог») */
.dm-story__title {
    margin: 18px 0 20px;
    color: #333;
    font-family: "Comfortaa", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
}

.dm-story__lede {
    max-width: 54ch;
    margin: 0;
    color: #5a6760;
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.62;
}

.dm-story__list {
    display: grid;
    gap: 2px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.dm-story__list li {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.dm-story__list li:last-child {
    border-bottom: 1px solid var(--line);
}

.dm-story__list b {
    color: #16211b;
    font-family: "Comfortaa", sans-serif;
    font-size: 17px;
    font-weight: 400;
}

.dm-story__list p {
    margin: 4px 0 0;
    color: #5a6760;
    font-size: 14.5px;
}

.dm-story__ico {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eef4ef;
    color: var(--btn-green);
}

.dm-story__ico svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

@media (max-width: 900px) {
    .dm-story {
        grid-template-columns: 1fr;
    }

    /* В одну колонку на планшете фото 5:6 вышло бы выше экрана */
    .dm-story__media {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 575px) {
    .dm-story__media {
        aspect-ratio: 5 / 6;
    }

    /* Как в прототипе на телефоне: при 36px «сами» уходило на третью строку */
    .dm-story__title {
        font-size: 30px;
    }

    .dm-story__stamp {
        right: 14px;
        bottom: 14px;
        width: 100px;
        height: 100px;
    }

    .dm-story__stamp b {
        font-size: 23px;
    }
}

/* =========================================================================
   Единый стиль кнопок и ссылок-кнопок
   1) нет свечения при клике;
   2) затемнение при наведении и нажатии;
   3) на заливных фирменных (зелёных) кнопках текст всегда белый.
   Светло-серые кнопки (.btn-light, .btn-secondary) намеренно остаются
   светло-серыми с тёмным текстом.
   ========================================================================= */

:root {
    /* Линии и рамки — одного цвета по всему сайту (как в прототипе):
       --line-soft — рамки карточек, --line — разделители, поля, наведение */
    --line: #e6e0d5;
    --line-soft: #f0ebe2;
    --btn-green: #206040;
    --btn-green-hover: #16432d;
    --btn-green-active: #133a27;
    --cream: #fbf8f3;
    --sand: #f2ede4;
}

/* --- Кремовый фон всего сайта --- */
body {
    background-color: var(--cream);
}

/* --- Хлебные крошки: мельче основного текста (был 16px, как у абзацев);
   разделитель «/» — ::after из stylesheet.css, берёт размер от строки --- */
.breadcrumb {
    font-size: 13px;
    line-height: 20px;
}

.breadcrumb-item:not(:last-child)::after {
    margin: 0 6px;
}

/* У товара последняя крошка (название) уже 992px скрыта шаблоном
   (d-none d-lg-block) — без «/» в конце строки */
@media (max-width: 991.98px) {
    .breadcrumb-item:has(+ .breadcrumb-item.d-none:last-child)::after {
        content: none;
    }
}

/* На креме белые карточки видны, поэтому скругляем их как остальные карточки сайта.
   У плиток категорий белую подложку убираем совсем (.bg-white из Bootstrap с !important). */
.category-item {
    display: flex;
}

.category-item > .bg-white {
    flex: 1 1 auto;
    background: transparent !important;
}

.article-item.bg-white {
    border-radius: 16px;
}

.simple-content .simplecheckout-button-block,
.simple-content .simpleregister-button-block {
    background: transparent;
}

/* --- 1. Без свечения при клике и фокусе --- */
.btn:focus,
.btn.focus,
.btn:active,
.btn.active,
.btn:not(:disabled):not(.disabled):active:focus,
.btn:not(:disabled):not(.disabled).active:focus,
.show > .btn.dropdown-toggle:focus,
.greenButton:focus,
.greenButton:active,
.dm-origins__btn:focus,
.dm-origins__btn:active {
    box-shadow: none !important;
}

.btn:focus,
.btn.focus,
a:focus,
button:focus {
    outline: 0;
}

/* Рамка остаётся только при навигации с клавиатуры — мышью её не видно */
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--btn-green);
    outline-offset: 2px;
}

/* --- 2 + 3. Заливные фирменные кнопки --- */
.btn-primary,
.btn-success,
.btn-danger,
.greenButton,
.dm-origins__btn {
    background-color: var(--btn-green);
    border-color: var(--btn-green);
    /* !important нужен из-за bootstrap-правила a:not([href]) { color: inherit }:
       часть кнопок в модулях — это ссылки без href, и текст на них наследовался
       тёмным от body. */
    color: #fff !important;
    transition: background-color .2s ease, border-color .2s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-success:hover,
.btn-success:focus,
.btn-success.focus,
.btn-danger:hover,
.btn-danger:focus,
.btn-danger.focus,
.greenButton:hover,
.greenButton:focus,
.dm-origins__btn:hover,
.dm-origins__btn:focus {
    background-color: var(--btn-green-hover);
    border-color: var(--btn-green-hover);
    color: #fff !important;
    text-decoration: none;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle,
.btn-success:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled).active,
.show > .btn-success.dropdown-toggle,
.btn-danger:not(:disabled):not(.disabled):active,
.btn-danger:not(:disabled):not(.disabled).active,
.show > .btn-danger.dropdown-toggle,
.greenButton:active,
.dm-origins__btn:active {
    background-color: var(--btn-green-active);
    border-color: var(--btn-green-active);
    color: #fff !important;
}

/* Неактивная кнопка не реагирует на наведение */
.btn-primary.disabled, .btn-primary:disabled,
.btn-success.disabled, .btn-success:disabled,
.btn-danger.disabled, .btn-danger:disabled {
    background-color: var(--btn-green);
    border-color: var(--btn-green);
    color: #fff;
}

/* Всплывающая корзина: разделители между позициями, чтобы цена и кнопки
   количества читались вместе со своим товаром, а не сливались с соседним. */
.cart-list-product .ft-cart-item + .ft-cart-item {
    border-top: 1px solid var(--line);
}

.cart-list-product .ft-cart-item .input-group-sm .btn {
    border-radius: 6px;
}

.cart-list-product .ft-cart-item s {
    font-size: 13px;
}

/* Кнопка покупки в стиле маркетплейсов: «В корзине» и счётчик рядом.
   Тёмная заливка отличает состояние «уже в корзине» от зелёной «В корзину».
   Высота кнопок счётчика совпадает с высотой кнопки покупки — иначе строка
   растягивается и круглая кнопка «в избранное» рядом превращается в овал. */
.ft-stepper {
    height: 42px;
    /* Тот же отступ, что у круглой кнопки «в избранное» справа. */
    margin-left: 5px;
}

.ft-stepper .ft-stepper-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--sand);
    transition: background-color .2s ease;
}

.ft-stepper .ft-stepper-btn:hover {
    background: #d2d2d2;
}

.ft-stepper .ft-stepper-btn:disabled {
    opacity: .4;
}

.ft-stepper-value {
    min-width: 40px;
    text-align: center;
    font-family: "Comfortaa", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}
/* Блок покупки занимает всю ширину колонки товара, но не растягивается
   бесконечно на широких экранах: кнопка и счётчик должны читаться как пара. */
.product-buy-block {
    max-width: 420px;
}
/* Кнопки «В корзину» и «В корзине» стоят рядом в разметке, видна всегда одна.
   Bootstrap добавляет отступ между соседними .btn-block — из-за него строка
   становилась на 8px выше кнопки. */
#button-cart + #button-in-cart {
    margin-top: 0;
}
/* Точки перелистывания фото лежат поверх изображения, а не под ним.
   Контекст позиционирования — ссылка .hover-img-add, её высота равна высоте
   картинки, поэтому bottom отсчитывается от нижнего края изображения.
   Селектор с .product-image нужен, чтобы перебить CSS плагина: он подключается
   в шапке после my.css. */
/* Обёртка картинки — inline-block, из-за чего под ней оставалось ~6px места
   под базовую линию строки. Без этого ссылка выше самого изображения, и
   отступ точек считался бы не от нижнего края картинки. */
.hover-img-add > .d-inline-block {
    vertical-align: top;
}

.hover-img-add .hover-img-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    margin-top: 0;
}

/* Кнопка покупки в карточке товара: зелёная «Добавить в корзину», после
   добавления — счётчик с количеством по центру и кнопками по краям. */
.ft-card-cart-add,
.ft-card-stepper {
    width: 100%;
    height: 38px;
    border-radius: 19px;
}

.ft-card-cart-add {
    display: block;
    border: 0;
    background: #206040;
    color: #fff;
    font-family: "Comfortaa", sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: background-color .2s ease;
}

.ft-card-cart-add:hover {
    background: #16432d;
    color: #fff;
}

.ft-card-cart-add:disabled {
    opacity: .6;
}

/* «Нет в наличии» (опция темы «Отключать кнопку покупки, если товара нет»):
   кнопка неактивна — песочная с приглушённым текстом, а не бледно-зелёная.
   На карточке, на странице товара и в плашке «Купить» внизу */
.ft-card-cart-add.is-soldout,
#product-product #button-cart:disabled,
.stickybuy__btn:disabled:not(.is-incart) {
    border-color: transparent !important;
    background: var(--sand) !important;
    color: #5a6760 !important;
    opacity: 1;
    box-shadow: none !important;
    cursor: default;
}

.ft-card-stepper {
    display: flex;
    align-items: center;
    /* по умолчанию кнопки держатся вместе; на регистрации их разносит
       по краям правило ниже — там слева согласие, справа кнопка */
    justify-content: flex-start;
    padding: 0 3px;
    background: #e8f0ec;
}

.ft-card-step {
    flex: 0 0 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #206040;
    transition: background-color .2s ease;
}

.ft-card-step:hover {
    background: rgba(32, 96, 64, .12);
}

.ft-card-step:disabled {
    opacity: .4;
}

.ft-card-step svg {
    display: block;
    margin: 0 auto;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.ft-card-count {
    flex: 1 1 auto;
    text-align: center;
    font-family: "Comfortaa", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #206040;
}

/* Товар с выбором опции (крышка) уже в корзине: «В корзине» и общее
   количество, по клику — окно выбора. Размером как счётчик. */
.ft-card-cart-open {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 19px;
    background: #e8f0ec;
    color: #206040;
    font-family: "Comfortaa", sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: background-color .2s ease, transform .12s ease;
}

.ft-card-cart-open:hover {
    background: #d9e8df;
}

.ft-card-cart-open:active {
    transform: scale(.96);
}

.ft-card-open-count {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    background: #206040;
    color: #fff;
    font-size: 12.5px;
    line-height: 1;
}

/* Карточка меняется сразу по клику (запрос уходит в фоне, common.js):
   «В корзину» ↔ счётчик появляются плавно, число «пружинит» при изменении,
   кнопки слегка утапливаются при нажатии */
.ft-card-cart-add,
.ft-card-step {
    transition: background-color .2s ease, transform .12s ease;
}

.ft-card-cart-add:active,
.ft-card-step:active {
    transform: scale(.94);
}

.ft-card-cart-add.is-new,
.ft-card-stepper.is-new,
#product-product #button-cart.is-new {
    animation: ft-card-in .24s cubic-bezier(.22, .61, .36, 1);
}

@keyframes ft-card-in {
    from { opacity: 0; transform: scale(.94); }
    to { opacity: 1; transform: none; }
}

.ft-card-count.is-bump,
#product-product .ft-stepper-value.is-bump {
    animation: ft-card-bump .22s ease;
}

@keyframes ft-card-bump {
    40% { transform: scale(1.22); }
}

/* Страница товара: кнопки счётчика — плоские половинки пилюли, поэтому
   при нажатии утапливается только значок, а фон чуть темнеет. */
#product-product .product-buy-block .ft-stepper-btn svg {
    transition: transform .12s ease;
}

#product-product .product-buy-block .ft-stepper-btn:active {
    background: #e2ece4;
}

#product-product .product-buy-block .ft-stepper-btn:active svg {
    transform: scale(.8);
}

@media (prefers-reduced-motion: reduce) {
    .ft-card-cart-add.is-new,
    .ft-card-stepper.is-new,
    .ft-card-count.is-bump,
    #product-product #button-cart.is-new,
    #product-product .ft-stepper-value.is-bump {
        animation: none;
    }
}
/* Кнопка сортировки: серая пилюля — слева иконка, затем название, справа
   стрелка. Список раскрывается штатным дропдауном Bootstrap, который в теме
   и так подключён, поэтому своего JS не потребовалось. */
.ft-sort {
    display: inline-block;
}

.ft-sort-toggle {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 10px 0 12px;
    border: 0;
    border-radius: 19px;
    background: var(--sand);
    font-family: "Comfortaa", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    transition: background-color .2s ease;
}

.ft-sort-toggle:hover,
.ft-sort.show .ft-sort-toggle {
    background: #e6e6e6;
}

.ft-sort-icon,
.ft-sort-caret {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: #333333;
}

.ft-sort-current {
    padding: 0 6px;
    white-space: nowrap;
}

.ft-sort-caret {
    transition: transform .2s ease;
}

.ft-sort.show .ft-sort-caret {
    transform: rotate(180deg);
}

/* Выпадающий список: белая карточка с кружками выбора слева */
.ft-sort-menu {
    /* Ширина по самому длинному пункту, чтобы названия не переносились.
       240px остаётся нижней границей, чтобы список не сужался до кнопки. */
    width: max-content;
    min-width: 240px;
    max-width: calc(100vw - 32px);
    margin-top: 6px;
    padding: 8px 0;
    border: 0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
}

.ft-sort-option {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    font-family: "Comfortaa", sans-serif;
    font-size: 15px;
    color: #333333;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease;
}

.ft-sort-option:hover,
.ft-sort-option:focus {
    background: #f5f5f5;
    color: #333333;
    text-decoration: none;
}

.ft-sort-radio {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border: 2px solid var(--line);
    border-radius: 50%;
    transition: border-color .15s ease;
}

.ft-sort-option.active .ft-sort-radio {
    border-color: #206040;
}

.ft-sort-option.active .ft-sort-radio::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    bottom: 3px;
    left: 3px;
    border-radius: 50%;
    background: #206040;
}
/* ---- Формы: единое поведение полей ввода ---------------------------------- */

/* При фокусе — только зелёная обводка, без свечения.
   Bootstrap рисует вокруг поля тень в 0.2rem, из-за неё поле «подсвечивалось». */
.form-control:focus,
.custom-select:focus,
.custom-file-input:focus ~ .custom-file-label,
select:focus,
textarea:focus {
    box-shadow: none !important;
    outline: 0;
    border-color: #206040;
}

/* ---- Формы: без голубого от браузера ------------------------------------- */

/* Автозаполнение. Chrome, Edge и Safari заливают подставленные из памяти поля
   (e-mail, пароль, имя, телефон) голубым #e8f0fe и красят текст в чёрный —
   своим правилом с !important, которое не перебить ни специфичностью, ни своим
   !important. Поэтому смену фона и цвета откладываем переходом на неделю:
   поле остаётся в цветах сайта, зелёная рамка фокуса работает как обычно. */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    transition: background-color 0s 600000s, color 0s 600000s !important;
}

/* Рамка фокуса с клавиатуры у галочек и переключателей — зелёная, как у кнопок
   и ссылок (иначе браузерная: в Windows чёрная, в macOS голубая). Мышью её
   не видно — :focus-visible. */
input:is([type="checkbox"], [type="radio"]):focus-visible {
    outline: 2px solid var(--btn-green);
    outline-offset: 2px;
}

/* Подсказки DaData в оформлении заказа (имя, фамилия, e-mail, город):
   совпавшая часть была голубой #39f, список — в серой квадратной рамке.
   suggestions.min.css подключается позже my.css, поэтому селекторы начинаются
   с обёртки .suggestions-wrapper. */
.suggestions-wrapper .suggestions-suggestions {
    max-width: 100%;
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(22, 33, 27, .12);
}

/* Текст списка — на одной линии с текстом поля, логотип не под скруглением.
   Список не шире поля: длинная подсказка переносится, а не растягивает его. */
.suggestions-wrapper .suggestions-hint,
.suggestions-wrapper .suggestions-suggestion {
    padding: 6px 20px;
}

.suggestions-wrapper .suggestions-hint {
    white-space: normal;
}

.suggestions-wrapper .suggestions-promo {
    padding: 6px 14px;
}

.suggestions-wrapper .suggestions-suggestions strong {
    color: var(--btn-green);
    font-weight: 700;
}

.suggestions-wrapper .suggestions-suggestion:hover,
.suggestions-wrapper .suggestions-selected,
.suggestions-wrapper .suggestions-selected:hover {
    background: var(--sand);
}

/* Метка и поле занимают всю ширину блока.
   Разметка форм осталась от Bootstrap 3: .form-group без класса .row, поэтому
   .col-sm-2 и .col-sm-10 работают не как колонки, а как обычные блоки, ограниченные
   по ширине. Метка «Подтвердите пароль» не влезала в 16% и переносилась в три
   строки, а поле обрывалось, не доходя до края блока.
   Кроме «Зарегистрироваться» в оформлении заказа: там simple.css ставит подпись
   и галочку в одну строку, и растянутый на всю ширину блок галочки вылезал за
   край — на странице появлялась горизонтальная прокрутка. */
@media (min-width: 576px) {
    .form-group:not(.row-customer_register) > .control-label[class*="col-sm-"],
    .form-group:not(.row-customer_register) > .control-label[class*="col-sm-"] + [class*="col-sm-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* ---- Страница регистрации ------------------------------------------------ */

/* Чекбокс согласия стоял вплотную к тексту: в разметке модуля input и текст
   лежат в одном <label> без разделителя. */
#agreement_checkbox input[type="checkbox"],
.simpleregister-button-right .checkbox input[type="checkbox"] {
    margin-right: 8px;
}

/* Строка с чекбоксом и кнопка стояли по верхнему краю: текст 24px, кнопка 38px.
   Выстраиваем их в одну строку по центру — чекбокс слева, кнопка справа. */
.simpleregister-button-right,
.simplecheckout-button-right {
    /* !important: simple.css подключается модулем ПОСЛЕ my.css и задаёт
       float: right той же специфичностью, из-за чего блок уезжал за край. */
    float: none !important;
    display: flex;
    /* nowrap: текст согласия ужимается, кнопка остаётся на той же строке */
    flex-wrap: nowrap;
    align-items: center;
    /* по умолчанию кнопки держатся вместе; на регистрации их разносит
       по краям правило ниже — там слева согласие, справа кнопка */
    justify-content: flex-start;
    gap: 12px;
    text-align: left !important;
}

#simpleregister .simpleregister-button-right {
    justify-content: space-between;
}

.simpleregister-button-right .checkbox,
.simpleregister-button-right > span {
    margin: 0;
}

/* Текст согласия забирает остаток строки и переносится внутри себя, чтобы
   кнопка оставалась на той же строке справа, а не уезжала вниз. */
.simpleregister-button-right > span,
.simplecheckout-button-right > span {
    flex: 1 1 auto;
    min-width: 0;
}

.simpleregister-button-right > .button_oc,
.simplecheckout-button-right > .button_oc {
    flex: 0 0 auto;
}

/* Заголовок страницы живёт в общей шапке simple_header и шёл во всю ширину,
   тогда как форма занимает 8 колонок из 12 со смещением. Подгоняем заголовок
   под ту же колонку, чтобы блок сверху не «уезжал» влево. */

@media (max-width: 575px) {
    /* На узком экране кнопка уходит под текст согласия — так читабельнее */
    .simpleregister-button-right,
    .simplecheckout-button-right {
        flex-wrap: wrap;
    }
}

/* Кнопка фильтров на мобильных: та же пилюля, что и у сортировки, но в
   акцентном зелёном. Высота и радиус совпадают с .ft-sort-toggle, чтобы
   две кнопки в одной строке выглядели парой. */
.ft-filter-toggle {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 16px 0 12px;
    border: 0;
    border-radius: 19px;
    background: var(--btn-green);
    font-family: "Comfortaa", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: background-color .2s ease;
}

.ft-filter-toggle:hover,
.ft-filter-toggle:focus {
    background: var(--btn-green-hover);
    color: #ffffff;
    text-decoration: none;
}

.ft-filter-toggle:active {
    background: var(--btn-green-active);
}

.ft-filter-toggle:focus {
    outline: 0;
    box-shadow: none;
}

.ft-filter-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.ft-filter-label {
    padding-left: 6px;
    white-space: nowrap;
}

/* =========================================================================
   Фильтр (gigantfilter) на мобильных

   Модуль отдаёт панель фильтров обычным блоком в потоке страницы, а в
   выезжающую шторку её превращает JS уже после загрузки. Правки ниже лежат
   в теме, а не в файлах модуля, чтобы обновление модуля их не стёрло.

   Порог 991px задан в админке модуля (mobile_breakpoint). Собственная CSS
   модуля ориентируется на 768px, поэтому в диапазоне 769-991 её правила
   не срабатывают и их приходится перебивать. Если порог в админке
   поменяют, поправьте 991px и здесь.
   ========================================================================= */

@media (max-width: 991px) {

    /* 1. Убираем мигание: до того, как JS перенесёт шторку в body и повесит
       .gf-mobile-active, она разворачивается во весь экран. Прячем её на это
       время. Селектор с #gigantfilter нужен, чтобы перебить display:block
       !important из десктопной медиа-секции модуля. */
    #gigantfilter .gf-drawer:not(.gf-mobile-active),
    #gigantfilter .gf-overlay:not(.gf-mobile-active) {
        display: none !important;
    }

    /* Своя медиа-секция модуля обрывается на 768px и в диапазоне 769-991
       гасит затемнение через !important. Возвращаем его: без затемнения
       некуда кликать, чтобы закрыть шторку. */
    body > .gf-overlay.gf-mobile-active.gf-visible {
        display: block !important;
    }

    /* 2. Кнопка применения всегда на виду. Шторка становится колонкой:
       шапка и панель применения закреплены, прокручивается только список
       фильтров между ними. */
    body > .gf-drawer.gf-mobile-active {
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
        background: var(--cream);
    }

    body > .gf-drawer.gf-mobile-active > * {
        flex: 0 0 auto;
    }

    body > .gf-drawer.gf-mobile-active > .gf-filter-list {
        flex: 1 1 auto;
        /* min-height обязателен: без него flex-элемент не даёт себя сжать
           меньше содержимого и прокрутка не появляется. */
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Много выбранных значений не должны съедать список фильтров. */
    body > .gf-drawer.gf-mobile-active > .gf-selected-container {
        max-height: 30vh;
        overflow-y: auto;
    }

    /* Панель применения — нижняя плашка во всю ширину шторки. */
    body > .gf-drawer.gf-mobile-active > .gf-apply-bar {
        margin: 0 -15px -15px;
        padding: 12px 15px;
        background: var(--cream);
        border-top: 1px solid var(--line);
    }

    body > .gf-drawer.gf-mobile-active .gf-btn-apply-filter {
        padding: 12px 20px;
        border-radius: 19px;
        background: var(--btn-green);
        font-size: 15px;
    }

    body > .gf-drawer.gf-mobile-active .gf-btn-apply-filter:hover {
        background: var(--btn-green-hover);
    }

    body > .gf-drawer.gf-mobile-active .gf-btn-apply-filter:active {
        background: var(--btn-green-active);
    }

    /* 3. Закрытие по клику мимо шторки: обработчик на затемнении у модуля
       уже есть, ширину шторки не меняем. На планшетах она занимает 85%
       ширины, и клик по оставшейся полосе затемнения закрывает фильтр. */
}

/* Подпись студии в копирайте: копирайт слева, подпись справа, одной строкой.
   На узких экранах строка переносится и подпись уходит под копирайт. */
.mycopyright-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
}

.mycopyright-bottom > p {
    margin-bottom: 0;
}

.mystudio {
    /* Тот же тон, что и у копирайта, иначе половинки одной строки
       выглядят разными. */
    color: #333333;
}

.mystudio a {
    color: var(--btn-green);
}

.mystudio a:hover,
.mystudio a:focus {
    color: var(--btn-green-hover);
}

/* Прежний нижний отступ блока копирайта держался на margin последнего <p>,
   который теперь обнулён — возвращаем его самому блоку. */
.mycopyright .mycopyright-bottom {
    margin-bottom: 16px;
}

/* =========================================================================
   Страница накопительной скидки

   Вёрстка живёт в содержимом информационной страницы, поэтому классы здесь
   с собственным префиксом: редактор в админке не должен их задеть, а чужие
   стили темы — перебить.
   ========================================================================= */
.discount-program {
    max-width: 900px;
}

.discount-program__lead {
    font-size: 17px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 1.75rem;
}

.discount-program__title {
    font-family: "Comfortaa", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 1rem;
}

/* Ступени скидки */
.discount-tiers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 2rem;
}

.discount-tier {
    padding: 1.75rem 1.5rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 16px;
    background: var(--sand);
    text-align: center;
}

/* Верхняя ступень выделена — к ней и ведём. */
.discount-tier--top {
    border-color: #206040;
    background: #f3f8f5;
}

.discount-tier__value {
    font-family: "Comfortaa", sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.05;
    color: #206040;
    margin-bottom: .5rem;
}

.discount-tier__label {
    font-size: 15px;
    line-height: 1.4;
    color: #6c757d;
}

/* Как это работает */
.discount-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 2rem;
}

.discount-step {
    padding: 1.5rem 1.25rem;
    border: 0;
    border-radius: 16px;
    background: var(--sand);
}

.discount-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: .85rem;
    border-radius: 50%;
    background: #206040;
    color: #ffffff;
    font-family: "Comfortaa", sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.discount-step__text {
    font-size: 15px;
    line-height: 1.5;
    color: #333333;
}

/* Условия */
.discount-card {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    border: 0;
    border-radius: 16px;
    background: var(--sand);
}

.discount-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.discount-list li {
    position: relative;
    padding: .75rem 0 .75rem 1.5rem;
    border-bottom: 1px solid var(--line);
    line-height: 1.55;
    color: #333333;
}

.discount-list li:last-child {
    border-bottom: 0;
}

.discount-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #206040;
}

.discount-note {
    margin-bottom: 1.75rem;
    font-size: 15px;
    line-height: 1.55;
    color: #6c757d;
}

@media (max-width: 767px) {
    .discount-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .discount-tiers {
        grid-template-columns: 1fr;
    }

    .discount-tier__value {
        font-size: 38px;
    }
}

/* =========================================================================
   Информационные страницы (доставка, оплата и т.п.)

   Набор повторяет оформление страницы накопительной скидки, чтобы статические
   страницы выглядели одинаково. Классы с префиксом info-, разметка лежит
   в содержимом страницы.
   ========================================================================= */
.info-page {
    max-width: 900px;
}

.info-page__lead {
    font-size: 17px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 1.75rem;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section__title {
    font-family: "Comfortaa", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #333333;
    margin: 0 0 1rem;
}

.info-card {
    padding: 1.25rem 1.5rem;
    border: 0;
    border-radius: 16px;
    background: var(--sand);
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* Перечисления с зелёными точками вместо стандартных маркеров */
.info-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-list li {
    position: relative;
    padding: .75rem 0 .75rem 1.5rem;
    border-bottom: 1px solid var(--line);
    line-height: 1.55;
    color: #333333;
}

.info-list li:last-child {
    border-bottom: 0;
}

.info-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #206040;
}

/* Пронумерованные шаги */
.info-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.info-step {
    padding: 1.5rem 1.25rem;
    border: 0;
    border-radius: 16px;
    background: var(--sand);
}

.info-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: .85rem;
    border-radius: 50%;
    background: #206040;
    color: #ffffff;
    font-family: "Comfortaa", sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.info-step__text {
    font-size: 15px;
    line-height: 1.55;
    color: #333333;
}

/* Выделенное замечание: слева зелёная полоса, фон в тон */
.info-note {
    padding: 1rem 1.25rem;
    border-left: 3px solid #206040;
    border-radius: 0 12px 12px 0;
    background: #f3f8f5;
    font-size: 15px;
    line-height: 1.55;
    color: #333333;
}

.info-note + .info-note {
    margin-top: 1rem;
}

.info-note strong {
    font-weight: 600;
}

/* Строка с почтой или телефоном внутри текста */
.info-contact {
    color: #206040;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .info-steps {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 1rem 1.15rem;
    }
}

/* =========================================================================
   Статьи блога

   Оформление задаётся по тегам внутри .info-article, а не классами на каждом
   абзаце: статью правят через визуальный редактор, и он классы не сохраняет.
   ========================================================================= */
.info-article {
    max-width: 900px;
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
}

.info-article p {
    margin-bottom: 1.15rem;
}

.info-article h2 {
    font-family: "Comfortaa", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #333333;
    margin: 2.5rem 0 1.1rem;
}

.info-article h2:first-child {
    margin-top: 0;
}

.info-article__subtitle {
    font-family: "Comfortaa", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: #333333;
    margin: 2rem 0 .9rem;
}

/* Перечисления — карточкой, как на других страницах */
.info-article ul {
    margin: 0 0 1.5rem;
    padding: 1rem 1.5rem;
    list-style: none;
    border: 0;
    border-radius: 16px;
    background: var(--sand);
}

.info-article ul li {
    position: relative;
    padding: .7rem 0 .7rem 1.5rem;
    border-bottom: 1px solid var(--line);
    line-height: 1.6;
}

.info-article ul li:last-child {
    border-bottom: 0;
}

.info-article ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #206040;
}

/* Подписи к фотографиям идут цитатой */
.info-article blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid #206040;
    border-radius: 0 12px 12px 0;
    background: #f3f8f5;
    font-size: 15px;
    line-height: 1.55;
    color: #333333;
}

.info-article blockquote p {
    margin: 0;
}

.info-article a {
    color: #206040;
    text-decoration: underline;
}

.info-article a:hover {
    color: #16432d;
}

.info-article strong {
    font-weight: 600;
}

.info-article img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (max-width: 575px) {
    .info-article h2 {
        font-size: 21px;
        margin-top: 2rem;
    }

    .info-article ul {
        padding: .75rem 1.15rem;
    }
}

/* Уровни ниже h2, нумерованные списки, таблицы и разделители —
   встречаются в остальных статьях блога. */
.info-article h3 {
    font-family: "Comfortaa", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: #333333;
    margin: 2rem 0 .9rem;
}

.info-article h4,
.info-article h5 {
    font-family: "Comfortaa", sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #333333;
    margin: 1.75rem 0 .75rem;
}

.info-article ol {
    margin: 0 0 1.5rem;
    padding: 1rem 1.5rem 1rem 2.6rem;
    border: 0;
    border-radius: 16px;
    background: var(--sand);
}

.info-article ol li {
    padding: .7rem 0;
    border-bottom: 1px solid var(--line);
    line-height: 1.6;
}

.info-article ol li:last-child {
    border-bottom: 0;
}

/* Вложенные списки — без своей рамки, иначе карточка в карточке */
.info-article li ul,
.info-article li ol {
    margin: .6rem 0 0;
    padding: 0 0 0 1.2rem;
    border: 0;
    background: none;
}

.info-article li ul li,
.info-article li ol li {
    padding: .3rem 0;
    border-bottom: 0;
}

.info-article li ul li::before {
    top: .75rem;
    width: 5px;
    height: 5px;
}

.info-article table {
    width: 100%;
    margin: 0 0 1.5rem;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
}

.info-article table th,
.info-article table td {
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.info-article table th {
    background: #f3f8f5;
    font-weight: 600;
}

.info-article hr {
    margin: 2.25rem 0 1.25rem;
    border: 0;
    border-top: 1px solid var(--line);
}

.info-article sup {
    font-size: .7em;
}

/* Подпись автора в конце статьи */
.info-article .info-article__author {
    font-size: 13px;
    color: #8a8a8a;
}

@media (max-width: 575px) {
    .info-article h3 {
        font-size: 18px;
    }

    .info-article ol {
        padding: .75rem 1.15rem .75rem 2.2rem;
    }

    .info-article table {
        display: block;
        overflow-x: auto;
    }
}

/* Карточка сравнения: в статье про бальзамы две колонки рядом */
.info-article__card {
    height: 100%;
    margin-bottom: 1rem;
    padding: 1.25rem 1.4rem;
    border: 0;
    border-radius: 16px;
    background: var(--sand);
}

.info-article__card .info-article__subtitle {
    margin-top: 0;
    text-align: center;
}

/* Внутри карточки список уже в рамке — своя не нужна */
.info-article__card ul {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.info-article__card ul li {
    padding-left: 0;
}

.info-article__card ul li::before {
    display: none;
}

/* =========================================================================
   Текст о стране под товарами (Марокко, Азербайджан, Россия) — описание
   производителя, тема выводит его внизу страницы. Разметка — .info-article,
   как у статей блога, плюс подпись сверху, вводный абзац, цитата и мелкая
   юридическая строка.
   ========================================================================= */
#product-manufacturer .brand-story {
    margin: 1.5rem 0 1rem;
}

.brand-story__eyebrow {
    margin-bottom: .6rem !important;
    color: #206040;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.5;
}

.brand-story h2 {
    font-size: 28px;
    line-height: 1.25;
}

.brand-story h3 {
    margin: 2rem 0 .9rem;
    font-family: "Comfortaa", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.brand-story__lead {
    color: #16211b;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
}

/* Миссия и «как это устроено» — крупной цитатой */
.brand-story blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    font-family: "Comfortaa", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #16211b;
}

.brand-story__tagline {
    margin: 1.75rem 0 0;
    color: #206040;
    font-family: "Comfortaa", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
}

.brand-story__ask {
    margin-bottom: .75rem !important;
}

.brand-story__contacts a {
    font-weight: 600;
    text-decoration: none;
}

.brand-story__legal {
    margin-top: 1.5rem;
    color: #8b968f;
    font-size: 13.5px;
    font-style: italic;
    line-height: 1.55;
}

@media (max-width: 575.98px) {
    .brand-story h2 {
        font-size: 22px;
    }

    .brand-story__lead,
    .brand-story blockquote,
    .brand-story__tagline {
        font-size: 16px;
    }
}

/* =========================================================================
   Карточки статей в блоге

   Картинки у статей разных пропорций. Модель отдаёт их без добивки фоном
   (четвёртый аргумент resize в контроллерах блога), а здесь мы вписываем их
   в квадрат карточки с обрезкой по центру — иначе оставались белые поля.
   ========================================================================= */
.article-item a.position-relative {
    display: block;
    overflow: hidden;
}

.article-item a.position-relative > img,
.article-item a.position-relative picture img {
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* =========================================================================
   Страница контактов
   ========================================================================= */
.contacts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-card {
    flex: 1 1 230px;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.5rem;
    border: 0;
    border-radius: 16px;
    background: var(--sand);
}

.contact-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: .9rem;
    border-radius: 50%;
    background: #fff;
}

.contact-card__icon svg {
    width: 22px;
    height: 22px;
    fill: var(--btn-green);
}

.contact-card__label {
    display: block;
    margin-bottom: .35rem;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8a8a8a;
}

.contact-card__value {
    display: block;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
    color: #333333;
    text-decoration: none;
    overflow-wrap: anywhere;
}

a.contact-card__value:hover {
    color: var(--btn-green);
    text-decoration: none;
}

/* Адрес почты длиннее телефона — кегль мельче, чтобы влезал в строку */
.contact-card__value--mail {
    font-size: 15px;
}

/* Соцсети под карточками: песочная плашка, как карточки, ссылки — белыми
   пилюлями со значком и названием. */
.contacts-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin: -1rem 0 2rem;
    padding: 1.1rem 1.5rem;
    border-radius: 16px;
    background: var(--sand);
}

.contacts-socials__title {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #8a8a8a;
}

/* =========================================================================
   Соцсети (common/ft_socials.twig): подвал и страница контактов (из шапки
   убраны 28.09.2026). Значки — голые знаки без подложки и обводки, цветом
   текста (как на studiops.ru). Задаётся высота знака (--ico-h), ширина — по
   его пропорциям; буквы VK чуть ниже, чтобы на глаз были одного размера.
   ========================================================================= */
.ft-socials {
    --ico-h: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.ft-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

.ft-social:hover,
.ft-social:focus {
    text-decoration: none;
}

.ft-social.is-empty {
    cursor: default;
}

.ft-social__ico {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    height: var(--ico-h);
}

.ft-social__ico svg {
    display: block;
    width: auto;
    height: 100%;
    fill: currentColor;
}

.ft-social--vk .ft-social__ico svg {
    height: 80%;
}

/* Подвал: белые знаки под телефонами и почтой */
.ft-socials--footer {
    --ico-h: 22px;
    gap: 18px;
    margin-top: 20px;
}

.ft-socials--footer .ft-social {
    color: #fff;
}

.ft-socials--footer a.ft-social:hover,
.ft-socials--footer a.ft-social:focus-visible {
    opacity: .75;
}

/* Страница контактов: знак цветом текста и название */
.ft-socials--page {
    --ico-h: 18px;
    gap: 12px 26px;
}

.ft-socials--page .ft-social {
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.ft-socials--page a.ft-social:hover,
.ft-socials--page a.ft-social:focus-visible {
    color: var(--btn-green);
}

.contact-card__value--second {
    margin-top: .25rem;
}

/* Адрес и режим работы — обычным начертанием, это не ссылки */
.contact-card__value--text {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
}

.contact-card__link {
    margin-top: .7rem;
    font-size: 14px;
    color: var(--btn-green);
    text-decoration: underline;
}

/* --- форма --- */
.contacts-form {
    padding: 1.75rem 2rem 2rem;
    border: 0;
    border-radius: 20px;
    background: var(--sand);
}

.contacts-form__title {
    font-family: "Comfortaa", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #333333;
    margin: 0 0 .4rem;
}

.contacts-form__hint {
    font-size: 15px;
    line-height: 1.55;
    color: #7a7a7a;
    margin-bottom: 1.4rem;
}

.contacts-form__label {
    display: block;
    margin-bottom: .35rem;
    font-size: 13px;
    font-weight: 600;
    color: #555555;
}

.contacts-form .form-control {
    height: auto;
    padding: .7rem .9rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #ffffff;
    font-size: 15px;
}

.contacts-form .form-control:focus {
    border-color: var(--btn-green);
    box-shadow: none;
}

.contacts-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.contacts-form__captcha {
    margin: .5rem 0 1rem;
}

/* У капчи от Яндекса свой заголовок и рамка — они тут лишние */
.contacts-form__captcha fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.contacts-form__captcha legend {
    display: none;
}

.contacts-form__captcha .control-label {
    font-size: 13px;
    font-weight: 600;
    color: #555555;
}

.contacts-form__agree {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: 1.25rem;
    font-size: 14px;
    line-height: 1.5;
    color: #555555;
}

.contacts-form__agree input {
    margin-top: .2rem;
    flex: 0 0 auto;
}

.contacts-form__agree label {
    margin: 0;
}

.contacts-form__submit {
    min-width: 200px;
    padding: .8rem 2rem;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
}

.contacts-locations__name {
    font-family: "Comfortaa", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: .4rem;
}

@media (max-width: 575px) {
    .contact-card {
        flex: 1 1 100%;
        padding: 1.15rem 1.25rem;
    }

    .contacts-form {
        padding: 1.4rem 1.25rem 1.6rem;
        border-radius: 16px;
    }

    .contacts-form__submit {
        width: 100%;
    }
}

/* Капча Яндекса не бывает уже 300px, а форме на экране 320px остаётся 256px —
   страница уезжала вбок на 12px. Уже 360px: поля формы чуть уже, капча чуть
   меньше. zoom, а не transform: он уменьшает и место, которое она занимает;
   нажимается капча как обычно, окно с картинками от этого не зависит */
@media (max-width: 359.98px) {
    .contacts-form {
        padding-right: 16px;
        padding-left: 16px;
    }

    .contacts-form__captcha .smart-captcha {
        zoom: .86;
    }
}

/* Скан документа или фотография с рамкой — например свидетельство на марку */
.info-figure {
    margin: 2rem 0 0;
    padding: 1rem;
    border: 0;
    border-radius: 16px;
    background: var(--sand);
    text-align: center;
}

.info-figure img {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.info-figure figcaption {
    margin-top: .75rem;
    font-size: 13px;
    color: #8a8a8a;
}

.info-card p:last-child,
.info-note p:last-child {
    margin-bottom: 0;
}

/* =========================================================================
   Страница «Производители» — карточки стран
   ========================================================================= */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 2rem;
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.brand-card:hover,
.brand-card:focus {
    border-color: var(--btn-green);
    box-shadow: 0 6px 18px rgba(32, 96, 64, .10);
    text-decoration: none;
    transform: translateY(-2px);
}

.brand-card__logo {
    display: block;
    margin-bottom: .85rem;
}

.brand-card__logo img {
    max-height: 56px;
    width: auto;
}

.brand-card__name {
    font-family: "Comfortaa", sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: #333333;
}

.brand-card:hover .brand-card__name {
    color: var(--btn-green);
}

.brand-card__count {
    margin-top: .45rem;
    font-size: 13px;
    line-height: 1.4;
    color: #8a8a8a;
}

@media (prefers-reduced-motion: reduce) {
    .brand-card { transition: none; }
    .brand-card:hover { transform: none; }
}

@media (max-width: 575px) {
    .brand-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .brand-card {
        min-height: 110px;
        padding: 1.1rem .9rem;
    }

    .brand-card__name {
        font-size: 16px;
    }
}

/* =========================================================================
   Фильтр каталога (gigantfilter) — под оформление сайта

   Правила продублированы для двух случаев: на десктопе панель внутри
   #gigantfilter, на мобильных модуль переносит .gf-drawer в body.
   Вес селектора выше, чем у таблицы модуля, поэтому !important не нужен.
   ========================================================================= */

/* --- карточка фильтра --- */
#gigantfilter .gf-filter {
    margin-bottom: 12px;
    padding: 2px 18px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: none;
}

#gigantfilter .gf-filter-header {
    padding: 14px 0 10px;
    border: 0;
    background: none;
}

#gigantfilter .gf-filter-name {
    font-family: "Comfortaa", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #333333;
    text-transform: none;
    letter-spacing: 0;
}

#gigantfilter .gf-arrow {
    border-top-color: #9aa8a0;
    border-left-color: transparent;
    border-right-color: transparent;
}

#gigantfilter .gf-filter-body {
    padding: 0;
    max-height: none;
    overflow-y: visible;
}

/* --- значения --- */
#gigantfilter .gf-value {
    padding: 3px 0;
}

#gigantfilter .gf-value-label,
#gigantfilter .gf-value label {
    align-items: center;
    padding: 4px 0;
    font-size: 15px;
    line-height: 1.45;
    color: #333333;
}

#gigantfilter .gf-value label:hover .gf-value-name {
    color: var(--btn-green);
}

/* Кружок вместо квадратика, отметка — зелёная */
#gigantfilter .gf-value input[type="checkbox"],
#gigantfilter .gf-value input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: #ffffff;
    transition: background-color .15s ease, border-color .15s ease;
}

#gigantfilter .gf-value label:hover input[type="checkbox"],
#gigantfilter .gf-value label:hover input[type="radio"] {
    border-color: var(--btn-green);
}

#gigantfilter .gf-value input[type="checkbox"]:checked,
#gigantfilter .gf-value input[type="radio"]:checked {
    border-color: var(--btn-green);
    background: var(--btn-green);
}

#gigantfilter .gf-value input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#gigantfilter .gf-value input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
}

#gigantfilter .gf-value.gf-selected .gf-value-name {
    font-weight: 600;
    color: var(--btn-green);
}

#gigantfilter .gf-count {
    font-size: 13px;
    color: #a3aea8;
}

/* --- поиск по значениям и «показать ещё» --- */
#gigantfilter .gf-value-search {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
}

#gigantfilter .gf-value-search:focus {
    border-color: var(--btn-green);
}

#gigantfilter .gf-show-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--btn-green);
}

/* --- ползунок цены --- */
#gigantfilter .gf-slider-track {
    height: 4px;
    border-radius: 2px;
    background: #e6ebe8;
}

#gigantfilter .gf-slider-fill,
#gigantfilter .gf-slider-range {
    background: var(--btn-green);
}

#gigantfilter .gf-slider-handle {
    width: 18px;
    height: 18px;
    border: 2px solid var(--btn-green);
    background: #ffffff;
}

#gigantfilter .gf-slider-handle:hover,
#gigantfilter .gf-slider-handle:active {
    box-shadow: 0 0 0 5px rgba(32, 96, 64, .14);
}

#gigantfilter .gf-slider-inputs {
    gap: 8px;
}

#gigantfilter .gf-slider-input {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

#gigantfilter .gf-slider-input:focus {
    border-color: var(--btn-green);
    outline: none;
}

#gigantfilter .gf-slider-separator {
    color: #a3aea8;
}

/* --- выбранные значения --- */
#gigantfilter .gf-tag {
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #f3f8f5;
    font-size: 13px;
    color: var(--btn-green);
}

#gigantfilter .gf-tag-remove {
    color: #6f8a7c;
}

#gigantfilter .gf-tag-remove:hover {
    background: #e3efe8;
    color: var(--btn-green);
}

#gigantfilter .gf-clear-all {
    font-size: 13px;
    color: #a3aea8;
}

#gigantfilter .gf-clear-all:hover {
    color: #b5423a;
}

/* --- кнопка применения --- */
#gigantfilter .gf-btn-apply-filter {
    padding: 12px 24px;
    border-radius: 24px;
    background: var(--btn-green);
    font-size: 15px;
    font-weight: 600;
}

#gigantfilter .gf-btn-apply-filter:hover {
    background: var(--btn-green-hover);
}

#gigantfilter .gf-btn-apply-filter:active {
    background: var(--btn-green-active);
}

/* --- шапка выдвижной панели --- */
#gigantfilter .gf-drawer-title {
    font-family: "Comfortaa", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #333333;
}

#gigantfilter .gf-drawer-close {
    color: #8a8a8a;
}

#gigantfilter .gf-drawer-close:hover {
    color: var(--btn-green);
}

#gigantfilter .gf-btn-toggle-filters {
    box-shadow: none;
}

#gigantfilter .gf-drawer-header {
    box-shadow: none;
}


/* --- карточка фильтра --- */
body > .gf-drawer .gf-filter {
    margin-bottom: 12px;
    padding: 2px 18px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: none;
}

body > .gf-drawer .gf-filter-header {
    padding: 14px 0 10px;
    border: 0;
    background: none;
}

body > .gf-drawer .gf-filter-name {
    font-family: "Comfortaa", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #333333;
    text-transform: none;
    letter-spacing: 0;
}

body > .gf-drawer .gf-arrow {
    border-top-color: #9aa8a0;
    border-left-color: transparent;
    border-right-color: transparent;
}

body > .gf-drawer .gf-filter-body {
    padding: 0;
    max-height: none;
    overflow-y: visible;
}

/* --- значения --- */
body > .gf-drawer .gf-value {
    padding: 3px 0;
}

body > .gf-drawer .gf-value-label,
body > .gf-drawer .gf-value label {
    align-items: center;
    padding: 4px 0;
    font-size: 15px;
    line-height: 1.45;
    color: #333333;
}

body > .gf-drawer .gf-value label:hover .gf-value-name {
    color: var(--btn-green);
}

/* Кружок вместо квадратика, отметка — зелёная */
body > .gf-drawer .gf-value input[type="checkbox"],
body > .gf-drawer .gf-value input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    background: #ffffff;
    transition: background-color .15s ease, border-color .15s ease;
}

body > .gf-drawer .gf-value label:hover input[type="checkbox"],
body > .gf-drawer .gf-value label:hover input[type="radio"] {
    border-color: var(--btn-green);
}

body > .gf-drawer .gf-value input[type="checkbox"]:checked,
body > .gf-drawer .gf-value input[type="radio"]:checked {
    border-color: var(--btn-green);
    background: var(--btn-green);
}

body > .gf-drawer .gf-value input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body > .gf-drawer .gf-value input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
}

body > .gf-drawer .gf-value.gf-selected .gf-value-name {
    font-weight: 600;
    color: var(--btn-green);
}

body > .gf-drawer .gf-count {
    font-size: 13px;
    color: #a3aea8;
}

/* --- поиск по значениям и «показать ещё» --- */
body > .gf-drawer .gf-value-search {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
}

body > .gf-drawer .gf-value-search:focus {
    border-color: var(--btn-green);
}

body > .gf-drawer .gf-show-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--btn-green);
}

/* --- ползунок цены --- */
body > .gf-drawer .gf-slider-track {
    height: 4px;
    border-radius: 2px;
    background: #e6ebe8;
}

body > .gf-drawer .gf-slider-fill,
body > .gf-drawer .gf-slider-range {
    background: var(--btn-green);
}

body > .gf-drawer .gf-slider-handle {
    width: 18px;
    height: 18px;
    border: 2px solid var(--btn-green);
    background: #ffffff;
}

body > .gf-drawer .gf-slider-handle:hover,
body > .gf-drawer .gf-slider-handle:active {
    box-shadow: 0 0 0 5px rgba(32, 96, 64, .14);
}

body > .gf-drawer .gf-slider-inputs {
    gap: 8px;
}

body > .gf-drawer .gf-slider-input {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

body > .gf-drawer .gf-slider-input:focus {
    border-color: var(--btn-green);
    outline: none;
}

body > .gf-drawer .gf-slider-separator {
    color: #a3aea8;
}

/* --- выбранные значения --- */
body > .gf-drawer .gf-tag {
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #f3f8f5;
    font-size: 13px;
    color: var(--btn-green);
}

body > .gf-drawer .gf-tag-remove {
    color: #6f8a7c;
}

body > .gf-drawer .gf-tag-remove:hover {
    background: #e3efe8;
    color: var(--btn-green);
}

body > .gf-drawer .gf-clear-all {
    font-size: 13px;
    color: #a3aea8;
}

body > .gf-drawer .gf-clear-all:hover {
    color: #b5423a;
}

/* --- кнопка применения --- */
body > .gf-drawer .gf-btn-apply-filter {
    padding: 12px 24px;
    border-radius: 24px;
    background: var(--btn-green);
    font-size: 15px;
    font-weight: 600;
}

body > .gf-drawer .gf-btn-apply-filter:hover {
    background: var(--btn-green-hover);
}

body > .gf-drawer .gf-btn-apply-filter:active {
    background: var(--btn-green-active);
}

/* --- шапка выдвижной панели --- */
body > .gf-drawer .gf-drawer-title {
    font-family: "Comfortaa", sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #333333;
}

body > .gf-drawer .gf-drawer-close {
    color: #8a8a8a;
}

body > .gf-drawer .gf-drawer-close:hover {
    color: var(--btn-green);
}

body > .gf-drawer .gf-btn-toggle-filters {
    box-shadow: none;
}

body > .gf-drawer .gf-drawer-header {
    box-shadow: none;
}

/* =========================================================================
   Товар: плашка «Купить» снизу — выезжает, когда блок с кнопкой «В корзину»
   ушёл выше экрана (как на topteleskop.ru). Разметку и логику создаёт common.js.
   ========================================================================= */
.stickybuy {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    border-top: 1px solid var(--line);
    background: rgba(251, 248, 243, .92);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    visibility: hidden;
    transform: translateY(101%);
    transition: transform .5s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .5s;
}

.stickybuy.is-on {
    visibility: visible;
    transform: none;
    transition: transform .5s cubic-bezier(.16, 1, .3, 1), visibility 0s;
}

.stickybuy__in {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.stickybuy__img {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    padding: 4px;
    border-radius: 14px;
    background: #fff;
    object-fit: contain;
}

.stickybuy__name {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    color: #16211b;
    font-family: "Comfortaa", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stickybuy__price {
    color: #16211b;
    font-size: 19px;
    font-weight: 600;
    white-space: nowrap;
}

.stickybuy__price s {
    margin-left: 8px;
    color: #8b968f;
    font-size: 14px;
    font-weight: 400;
}

.stickybuy__btn {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 32px;
    border: 0;
    border-radius: 22px;
    background: var(--btn-green);
    color: #fff;
    font-family: "Comfortaa", sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .2s ease;
}

.stickybuy__btn:hover {
    background: var(--btn-green-hover);
}

.stickybuy__btn.is-incart {
    background: #16211b;
}

.stickybuy__btn:disabled {
    opacity: .6;
    cursor: default;
}

/* Место под плашку в конце страницы, чтобы она не закрывала подвал */
body.has-stickybuy {
    padding-bottom: 77px;
    padding-bottom: calc(77px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 575.98px) {
    .stickybuy__in {
        gap: 14px;
    }

    .stickybuy__img,
    .stickybuy__name {
        display: none;
    }

    .stickybuy__price {
        font-size: 18px;
    }

    .stickybuy__btn {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stickybuy,
    .stickybuy.is-on {
        transition: none;
    }
}

/* =========================================================================
   Внутренние страницы — вход, регистрация, кабинет, статьи, контакты,
   оформление заказа, поиск, акции, производители, блог: без белых подложек,
   в стилистике прототипа.
   - содержательные блоки — песочные панели без рамки (радиус 20px);
   - поля — «таблетки»: песочные на кремовом фоне, белые внутри панелей
     (как поиск в шапке);
   - кнопки — «таблетки», второстепенные — контурные;
   - линии, таблицы, листание — цветами --line / --line-soft.
   Всё внутри #content: шапка с поиском и подвал не затрагиваются.
   ========================================================================= */

/* --- заголовок страницы ------------------------------------------------- */
#content h1.h2,
#content:is(.simpleregister-page, .simpleedit-page, .simpleaddress-page, .simplecheckout-page) h1 {
    color: #333;
    font-family: "Comfortaa", sans-serif;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
}

#content:is(.simpleregister-page, .simpleedit-page, .simpleaddress-page, .simplecheckout-page) h1 {
    margin-bottom: 24px;
}

/* Вход и восстановление пароля — узкая колонка: заголовок в одну строку */
#account-login #content h1.h2,
#account-forgotten #content h1.h2 {
    font-size: 26px;
}

/* --- белые карточки Bootstrap → песочные панели ------------------------- */
#content .card {
    border: 0;
    border-radius: 20px;
    background: var(--sand);
}

#content .card > .card-body {
    padding: 24px;
}

#content .card > .card-header,
#content .card > .card-footer {
    padding: 18px 24px;
    border-color: var(--line);
    background: transparent;
}

#content .card .bg-light {
    background: transparent !important;
}

/* Шапки блоков оформления заказа (simple.css грузится позже my.css) */
#content .simple-content .checkout-heading {
    padding: 18px 24px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: #333;
}

#content .card > .card-header :is(.h5, h5),
#content .simple-content .checkout-heading :is(.h5, h5) {
    margin: 0;
    color: #333;
    font-family: "Comfortaa", sans-serif;
    font-size: 20px;
    font-weight: 700;
}

/* Меню кабинета (список внутри панели) */
#content .card .list-group-item {
    padding: 14px 24px !important;
    border-color: var(--line);
    background: transparent;
    color: #16211b;
}

#content .card .list-group-item-action:hover,
#content .card .list-group-item-action:focus {
    background: rgba(255, 255, 255, .55);
    color: var(--btn-green);
}

/* Серые формы с рамкой (подарочный сертификат, возврат) */
#content form.bg-light {
    padding: 28px !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: var(--sand) !important;
}

/* --- поля --------------------------------------------------------------- */
#content .form-control,
#content .custom-select {
    height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 100px;
    background-color: var(--sand);
    color: #16211b;
    font-size: 15px;
    box-shadow: none;
}

#content select.form-control,
#content .custom-select {
    padding-right: 40px;
}

#content textarea.form-control {
    height: auto;
    min-height: 120px;
    padding: 14px 20px;
    border-radius: 20px;
}

#content .form-control::placeholder {
    color: #8b968f;
}

#content .form-control:focus,
#content .custom-select:focus {
    border-color: var(--btn-green);
    background-color: #fff;
}

/* Внутри песочных панелей поля белые */
#content :is(.card, form.bg-light, .contacts-form, .info-card) :is(.form-control, .custom-select) {
    background-color: #fff;
}

#content .has-error .form-control,
#content .form-control.is-invalid {
    border-color: #b4623a;
}

/* Маленькие группы (количество в корзине) остаются компактными */
#content .input-group-sm > .form-control {
    height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
    border-radius: 0;
}

/* Поле и кнопка рядом — одна «таблетка» */
#content .input-group > .form-control:not(:last-child),
#content .input-group > .custom-select:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#content .input-group > .input-group-prepend ~ .form-control,
#content .input-group > .input-group-prepend ~ .custom-select {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#content .input-group > .input-group-append > .btn {
    border-radius: 0 100px 100px 0;
}

#content .input-group > .input-group-prepend > :is(.btn, .input-group-text) {
    border-radius: 100px 0 0 100px;
}

#content .input-group-text {
    border: 0;
    background: var(--sand) !important;
    color: #5a6760;
}

/* Галочки и переключатели — зелёные */
#content input[type="checkbox"],
#content input[type="radio"] {
    accent-color: var(--btn-green);
}

#content .custom-control-label::before {
    border-color: var(--line);
    background-color: #fff;
}

#content .custom-checkbox .custom-control-label::before {
    border-radius: 6px;
}

#content .custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--btn-green);
    background-color: var(--btn-green);
}

/* --- кнопки ------------------------------------------------------------- */
#content .btn:not(.input-group .btn):not(.btn-dot):not(.btn-link):not(.ft-stepper-btn) {
    border-radius: 100px;
}

#content :is(.btn-primary, .btn-success, .btn-danger, .btn-secondary, .btn-outline-secondary, .btn-light, .btn-default, .btn-info):not(.btn-sm):not(.input-group .btn):not(.ft-stepper-btn):not(.btn-cart-add) {
    min-height: 46px;
}

#content :is(.btn-secondary, .btn-outline-secondary, .btn-light, .btn-default, .btn-info):not(.ft-stepper-btn):not(.btn-cart-add) {
    border: 1px solid var(--line) !important;
    background: transparent;
    color: #16211b !important;
}

#content :is(.btn-secondary, .btn-outline-secondary, .btn-light, .btn-default, .btn-info):not(.ft-stepper-btn):not(.btn-cart-add):hover,
#content :is(.btn-secondary, .btn-outline-secondary, .btn-light, .btn-default, .btn-info):not(.ft-stepper-btn):not(.btn-cart-add):focus {
    border-color: var(--btn-green) !important;
    background: transparent;
    color: var(--btn-green) !important;
}

/* --- подписка на новости: «Да / Нет» переключателем --------------------- */
/* Два варианта — «таблетки» в общей пилюле, выбранный залит зелёным. Сами
   радиокнопки настоящие (скрыты визуально, не display:none): работают
   стрелками и Tab, уходят с формой как раньше. Разметка двух видов:
   - регистрация и данные в кабинете (модуль Simple): .form-group с
     «_newsletter» в классе > div > .radio > label > input + текст;
   - страница «Подписка на новости» в кабинете: .ft-segment > label > input
     + span (account/newsletter.twig). */
#content .form-group[class*="_newsletter"] div:has(> .radio),
#content .ft-segment {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 4px;
    border-radius: 100px;
    background: #fff;
}

/* На кремовом фоне страницы (не в песочной панели) — песочная, как поля */
#account-newsletter #content .ft-segment {
    background: var(--sand);
}

#content .form-group[class*="_newsletter"] .radio {
    margin: 0;
    padding: 0;
}

#content .form-group[class*="_newsletter"] .radio > label,
#content .ft-segment > label {
    position: relative;
    /* !important — simple.css ставит всем label в формах Simple
       display: inline-block !important, текст уезжал к верхнему краю */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    height: 40px;
    margin: 0;
    padding: 0 22px;
    border-radius: 100px;
    color: #16211b;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .2s ease, color .2s ease;
}

#content .form-group[class*="_newsletter"] .radio > label > input,
#content .ft-segment > label > input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

@media (hover: hover) {
    #content .form-group[class*="_newsletter"] .radio > label:hover,
    #content .ft-segment > label:hover {
        color: var(--btn-green);
    }
}

#content .form-group[class*="_newsletter"] .radio > label:has(> input:checked),
#content .ft-segment > label:has(> input:checked) {
    background: var(--btn-green);
    color: #fff;
}

/* Фокус с клавиатуры — кольцо вокруг выбранного варианта */
#content .form-group[class*="_newsletter"] .radio > label:has(> input:focus-visible),
#content .ft-segment > label:has(> input:focus-visible) {
    outline: 2px solid var(--btn-green);
    outline-offset: 2px;
}

/* Подпись поля — над переключателем, с тем же шагом, что у полей */
#content .form-group[class*="_newsletter"] > .control-label,
#account-newsletter #content .form-group > label:first-child {
    display: block;
    margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
    #content .form-group[class*="_newsletter"] .radio > label,
    #content .ft-segment > label {
        transition: none;
    }
}

/* Кнопки «Назад» и «Изменить» на странице подписки — одной высоты и в ряд.
   Ссылка-кнопка с min-height держала текст у верхнего края, а кнопка
   формы — по центру: выравниваем обе флексом. */
#account-newsletter #content .ft-form-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

#account-newsletter #content .ft-form-buttons > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 46px;
    margin: 0;
    padding: 0 28px;
    font-size: 15px;
    line-height: 1;
}

@media (max-width: 575.98px) {
    #account-newsletter #content .ft-form-buttons > .btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* «Зарегистрироваться» — тоже ссылка-кнопка: текст был на 4px выше центра.
   flex, а не inline-flex: кнопка остаётся блочной, на своём месте */
#content #simpleregister_button_confirm {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- таблицы и линии ---------------------------------------------------- */
#content hr {
    border-top-color: var(--line);
}

#content .table th,
#content .table td,
#content .table-bordered,
#content .table-bordered th,
#content .table-bordered td {
    border-color: var(--line);
}

#content .table-bordered thead th,
#content .table-bordered thead td {
    border-bottom-width: 1px;
}

#content tr.bg-light {
    background-color: var(--sand) !important;
}

#content .table-hover tbody tr:hover {
    background-color: rgba(242, 237, 228, .6);
}

/* --- листание страниц (везде одинаковое) ------------------------------- */
.pagination {
    flex-wrap: wrap;
    gap: 6px;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 !important;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 100px !important;
    background: transparent;
    color: #16211b !important;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    border-color: var(--btn-green);
    background: transparent;
    color: var(--btn-green) !important;
}

.pagination .page-item.active .page-link {
    border-color: var(--btn-green);
    background: var(--btn-green);
    color: #fff !important;
}

/* --- блог: карточки как в журнале прототипа (без подложки) -------------- */
#blog-latest .article-item > .bg-white,
#blog-latest .article-item.bg-white {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

#blog-latest .article-item a.position-relative {
    overflow: hidden;
    border-radius: 20px;
    background: var(--sand);
}

#blog-latest .article-item .px-3 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

#blog-latest .article-item a.h5 {
    margin-bottom: 10px !important;
    color: #333 !important;
    font-family: "Comfortaa", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

#blog-latest .article-item a.h5:hover {
    color: var(--btn-green) !important;
}

#blog-latest .article-item p.text-secondary {
    color: #5a6760 !important;
    font-size: 14.5px;
    font-weight: 400 !important;
}

#blog-latest .badge-light {
    background: var(--sand);
}

/* --- оформление заказа -------------------------------------------------- */
/* Способы доставки — плитки как у способов оплаты (блок ниже): слева
   настоящая радиокнопка (input, перерисован CSS), значок способа, название
   и цена. Выбранная — зелёная рамка и бледно-зелёный фон, кликается вся
   плитка. Разметка — simplecheckout_shipping.twig: группы .delivery-point
   (магазин, ApiShip; .pickup — модуль «Самовывоз») > .form-check > input +
   label > div (название, .quote-price). Встроенный стиль шаблона даёт плитке
   серый фон, отступы 20px 40px и ширину 50%, а скрипт шаблона ставит
   отмеченной инлайном border: 2px solid green — рамку перебиваем !important.
   Сетка как у оплаты: две колонки, если плитке хватает 300px (при
   992–1199px колонка узкая — одна), до 768px — одна; единственный способ в
   группе и самовывоз .pickup — во всю ширину. */
#content #simplecheckout_shipping .delivery-point {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    grid-auto-flow: row dense;
    gap: 16px;
}

@media (max-width: 768px) {
    #content #simplecheckout_shipping .delivery-point {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Описание и поля способа Simple выводит в группе сразу за его плиткой —
   строкой во всю ширину под плитками */
#content #simplecheckout_shipping .delivery-point > :not(.form-check),
#content #simplecheckout_shipping .delivery-point.pickup > .form-check {
    grid-column: 1 / -1;
}

#content #simplecheckout_shipping .delivery-point .form-check {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    min-width: 0;
    min-height: 76px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line) !important;
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

@media (hover: hover) {
    #content #simplecheckout_shipping .delivery-point .form-check:hover {
        border-color: rgba(32, 96, 64, .45) !important;
    }
}

/* Выбранный способ: рамка 2px (вторая линия — тенью, текст не сдвигается) */
#content #simplecheckout_shipping .delivery-point .form-check:has(> .form-check-input:checked) {
    border-color: var(--btn-green) !important;
    background: #f3f7f4;
    box-shadow: inset 0 0 0 1px var(--btn-green);
}

/* Фокус с клавиатуры — кольцо вокруг всей плитки */
#content #simplecheckout_shipping .delivery-point .form-check:has(> .form-check-input:focus-visible) {
    outline: 2px solid var(--btn-green);
    outline-offset: 3px;
}

/* Радиокнопка: настоящий input, нарисованный заново */
#content #simplecheckout_shipping .delivery-point .form-check-input {
    position: absolute;
    top: 50%;
    left: 18px;
    z-index: 2;
    width: 20px;
    height: 20px;
    margin: -10px 0 0;
    border: 1.5px solid #8b968f;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

#content #simplecheckout_shipping .delivery-point .form-check-input:checked {
    border-color: var(--btn-green);
    background: var(--btn-green);
    box-shadow: inset 0 0 0 4px #fff;
}

#content #simplecheckout_shipping .delivery-point .form-check-input:focus {
    outline: none;
}

/* Подпись: утилиты ml-1 mb-1 — с !important; ширину и высоту 100% задаёт
   встроенный стиль шаблона. Адрес выбранного пункта переносится и по
   длинным словам. */
#content #simplecheckout_shipping .delivery-point .form-check-label {
    display: block;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0 !important;
    padding: 14px 18px 14px 104px;
    color: #16211b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Цена — под названием, зелёным цветом сайта */
#content #simplecheckout_shipping .delivery-point .quote-price {
    width: auto;
    margin-top: 2px;
    color: var(--btn-green);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

/* Значок способа — песочный квадрат, на выбранной плитке белый.
   Посылка — для способов без своего значка. */
#content #simplecheckout_shipping .delivery-point .form-check-label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50px;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border-radius: 12px;
    background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23206040' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 7.5 12 3 3 7.5v9L12 21l9-4.5z'/%3E%3Cpath d='M3 7.5 12 12l9-4.5M12 12v9M7.5 5.25l9 4.5'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
    transition: background-color .2s ease;
}

/* Курьер (магазина и СДЭК, до двери) — фургон */
#content #simplecheckout_shipping .delivery-point .form-check-label:is([for="filterit0.filterit0"], [for^="apiship.door"])::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23206040' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 16.5V6.5a1 1 0 0 0-1-1h-10a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1H5M9 16.5h6M14.5 9.5h3.7a1 1 0 0 1 .8.4l2.3 3a1 1 0 0 1 .2.6v2a1 1 0 0 1-1 1H19'/%3E%3Ccircle cx='7' cy='16.5' r='2'/%3E%3Ccircle cx='17' cy='16.5' r='2'/%3E%3C/svg%3E");
}

/* Пункт выдачи (ApiShip) — метка на карте */
#content #simplecheckout_shipping .delivery-point .form-check-label[for^="apiship.point"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23206040' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.7-6.5-11.2a6.5 6.5 0 0 1 13 0C18.5 15.3 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.8' r='2.4'/%3E%3C/svg%3E");
}

/* Самовывоз из магазина — магазин */
#content #simplecheckout_shipping .delivery-point .form-check-label:is([for="filterit0.filterit1"], [for^="pickup."])::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23206040' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4.5h14l1.5 5a2.83 2.83 0 0 1-5.67 0 2.83 2.83 0 0 1-5.66 0 2.83 2.83 0 0 1-5.67 0z'/%3E%3Cpath d='M5 12.3v7.2h14v-7.2M10 19.5V15h4v4.5'/%3E%3C/svg%3E");
}

#content #simplecheckout_shipping .delivery-point .form-check:has(> .form-check-input:checked) .form-check-label::before {
    background-color: #fff;
}

/* Своя картинка способа из настроек (quote.img, прямо в подписи) — на месте
   значка; логотип в названии (quote.image) — высотой со строку */
#content #simplecheckout_shipping .delivery-point .form-check-label:has(> img)::before {
    content: none;
}

#content #simplecheckout_shipping .delivery-point .form-check-label > img {
    position: absolute;
    top: 50%;
    left: 50px;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 !important;
    padding: 4px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

#content #simplecheckout_shipping .delivery-point .form-check-label div > img {
    max-width: 64px;
    max-height: 22px;
    margin-right: 6px;
    object-fit: contain;
    vertical-align: middle;
}

/* Область клика — вся плитка, а не только текст */
#content #simplecheckout_shipping .delivery-point .form-check-label::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    border-radius: inherit;
}

/* «выбрать ПВЗ» / «сменить ПВЗ» — поверх области клика, одним куском.
   Скрытый значок загрузки ApiShip внутри ссылки места не занимает. */
#content #simplecheckout_shipping .delivery-point .form-check-label a {
    position: relative;
    z-index: 3;
    white-space: nowrap;
}

#content #simplecheckout_shipping .delivery-point .apiship_loading[style*="hidden"] {
    display: none;
}

/* Недоступный способ */
#content #simplecheckout_shipping .delivery-point .form-check:has(> .form-check-input:disabled) {
    opacity: .55;
}

#content #simplecheckout_shipping .delivery-point .form-check:has(> .form-check-input:disabled) :is(.form-check-input, .form-check-label) {
    cursor: not-allowed;
}

/* Описание способа (если задано в настройках) — под плитками, приглушённое */
#content #simplecheckout_shipping .delivery-point > label.d-block {
    margin: -4px 0 0;
    padding: 0 4px;
    color: #5a6760;
    font-size: 14px;
    font-weight: 400;
}

/* Узкий телефон: без значка, тексту больше места */
@media (max-width: 374.98px) {
    #content #simplecheckout_shipping .delivery-point .form-check-label {
        padding-left: 52px;
    }

    #content #simplecheckout_shipping .delivery-point .form-check-label::before,
    #content #simplecheckout_shipping .delivery-point .form-check-label > img {
        display: none;
    }
}

/* Режим высокой контрастности Windows: системная радиокнопка */
@media (forced-colors: active) {
    #content #simplecheckout_shipping .delivery-point .form-check-input {
        -webkit-appearance: auto;
        appearance: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    #content #simplecheckout_shipping .delivery-point .form-check,
    #content #simplecheckout_shipping .delivery-point .form-check-input,
    #content #simplecheckout_shipping .delivery-point .form-check-label::before {
        transition: none;
    }
}

/* Балун карты ПВЗ (ApiShip): кнопка «Забрать отсюда» — это ссылка
   <a class="list_item btn btn-success"> из apiship.js. Общий min-height 46px
   для кнопок в #content растягивал её, а текст ссылки оставался в строке
   сверху (10px сверху, 19px снизу); шрифт балуна Яндекс.Карт — Arial.
   Второй селектор — для модального режима карты вне #content. */
#content #apiship_yandex_map_container a.list_item,
#apiship_yandex_map_container a.list_item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 8px 0 2px;
    padding: 0 24px;
    border-radius: 100px;
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}

/* Текст балуна — шрифтом сайта. Заголовок пункта в apiship.js задан
   инлайном 1.3em — на телефоне из-за него кнопка уходила под обрез панели */
#apiship_yandex_map_container [class*="balloon__content"] {
    font-family: "Open Sans", sans-serif;
    color: #16211b;
}

#apiship_yandex_map_container [class*="balloon__content"] h3 {
    font-size: 16px !important;
    line-height: 1.35;
}

/* Способы оплаты — плитки в той же сетке, что и способы доставки: белая
   плитка, слева настоящая радиокнопка (input, перерисован CSS), значок и
   название. Выбранная — зелёная рамка и бледно-зелёный фон. Кликается вся
   плитка: псевдоэлемент подписи растянут на неё. Только CSS по :checked и
   :has() — Simple перерисовывает оформление аяксом целиком, отмеченный
   способ приходит в разметке (checked="checked"), скрипты не нужны.
   Две колонки, если плитке хватает 300px (при 992–1199px колонка узкая —
   одна), до 768px — одна, как у доставки; единственный способ — во всю ширину. */
#content #simplecheckout_payment .simplecheckout-block-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    #content #simplecheckout_payment .simplecheckout-block-content {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Клирфикс из simple.css в сетке стал бы лишней пустой ячейкой */
#content #simplecheckout_payment .simplecheckout-block-content::after {
    content: none;
}

/* Сообщение об ошибке, описания, поля способа — на всю ширину */
#content #simplecheckout_payment .simplecheckout-block-content > :not(.form-check) {
    grid-column: 1 / -1;
}

/* Отступ до плиток даёт сетка */
#content #simplecheckout_payment .simplecheckout-block-content > .alert {
    margin-bottom: 0 !important;
}

#content #simplecheckout_payment .form-check {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 76px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

@media (hover: hover) {
    #content #simplecheckout_payment .form-check:hover {
        border-color: rgba(32, 96, 64, .45);
    }
}

/* Выбранный способ: рамка 2px (вторая линия — тенью, текст не сдвигается) */
#content #simplecheckout_payment .form-check:has(> .form-check-input:checked) {
    border-color: var(--btn-green);
    background: #f3f7f4;
    box-shadow: inset 0 0 0 1px var(--btn-green);
}

/* Фокус с клавиатуры — кольцо вокруг всей плитки */
#content #simplecheckout_payment .form-check:has(> .form-check-input:focus-visible) {
    outline: 2px solid var(--btn-green);
    outline-offset: 3px;
}

/* Радиокнопка: настоящий input, нарисованный заново */
#content #simplecheckout_payment .form-check-input {
    position: absolute;
    top: 50%;
    left: 18px;
    z-index: 2;
    width: 20px;
    height: 20px;
    margin: -10px 0 0;
    border: 1.5px solid #8b968f;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

#content #simplecheckout_payment .form-check-input:checked {
    border-color: var(--btn-green);
    background: var(--btn-green);
    box-shadow: inset 0 0 0 4px #fff;
}

#content #simplecheckout_payment .form-check-input:focus {
    outline: none;
}

/* Подпись: утилиты ml-1 mb-1 в шаблоне — с !important; ширину и высоту 100%
   задаёт встроенный стиль шаблона доставки */
#content #simplecheckout_payment .form-check-label {
    display: block;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0 !important;
    padding: 14px 18px 14px 104px;
    color: #16211b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Значок способа — песочный квадрат, на выбранной плитке белый.
   Кошелёк — для способов без своего значка. */
#content #simplecheckout_payment .form-check-label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50px;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border-radius: 12px;
    background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23206040' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 7V5.5A1.5 1.5 0 0 0 16.5 4h-11A2.5 2.5 0 0 0 3 6.5v11A2.5 2.5 0 0 0 5.5 20h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 18.5 8h-13A2 2 0 0 1 3 6.5'/%3E%3Cpath d='M16 14h.01'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
    transition: background-color .2s ease;
}

/* ЮKassa — банковская карта */
#content #simplecheckout_payment .form-check-label[for="yoomoney"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23206040' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2.5'/%3E%3Cpath d='M2.5 10h19M6.5 15h4'/%3E%3C/svg%3E");
}

/* Оплата при доставке — посылка */
#content #simplecheckout_payment .form-check-label[for="cod"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23206040' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 7.5 12 3 3 7.5v9L12 21l9-4.5z'/%3E%3Cpath d='M3 7.5 12 12l9-4.5M12 12v9M7.5 5.25l9 4.5'/%3E%3C/svg%3E");
}

#content #simplecheckout_payment .form-check:has(> .form-check-input:checked) .form-check-label::before {
    background-color: #fff;
}

/* Область клика — вся плитка, а не только текст */
#content #simplecheckout_payment .form-check-label::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    border-radius: inherit;
}

/* Ссылки в условиях способа — поверх области клика */
#content #simplecheckout_payment .form-check-label a {
    position: relative;
    z-index: 3;
}

/* Недоступный способ */
#content #simplecheckout_payment .form-check:has(> .form-check-input:disabled) {
    opacity: .55;
}

#content #simplecheckout_payment .form-check:has(> .form-check-input:disabled) :is(.form-check-input, .form-check-label) {
    cursor: not-allowed;
}

/* Описание способа (если задано в настройках) — под плитками, приглушённое */
#content #simplecheckout_payment .simplecheckout-block-content > label.d-block {
    margin: -4px 0 0;
    padding: 0 4px;
    color: #5a6760;
    font-size: 14px;
    font-weight: 400;
}

/* Узкий телефон: без значка, тексту больше места */
@media (max-width: 374.98px) {
    #content #simplecheckout_payment .form-check-label {
        padding-left: 52px;
    }

    #content #simplecheckout_payment .form-check-label::before {
        content: none;
    }
}

/* Режим высокой контрастности Windows: системная радиокнопка */
@media (forced-colors: active) {
    #content #simplecheckout_payment .form-check-input {
        -webkit-appearance: auto;
        appearance: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    #content #simplecheckout_payment .form-check,
    #content #simplecheckout_payment .form-check-input,
    #content #simplecheckout_payment .form-check-label::before {
        transition: none;
    }
}

/* Согласие с условиями: в simple.css ширина 500px — шире правой колонки,
   куда скрипт переносит кнопку заказа */
#content #agreement_checkbox {
    float: none;
    width: auto;
    max-width: 100%;
}

/* Миниатюры и плашки опций в корзине */
#content .simple-content .border.rounded.bg-white {
    border-color: var(--line-soft) !important;
    border-radius: 12px !important;
}

/* Опции товара («Крышка: Пипетка») — не плашкой с рамкой, а подписью под
   названием, приглушённым текстом; несколько опций — через точку. Утилиты
   в шаблоне (d-inline-block, px-1, border, bg-light, text-secondary) — с
   !important, поэтому и здесь !important */
#content .simple-content .product-info .options {
    margin-top: 2px;
    color: #5a6760;
    font-size: 14px;
    line-height: 1.45;
}

#content .simple-content .product-info .options small {
    display: inline !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: inherit !important;
    font-size: inherit;
}

#content .simple-content .product-info .options small + small::before {
    content: " · ";
}

/* Количество в корзине: «− N +» — одна пилюля, а крестик удаления в шаблоне
   стоит в той же группе и выглядел её продолжением. Теперь он отдельный
   кружок с отступом слева, при наведении — терракотовый. */
#content #simplecheckout_cart .quantity [data-onclick="removeProduct"] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 33px;
    height: 33px;
    margin-left: 10px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

#content #simplecheckout_cart .quantity [data-onclick="removeProduct"]:hover,
#content #simplecheckout_cart .quantity [data-onclick="removeProduct"]:focus-visible {
    border-color: #b4623a !important;
}

#content #simplecheckout_cart .quantity [data-onclick="removeProduct"]:hover svg,
#content #simplecheckout_cart .quantity [data-onclick="removeProduct"]:focus-visible svg {
    color: #b4623a !important;
    fill: currentColor;
}

/* Уже 375px пилюле «− N +» с крестиком не хватало ширины колонки: «+» и
   крестик уходили на вторую строку */
@media (max-width: 374.98px) {
    #content #simplecheckout_cart .quantity {
        flex-wrap: nowrap;
    }

    #content #simplecheckout_cart .quantity [data-onclick="removeProduct"] {
        margin-left: 6px !important;
    }
}

/* Пока сервер пересчитывает корзину после «−»/«+» (1–3 с: доставка ApiShip
   считается заново), суммы бледнеют: число и счётчик в шапке уже новые,
   а суммы ещё старые (класс ft-sc-stale ставит common.js). */
#content #simplecheckout_cart.ft-sc-stale #collapse-totals,
#content #simplecheckout_cart.ft-sc-stale .product-info strong {
    opacity: .45;
    transition: opacity .2s;
}

/* Итоги под товарами. «Итого» и «Всего» были 24px (.h4) — чуть меньше.
   Строка доставки («Курьер СДЭК…», у ПВЗ — с адресом пункта) была 20px,
   как подзаголовок (.h5), — теперь мелкая приглушённая строка, длинный
   адрес переносится по правому краю */
#content #simplecheckout_cart #total_sub_total .h4 {
    font-size: 20px;
}

#content #simplecheckout_cart #total_total .h4 {
    font-size: 22px;
}

#content #simplecheckout_cart #total_shipping .h5 {
    margin-top: 6px !important;
    color: #5a6760;
    font-size: 14px;
    line-height: 1.45;
}

#content #simplecheckout_cart #total_shipping .h5 b {
    color: #16211b;
    font-size: 15px;
    white-space: nowrap;
}

/* Промокод: поле — белая пилюля, кнопка «Применить промокод» внутри неё
   с отступами по краям, а не впритык к краю поля. Само поле — по краю
   содержимого карточки (у подвала карточки утилиты px-2 py-2 с !important,
   и поле почти касалось краёв). */
#content #simplecheckout_cart > .card > .card-footer {
    padding: 16px 32px 24px !important;
}

#content #discout_block .input-group {
    flex-wrap: nowrap;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 100px;
    background: #fff;
    transition: border-color .2s ease;
}

#content #discout_block .input-group:focus-within {
    border-color: var(--btn-green);
}

#content #discout_block .input-group > .form-control {
    min-width: 0;
    height: 44px;
    padding: 0 12px 0 15px;
    border: 0 !important;
    background: transparent;
    box-shadow: none;
}

#content #discout_block .input-group > .input-group-append > .btn {
    min-height: 44px;
    height: 44px;
    padding: 0 20px !important;
    border-radius: 100px !important;
    white-space: nowrap;
}

/* На узком телефоне рядом с кнопкой полю остаётся меньше 100px и подсказка
   «Введите промокод» обрезается — кнопка уходит под поле, во всю ширину. */
@media (max-width: 575.98px) {
    #content #simplecheckout_cart > .card > .card-footer {
        padding: 12px 26px 20px !important;
    }
}

@media (max-width: 479.98px) {
    #content #discout_block .input-group {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    #content #discout_block .input-group > .form-control {
        flex: 1 1 100%;
        height: 48px;
        padding: 0 20px;
        border: 1px solid transparent !important;
        border-radius: 100px !important;
        background: #fff;
    }

    #content #discout_block .input-group > .form-control:focus {
        border-color: var(--btn-green) !important;
    }

    #content #discout_block .input-group > .input-group-append {
        flex: 1 1 100%;
        margin: 0;
    }

    #content #discout_block .input-group > .input-group-append > .btn {
        width: 100%;
        height: 48px;
    }
}

/* Ошибка промокода — пузырь над полем с уголком к нему, всплывает; цвета
   сообщений об ошибке сайта (терракотовый на светлом, фон — сплошной, иначе
   уголок наложился бы на полупрозрачный фон). Поле с неверным кодом —
   в терракотовой рамке */
#content #discout_block .ft-coupon-error {
    position: relative;
    margin: 0 0 12px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #ebdccf;
    color: #8f4a28;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    animation: ft-fade-up .35s cubic-bezier(.22, .61, .36, 1);
}

#content #discout_block .ft-coupon-error::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 28px;
    border: 7px solid transparent;
    border-top-color: #ebdccf;
    border-bottom: 0;
}

#content #discout_block .ft-coupon-error + .input-group {
    border-color: #b4623a;
}

@media (max-width: 479.98px) {
    #content #discout_block .ft-coupon-error + .input-group > .form-control {
        border-color: #b4623a !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #content #discout_block .ft-coupon-error {
        animation: none;
    }
}

@media (max-width: 575.98px) {
    #content .card > .card-body,
    #content form.bg-light {
        padding: 18px !important;
    }

    #content .card > .card-header,
    #content .card > .card-footer,
    #content .simple-content .checkout-heading {
        padding: 14px 18px;
    }
}

/* =========================================================================
   Уведомления, всплывающие окна и ошибки — в стилистике прототипа.
   В этой сборке Bootstrap и «успех», и «ошибка» были одной серо-зелёной
   плашкой с рамкой, а .text-danger — зелёным. Теперь:
   - сообщения на странице (.alert): скругление, без рамки, значок слева,
     успех — зелёный на бледно-зелёном, ошибка — терракотовый,
     остальное — песочное;
   - всплывающее уведомление (корзина, избранное) — белая карточка с тенью
     под шапкой; ошибки заполнения в оформлении (toastr) — терракотовые;
   - окна (.modal, вход в оформлении) — кремовые, скругление 24px;
   - ошибки под полями — терракотовые.
   ========================================================================= */
.alert {
    --alert-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.3'/%3E%3Cpath d='M12 11.2v5'/%3E%3Cpath d='M12 7.6v.2'/%3E%3C/svg%3E");
    position: relative;
    padding: 14px 20px 14px 50px;
    border: 0;
    border-radius: 14px;
    background: var(--sand);
    color: #16211b;
    font-size: 15px;
    line-height: 1.5;
}

.alert::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 18px;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: var(--alert-ico) center / contain no-repeat;
    mask: var(--alert-ico) center / contain no-repeat;
}

.alert-success {
    --alert-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.3'/%3E%3Cpath d='M8 12.3l2.7 2.7L16 9.6'/%3E%3C/svg%3E");
    background: #eef4ef;
    color: var(--btn-green);
}

.alert-danger,
.alert-warning {
    background: rgba(180, 98, 58, .12);
    color: #8f4a28;
}

.alert-warning {
    background: #fbf1df;
    color: #7a5716;
}

.alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* Свой значок рисуется слева — старый значок Font Awesome лишний */
.alert > .fa:first-child {
    display: none;
}

.alert-dismissible {
    padding-right: 52px;
}

.alert-dismissible .close,
.simplecheckout-block .alert > .close {
    position: absolute;
    top: 50%;
    right: 10px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    color: inherit;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    text-shadow: none;
    opacity: .55;
    transform: translateY(-50%);
    transition: opacity .2s ease, background-color .2s ease;
}

.alert-dismissible .close:hover,
.alert-dismissible .close:focus,
.simplecheckout-block .alert > .close:hover,
.simplecheckout-block .alert > .close:focus {
    background: rgba(255, 255, 255, .6);
    opacity: 1;
}

/* Сообщения в блоках оформления заказа (корзина, доставка, оплата,
   покупатель). В шаблонах Simple у них утилиты px-4 / mx-n4 / mt-n4 /
   rounded-0 — в этой сборке с !important, — а simple.css, подключённый после
   my.css, красит их в серый с розовой рамкой снизу. Из-за этого текст
   наезжал на значок, а плашка вылезала за края блока. Теперь это такая же
   плашка, как остальные сообщения на сайте, внутри блока. */
.simplecheckout-block .alert {
    margin: 0 0 16px !important;
    padding: 14px 20px 14px 50px !important;
    border: 0 !important;
    border-radius: 14px !important;
}

.simplecheckout-block .alert:has(> .close) {
    padding-right: 52px !important;
}

.simplecheckout-block .alert-danger {
    color: #8f4a28;
}

/* Ошибки Simple под полями (.simplecheckout-error-text) были ярко-красными
   #f00 из simple.css — у остальных ошибок сайта терракотовый. */
.simple-content .simplecheckout-error-text {
    /* #8f4a28, как текст остальных сообщений: #b4623a на песочной карточке
       давал 3,8:1 — мало для текста 14px */
    color: #8f4a28;
    font-size: 14px;
}

/* Сообщения Simple вне блоков (согласие #agreement_warning, общие ошибки
   формы): simple.css даёт им серый текст, розовую рамку и отступ 33px —
   значок налезал на текст. Как у остальных сообщений. */
.simple-content .simplecheckout-warning-block {
    padding: 14px 20px 14px 50px;
    border: 0;
    border-radius: 14px;
    color: #8f4a28;
}

/* Заказ заблокирован (товара нет в нужном количестве, сумма меньше
   минимальной): Simple ставит ссылке «Оформить заказ» атрибут disabled, но
   после любого пересчёта снимает его, и кнопка снова выглядела рабочей.
   Признак — ошибка корзины (data-error), её пересчёт не снимает; нажатие
   ведёт к сообщению (common.js). */
#content #simplecheckout_button_confirm[disabled],
body:has(#simplecheckout_cart[data-error]) #content #simplecheckout_button_confirm {
    opacity: .5;
    cursor: not-allowed;
}

/* Название товара в корзине — целиком: при обрезке до двух строк на телефоне
   пропадала метка «***» (товара нет в нужном количестве), на которую
   ссылается сообщение над списком. */
#content #simplecheckout_cart .product-info .line-clamp-2 {
    display: block !important;
    overflow: visible;
}

/* Пустая корзина: «Ваша корзина пуста!» по центру, а «Продолжить» уезжала
   влево (общее правило .simplecheckout-button-right) — ставим под текст. */
#simplecheckout_cart_total ~ .simplecheckout-button-block .simplecheckout-button-right {
    justify-content: center;
}

/* Кнопки-ссылки Simple («Продолжить» в пустой корзине и т. п.): высота 46px
   из общего правила кнопок, а текст стоял у верхнего края — ссылка в
   флекс-строке становится блоком со строкой 24px. Текст — по центру */
#content .simple-content a.button_oc.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Шильдик скидки у товара в корзине — терракотовый, как «-5%» на карточках
   и в прототипе (красный цвет задан в custom.css, он подключён позже) */
.badge.stiker-special {
    border-radius: 10px;
    background-color: #b4623a;
    color: #fff;
}

/* --- блок «Покупатель» в оформлении заказа ------------------------------ */

/* «Зарегистрируйтесь и получайте Накопительную скидку…» — заголовок header2
   в настройках Simple (раньше со своими инлайн-стилями: персиковая плашка,
   красный шильдик; теперь там только классы, текст прежний). Карточка
   цвета пятна за фото товара (#product-gallery ::before), тёмный край чуть
   светлее (#dcc6a3 вместо #d4bd97) — зелёные ссылки на нём 4,5:1; слева
   значок скидки; «от 10% до 15%» — терракотовый шильдик, как «-5%» на
   карточках товаров */
#content .ft-reg-promo {
    position: relative;
    display: block;
    padding: 16px 20px 16px 68px;
    border-radius: 16px;
    background: linear-gradient(150deg, #eadcc4 0%, #dcc6a3 100%);
    color: #16211b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

#content .ft-reg-promo::before,
#content .ft-reg-promo::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 18px;
    width: 36px;
    height: 36px;
}

#content .ft-reg-promo::before {
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
}

#content .ft-reg-promo::after {
    background: var(--btn-green);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M23.5 12.5l-11 11'/%3E%3Ccircle cx='13.6' cy='13.6' r='2.3'/%3E%3Ccircle cx='22.4' cy='22.4' r='2.3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M23.5 12.5l-11 11'/%3E%3Ccircle cx='13.6' cy='13.6' r='2.3'/%3E%3Ccircle cx='22.4' cy='22.4' r='2.3'/%3E%3C/svg%3E") center / contain no-repeat;
}

#content .ft-reg-promo a {
    color: var(--btn-green);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

#content .ft-reg-promo a:hover {
    color: var(--btn-green-hover);
}

#content .ft-reg-promo__badge {
    display: inline-block;
    padding: 0 9px;
    border-radius: 100px;
    background: #b4623a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
    white-space: nowrap;
}

@media (max-width: 399.98px) {
    #content .ft-reg-promo {
        padding: 14px 16px;
    }

    #content .ft-reg-promo::before,
    #content .ft-reg-promo::after {
        display: none;
    }
}

/* «Я зарегистрирован» в шапке блока — была бледно-серая подпись справа.
   Теперь заметная кнопка-ссылка: белая пилюля, зелёный текст и значок
   человека, как «Войти» в шапке сайта. !important — у ссылки .text-secondary,
   в этой сборке он с !important */
#content .simple-content .checkout-heading-button a[data-onclick="openLoginBox"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px 0 13px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: #fff;
    color: var(--btn-green) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: border-color .2s ease, background-color .2s ease;
}

#content .simple-content .checkout-heading-button a[data-onclick="openLoginBox"]::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5c1.2-3.8 4-5.7 7.5-5.7s6.3 1.9 7.5 5.7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4.5 20.5c1.2-3.8 4-5.7 7.5-5.7s6.3 1.9 7.5 5.7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* На телефоне кнопка поменьше, чтобы «Покупатель» не разрывался; не
   хватает места — она уходит под заголовок */
@media (max-width: 575.98px) {
    #content .simple-content #simplecheckout_customer .checkout-heading > .row {
        row-gap: 10px;
    }

    #content .simple-content #simplecheckout_customer .checkout-heading > .row > .col {
        flex: 1 0 auto;
    }

    #content .simple-content .checkout-heading-button a[data-onclick="openLoginBox"] {
        gap: 6px;
        min-height: 34px;
        padding: 0 12px 0 10px;
        font-size: 13px;
    }

    #content .simple-content .checkout-heading-button a[data-onclick="openLoginBox"]::before {
        width: 16px;
        height: 16px;
    }
}

#content .simple-content .checkout-heading-button a[data-onclick="openLoginBox"]:hover,
#content .simple-content .checkout-heading-button a[data-onclick="openLoginBox"]:focus-visible {
    border-color: var(--btn-green);
    color: var(--btn-green-hover) !important;
}

/* «Зарегистрироваться» — переключатель «Да / Нет», как подписка на новости
   на странице регистрации. В разметке Simple это одна галочка
   (customer[register], при смене — пересчёт формы), поэтому «Да» и «Нет»
   рисуются псевдоэлементами подписи, а сама галочка (прозрачная) лежит
   поверх невыбранного варианта: нажатие по нему переключает, по выбранному —
   ничего не меняет. Tab и пробел работают как у обычной галочки.
   Подпись «Зарегистрироваться» — слева в той же строке. */
/* Поля колонок (12px) — на всю строку, чтобы подпись стояла вровень
   с подписями полей ниже */
#content .simple-content .row-customer_register {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 0 12px;
}

#content .simple-content .row-customer_register > .control-label {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0;
}

#content .simple-content .row-customer_register > .control-label + div {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0;
}

#content .simple-content .row-customer_register .checkbox {
    margin: 0;
    padding: 0;
}

#content .simple-content .row-customer_register .checkbox > label {
    position: relative;
    display: inline-flex !important;
    gap: 4px;
    padding: 4px;
    border-radius: 100px;
    background: #fff;
    cursor: default;
    /* нажатие по подписи тоже переключило бы галочку — ловит только она */
    pointer-events: none;
}

#content .simple-content .row-customer_register .checkbox > label::before,
#content .simple-content .row-customer_register .checkbox > label::after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    height: 40px;
    padding: 0 22px;
    border-radius: 100px;
    color: #16211b;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    transition: background-color .2s ease, color .2s ease;
}

/* Слова — для глаз; для экранного диктора у галочки своя подпись
   «Зарегистрироваться» (текст после «/» — пустой альтернативный) */
#content .simple-content .row-customer_register .checkbox > label::before {
    content: "Да";
    content: "Да" / "";
}

#content .simple-content .row-customer_register .checkbox > label::after {
    content: "Нет";
    content: "Нет" / "";
}

#content .simple-content .row-customer_register .checkbox > label:has(> input:checked)::before,
#content .simple-content .row-customer_register .checkbox > label:has(> input:not(:checked))::after {
    background: var(--btn-green);
    color: #fff;
}

#content .simple-content .row-customer_register .checkbox input {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 6px);
    height: auto;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    pointer-events: auto;
}

#content .simple-content .row-customer_register .checkbox input:checked {
    left: calc(50% + 2px);
}

@media (hover: hover) {
    #content .simple-content .row-customer_register .checkbox > label:has(> input:checked:hover)::after,
    #content .simple-content .row-customer_register .checkbox > label:has(> input:not(:checked):hover)::before {
        color: var(--btn-green);
    }
}

#content .simple-content .row-customer_register .checkbox > label:has(> input:focus-visible) {
    outline: 2px solid var(--btn-green);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    #content .simple-content .row-customer_register .checkbox > label::before,
    #content .simple-content .row-customer_register .checkbox > label::after {
        transition: none;
    }
}

/* Согласие с политикой перед «Оформить заказ» и в форме на странице
   контактов (.contacts-form__agree) — своя галочка вместо системной: белый квадрат 22px со скруглением, отмеченная — зелёная с
   белой галкой. Галочка — у первой строки подписи, длинная подпись
   переносится под текст, а не под квадрат */
#content #agreement_checkbox .form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 0;
}

#content #agreement_checkbox .form-check-input,
.contacts-form__agree input[type="checkbox"] {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    border: 1.5px solid #d4cabb;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .2s ease, border-color .2s ease;
}

#content #agreement_checkbox .form-check-input:hover,
.contacts-form__agree input[type="checkbox"]:hover {
    border-color: var(--btn-green);
}

#content #agreement_checkbox .form-check-input:checked,
.contacts-form__agree input[type="checkbox"]:checked {
    border-color: var(--btn-green);
    background: var(--btn-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 11.4l3.4 3.4L16.2 8'/%3E%3C/svg%3E") center / 100% no-repeat;
}

#content #agreement_checkbox .form-check-label {
    font-size: 15px;
    line-height: 24px;
    cursor: pointer;
}

/* Подпись в форме контактов — 14px, строка 21px: квадрат 22px вровень с ней */
.contacts-form__agree {
    gap: 12px;
}

.contacts-form__agree input[type="checkbox"] {
    margin: 0;
}

.contacts-form__agree label {
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    #content #agreement_checkbox .form-check-input,
    .contacts-form__agree input[type="checkbox"] {
        transition: none;
    }
}

/* Ошибки под полями и в форме товара */
.text-danger:not(a),
.invalid-feedback {
    color: #b4623a !important;
}

div.text-danger {
    margin-top: 6px;
    font-size: 13.5px;
}

/* --- всплывающее уведомление (добавлено в корзину и т. п.) -------------- */
body > .toast {
    top: 88px !important;
    width: 340px;
    max-width: calc(100vw - 32px);
    margin: 0 16px !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(22, 33, 27, .16);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    font-size: 15px;
}

body > .toast .toast-header {
    padding: 12px 14px 0 18px;
    border: 0;
    background: transparent;
    color: #8b968f;
    font-size: 13px;
}

body > .toast .toast-header svg {
    color: #8b968f !important;
}

body > .toast .toast-header svg:first-child {
    color: var(--btn-green) !important;
}

body > .toast .toast-body {
    padding: 8px 18px 16px;
    color: #16211b;
    line-height: 1.5;
}

body > .toast .toast-body a {
    color: var(--btn-green);
    font-weight: 600;
    text-decoration: underline;
}

/* Плавающие сообщения из common.js (сравнение, закладки) — под шапкой */
body > div[style*="position: fixed"] > .alert {
    box-shadow: 0 18px 44px rgba(22, 33, 27, .16);
}

/* --- toastr: ошибки заполнения в оформлении заказа и регистрации -------- */
#toast-container.toast-top-right {
    top: 88px;
    right: 16px;
}

#toast-container > .toast {
    width: 340px;
    max-width: calc(100vw - 32px);
    padding: 14px 18px 14px 50px;
    border-radius: 14px;
    background-position: 18px center;
    box-shadow: 0 18px 44px rgba(22, 33, 27, .16);
    font-size: 15px;
    line-height: 1.45;
    opacity: .96;
}

#toast-container > .toast:hover {
    box-shadow: 0 18px 44px rgba(22, 33, 27, .22);
    opacity: 1;
}

#toast-container > .toast-error {
    background-color: #b4623a;
}

#toast-container > .toast-success {
    background-color: var(--btn-green);
}

#toast-container > .toast-info,
#toast-container > .toast-warning {
    background-color: #16211b;
}

/* --- окна --------------------------------------------------------------- */
.modal-backdrop {
    background: #16211b;
}

.modal-backdrop.show {
    opacity: .45;
}

.modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 24px;
    background: var(--cream);
    box-shadow: 0 30px 80px rgba(22, 33, 27, .25);
}

.modal-header {
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}

.modal-title {
    color: #333;
    font-family: "Comfortaa", sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.modal-header .close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: -6px -6px -6px auto;
    padding: 0;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 400;
    text-shadow: none;
    opacity: .6;
}

.modal-header .close:hover {
    background: var(--sand);
    opacity: 1;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
}

/* Окно выбора опции из карточки каталога (common.js, ftOptSheet): строка на
   каждое значение — название слева, своя кнопка «В корзину» / счётчик справа.
   На телефоне — шторка снизу. */
.ft-optsheet .modal-dialog {
    max-width: 440px;
}

.ft-optsheet .modal-header {
    gap: 14px;
}

.ft-optsheet__product {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.ft-optsheet__product:hover {
    color: inherit;
    text-decoration: none;
}

.ft-optsheet__img {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.ft-optsheet__title {
    font-size: 17px;
    line-height: 1.3;
    transition: color .2s ease;
}

.ft-optsheet__product:hover .ft-optsheet__title {
    color: var(--btn-green);
}

.ft-optsheet .modal-body {
    padding: 18px 24px 22px;
}

.ft-optsheet__label {
    margin-bottom: 4px;
    color: #8b968f;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ft-optsheet__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    border-bottom: 1px solid var(--line);
}

.ft-optsheet__row:last-child {
    border-bottom: 0;
}

.ft-optsheet__name {
    min-width: 0;
    color: #16211b;
    font-size: 16px;
}

.ft-optsheet__price {
    margin-left: 6px;
    font-size: 13px;
    opacity: .75;
}

.ft-optsheet .ft-card-cart--row {
    flex: 0 0 150px;
    margin: 0 !important;
}

@media (max-width: 575.98px) {
    .modal.fade.ft-optsheet .modal-dialog {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        min-height: 0;
        margin: 0;
        transform: translateY(100%);
        transition: transform .28s cubic-bezier(.22, .61, .36, 1);
    }

    .modal.fade.show.ft-optsheet .modal-dialog {
        transform: none;
    }

    .ft-optsheet .modal-content {
        max-height: 85vh;
        max-height: 85dvh;
        overflow-y: auto;
        border-radius: 24px 24px 0 0;
    }

    .ft-optsheet .modal-body {
        padding-bottom: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal.fade.ft-optsheet .modal-dialog {
        transition: none;
    }
}

/* Вход в оформлении заказа (окно модуля Simple, открывает «Я зарегистрирован»
   и ссылка «войдите в ваш аккаунт») — как остальные окна сайта (.modal):
   кремовое, скругление 24px, шапка с заголовком и крестиком, поля и кнопка
   во всю ширину. Место и размер Simple ставит инлайном при открытии
   (ширина 300px, высота — по содержимому на момент открытия, top/left — от
   размеров окна), поэтому !important: окно по центру экрана трансформом,
   ширина до 420px, высота по содержимому (с ошибкой входа тоже).
   Разметка — checkout/simplecheckout_login.twig */
#simple_login {
    top: 50% !important;
    left: 50% !important;
    width: min(420px, calc(100vw - 32px)) !important;
    height: auto !important;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 24px !important;
    background: var(--cream) !important;
    box-shadow: 0 30px 80px rgba(22, 33, 27, .25) !important;
    transform: translate(-50%, -50%);
}

#simple_login_layer {
    background: #16211b !important;
    opacity: .45 !important;
}

#simple_login #simplecheckout_login {
    margin: 0;
    text-align: left;
}

#simple_login #simplecheckout_login .simplecheckout-block-content {
    padding: 0 !important;
}

#simple_login #simple_login_header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

#simple_login .ft-login-title {
    flex: 1 1 auto;
    min-width: 0;
    color: #333;
    font-family: "Comfortaa", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

#simple_login .ft-login-close {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: -6px -8px -6px 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #333;
    opacity: .6;
    cursor: pointer;
    transition: background-color .2s ease, opacity .2s ease;
}

#simple_login .ft-login-close::before {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M3 3l10 10M13 3L3 13'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M3 3l10 10M13 3L3 13'/%3E%3C/svg%3E") center / contain no-repeat;
}

#simple_login .ft-login-close:hover,
#simple_login .ft-login-close:focus-visible {
    background: var(--sand);
    opacity: 1;
}

#simple_login .ft-login-close:focus-visible {
    outline: 2px solid var(--btn-green);
    outline-offset: 2px;
}

/* «Неверный E-Mail или пароль» — под шапкой, с полями окна */
#simple_login #simplecheckout_login .alert {
    margin: 20px 24px 0 !important;
}

#simple_login #simplecheckout_login fieldset {
    padding: 22px 24px 24px;
}

#simple_login #simplecheckout_login .form-group {
    margin-bottom: 18px;
}

/* simple.css: label в формах Simple — inline-block !important */
#simple_login #simplecheckout_login .control-label {
    display: block !important;
    margin-bottom: 8px;
}

#simple_login #simplecheckout_login .form-control {
    width: 100%;
}

#simple_login .ft-login-forgot {
    display: inline-block;
    margin-top: 10px;
    color: var(--btn-green);
    font-size: 14px;
}

#simple_login .ft-login-forgot:hover {
    color: var(--btn-green-hover);
    text-decoration: underline;
}

#simple_login #simplecheckout_button_login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 6px;
}

@media (max-width: 575.98px) {
    #simple_login #simple_login_header {
        padding: 16px 18px;
    }

    #simple_login .ft-login-title {
        font-size: 18px;
    }

    #simple_login #simplecheckout_login .alert {
        margin: 16px 18px 0 !important;
    }

    #simple_login #simplecheckout_login fieldset {
        padding: 18px 18px 20px;
    }
}

@media (max-width: 991.98px) {
    body > .toast,
    #toast-container.toast-top-right {
        top: 70px !important;
    }
}

/* =========================================================================
   Карточки товаров и рамки — один цвет по всему сайту (как в прототипе).
   Рамка карточек — var(--line-soft), при наведении — var(--line);
   линии, разделители, поля — var(--line). Утилиты Bootstrap (.border*,
   hr, таблицы, списки, меню, поля вне #content) — в тех же цветах, чтобы
   старая вёрстка не выделялась серыми #dee2e6 / #ced4da.
   Цветные варианты (.border-secondary, -danger и т. п.) не трогаем.
   ========================================================================= */

/* Карточки в категориях, поиске, акциях, у производителя, товары в статьях */
.product-item > .bg-white,
.product-item.bg-white {
    overflow: hidden;
    border: 1px solid var(--line-soft) !important;
    border-radius: 20px !important;
    transition: border-color .3s ease;
}

.product-item > .bg-white:hover,
.product-item.bg-white:hover {
    border-color: var(--line) !important;
}

/* Внутри рамки у фото свои скругления не нужны */
.product-item .product-image img,
.product-item:hover .product-image img {
    border-radius: 0;
}

/* Заготовки карусели до загрузки — в той же рамке */
.carousel-placeholder .product-item.border {
    border-color: var(--line-soft) !important;
    border-radius: 20px !important;
}

/* Утилиты Bootstrap */
.border:not(.border-primary):not(.border-secondary):not(.border-success):not(.border-danger):not(.border-warning):not(.border-info):not(.border-dark):not(.border-white),
.border-top:not(.border-primary):not(.border-secondary):not(.border-danger),
.border-right:not(.border-primary):not(.border-secondary):not(.border-danger),
.border-bottom:not(.border-primary):not(.border-secondary):not(.border-danger),
.border-left:not(.border-primary):not(.border-secondary):not(.border-danger) {
    border-color: var(--line) !important;
}

/* Активная миниатюра фото товара — зелёная, как выбранные опции */
#product-gallery .additional-images a.border-secondary {
    border-color: var(--btn-green) !important;
}

hr {
    border-top-color: var(--line);
}

.table th,
.table td,
.table thead th,
.table-bordered,
.table-bordered th,
.table-bordered td {
    border-color: var(--line);
}

.card {
    border-color: var(--line-soft);
}

.card-header,
.card-footer,
.list-group-item,
.dropdown-menu,
.input-group-text,
.nav-tabs,
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: var(--line);
}

.dropdown-divider {
    border-top-color: var(--line);
}

.img-thumbnail {
    border-color: var(--line-soft);
}

.form-control,
.custom-select,
.custom-control-label::before,
.btn-outline-secondary {
    border-color: var(--line);
}

/* =========================================================================
   Появление при прокрутке и лёгкая анимация — как в прототипе.
   .rv / .is-in ставит и снимает скрипт в конце common.js: блок ниже экрана
   проявляется, поднимаясь на 22px; соседи в ряду — лесенкой (--rv-delay).
   !important — чтобы перекрыть собственные переходы блока на время появления;
   после него классы снимаются.
   ========================================================================= */
.rv {
    opacity: 0 !important;
    transform: translateY(22px) !important;
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1) !important;
    transition-delay: var(--rv-delay, 0ms) !important;
}

.rv.is-in {
    opacity: 1 !important;
    transform: none !important;
}

@keyframes ft-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* Главный баннер при загрузке: плашка проявляется (фото «отъезжает» на каждом
   слайде — в разделе баннера, «Живой баннер») */
#common-home .header-slideritem__panel {
    animation: ft-fade-up .8s cubic-bezier(.22, .61, .36, 1) .15s backwards;
}

/* Карточки товаров в каталоге, поиске, акциях: подъём с тенью, фото ближе.
   Сердечко «В избранное» отсчитывается от самой карточки: раньше — от ячейки
   сетки, а при наведении transform делал точкой отсчёта карточку, и сердечко
   прыгало на 6px. top/right — чтобы в покое оно стояло там же, где было */
.products-container .product-item > .bg-white {
    position: relative;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.22, .61, .36, 1);
}

.products-container .product-item > .bg-white > .my-wishlist-button {
    top: 9px;
    right: 9px;
}

.products-container .product-item .product-image {
    overflow: hidden;
}

.products-container .product-item .product-image img {
    transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}

/* Плитки категорий на главной: фото ближе */
[id^="ftCategoryWall_"] .category-item a > .d-inline-block {
    overflow: hidden;
    border-radius: 20px;
}

[id^="ftCategoryWall_"] .category-item img {
    transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}

/* «Происхождение»: фон карточки — на ::before, чтобы его можно было приблизить */
.dm-origins__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: inherit;
    transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}

.dm-origins__content {
    position: relative;
    z-index: 1;
}

/* Тень листвы из «Живого баннера» (кладёт common.js в каждую карточку).
   Слой — между фоном (::before: тот же z-index 0, но раньше по порядку)
   и текстом (z-index 1); обрезается скруглением карточки, приближению
   фона не мешает. Рисунок — по ширине карточки (5:3, как viewBox), а не
   «cover» на всю карточку: иначе на высокой карточке Марокко ветки
   крупнее, чем на соседних. Текст лежит прямо на фото, без плашки, —
   тень бледнее, чем в баннере (.34) */
.dm-origins__card .hl-shade {
    z-index: 0;
    opacity: .28;
}

.dm-origins__card .hl-shade svg {
    bottom: auto;
    height: auto;
    aspect-ratio: 5 / 3;
}

/* У Марокко верх — сплошь зелень, тень на ней почти не видна; светлый
   камень и текст — внизу слева. Ветки зеркально, из нижних углов */
.dm-origins__card--ma .hl-shade svg {
    top: auto;
    bottom: 0;
    transform: scaleY(-1);
}

/* Свой такт у каждой карточки — не качаются в ногу */
.dm-origins__card--ru {
    --hl-phase: -1.2s;
}

.dm-origins__card--az {
    --hl-phase: -2.4s;
}

/* Статьи блога (лента на главной и список): фото ближе */
.article-item a.position-relative img {
    transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}

@media (hover: hover) {
    .products-container .product-item > .bg-white:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 44px rgba(22, 33, 27, .09);
    }

    .products-container .product-item:hover .product-image img,
    [id^="ftCategoryWall_"] .category-item a:hover img,
    .article-item:hover a.position-relative img {
        transform: scale(1.05);
    }

    .dm-origins__card:hover::before {
        transform: scale(1.04);
    }
}

/* Вкладки товара: содержимое проявляется при переключении */
#product-product .tab-content > .tab-pane.active {
    animation: ft-fade-up .45s cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
    .rv {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    #common-home .header-slideritem__panel,
    #product-product .tab-content > .tab-pane.active {
        animation: none;
    }

    .products-container .product-item > .bg-white,
    .products-container .product-item .product-image img,
    [id^="ftCategoryWall_"] .category-item img,
    .dm-origins__card::before,
    .article-item a.position-relative img {
        transition: none;
    }
}

/* Остаток (common.js, ftStock): сообщение «Больше нет в наличии» / «Нет в
   наличии» над кнопкой корзины — в цветах сообщений об ошибке, как подсказка
   промокода. Лежит поверх (вёрстку карточки не сдвигает), место и уголок
   к кнопке ставит скрипт, через 3 с исчезает само. */
.ft-stock-box {
    position: relative;
}

.ft-stock-note {
    position: absolute;
    z-index: 30;
    width: max-content;
    padding: 7px 12px;
    border-radius: 12px;
    background: #ebdccf;
    color: #8f4a28;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(22, 33, 27, .12);
    animation: ft-fade-up .25s cubic-bezier(.22, .61, .36, 1);
    transition: opacity .3s ease;
}

.ft-stock-note::after {
    content: "";
    position: absolute;
    top: 100%;
    left: var(--arrow, 50%);
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: #ebdccf;
    border-bottom: 0;
}

.ft-stock-note.is-out {
    opacity: 0;
}

/* «+» на максимуме остатка: приглушён, как недоступный, но нажимается —
   нажатие показывает сообщение (disabled не дал бы ни сообщения, ни фокуса) */
.ft-card-step.is-max,
.ft-stepper .ft-stepper-btn.is-max {
    opacity: .4;
}

.ft-card-step.is-max:hover,
.ft-card-step.is-max:active,
#product-product .product-buy-block .ft-stepper-btn.is-max:hover,
#product-product .product-buy-block .ft-stepper-btn.is-max:active {
    background: transparent;
    transform: none;
}

#product-product .product-buy-block .ft-stepper-btn.is-max:active svg {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .ft-stock-note {
        animation: none;
    }
}
