/* catalog-v2.css — «Этикетка». Спец: ~/docs/specs/2026-09-30-catalog-redesign.md.
   Карточки: page-id-27387 и flora-label-cards (shop/product_cat/product_tag).
   Фильтры, H1 и полосы корзины/контекста остаются под page-id-27387.
   После файла идут global-fixes, modern-header и flora_sale_badge_styles
   (~65 !important). Специфичность карточек ≥0,5,2; !important только против
   базового !important. CTA display без !important: JS прячет его для степпера.
   Старый HTML сохраняет fallback формы/статуса по классам li и SKU «N.»;
   :has() улучшает разметку постепенно (README), PDP/поиск/related не затронуты.
*/

/* ----------------------------------------------------------------------------
   0. Токены
   ---------------------------------------------------------------------------- */
body.page-id-27387, body.flora-label-cards {
    /* чернила и линии */
    --zf-ink: #1c211c;            /* 16,4:1 на белом */
    --zf-ink-2: #4c574a;          /* 7,6:1 */
    --zf-ink-3: #5a6857;          /* 5,9:1 */
    --zf-line: #e1e8de;
    --zf-line-2: #cfdccb;
    --zf-surface: #ffffff;
    --zf-tint: #f4f8f2;
    --zf-tint-2: #eaf1e6;

    /* бренд — зелёный */
    --zf-green-900: #1b5e20;      /* белый 7,9:1 — фокус */
    --zf-green-700: #256b29;
    --zf-green-600: #2e7d32;      /* белый 5,1:1 */
    --zf-green-500: #33843a;      /* белый 4,7:1 — верх градиента кнопки */
    --zf-green-50: #f3f9f1;

    /* витринный рыжий владельца — стопы не менять */
    --zf-orange-500: #ff9800;
    --zf-orange-600: #f57c00;
    --zf-orange-700: #ef6c00;     /* 3,1:1 к белому — точка и рамка */
    --zf-orange-ink: #b34700;     /* текст «Предзаказ» на белом, 5,5:1 */
    --zf-orange-50: #fff5ea;

    --zf-blue-600: #2f6fc4;       /* белый 5,0:1 */
    --zf-blue-700: #1e63b8;       /* белый 6,0:1 */
    --zf-red-600: #c62828;        /* белый 5,6:1 — «Хит» */
    --zf-pink-600: #e0245e;       /* сердце */

    /* кнопки */
    --zf-cta-green: linear-gradient(180deg, var(--zf-green-500) 0%, var(--zf-green-600) 55%, var(--zf-green-700) 100%);
    --zf-cta-preorder: linear-gradient(135deg, var(--zf-orange-500) 0%, var(--zf-orange-600) 50%, var(--zf-orange-700) 100%);
    /* Подпись на витринном рыжем. Тёмные чернила: 8,1 / 6,4 / 5,6:1 на трёх стопах.
       Решение владельца: белая подпись (2,2 / 2,7 / 3,1:1) — ОДНОЙ строкой #fff здесь. */
    --zf-cta-preorder-ink: #1d1a14;
    --zf-cta-variable: linear-gradient(180deg, var(--zf-blue-600) 0%, var(--zf-blue-700) 100%);

    /* геометрия и тени */
    --zf-r-card: 12px;
    --zf-r-btn: 10px;
    --zf-r-chip: 999px;
    --zf-shadow-card: 0 1px 2px rgba(23, 38, 20, 0.06), 0 0 0 1px var(--zf-line);
    --zf-shadow-card-hover: 0 8px 22px rgba(23, 38, 20, 0.12), 0 0 0 1px var(--zf-line-2);
    --zf-shadow-float: 0 8px 24px rgba(23, 38, 20, 0.24);

    /* фокус: контур 3 px #1b5e20 (7,9:1 к белому) с отступом 2 px; кольцо тени — запас */
    --zf-focus-c: var(--zf-green-900);
    --zf-focus-w: 3px;
    --zf-focus-o: 2px;
    --zf-focus-ring: 0 0 0 2px #fff, 0 0 0 5px var(--zf-green-900);

    /* сетка: телефон 2 колонки, карточка ≤ 215 (скачок фото на 600 ≈ −16 %) */
    --zf-gutter: 16px;
    --zf-gap: 8px;
    --zf-cols: 2;
    --zf-card-max: 215px;
    --zf-container: 1640px;

    /* карточка */
    --zf-card-px: 8px;
    --zf-card-pb: 8px;
    --zf-title-fs: 13px;
    --zf-title-lh: 1.3;
    --zf-title-mt: 6px;
    --zf-meta-fs: 12px;
    --zf-meta-mt: 3px;
    --zf-price-fs: 16px;
    --zf-cta-h: 40px;             /* touch: рисунок 40, зона касания 44 (::after) */
    --zf-cta-w: 84px;
    --zf-cta-px: 6px;
    --zf-hit-ext: 3px;            /* 40 + 2 × 3 = 46 ≥ 44 (запас на граничный пиксель) */
    --zf-stepper-h: 44px;         /* не задаёт ряд: степпер равен высоте кнопки */
    --zf-stepper-w: 124px;        /* широкая карточка: − 44 · поле 36 · + 44 */
    --zf-stepper-btn: 44px;
    --zf-heart-box: 44px;
    --zf-heart-dot: 34px;

    /* верх страницы */
    --zf-chip-h: 44px;            /* коробка (зона касания) */
    --zf-chip-inset: 4px;         /* прозрачная рамка: рисунок чипа 36 при зоне 44 */
    --zf-chip-gap: 0px;           /* визуальный зазор = 2 × inset */
    --zf-row-gap: 2px;
    --zf-fade: clamp(40px, 15vw, 56px); /* затухание ленты у края (телефон): обрубок чипа не читается словом */
    --zf-rib-pad: 0px;            /* поле ленты под кольцо фокуса (на касании кольцо внутри рамки чипа) */
    --zf-hdr-compact: 82px;       /* компактная шапка ≤ 768 (замер 30.09) */
    --zf-strip-h: 52px;           /* липкая полоса телефона: 44 + 4 + 4 */
    --zf-strip-top: -64px;        /* полоса спрятана, пока шапка не показана */

    /* ширина выдачи и «вылет» до краёв экрана для лент и липкой полосы (≤ 768) */
    --zf-content-w: calc(100vw - 2 * var(--zf-gutter));
    --zf-bleed: calc((100vw - var(--zf-content-w)) / 2);
}

/* 480–599: две колонки упёрлись в 215 — выдача по центру, верх страницы шириной в сетку */
@media (max-width: 599px) {
    body.page-id-27387, body.flora-label-cards {
        --zf-content-w: min(calc(100vw - 2 * var(--zf-gutter)), calc(2 * var(--zf-card-max) + var(--zf-gap)));
    }
}

@media (min-width: 600px) {
    body.page-id-27387, body.flora-label-cards {
        --zf-cols: 3;
        --zf-card-max: 250px;     /* на 900 четыре колонки по 201: −19,6 % */
        --zf-gap: 12px;
        --zf-card-px: 10px;
        --zf-cta-w: 100px;
        --zf-title-fs: 14px;      /* 768: название ≥ 14 */
    }
}

@media (min-width: 769px) {
    body.page-id-27387, body.flora-label-cards {
        --zf-gutter: 24px;
        --zf-fade: 32px;
    }
}

@media (min-width: 900px) {
    body.page-id-27387, body.flora-label-cards {
        --zf-cols: 4;
        --zf-card-max: 270px;
        --zf-gap: 16px;
        --zf-card-px: 12px;
        --zf-title-mt: 5px;
        --zf-cta-w: 116px;
        --zf-price-fs: 18px;
        --zf-card-pb: 7px;
    }
}

@media (min-width: 1200px) {
    body.page-id-27387, body.flora-label-cards {
        --zf-cols: 5;
        --zf-card-max: 280px;     /* 1520: сетка ≥ 1400; 1600: 280 → 245 (−12 %) */
    }
}

@media (min-width: 1600px) {
    body.page-id-27387, body.flora-label-cards {
        --zf-cols: 6;
        --zf-card-max: 1fr;
    }
}

/* низкий ноутбук (1520×730 — 2,7 % просмотров): карточка 270, чтобы ряд с кнопками
   целиком вошёл в первый экран; сетка остаётся ≥ 1400 */
@media (min-width: 1200px) and (max-width: 1599px) and (max-height: 760px) {
    body.page-id-27387, body.flora-label-cards {
        --zf-card-max: 270px;
    }
}

/* мышь и тонкий указатель: кнопка 36, чипы 36 без прозрачной рамки, сердце 36 */
@media (hover: hover) and (pointer: fine) {
    body.page-id-27387, body.flora-label-cards {
        --zf-cta-h: 36px;
        --zf-hit-ext: 0px;
        --zf-stepper-h: 36px;
        --zf-stepper-w: 116px;    /* = ширине кнопки: степпер ровно в её габарите */
        --zf-stepper-btn: 36px;
        --zf-chip-h: 36px;
        --zf-chip-inset: 0px;
        --zf-chip-gap: 6px;
        --zf-row-gap: 6px;
        --zf-rib-pad: 6px;
        --zf-heart-box: 36px;
        --zf-heart-dot: 32px;
    }
}

/* узкий телефон (320–359, 3,5–5 % просмотров): поля 12, карточка плотнее */
@media (max-width: 359px) {
    body.page-id-27387, body.flora-label-cards {
        --zf-gutter: 12px;
        --zf-card-px: 6px;
        --zf-card-pb: 6px;
        --zf-title-lh: 1.25;
        --zf-title-mt: 5px;
        --zf-meta-mt: 2px;
        --zf-cta-h: 38px;
        --zf-cta-w: 74px;
        --zf-cta-px: 5px;
        --zf-hit-ext: 4px;
    }
}

/* ----------------------------------------------------------------------------
   1. Каркас страницы: контейнер до 1640, кромка шапки = кромка сетки (А1)
   ---------------------------------------------------------------------------- */
/* А6: скрытое мега-меню шапки (.fnv2-mega) вылезало вправо и на iPad-альбоме
   раздувало layout-viewport до 1218 px. clip, а не hidden: не создаёт
   прокручиваемого контейнера и не ломает sticky. На ≤ 992 действуют правила
   шапки/global-fixes (!important) — там переполнения нет. */
html:has(body.page-id-27387),
body.page-id-27387 {
    overflow-x: clip;
}

body.page-id-27387 #content > .col-full,
body.page-id-27387 .storefront-breadcrumb > .col-full {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--zf-container);
    margin: 0 auto;
    padding: 0 var(--zf-gutter);
}

@media (min-width: 769px) {
    body.page-id-27387 .flora-modern-header .flora-container {
        max-width: var(--zf-container) !important;
        padding: 0 var(--zf-gutter) !important;
    }
}

body.page-id-27387 #primary,
body.page-id-27387 #main {
    width: 100%;
    margin: 0;
    padding: 0;
    float: none;
}

body.page-id-27387 article.hentry {
    margin-bottom: 16px;
}

/* хлебные крошки: тихая строка на десктопе; на телефоне и низких окнах скрыты
   (JSON-LD BreadcrumbList остаётся) */
body.page-id-27387 .storefront-breadcrumb {
    padding: 8px 0 !important;
    margin: 0 !important;
    font-size: 12px;
    line-height: 1.3;
    color: var(--zf-ink-3);
}

body.page-id-27387 .storefront-breadcrumb .woocommerce-breadcrumb {
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: var(--zf-ink-3);
}

body.page-id-27387 .storefront-breadcrumb .woocommerce-breadcrumb a {
    color: var(--zf-ink-3);
    text-decoration: none;
}

body.page-id-27387 .storefront-breadcrumb .woocommerce-breadcrumb a:hover {
    color: var(--zf-green-600);
    text-decoration: underline;
}

@media (max-width: 768px), (max-height: 780px) {
    body.page-id-27387 .storefront-breadcrumb {
        display: none;
    }
}

/* 2. Верх страницы: CSS задаёт ряды и order, сохраняя DOM и табуляцию.
   Десктоп: H1/теги, культуры/фасеты, месяцы, тулбар, сетка.
   Телефон: липкая полоса, культуры, сетка фасетов 2×2, месяцы, товары. */
body.page-id-27387 .entry-content {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    gap: 0;
    margin: 0;
}

body.page-id-27387 .entry-content > * {
    flex: 0 0 100%;
    box-sizing: border-box;
    min-width: 0;
}

/* верх страницы шириной ровно в сетку: правая кромка тулбара, строки доверия и
   лент совпадает с последней колонкой (десктоп; при карточке 1fr, ≥ 1600,
   выражение недействительно → max-width: none). 480–599: выдача по центру. */
@media (min-width: 769px) {
    body.page-id-27387 .entry-content {
        max-width: calc(var(--zf-cols) * var(--zf-card-max) + (var(--zf-cols) - 1) * var(--zf-gap));
    }
}

@media (max-width: 599px) {
    body.page-id-27387 .entry-content {
        max-width: var(--zf-content-w);
        margin-left: auto;
        margin-right: auto;
    }
}

body.page-id-27387 .entry-content > .fcf-header { order: 10; }
body.page-id-27387 .entry-content > .fcf-active-filters { order: 20; }
body.page-id-27387 .entry-content > .fcf-plants { order: 30; }
body.page-id-27387 .entry-content > .fcf-mobile-filter-panel { order: 40; }
body.page-id-27387 .entry-content > .fcf-months { order: 50; }
body.page-id-27387 .entry-content > .fcf-results-anchor { order: 60; }
body.page-id-27387 .entry-content > .woocommerce { order: 70; }
body.page-id-27387 .fcf-no-results {
    order: 71;
    flex: 0 0 100%;
    box-sizing: border-box;
    min-width: 0;
}
body.page-id-27387 .entry-content > .fcf-trust { order: 90; }

/* ---- H1: «Каталог черенков  4 481 шт.» — без градиента, иконки и полосы ---- */
body.page-id-27387 .fcf-header {
    display: flex;
    align-items: center;
    min-height: var(--zf-chip-h);
    margin: 0 0 var(--zf-row-gap);
    padding: 0;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

body.page-id-27387 .fcf-header::before,
body.page-id-27387 .fcf-header-line,
body.page-id-27387 .fcf-header-icon {
    display: none;
}

body.page-id-27387 .fcf-header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
}

body.page-id-27387 .fcf-header-title {
    margin: 0;
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--zf-ink);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: currentColor;
    white-space: nowrap;
}

body.page-id-27387 .fcf-header-count {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--zf-ink-3);
    white-space: nowrap;
}

@media (min-width: 769px) {
    body.page-id-27387 .entry-content > .fcf-header {
        flex: 0 1 auto;
        margin: 0 16px 8px 0;
    }
}

/* ---- активные фильтры: тег «Предзаказ ×» и «Сбросить» — одна тихая строка ---- */
body.page-id-27387 .fcf-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: var(--zf-chip-gap);
    min-height: var(--zf-chip-h);
    margin: 0 0 var(--zf-row-gap);
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (min-width: 769px) {
    /* Теги стоят справа от H1 и не резервируют calc(100% - 320px):
       короткий заголовок оставлял дыру, в неё влезал выбор культуры,
       а лента фасетов сжималась до щели у правого края. */
    body.page-id-27387 .entry-content > .fcf-active-filters {
        flex: 1 1 auto;
        min-width: 0;
        margin-bottom: 0;
    }
}

body.page-id-27387 .fcf-filter-tags {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: var(--zf-chip-gap);
    min-width: 0;
    overflow: visible;
    scrollbar-width: none;
}

body.page-id-27387 .fcf-filter-tags::-webkit-scrollbar {
    display: none;
}

body.page-id-27387 .fcf-filter-tag .remove {
    font-size: 12px;
    font-weight: 700;
    color: var(--zf-green-700);
}

body.page-id-27387 .fcf-reset-btn,
body.page-id-27387 .hentry .entry-content a.fcf-reset-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    width: auto;
    min-height: var(--zf-chip-h);
    margin: 0 0 0 4px;
    padding: 0 6px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--zf-ink-3);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--zf-line-2);
    text-underline-offset: 3px;
    white-space: nowrap;
    transform: none;
}

body.page-id-27387 .fcf-reset-btn:hover {
    color: var(--zf-ink);
    background: none;
    box-shadow: none;
    transform: none;
    text-decoration-color: currentColor;
}

/* один тег — «Сбросить» дублирует его ×; --multi значит, что крестик
   снимает только культуру, а наличие или форма ещё включены */
body.page-id-27387 .fcf-active-filters:not(.fcf-active-filters--multi):has(.fcf-filter-tags > .fcf-filter-tag:only-child) .fcf-reset-btn {
    display: none;
}

/* ----------------------------------------------------------------------------
   3. Чипы: культуры, наличие и форма, месяцы, теги — один язык
   Касание 44 (коробка), рисунок 36: прозрачная рамка + background-clip.
   ---------------------------------------------------------------------------- */
body.page-id-27387 .entry-content .fcf-month-chip,
body.page-id-27387 .entry-content .fcf-popular .fcf-plant-card,
body.page-id-27387 .entry-content .fcf-filter-btn,
body.page-id-27387 .entry-content .fcf-filter-tag,
body.page-id-27387 .entry-content .fcf-plants-details > summary,
body.page-id-27387 .entry-content .fcf-mobile-filter-panel > summary {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    width: auto;
    height: var(--zf-chip-h);
    min-height: var(--zf-chip-h);
    margin: 0;
    padding: 0 12px;
    border: var(--zf-chip-inset) solid transparent;
    border-radius: var(--zf-r-chip);
    background: var(--zf-surface);
    background-clip: padding-box;
    box-shadow: inset 0 0 0 1px var(--zf-line-2);
    color: var(--zf-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    list-style: none;
    cursor: pointer;
    transform: none;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
    contain: none;
}

body.page-id-27387 .fcf-plants-details > summary::-webkit-details-marker,
body.page-id-27387 .fcf-mobile-filter-panel > summary::-webkit-details-marker {
    display: none;
}

@media (hover: hover) {
    body.page-id-27387 .entry-content .fcf-month-chip:hover,
    body.page-id-27387 .entry-content .fcf-popular .fcf-plant-card:hover,
    body.page-id-27387 .entry-content .fcf-filter-btn:hover,
    body.page-id-27387 .entry-content .fcf-filter-tag:hover,
    body.page-id-27387 .entry-content .fcf-plants-details > summary:hover,
    body.page-id-27387 .entry-content .fcf-mobile-filter-panel > summary:hover {
        background-color: var(--zf-green-50);
        box-shadow: inset 0 0 0 1px var(--zf-green-600);
        color: var(--zf-green-900);
        transform: none;
    }
}

/* счётчик внутри чипа — вторичен */
body.page-id-27387 .fcf-month-chip b,
body.page-id-27387 .fcf-plant-count,
body.page-id-27387 .fcf-popular .fcf-plant-card .fcf-plant-count {
    display: inline;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--zf-ink-3);
}

/* выбранный чип — заливка бренда */
body.page-id-27387 .entry-content .fcf-month-chip.selected,
body.page-id-27387 .entry-content .fcf-popular .fcf-plant-card.selected,
body.page-id-27387 .entry-content .fcf-filter-btn.active {
    background: var(--zf-green-600);
    background-clip: padding-box;
    box-shadow: none;
    color: #fff;
    transform: none;
}

body.page-id-27387 .entry-content .fcf-filter-btn.fcf-btn-preorder.active {
    background: var(--zf-cta-preorder);
    background-clip: padding-box;
    box-shadow: none;
    color: var(--zf-cta-preorder-ink);
}

body.page-id-27387 .fcf-month-chip.selected b,
body.page-id-27387 .fcf-popular .fcf-plant-card.selected .fcf-plant-count,
body.page-id-27387 .fcf-filter-btn.active .fcf-count {
    color: inherit;
    opacity: 0.85;
}

/* пустые (0 позиций): видны, но явно не кнопка */
body.page-id-27387 .entry-content .fcf-month-chip.is-empty,
body.page-id-27387 .entry-content .fcf-plant-card.is-empty,
body.page-id-27387 .entry-content .fcf-filter-btn.is-empty {
    opacity: 0.5;
    background: var(--zf-tint);
    background-clip: padding-box;
    box-shadow: none;
    color: var(--zf-ink-3);
    cursor: not-allowed;
}

/* Ленты: горизонтальная прокрутка и scroll-snap; правый край затухает.
   Концевой отступ выводит последний чип из маски, --zf-rib-pad бережёт фокус. */
body.page-id-27387 .fcf-popular .fcf-plants-grid,
body.page-id-27387 .fcf-popular-grid,
body.page-id-27387 .fcf-mobile-filter-panel > .fcf-filters,
body.page-id-27387 .fcf-context-controls > .fcf-filters,
body.page-id-27387 .fcf-months {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--zf-chip-gap);
    box-sizing: border-box;
    max-height: none;
    margin: calc(-1 * var(--zf-rib-pad)) 0 calc(-1 * var(--zf-rib-pad)) calc(-1 * var(--zf-rib-pad));
    padding: var(--zf-rib-pad) var(--zf-fade) var(--zf-rib-pad) var(--zf-rib-pad);
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--zf-fade)), transparent calc(100% - 10px));
    mask-image: linear-gradient(90deg, #000 calc(100% - var(--zf-fade)), transparent calc(100% - 10px));
    animation: none;
}

body.page-id-27387 .fcf-popular-grid::-webkit-scrollbar,
body.page-id-27387 .fcf-mobile-filter-panel > .fcf-filters::-webkit-scrollbar,
body.page-id-27387 .fcf-context-controls > .fcf-filters::-webkit-scrollbar,
body.page-id-27387 .fcf-months::-webkit-scrollbar {
    display: none;
    height: 0;
}

/* телефон: ленты во всю ширину экрана — чипы уходят под край, а не режутся полем */
@media (max-width: 768px) {
    body.page-id-27387 .fcf-popular .fcf-plants-grid,
    body.page-id-27387 .fcf-popular-grid,
    body.page-id-27387 .fcf-mobile-filter-panel > .fcf-filters {
        width: auto;
        margin: calc(-1 * var(--zf-rib-pad)) calc(-1 * var(--zf-bleed));
        padding: var(--zf-rib-pad) calc(var(--zf-bleed) + var(--zf-fade)) var(--zf-rib-pad) calc(var(--zf-bleed) - var(--zf-chip-inset));
        scroll-padding-inline: calc(var(--zf-bleed) - var(--zf-chip-inset));
    }
}

/* ---- культуры: чипы с круглым мини-фото, «Все растения ▾» первым -------- */
body.page-id-27387 .fcf-plants,
body.page-id-27387 .fcf-plants.fcf-reveal-target,
html.fcf-js body.page-id-27387 .fcf-plants.fcf-reveal-target {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--zf-chip-gap);
    margin: 0 0 var(--zf-row-gap);
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
    transition: none;
}

/* catalog-filter.css прятал ленту популярных на ≤ 768 — возвращаем чипами */
body.page-id-27387 .fcf-popular {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
}

body.page-id-27387 .fcf-popular-title,
body.page-id-27387 .fcf-popular-counter {
    display: none;
}

body.page-id-27387 .fcf-popular-rail {
    position: relative;
    margin: 0;
    padding: 0;
}

body.page-id-27387 .entry-content .fcf-popular .fcf-plant-card {
    width: auto;
    padding: 0 12px 0 4px;
}

body.page-id-27387 .fcf-popular .fcf-plant-img,
body.page-id-27387 .fcf-popular .fcf-plant-placeholder {
    display: block;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
    background: var(--zf-tint);
    box-shadow: 0 0 0 1px rgba(23, 38, 20, 0.08);
    font-size: 14px;
    line-height: 28px;
    text-align: center;
    transform: none;
    transition: none;
}

body.page-id-27387 .fcf-plant-stats {
    display: none;
}

body.page-id-27387 .fcf-plant-content {
    display: flex;
    flex: none;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
}

body.page-id-27387 .fcf-plant-info {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    margin: 0;
    font-size: 13px;
}

body.page-id-27387 .fcf-plant-info strong {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
}

/* стрелки ленты (ставит JS): только мышь; погашенную прячет catalog-filter.css */
body.page-id-27387 .fcf-popular-nav {
    width: 32px;
    height: 32px;
    margin-top: 0;
    font-size: 16px;
    border-color: var(--zf-line-2);
    color: var(--zf-ink-2);
    box-shadow: 0 1px 4px rgba(23, 38, 20, 0.12);
}

body.page-id-27387 .fcf-popular-nav--prev { left: -6px; }
body.page-id-27387 .fcf-popular-nav--next { right: -6px; }

@media (hover: none), (max-width: 768px) {
    body.page-id-27387 .fcf-popular-nav {
        display: none;
    }
}

/* «Все растения ▾» — чип того же языка; подпись короткая (::before), полная
   фраза PHP («📋 Показать все растения (83 вида)…») скрыта */
body.page-id-27387 .fcf-plants-details {
    order: -1;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

body.page-id-27387 .fcf-plants-details > summary .fcf-summary-closed,
body.page-id-27387 .fcf-plants-details > summary .fcf-summary-open {
    display: none;
}

body.page-id-27387 .fcf-plants-details > summary::before {
    content: "Все растения";
}

body.page-id-27387 .fcf-plants-details > summary::after {
    content: "\25BE";
    content: "\25BE" / "";
    margin: 0;
    font-size: 12px;
    line-height: 1;
    transform: none;
    transition: none;
}

body.page-id-27387 .entry-content .fcf-plants-details[open] > summary {
    background: var(--zf-green-600);
    background-clip: padding-box;
    box-shadow: none;
    color: #fff;
}

body.page-id-27387 .fcf-plants-details[open] > summary::before {
    content: "Свернуть";
}

body.page-id-27387 .fcf-plants-details[open] > summary::after {
    content: "\25B4";
    content: "\25B4" / "";
}

/* список А–Я: плотные текстовые строки, без 91 картинки (не грузятся) */
body.page-id-27387 .fcf-plants-details .fcf-plants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2px 10px;
    max-height: none;
    margin: 0;
    padding: 8px 0 4px;
    border: 0;
    border-top: 1px solid var(--zf-line);
    border-radius: 0;
    background: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
    animation: none;
}

/* закрытый список А–Я не должен получать display:grid (правило выше специфичнее UA-скрытия
   details:not([open]) > *): движки, которые прячут содержимое закрытого details через display:none,
   иначе покажут его раскрытым и с коробкой в несколько тысяч px */
body.page-id-27387 .fcf-plants-details:not([open]) > .fcf-plants-grid {
    display: none;
}

body.page-id-27387 .fcf-plants-details .fcf-plants-grid .fcf-plant-card,
body.page-id-27387 .hentry .entry-content .fcf-plants-details a.fcf-plant-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
    width: auto;
    height: auto;
    min-height: 44px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: none;
    box-shadow: none;
    color: var(--zf-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transform: none;
}

body.page-id-27387 .fcf-plants-details .fcf-plants-grid .fcf-plant-img,
body.page-id-27387 .fcf-plants-details .fcf-plants-grid .fcf-plant-placeholder {
    display: none;
}

body.page-id-27387 .fcf-plants-details .fcf-plants-grid .fcf-plant-card:hover {
    background: var(--zf-green-50);
}

body.page-id-27387 .fcf-plants-details .fcf-plants-grid .fcf-plant-card.selected {
    background: var(--zf-green-600);
    color: #fff;
}

body.page-id-27387 .fcf-plants-expand {
    display: none;
}

@media (min-width: 769px) {
    body.page-id-27387 .fcf-plants-details[open] {
        flex: 1 0 100%;
        order: 1;
    }

    body.page-id-27387 .fcf-plants-details[open] .fcf-plants-grid {
        margin-top: 8px;
    }

    @media (hover: hover) and (pointer: fine) {
        body.page-id-27387 .fcf-plants-details .fcf-plants-grid .fcf-plant-card,
        body.page-id-27387 .hentry .entry-content .fcf-plants-details a.fcf-plant-card {
            min-height: 36px;
        }
    }
}

/* отфильтрованная страница: H1 и тег культуры — первый ряд,
   «Все растения» и четыре фасета — второй, на всю ширину выдачи.
   Без :has() ряд остаётся полным, как у чистой страницы. */
@media (min-width: 769px) {
    body.page-id-27387 .entry-content {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: var(--zf-chip-gap);
    }

    body.page-id-27387 .entry-content > * {
        grid-column: 1 / -1;
    }

    body.page-id-27387 .entry-content:has(> .fcf-trust) > .fcf-header,
    body.page-id-27387 .entry-content:has(> .fcf-active-filters) > .fcf-header {
        grid-column: 1;
        width: auto;
        margin: 0 16px 0 0;
    }

    body.page-id-27387 .entry-content > .fcf-trust,
    body.page-id-27387 .entry-content > .fcf-active-filters {
        grid-column: 2;
        min-width: 0;
        margin-bottom: 0;
    }

    body.page-id-27387 .entry-content > .fcf-plants:not(:has(.fcf-popular)):not(:has(.fcf-plants-details[open])) {
        display: contents;
    }

    /* Панель фасетов несёт margin-bottom: var(--zf-row-gap), чип культур — нет.
       center опускал «Все растения» на половину этого поля, и чип лип к шву.
       start равняет его низ с низом фасетов: под обоими остаётся весь зазор. */
    body.page-id-27387 .entry-content > .fcf-plants:not(:has(.fcf-popular)):not(:has(.fcf-plants-details[open])) > .fcf-plants-details {
        order: 30;
        grid-column: 1;
        align-self: start;
        margin: 0;
    }

    body.page-id-27387 .entry-content > .fcf-plants:not(:has(.fcf-popular)):not(:has(.fcf-plants-details[open])) + .fcf-mobile-filter-panel {
        grid-column: 2;
        min-width: 0;
        width: auto;
        margin: 0 0 var(--zf-row-gap);
    }

    /* Сортировка и номер страницы начинались на кромке шва. Тот же
       var(--zf-row-gap), что уже отделяет фасеты, отодвигает их вниз.
       Телефонная липкая полоса (max-width: 768) задаёт свой padding. */
    body.page-id-27387 .woocommerce > .storefront-sorting:first-child {
        padding-top: var(--zf-row-gap);
    }
}

/* Синяя полоса шва. Раньше это была обводка фокуса якоря #fcf-results:
   фрагмент есть в ссылках пагинации, поэтому полоса вспыхивала только
   после перехода, а чистая первая страница открывалась без неё.
   Кольцо 2px вокруг нулевой высоты схлопывается в полосу 4px.
   Фокус ту же обводку не добавляет, иначе после клика полоса двоится. */
body.page-id-27387 .fcf-results-anchor {
    box-shadow: 0 0 0 2px #017aff;
}

body.page-id-27387 .fcf-results-anchor:focus {
    outline: none;
}

/* На телефоне сортировка уезжает в липкую шапку, и полоса оказывается
   прямо над карточками. Нижнее поле не даёт ей лечь на фото. */
@media (max-width: 768px) {
    body.page-id-27387 .fcf-results-anchor {
        margin-bottom: 8px;
    }
}

/* ---- наличие и форма: лента чипов (панель открыта; PHP-1) ---------------- */
body.page-id-27387 .fcf-mobile-filter-panel {
    margin: 0 0 var(--zf-row-gap);
    padding: 0;
    border: 0;
    background: none;
}

body.page-id-27387 .fcf-mobile-filter-panel[open] > summary {
    display: none;
}

body.page-id-27387 .fcf-filters-label {
    display: none;
}

body.page-id-27387 .fcf-filters-sep {
    display: block;
    flex: 0 0 auto;
    align-self: center;
    width: 1px;
    height: 20px;
    margin: 0 6px;
    background: var(--zf-line-2);
}

body.page-id-27387 .fcf-avail-filters,
body.page-id-27387 .fcf-type-filters {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: var(--zf-chip-gap);
    width: auto;
    margin: 0;
    padding: 0;
}

/* эмодзи внутри чипов — шум; у активного чипа первый span — «✓», он нужен */
body.page-id-27387 .fcf-filter-btn > span:first-child {
    display: none;
}

body.page-id-27387 .fcf-filter-btn.active > span:first-child {
    display: inline;
    font-weight: 700;
    animation: none;
}

/* цветные точки: ● зелёная — в наличии, ● рыжая — предзаказ (3,1:1 и 5,1:1 к белому) */
body.page-id-27387 .fcf-btn-stock::before,
body.page-id-27387 .fcf-btn-preorder::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--zf-green-600);
}

body.page-id-27387 .fcf-btn-preorder::before {
    background: var(--zf-orange-700);
}

body.page-id-27387 .fcf-filter-btn.active::before,
body.page-id-27387 .fcf-filter-btn.is-empty::before {
    display: none;
}

@media (hover: hover) {
    body.page-id-27387 .entry-content .fcf-btn-preorder:not(.active):hover {
        background-color: var(--zf-orange-50);
        box-shadow: inset 0 0 0 1px var(--zf-orange-700);
        color: var(--zf-orange-ink);
    }
}

/* закрытая панель (старый HTML на телефоне: inline-скрипт снимает open) —
   одна строка-чип «Фильтры · Наличие и форма ▾» того же языка */
body.page-id-27387 .fcf-mobile-filter-panel:not([open]) > summary .fcf-mobile-filter-state {
    color: var(--zf-ink-3);
    font-size: 12px;
    font-weight: 500;
}

body.page-id-27387 .fcf-mobile-filter-panel:not([open]) > summary::after {
    content: "\25BE";
    content: "\25BE" / "";
    font-size: 12px;
}

/* ---- месяцы предзаказа: лента; месяц «= итогу» вторичен (PHP-2 is-total) -- */
/* лента месяцев — сама строка флекса: запас под кольцо фокуса гасим отрицательными полями */
body.page-id-27387 .entry-content > .fcf-months {
    margin: calc(-1 * var(--zf-rib-pad)) 0 calc(var(--zf-row-gap) - var(--zf-rib-pad)) calc(-1 * var(--zf-rib-pad));
}

body.page-id-27387 .entry-content .fcf-month-chip.is-total:not(.selected) {
    box-shadow: inset 0 0 0 1px var(--zf-line);
    color: var(--zf-ink-2);
    font-weight: 500;
}

body.page-id-27387 .fcf-month-chip.is-total b {
    display: none;
}

body.page-id-27387 .entry-content .fcf-month-chip--next:not(.selected) {
    color: var(--zf-ink);
}

/* Четыре главных фасета не уезжают в боковую ленту. Пары «наличие» и «форма»
   переносятся целиком, если колонка уже их суммы. Месяцы остаются лентой:
   их до двенадцати, и свёртка в несколько рядов уводит сетку с первого экрана. */
body.page-id-27387 .fcf-mobile-filter-panel > .fcf-filters {
    flex-wrap: wrap;
    overflow: visible;
    scroll-snap-type: none;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    mask-image: none;
    -webkit-mask-image: none;
}

body.page-id-27387 .fcf-avail-filters,
body.page-id-27387 .fcf-type-filters {
    max-width: 100%;
}

@media (max-width: 768px) {
    body.page-id-27387 .fcf-mobile-filter-panel {
        flex: 0 0 100%;
    }

    body.page-id-27387 .fcf-mobile-filter-panel > .fcf-filters,
    body.page-id-27387 .fcf-context-controls > .fcf-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 0;
        padding: 0;
    }

    body.page-id-27387 .fcf-mobile-filter-panel .fcf-avail-filters,
    body.page-id-27387 .fcf-mobile-filter-panel .fcf-type-filters,
    body.page-id-27387 .fcf-context-controls .fcf-avail-filters,
    body.page-id-27387 .fcf-context-controls .fcf-type-filters {
        display: contents;
    }

    body.page-id-27387 .fcf-mobile-filter-panel .fcf-filters-sep,
    body.page-id-27387 .fcf-context-controls .fcf-filters-sep {
        display: none;
    }

    body.page-id-27387 .entry-content .fcf-filter-btn {
        width: 100%;
        height: auto;
        min-height: 44px;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }
}

/* ----------------------------------------------------------------------------
   4. Тулбар: счётчик · тихая сортировка · пагинация (десктоп, одна строка)
   ---------------------------------------------------------------------------- */
body.page-id-27387 .storefront-sorting,
body.page-id-27387 .woocommerce .storefront-sorting {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0 0 12px !important;
    padding: 0;
    min-height: var(--zf-chip-h);
    text-align: left;
    border: 0;
}

body.page-id-27387 .storefront-sorting::before,
body.page-id-27387 .storefront-sorting::after {
    content: none;
    display: none;
}

body.page-id-27387 .storefront-sorting .woocommerce-notices-wrapper:empty {
    display: none;
}

body.page-id-27387 .storefront-sorting .woocommerce-result-count {
    order: 1;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    float: none;
    font-size: 13px;
    line-height: 1.3;
    color: var(--zf-ink-3);
    white-space: nowrap;
}

body.page-id-27387 .storefront-sorting form.woocommerce-ordering {
    order: 2;
    position: static;
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    padding: 0;
    float: none;
}

body.page-id-27387 .storefront-sorting > .woocommerce-pagination {
    order: 3;
    flex: 0 0 auto;
    margin: 0;
}

/* тихий select: рисунок чипа, 36 (мышь) / 44 (касание) */
body.page-id-27387 .storefront-sorting select.orderby,
body.page-id-27387 .woocommerce-ordering select.orderby {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: auto;
    max-width: 220px;
    height: var(--zf-chip-h);
    min-height: var(--zf-chip-h);
    margin: 0;
    padding: 0 30px 0 12px;
    border: var(--zf-chip-inset) solid transparent;
    border-radius: calc(var(--zf-r-btn) + var(--zf-chip-inset));
    background-color: var(--zf-surface);
    background-clip: padding-box;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%234c574a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
    color: var(--zf-ink-2);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    box-shadow: inset 0 0 0 1px var(--zf-line-2);
    cursor: pointer;
}

body.page-id-27387 .woocommerce-ordering select.orderby:hover {
    box-shadow: inset 0 0 0 1px var(--zf-green-600);
}

/* ---- пагинация: тихие числа, текущая — залита -------------------------------- */
body.page-id-27387 .woocommerce-pagination {
    margin: 0;
    padding: 0;
    text-align: right;
    float: none;
    border: 0;
}

body.page-id-27387 .woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

body.page-id-27387 .woocommerce-pagination ul.page-numbers li {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    float: none;
}

body.page-id-27387 .woocommerce-pagination .page-numbers li a,
body.page-id-27387 .woocommerce-pagination .page-numbers li span,
body.page-id-27387 .hentry .entry-content .woocommerce-pagination a.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: var(--zf-chip-h);
    height: var(--zf-chip-h);
    min-height: var(--zf-chip-h);
    padding: 0 8px;
    border: var(--zf-chip-inset) solid transparent;
    border-radius: calc(var(--zf-r-btn) + var(--zf-chip-inset));
    background: none;
    background-clip: padding-box;
    color: var(--zf-ink-2);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
}

body.page-id-27387 .woocommerce-pagination .page-numbers li a:hover {
    background: var(--zf-green-50);
    background-clip: padding-box;
    box-shadow: inset 0 0 0 1px var(--zf-line-2);
    color: var(--zf-green-900);
    text-decoration: none;
}

body.page-id-27387 .woocommerce-pagination .page-numbers li span.current {
    border-color: transparent;
    background: var(--zf-green-600);
    background-clip: padding-box;
    box-shadow: none;
    color: #fff;
}

body.page-id-27387 .woocommerce-pagination .page-numbers li span.dots {
    min-width: 24px;
    padding: 0;
    color: var(--zf-ink-3);
}

/* нижняя пагинация — по центру, с воздухом от сетки */
body.page-id-27387 .woocommerce > .storefront-sorting:last-child {
    justify-content: center;
    margin: 16px 0 0 !important;
}

body.page-id-27387 .woocommerce > .storefront-sorting:last-child .woocommerce-pagination {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    text-align: center;
}

body.page-id-27387 .woocommerce > .storefront-sorting:last-child ul.page-numbers {
    justify-content: center;
}

/* 5. Телефон/планшет ≤768: H1, details и сортировка составляют sticky-полосу52px.
   Она следует за compact-шапкой82px; header-hidden уводит её вместе с шапкой.
   JS дополняет GET-контекст без нового начального ряда. */
body.page-id-27387 .fcf-sticky-context {
    display: none;
}

body.page-id-27387 .fcf-context-controls {
    display: none;
}

@media (max-width: 768px) {
    body.page-id-27387 #masthead.header-compact:not(.header-hidden) ~ #content {
        --zf-strip-top: var(--zf-hdr-compact);
    }

    /* открыт список «Все растения» — полоса не уезжает, пока он открыт */
    body.page-id-27387 #masthead.header-hidden ~ #content:has(.fcf-plants-details[open]) {
        --zf-strip-top: 0px;
    }

    /* блоки-обёртки уступают детей флекс-строке (DOM и табуляция прежние) */
    body.page-id-27387 .entry-content > .fcf-plants,
    body.page-id-27387 .entry-content > .fcf-plants.fcf-reveal-target,
    html.fcf-js body.page-id-27387 .entry-content > .fcf-plants.fcf-reveal-target,
    body.page-id-27387 .entry-content > .woocommerce {
        display: contents;
    }

    body.page-id-27387 .entry-content > .fcf-header { order: 10; flex: 1 1 0; }
    body.page-id-27387 .fcf-plants > .fcf-plants-details { order: 11; flex: 0 0 auto; }
    body.page-id-27387 .woocommerce > .storefront-sorting:first-child { order: 12; flex: 0 0 auto; }
    body.page-id-27387 .fcf-plants > .fcf-popular { order: 30; flex: 0 0 100%; }
    body.page-id-27387 .entry-content > .fcf-mobile-filter-panel { order: 40; }
    body.page-id-27387 .entry-content > .fcf-active-filters { order: 35; flex: 0 0 100%; max-width: none; justify-content: flex-start; }
    body.page-id-27387 .entry-content > .fcf-months { order: 50; flex: 1 1 0; }
    body.page-id-27387 .woocommerce > ul.products { order: 70; flex: 0 0 100%; }
    body.page-id-27387 .woocommerce > .storefront-sorting:last-child { order: 72; flex: 0 0 100%; }
    /* любой другой ребёнок выдачи (уведомление Woo и т. п.) — над сеткой, а не в строке 1 */
    body.page-id-27387 .woocommerce > :not(.storefront-sorting):not(.products) { order: 65; flex: 0 0 100%; }

    /* строка 1 = липкая полоса */
    body.page-id-27387 .entry-content > .fcf-header,
    body.page-id-27387 .fcf-plants > .fcf-plants-details,
    body.page-id-27387 .woocommerce > .storefront-sorting:first-child {
        position: -webkit-sticky;
        position: sticky;
        top: var(--zf-strip-top);
        z-index: 30;
        box-sizing: border-box;
        height: var(--zf-strip-h);
        min-height: 0;
        margin: 0 0 var(--zf-row-gap);
        padding: 4px 0;
        background: var(--zf-surface);
        transition: top 0.2s ease, box-shadow 0.2s ease;
    }

    body.page-id-27387 .entry-content > .fcf-header {
        margin-left: calc(-1 * var(--zf-bleed));
        padding-left: var(--zf-bleed);
    }

    body.page-id-27387 .fcf-plants > .fcf-plants-details {
        z-index: 31;
        padding-left: 6px;
    }

    body.page-id-27387 .woocommerce > .storefront-sorting:first-child {
        z-index: 31;
        gap: 0;
        margin: 0 calc(-1 * var(--zf-bleed)) var(--zf-row-gap) 0 !important;
        padding: 4px var(--zf-bleed) 4px 6px;
    }

    body.page-id-27387 #masthead.header-compact:not(.header-hidden) ~ #content .entry-content > .fcf-header,
    body.page-id-27387 #masthead.header-compact:not(.header-hidden) ~ #content .fcf-plants > .fcf-plants-details,
    body.page-id-27387 #masthead.header-compact:not(.header-hidden) ~ #content .woocommerce > .storefront-sorting:first-child,
    body.page-id-27387 #masthead.header-hidden ~ #content:has(.fcf-plants-details[open]) .entry-content > .fcf-header,
    body.page-id-27387 #masthead.header-hidden ~ #content:has(.fcf-plants-details[open]) .fcf-plants > .fcf-plants-details,
    body.page-id-27387 #masthead.header-hidden ~ #content:has(.fcf-plants-details[open]) .woocommerce > .storefront-sorting:first-child {
        box-shadow: 0 1px 0 var(--zf-line), 0 10px 12px -12px rgba(23, 38, 20, 0.45);
    }

    /* H1 и «N шт.» — столбиком, одна строка названия */
    body.page-id-27387 .fcf-header-content {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 1px;
    }

    body.page-id-27387 .fcf-header-title {
        font-size: 18px;
        line-height: 1.2;
    }

    body.page-id-27387 .fcf-header-count {
        font-size: 12px;
        line-height: 1.2;
    }

    /* Счётчик «N шт.» остаётся видимым и после сжатия шапки. Контекст фильтра
       стоит рядом и не подменяет число: иначе «В наличии 2» читалось как остаток,
       пока фильтр показывал «В наличии (294)». */

    body.page-id-27387 #masthead.header-compact ~ #content .fcf-sticky-context {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 0 5px;
        font-size: 11px;
        line-height: 1.2;
        font-weight: 600;
        color: var(--zf-ink-2);
    }

    body.page-id-27387 .fcf-sticky-context > span {
        white-space: nowrap;
    }

    /* сортировка — иконка ⇅ 44×44 (1,2 % использования); подпись — в aria-label
       и в системном списке вариантов */
    body.page-id-27387 .storefront-sorting select.orderby,
    body.page-id-27387 .woocommerce-ordering select.orderby {
        width: 44px;
        min-width: 44px;
        max-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border-radius: 999px;
        font-size: 16px; /* iOS не увеличивает поле при фокусе */
        color: transparent;
        text-shadow: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%234c574a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M6 3v14M3 14l3 3 3-3M14 17V3M11 6l3-3 3 3'/%3E%3C/svg%3E");
        background-position: center;
        background-size: 18px 18px;
    }

    body.page-id-27387 .woocommerce-ordering select.orderby option {
        color: var(--zf-ink);
    }

    body.page-id-27387 .storefront-sorting form.woocommerce-ordering {
        margin: 0;
    }

    /* «Отображение 1–48 из N» — только для скринридера (число есть в строке H1) */
    body.page-id-27387 .woocommerce > .storefront-sorting:first-child .woocommerce-result-count {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    body.page-id-27387 .woocommerce > .storefront-sorting:first-child .woocommerce-pagination {
        display: none;
    }

    /* в липкой полосе чип культур — «Фильтры ▾»: открывает панель со списком
       культур и (где есть :has) лентой наличия и формы */
    body.page-id-27387 #masthead.header-compact ~ #content .fcf-plants-details:not([open]) > summary::before {
        content: "Фильтры";
    }

    /* список «Все растения» на телефоне — выпадающая панель под полосой:
       не сдвигает сетку и едет вместе с липкой полосой */
    body.page-id-27387 .fcf-plants-details[open] > .fcf-plants-grid {
        position: absolute;
        top: 100%;
        right: calc(-1 * (44px + 6px + var(--zf-bleed)));
        left: auto;
        z-index: 32;
        box-sizing: border-box;
        width: 100vw;
        max-height: 70vh;
        max-height: min(70dvh, calc(100dvh - var(--zf-hdr-compact) - var(--zf-strip-h) - 84px));
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0;
        padding: 8px var(--zf-bleed) 16px;
        overflow-y: auto;
        overscroll-behavior: contain;
        /* тени прокрутки: нижняя кромка темнеет, пока список не дочитан (обложки local прячут тень у края) */
        background:
            linear-gradient(var(--zf-surface) 30%, rgba(255, 255, 255, 0)) 0 0 / 100% 40px no-repeat local,
            linear-gradient(rgba(255, 255, 255, 0), var(--zf-surface) 70%) 0 100% / 100% 40px no-repeat local,
            radial-gradient(farthest-side at 50% 0, rgba(23, 38, 20, 0.28), rgba(23, 38, 20, 0)) 0 0 / 100% 14px no-repeat scroll,
            radial-gradient(farthest-side at 50% 100%, rgba(23, 38, 20, 0.28), rgba(23, 38, 20, 0)) 0 100% / 100% 14px no-repeat scroll,
            var(--zf-surface);
        border-top: 1px solid var(--zf-line);
        border-radius: 0 0 var(--zf-r-card) var(--zf-r-card);
        box-shadow: 0 16px 28px -12px rgba(23, 38, 20, 0.35);
    }

    body.page-id-27387 .fcf-plants-details[open] > .fcf-plants-grid::before {
        content: "Все растения, А–Я";
        grid-column: 1 / -1;
        padding: 4px 8px 2px;
        font-size: 12px;
        font-weight: 600;
        color: var(--zf-ink-3);
    }

    body.page-id-27387 .fcf-context-controls {
        display: block;
        grid-column: 1 / -1;
        order: -1;
        min-width: 0;
        padding-bottom: 6px;
        border-bottom: 1px solid var(--zf-line);
    }

    body.page-id-27387 .fcf-context-controls > .fcf-filters {
        margin: 0;
    }

    body.page-id-27387 .fcf-context-controls > .fcf-months {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        margin: 0;
        padding: 0;
        overflow: visible;
        background: none;
        mask-image: none;
        -webkit-mask-image: none;
    }

    body.page-id-27387 .fcf-context-months .fcf-month-chip b,
    body.page-id-27387 .fcf-context-months::before,
    body.page-id-27387 .fcf-context-months::after {
        display: none;
    }

    /* в липкой полосе к списку культур подтягивается лента наличия и формы */
    body.page-id-27387 #masthead.header-compact ~ #content .fcf-plants:has(> .fcf-plants-details[open]) ~ .fcf-mobile-filter-panel {
        position: -webkit-sticky;
        position: sticky;
        top: calc(var(--zf-strip-top) + var(--zf-strip-h));
        z-index: 33;
        background: var(--zf-surface);
    }

    body.page-id-27387 #masthead.header-compact ~ #content:has(.fcf-plants-details[open]) .fcf-plants-details[open] > .fcf-plants-grid {
        padding-top: calc(var(--zf-chip-h) + 10px);
    }

    /* Enhanced disclosure owns its facets/months; do not lay the original
       availability rail over the panel's first row. */
    body.page-id-27387 #masthead.header-compact ~ #content:has(.fcf-header.fcf-context-ready) .fcf-plants-details[open] > .fcf-plants-grid {
        padding-top: 8px;
    }

    body.page-id-27387 #masthead.header-compact ~ #content:has(.fcf-context-ready) .fcf-plants:has(> .fcf-plants-details[open]) ~ .fcf-mobile-filter-panel {
        visibility: hidden;
    }

    /* теги фильтра делят строку с месяцами (месяцы — лента справа, до края экрана) */
    body.page-id-27387 .entry-content > .fcf-months {
        margin: calc(-1 * var(--zf-rib-pad)) calc(-1 * var(--zf-bleed)) calc(var(--zf-row-gap) - var(--zf-rib-pad)) calc(-1 * var(--zf-rib-pad));
        padding-right: calc(var(--zf-bleed) + var(--zf-fade));
    }

    /* полоса доверия и итоговая статистика на телефоне скрыты (А2) */
    body.page-id-27387 .fcf-trust {
        display: none;
    }
}

@media (min-width: 600px) and (max-width: 768px) {
    body.page-id-27387 { --zf-row-gap: 0px; }
    body.page-id-27387 .fcf-plants-details[open] > .fcf-plants-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 359px) {
    body.page-id-27387 .fcf-header-title {
        font-size: 16px;
    }

    body.page-id-27387 .fcf-plants-details:not([open]) > summary::before {
        content: "Растения";
    }
}

/* ---- доверие (А2): тихая строка справа в ряду H1 на чистой выдаче; на
   отфильтрованной там теги фильтра, доверие не нужно; на телефоне скрыто ---- */
body.page-id-27387 .fcf-trust {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-height: var(--zf-chip-h);
    margin: 0 0 8px auto;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (min-width: 769px) {
    body.page-id-27387 .entry-content > .fcf-trust {
        order: 11;
        flex: 0 1 auto;
    }
}

body.page-id-27387 .fcf-header--filtered ~ .fcf-trust {
    display: none;
}

body.page-id-27387 .fcf-trust-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

body.page-id-27387 .fcf-trust-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--zf-ink-2);
}

body.page-id-27387 .fcf-trust-label {
    margin: 0;
    font-size: 13px;
    color: var(--zf-ink-3);
}

body.page-id-27387 .fcf-trust-sep {
    height: 14px;
    background: var(--zf-line-2);
}

/* третий повтор счётчика («Найдено позиций: N») — не нужен */
body.page-id-27387 .fcf-stats {
    display: none;
}

/* ----------------------------------------------------------------------------
   6. Сетка: 2 (320–599) · 3 (600–899) · 4 (900–1199) · 5 (1200–1599) · 6 (≥ 1600)
   Ограничение ширины карточки на верхнем крае диапазона гасит скачок фото.
   ---------------------------------------------------------------------------- */
:is(body.page-id-27387, body.flora-label-cards) ul.products:has(> li.product.type-product),
:is(body.page-id-27387, body.flora-label-cards) ul.products.columns-4:has(> li.product.type-product),
:is(body.page-id-27387, body.flora-label-cards) .woocommerce ul.products.columns-4:has(> li.product.type-product) {
    display: grid !important;
    grid-template-columns: repeat(var(--zf-cols), minmax(0, var(--zf-card-max))) !important;
    justify-content: start;
    gap: var(--zf-gap) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products:has(> li.product.type-product)::before,
:is(body.page-id-27387, body.flora-label-cards) ul.products:has(> li.product.type-product)::after {
    display: none !important;
    content: none !important;
}

/* 7. Карточка: ссылка занимает оба столбца; кнопка и степпер справа внизу.
   Цена резервирует ширину действия. Высота степпера = высота кнопки. */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product,
:is(body.page-id-27387, body.flora-label-cards) ul.products.columns-4 li.product.type-product,
:is(body.page-id-27387, body.flora-label-cards) .woocommerce ul.products.columns-4 li.product.type-product {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-content: stretch !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    background: var(--zf-surface) !important;
    border: 0 !important;
    border-radius: var(--zf-r-card) !important;
    box-shadow: var(--zf-shadow-card) !important;
    overflow: visible !important;
    opacity: 1 !important;
    transform: none !important;
    transition: box-shadow 0.18s ease !important;
    text-align: left !important;
    container: zfcard / inline-size;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product:hover {
    transform: none !important;
    border-color: transparent !important;
}

@media (hover: hover) and (pointer: fine) {
    :is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product:hover{
        box-shadow: var(--zf-shadow-card-hover) !important;
    }
}

/* ---- ссылка-обёртка: колонка фото → название → мета → цена ------------------- */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.woocommerce-loop-product__link {
    grid-column: 1 / -1;
    grid-row: 1;
    position: relative !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    margin: 0;
    padding: 0 0 var(--zf-card-pb);
    color: var(--zf-ink);
    text-decoration: none !important;
    border-radius: var(--zf-r-card);
    outline: none;
}

/* ---- фото: квадрат 1:1 во всю ширину, исходники квадратные — без кропа ------ */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-product-image-wrap {
    order: 0;
    position: relative;
    display: block !important;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: var(--zf-r-card) var(--zf-r-card) 0 0;
    background: var(--zf-tint);
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product img.attachment-woocommerce_thumbnail,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-product-image-wrap img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
    background: var(--zf-tint);
}

/* нет фото: плейсхолдер WooCommerce вписан, приглушён, с подписью */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-product-image-wrap img.woocommerce-placeholder {
    box-sizing: border-box;
    object-fit: contain;
    padding: 30% 30% 38% !important;
    opacity: 0.45;
    mix-blend-mode: multiply;
    background: transparent;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-product-image-wrap:has(img.woocommerce-placeholder) {
    background: linear-gradient(180deg, var(--zf-tint) 0%, var(--zf-tint-2) 100%);
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-product-image-wrap:has(img.woocommerce-placeholder)::before {
    content: "Фото готовится";
    position: absolute;
    left: 0;
    right: 0;
    top: 62%;
    z-index: 2;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--zf-ink-3);
    pointer-events: none;
}

/* Форма на фото: новая .flora-loop-form точна, старый HTML получает ::after
   по SKU «N.» только через :has() и при отсутствии новой разметки.
   Без :has() неподтверждённый горшок не показывается. Плашка справа внизу. */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-loop-form,
body.page-id-27387 ul.products li.product.type-product .flora-product-image-wrap::after {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 3;
    display: inline-block;
    box-sizing: border-box;
    max-width: calc(100% - 16px);
    padding: 3px 8px;
    border-radius: var(--zf-r-chip);
    background: rgba(255, 255, 255, 0.95);
    color: var(--zf-ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(23, 38, 20, 0.16), 0 0 0 1px rgba(23, 38, 20, 0.08);
    pointer-events: none;
}

body.page-id-27387 ul.products li.product.type-product:not(.product-type-variable):not(:has(.flora-loop-form, .flora-loop-status)) .flora-product-image-wrap::after {
    content: "Горшок";
}

body.page-id-27387 ul.products li.product.type-product:not(.product-type-variable):not(:has(.flora-loop-form, .flora-loop-status)):has(> a.button[data-product_sku^="N."]) .flora-product-image-wrap::after {
    content: "Срез";
}

/* ---- факты на фото: «Хит» → «Новинка». Режим остаётся в мета и CTA --------- */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-loop-preorder-badge {
    display: none;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-hit-badge-wrapper {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 4;
    pointer-events: none;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-hit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 3px 8px;
    border-radius: var(--zf-r-chip);
    background: var(--zf-red-600);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: none;
    animation: none;
    transform: none;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-hit-fire,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-hit-pulse {
    display: none;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product:hover .flora-hit-badge {
    transform: none;
}

/* «Новинка» — вместо косой анимированной ленты (она садилась на плашку формы) */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-new-ribbon {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
    bottom: auto;
    z-index: 4;
    width: auto;
    padding: 3px 8px;
    border-radius: var(--zf-r-chip);
    background: var(--zf-green-600);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    transform: none;
    box-shadow: none;
    animation: none;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-new-ribbon::before,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-new-ribbon::after {
    content: none;
    display: none;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product:has(.flora-hit-badge-wrapper) .flora-new-ribbon {
    top: 34px;
}

/* ---- сердце: зона 44 (касание) / 36 (мышь), кружок 34 / 32 ---------------- */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > button.flora-wishlist-btn-loop,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-wishlist-btn-loop {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    z-index: 6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: var(--zf-heart-box) !important;
    height: var(--zf-heart-box) !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer !important;
    animation: none !important;
    transform: none !important;
    transition: none !important;
    color: var(--zf-pink-600);
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-wishlist-btn-loop::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--zf-heart-dot);
    height: var(--zf-heart-dot);
    margin: calc(var(--zf-heart-dot) / -2) 0 0 calc(var(--zf-heart-dot) / -2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(23, 38, 20, 0.22);
    transition: background-color 0.15s ease, transform 0.12s ease;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-wishlist-btn-loop i {
    position: relative;
    z-index: 1;
    font-size: 15px;
    line-height: 1;
    color: var(--zf-pink-600) !important;
    text-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
    :is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-wishlist-btn-loop:hover{
        background: transparent !important;
        transform: none !important;
    }

    :is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-wishlist-btn-loop:hover::before{
        background: #fff;
        transform: scale(1.08);
    }

    :is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-wishlist-btn-loop:hover i{
        color: #c8123f !important;
    }
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-wishlist-btn-loop:active::before {
    transform: scale(0.92);
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-wishlist-btn-loop.in-wishlist,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-wishlist-btn-loop.in-wishlist:hover {
    background: transparent !important;
    box-shadow: none !important;
    animation: none !important;
    transform: none !important;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-wishlist-btn-loop.in-wishlist::before {
    background: var(--zf-pink-600);
    box-shadow: 0 1px 3px rgba(23, 38, 20, 0.25);
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-wishlist-btn-loop.in-wishlist i {
    color: #fff !important;
    animation: none !important;
}

/* ---- название: ровно 2 строки, форма из хвоста скрыта визуально (PHP-3) ----- */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .woocommerce-loop-product__title,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product h2.woocommerce-loop-product__title {
    order: 1;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    box-sizing: border-box;
    min-height: calc(var(--zf-title-fs) * var(--zf-title-lh) * 2) !important;
    max-height: calc(var(--zf-title-fs) * var(--zf-title-lh) * 2) !important;
    margin: var(--zf-title-mt) var(--zf-card-px) 0 !important;
    padding: 0 !important;
    font-size: var(--zf-title-fs) !important;
    font-weight: 600 !important;
    line-height: var(--zf-title-lh) !important;
    color: var(--zf-ink) !important;
    text-align: left !important;
    hyphens: manual !important;
    -webkit-hyphens: manual !important;
    overflow-wrap: anywhere !important;
    transition: none !important;
}

/* хвост «0,1л» / «(срез/5шт.)» — на плашке; текст остаётся в DOM и в имени ссылки */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-loop-title-form {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (hover: hover) and (pointer: fine) {
    :is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product:hover .woocommerce-loop-product__title{
        color: var(--zf-green-900) !important;
    }
}

/* ---- мета: статус · артикул ------------------------------------------------- */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-product-sku {
    order: 2;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
    margin: var(--zf-meta-mt) var(--zf-card-px) 0 !important;
    padding: 0 !important;
    font-size: var(--zf-meta-fs) !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: var(--zf-ink-3) !important;
    white-space: nowrap;
    overflow: hidden;
    text-align: left !important;
}

/* статус: разметка .flora-loop-status (PHP-4); старый HTML — запас ::before по классу li.
   Запас — только через :has() и только без разметки: иначе статус задвоится. */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-product-sku::before,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-loop-status {
    flex: 0 0 auto;
    font-weight: 600;
    color: var(--zf-green-600);
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product:not(.product-type-variable) .flora-product-sku:not(:has(.flora-loop-status))::before {
    content: "В наличии";
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.onbackorder:not(.product-type-variable) .flora-product-sku:not(:has(.flora-loop-status))::before,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.product_cat-preorder:not(.product-type-variable) .flora-product-sku:not(:has(.flora-loop-status))::before {
    content: "Предзаказ";
    color: var(--zf-orange-ink);
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.outofstock:not(.product-type-variable) .flora-product-sku:not(:has(.flora-loop-status))::before {
    content: "Нет в наличии";
    color: var(--zf-ink-3);
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-loop-status.is-preorder {
    color: var(--zf-orange-ink);
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-loop-status.is-out {
    color: var(--zf-ink-3);
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-product-sku .sku-label {
    flex: 0 0 auto;
    color: var(--zf-ink-3);
}

/* точка-разделитель «статус · артикул» — только когда статус есть (без статуса
   у вариативного и в браузере без :has() на старом HTML — без висячей точки) */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-loop-status ~ .sku-label::before,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product:not(.product-type-variable) .flora-product-sku:not(:has(.flora-loop-status)) .sku-label::before {
    content: "\00B7";
    content: "\00B7" / "";
    margin-right: 5px;
    color: var(--zf-line-2);
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-product-sku .sku-value {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--zf-ink-3);
    font-weight: 400;
}

/* ---- цена: последний ряд, слева; справа — место под кнопку ------------------ */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .price,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .price:not(.flora-price-block) {
    order: 3;
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 6px;
    box-sizing: border-box;
    min-height: var(--zf-cta-h);
    margin: auto var(--zf-card-px) 0 !important; /* auto сверху: ряд цены прижат к низу — ряды соседей ровные */
    padding: 0 calc(var(--zf-cta-w) + 6px) 0 0 !important;
    font-size: var(--zf-price-fs) !important;
    font-weight: 700 !important;
    line-height: var(--zf-price-lh, 1.1) !important;
    letter-spacing: -0.01em;
    color: var(--zf-ink) !important;
    text-align: left !important;
    white-space: nowrap;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .price .amount,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .price bdi {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .price .woocommerce-Price-currencySymbol {
    margin-left: 1px;
    font-weight: 600;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .price del {
    order: 2;
    font-size: 12px;
    font-weight: 500;
    color: var(--zf-ink-3);
    text-decoration: line-through;
    opacity: 1;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .price ins {
    order: 1;
    background: none;
    text-decoration: none;
}

/* ----------------------------------------------------------------------------
   8. Действие: кнопка соразмерна карточке, степпер на её месте
   ---------------------------------------------------------------------------- */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button.add_to_cart_button,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button.product_type_simple,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button.product_type_variable,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button.flora-select-options,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button.flora-preorder-loop-add,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button.preorder-button-optimized {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    position: relative;
    z-index: 2;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    width: var(--zf-cta-w) !important;
    min-width: var(--zf-cta-w) !important;
    max-width: none !important;
    height: var(--zf-cta-h) !important;
    min-height: var(--zf-cta-h) !important;
    margin: 0 var(--zf-card-px) var(--zf-card-pb) 0 !important;
    padding: 0 var(--zf-cta-px) !important;
    border: 0 !important;
    border-radius: var(--zf-r-btn) !important;
    background: var(--zf-cta-green) !important;
    background-size: auto !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    box-shadow: none !important;
    transform: none !important;
    transition: filter 0.12s ease, transform 0.08s ease !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* display — без !important: inline style.display = 'none' (степпер) должен побеждать */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button:not([style*="none"]) {
    display: inline-flex;
}

@media (min-width: 900px) {
    :is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button{
        font-size: 14px !important;
    }
}

/* значки inline-блока (🛒/📅/📋/✓/⏳ в кружке) — убираем */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button::before,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .button.add_to_cart_button::before,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .button.product_type_variable::before,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .button.added::before,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .button.loading::before {
    content: none !important;
    display: none !important;
    animation: none !important;
}

/* зона касания 44 при рисунке 40 (38 на ≤ 359): прозрачное поле по вертикали */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button::after {
    content: "";
    display: block;
    position: absolute;
    top: calc(-1 * var(--zf-hit-ext));
    bottom: calc(-1 * var(--zf-hit-ext));
    left: 0;
    right: 0;
}

/* «Предзаказ» — витринный рыжий владельца, подпись по переменной */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button.flora-preorder-loop-add,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button.preorder-button-optimized,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.onbackorder > a.button.add_to_cart_button,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.product_cat-preorder > a.button.add_to_cart_button,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button.flora-preorder-loop-add.flora-lc-slot {
    background: var(--zf-cta-preorder) !important;
    color: var(--zf-cta-preorder-ink) !important;
    box-shadow: none !important;
}

/* «Варианты» — синяя: ведёт на карточку выбирать форму */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button.product_type_variable,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button.flora-select-options {
    background: var(--zf-cta-variable) !important;
    color: #fff !important;
}

/* нет в наличии: «Подробнее» — нейтральная, не «купить» */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.outofstock > a.button:not(.add_to_cart_button):not(.product_type_variable) {
    background: var(--zf-surface) !important;
    color: var(--zf-ink) !important;
    box-shadow: inset 0 0 0 1px var(--zf-line-2) !important;
}

/* нажатие: отклик, не декорация; без подъёма и свечения */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button:hover {
    filter: brightness(1.06);
    transform: none !important;
    box-shadow: none !important;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button:active {
    filter: brightness(0.94);
    transform: scale(0.97) !important;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button.loading,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button[aria-busy="true"] {
    opacity: 0.7;
    cursor: progress;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.flora-lc-incompatible > a.button,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.flora-preorder-incompatible > a.button {
    opacity: 0.55;
    cursor: not-allowed;
}

/* «Просмотр корзины» Woo после добавления — путь к корзине даёт полоса */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.added_to_cart {
    display: none !important;
}

/* ошибка нативного добавления — своя строка под действием */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-native-add-error {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 var(--zf-card-px) var(--zf-card-pb);
}

/* ---- «в корзине»: карточка подсвечена, степпер на месте кнопки --------------
   На любой ширине степпер стоит в слоте «В корзину» и не меняет высоту ряда.
   Мышь: ширина ровно как у кнопки. Узкая карточка: чуть длиннее, цена остаётся слева. */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.flora-lc-incart,
body.page-id-27387 ul.products.columns-4 li.product.type-product.flora-lc-incart, body.flora-label-cards ul.products.columns-4 li.product.type-product.flora-lc-incart{
    background: var(--zf-green-50) !important;
    box-shadow: 0 0 0 2px var(--zf-green-600), 0 1px 2px rgba(23, 38, 20, 0.06) !important;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.flora-lc-incart.onbackorder,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.flora-lc-incart.product_cat-preorder {
    background: var(--zf-orange-50) !important;
    box-shadow: 0 0 0 2px var(--zf-orange-700), 0 1px 2px rgba(23, 38, 20, 0.06) !important;
}

/* Степпер занимает слот «В корзину» на любой ширине карточки: та же высота,
   ширина кнопки или чуть больше, чтобы поместились «−», число и «+».
   Отдельный нижний ряд (03.10.2026 и раньше) растягивал карточку и соседа. */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    width: var(--zf-stepper-w);
    max-width: none;
    height: var(--zf-cta-h);
    margin: 0 var(--zf-card-px) var(--zf-card-pb) 0;
    padding: 0;
    border: 0;
    border-radius: var(--zf-r-btn);
    background: var(--zf-surface);
    box-shadow: inset 0 0 0 1.5px var(--zf-green-600);
    overflow: visible; /* не hidden: иначе режется зона касания «−»/«+» (::after) */
    animation: zf-stepper-in 0.16s ease-out;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper.is-preorder {
    box-shadow: inset 0 0 0 1.5px var(--zf-orange-700);
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper .fqs-btn {
    position: relative;
    flex: 0 0 var(--zf-stepper-btn);
    min-width: 0;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--zf-green-600);
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper.is-preorder .fqs-btn {
    background: var(--zf-orange-700);
    color: var(--zf-cta-preorder-ink);
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper .fqs-btn.is-at-max,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper .fqs-btn:disabled {
    background: #d6dfd9;
    color: #243028;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper .fqs-btn:first-child {
    border-radius: var(--zf-r-btn) 0 0 var(--zf-r-btn);
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper .fqs-btn:last-child {
    border-radius: 0 var(--zf-r-btn) var(--zf-r-btn) 0;
}

/* Высота рисунка = кнопка. Зона касания «−»/«+» добирает те же ±px, что и «В корзину». */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper .fqs-btn::after {
    content: "";
    display: block;
    position: absolute;
    top: calc(-1 * var(--zf-hit-ext));
    bottom: calc(-1 * var(--zf-hit-ext));
    left: 0;
    right: 0;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper .fqs-num {
    flex: 1 1 auto;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--zf-ink);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    box-shadow: none;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper .fqs-num:focus {
    background: rgba(46, 125, 50, 0.08);
}

@keyframes zf-stepper-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: none; }
}

/* Цена остаётся в своём ряду и резервирует ширину степпера, как раньше резервировала кнопку. */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.flora-lc-incart .price,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.flora-lc-incart .price:not(.flora-price-block) {
    order: 3;
    min-height: var(--zf-cta-h);
    margin: auto var(--zf-card-px) 0 !important;
    padding: 0 calc(var(--zf-stepper-w) + 6px) 0 0 !important;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.flora-lc-incart .flora-product-sku {
    display: flex !important;
}

/* Узкая карточка не вмещает степпер 124px рядом с ценой. Ширина — не уже кнопки
   и не шире 112px; 58px = зазор 6px + место под «2 700 ₽». «−»/«+» делят эту ширину. */
@container zfcard (max-width: 199px) {
    :is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.woocommerce-loop-product__link,
    :is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper {
        --zf-stepper-w: clamp(var(--zf-cta-w), calc(100cqi - 2 * var(--zf-card-px) - 58px), 112px);
        --zf-stepper-btn: clamp(26px, 32%, 36px);
    }
}

/* ---- нет в наличии: приглушено, но читаемо ----------------------------------- */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.outofstock {
    opacity: 1 !important;
}

:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.outofstock img.attachment-woocommerce_thumbnail {
    filter: grayscale(0.5) !important;
    opacity: 0.8;
}

/* ---- узкая карточка (< 180 px: 320–390): «Предзаказ · 3175.01.P» без «Арт:»,
   иначе артикул предзаказа обрезается многоточием; поля 6 и кнопка 74 — на ≤ 359 */
@container zfcard (max-width: 179px) {
    :is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-product-sku .sku-label{
        display: none;
    }

    :is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-loop-status ~ .sku-value::before,
    :is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product:not(.product-type-variable) .flora-product-sku:not(:has(.flora-loop-status)) .sku-value::before{
        content: "\00B7";
        content: "\00B7" / "";
        margin-right: 5px;
        color: var(--zf-line-2);
    }
}

/* The month dialog identifies the clicked offer before its choices. */
:is(body.page-id-27387, body.flora-label-cards) .flora-loop-cart-modal-product {
    flex: 0 0 auto;
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--zf-ink-2);
}

:is(body.page-id-27387, body.flora-label-cards) .flora-loop-cart-modal-product .lc-product-title {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 600;
    color: var(--zf-ink);
}

:is(body.page-id-27387, body.flora-label-cards) .flora-loop-cart-modal-product .lc-product-form,
:is(body.page-id-27387, body.flora-label-cards) .flora-loop-cart-modal-product .lc-product-sku,
:is(body.page-id-27387, body.flora-label-cards) .flora-loop-cart-modal-product .lc-product-price {
    display: inline-block;
    margin-right: 8px;
}

:is(body.page-id-27387, body.flora-label-cards) .flora-loop-cart-modal-product .lc-product-price {
    font-weight: 700;
    color: var(--zf-ink);
}

/* диапазон вариации («89 ₽ – 550 ₽») не влезает в резерв кнопки */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product.product-type-variable .price {
    white-space: normal;
    --zf-price-lh: 1.15;
}

/* 9. #floraFloatingCart: телефон — снизу с safe-area, десктоп — справа
   после прокрутки; сетка резервирует место. При data-count=0 сервер скрывает
   полосу inline display:none; первый экран сохраняет фото свободными. */
body.page-id-27387 #floraFloatingCart.flora-floating-cart,
body.page-id-27387 .flora-floating-cart {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    bottom: max(12px, calc(8px + env(safe-area-inset-bottom, 0px)));
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    min-height: 52px;
    margin: 0;
    padding: 4px 4px 4px 16px;
    border: 0;
    border-radius: 16px;
    background: var(--zf-green-900);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.15;
    text-decoration: none !important;
    box-shadow: var(--zf-shadow-float);
    transform: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

body.page-id-27387 #floraFloatingCart[data-count="0"] {
    display: none;
}

body.page-id-27387 .flora-floating-cart:hover,
body.page-id-27387 .flora-floating-cart:focus {
    color: #fff;
    background: var(--zf-green-700);
    transform: none;
}

body.page-id-27387 .flora-floating-cart:active {
    transform: none;
    filter: brightness(0.95);
}

body.page-id-27387 .flora-floating-cart svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

body.page-id-27387 .flora-floating-cart-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-id-27387 .flora-floating-cart-count,
body.page-id-27387 .flora-floating-cart .woocommerce-Price-amount {
    font-weight: 700;
    color: inherit;
}

body.page-id-27387 .flora-floating-cart-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: #fff;
    color: var(--zf-green-900);
    font-size: 15px;
    font-weight: 700;
}

body.page-id-27387 .flora-floating-cart-cta::after {
    content: "\2192";
    content: "\2192" / "";
    font-weight: 700;
}

/* старый фрагмент (без data-count и без «Оформить») — подпись и кнопку даёт CSS */
body.page-id-27387 .flora-floating-cart:not(:has(.flora-floating-cart-cta)) .flora-floating-cart-text::before {
    content: "В корзине ";
}

body.page-id-27387 .flora-floating-cart:not(:has(.flora-floating-cart-cta))::after {
    content: "Оформить \2192";
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: #fff;
    color: var(--zf-green-900);
    font-size: 15px;
    font-weight: 700;
}

/* запас снизу (телефон): в самом конце страницы полоса не накрывает последнее
   содержимое. Сетку от полосы и так отделяет подвал; без :has() запаса нет. */
@media (max-width: 768px) {
    body.page-id-27387:has(#floraFloatingCart:not([style*="none"]):not([data-count="0"])) #content {
        padding-bottom: 76px;
    }
}

@media (min-width: 600px) and (max-width: 768px) {
    body.page-id-27387 #floraFloatingCart.flora-floating-cart,
    body.page-id-27387 .flora-floating-cart,
    body.page-id-27387 .flora-preorder-toast {
        left: 50%;
        right: auto;
        width: 560px;
        margin-left: -280px;
    }
}

@media (min-width: 769px) {
    body.page-id-27387 #floraFloatingCart.flora-floating-cart,
    body.page-id-27387 .flora-floating-cart {
        left: auto;
        right: 24px;
        bottom: 24px;
        width: auto;
        max-width: 400px;
        border-radius: 999px;
        padding: 4px 4px 4px 18px;
    }

    body.page-id-27387 .flora-floating-cart-cta,
    body.page-id-27387 .flora-floating-cart:not(:has(.flora-floating-cart-cta))::after {
        border-radius: 999px;
    }

    /* наверху страницы путь в корзину — шапка; таблетка появляется после 120 px */
    body.page-id-27387:has(#masthead:not(.header-compact)) .flora-floating-cart {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 359px) {
    body.page-id-27387 .flora-floating-cart {
        gap: 8px;
        padding-left: 14px;
        font-size: 14px;
    }

    body.page-id-27387 .flora-floating-cart svg {
        display: none;
    }

    body.page-id-27387 .flora-floating-cart-cta,
    body.page-id-27387 .flora-floating-cart:not(:has(.flora-floating-cart-cta))::after {
        padding: 0 12px;
        font-size: 14px;
    }
}

/* тост «Добавлено…» / «В наличии только N шт.» — на месте полосы, а не вторым
   этажом над ней: 2,4 с перекрывает её и уходит */
body.page-id-27387 .flora-preorder-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    bottom: max(12px, calc(8px + env(safe-area-inset-bottom, 0px)));
    z-index: 9999;
    box-sizing: border-box;
    min-height: 52px;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 16px;
    border-radius: 16px;
    background: var(--zf-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    box-shadow: var(--zf-shadow-float);
}

body.page-id-27387 .flora-preorder-toast.error {
    background: #a32626;
}

@media (min-width: 769px) {
    body.page-id-27387 .flora-preorder-toast {
        left: auto;
        right: 24px;
        bottom: 24px;
        width: auto;
        min-width: 280px;
        max-width: 400px;
        border-radius: 999px;
    }
}

/* ----------------------------------------------------------------------------
   10. Фокус с клавиатуры: контур 3 px #1b5e20 с отступом 2 px (7,9:1 к белому,
   читается и на рыжем, и на зелёном); кольцо тени повторяет его — запас там,
   где чужой CSS гасит outline.
   ---------------------------------------------------------------------------- */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button.button.button:focus-visible,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.woocommerce-loop-product__link:focus-visible,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-wishlist-btn-loop:focus-visible,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper .fqs-btn:focus-visible,
body.page-id-27387 .fcf-month-chip:focus-visible,
body.page-id-27387 .fcf-plant-card:focus-visible,
body.page-id-27387 .fcf-filter-btn:focus-visible,
body.page-id-27387 .fcf-filter-tag:focus-visible,
body.page-id-27387 .fcf-reset-btn:focus-visible,
body.page-id-27387 .fcf-plants-details > summary:focus-visible,
body.page-id-27387 .fcf-mobile-filter-panel > summary:focus-visible,
body.page-id-27387 .fcf-popular-nav:focus-visible,
body.page-id-27387 .woocommerce-ordering select.orderby:focus-visible,
body.page-id-27387 .woocommerce-pagination .page-numbers:focus-visible,
body.page-id-27387 .flora-floating-cart:focus-visible {
    outline: var(--zf-focus-w) solid var(--zf-focus-c) !important;
    outline-offset: var(--zf-focus-o) !important;
    box-shadow: var(--zf-focus-ring) !important;
}

/* чипы, номера страниц, select: на касании кольцо ложится в прозрачную рамку 4 px
   (не режется краем ленты), на мыши — снаружи с отступом 2 px */
body.page-id-27387 .entry-content .fcf-month-chip:focus-visible,
body.page-id-27387 .entry-content .fcf-plant-card:focus-visible,
body.page-id-27387 .entry-content .fcf-filter-btn:focus-visible,
body.page-id-27387 .entry-content .fcf-filter-tag:focus-visible,
body.page-id-27387 .entry-content .fcf-plants-details > summary:focus-visible,
body.page-id-27387 .entry-content .fcf-mobile-filter-panel > summary:focus-visible,
body.page-id-27387 .woocommerce-ordering select.orderby:focus-visible,
body.page-id-27387 .woocommerce-pagination .page-numbers:focus-visible {
    outline-offset: calc(2px - 1.5 * var(--zf-chip-inset)) !important;
    box-shadow: none !important;
}

/* кнопки и поле степпера — контур внутрь: снаружи он лёг бы на соседнюю кнопку */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper .fqs-btn:focus-visible,
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper .fqs-num:focus-visible {
    outline: var(--zf-focus-w) solid var(--zf-focus-c) !important;
    outline-offset: -3px !important;
    box-shadow: inset 0 0 0 3px #fff !important;
}

/* сердце: кольцо вокруг белого кружка */
:is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-wishlist-btn-loop:focus-visible {
    outline-offset: 0 !important;
    box-shadow: none !important;
}

/* ----------------------------------------------------------------------------
   11. Меньше движения
   ---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    :is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product,
    :is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > a.button,
    :is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product > .flora-qty-stepper,
    :is(body.page-id-27387, body.flora-label-cards) ul.products li.product.type-product .flora-wishlist-btn-loop::before,
    body.page-id-27387 .entry-content > .fcf-header,
    body.page-id-27387 .fcf-plants > .fcf-plants-details,
    body.page-id-27387 .woocommerce > .storefront-sorting:first-child,
    body.page-id-27387 .fcf-month-chip,
    body.page-id-27387 .fcf-plant-card,
    body.page-id-27387 .fcf-filter-btn,
    body.page-id-27387 .fcf-plants-details > summary,
    body.page-id-27387 .flora-floating-cart {
        transition: none !important;
        animation: none !important;
    }

    body.page-id-27387 .fcf-popular-grid,
    body.page-id-27387 .fcf-mobile-filter-panel > .fcf-filters,
    body.page-id-27387 .fcf-months {
        scroll-behavior: auto;
    }
}

/* Catalog width is the available container, including intermediate widths and zoom.
   Fixed track counts keep the last partial row the same card width as every other row. */
body.page-id-27387 {
    --zf-content-w: calc(100vw - 2 * var(--zf-gutter));
    --zf-container: none;
}
body.page-id-27387 .entry-content {
    max-width: none;
    width: 100%;
    container-type: inline-size;
    container-name: fcf-products;
}
body.page-id-27387 .fcf-products-region {
    container-type: inline-size;
    container-name: fcf-products;
    width: 100%;
    min-width: 0;
    order: 70;
    grid-column: 1 / -1;
}
/* The compact header originally shares the parent flex row with the sorter.
   Keep that layout through the response scope; the actual entry remains the
   width container when these two structural wrappers have no layout box. */
@media (max-width: 768px) {
    body.page-id-27387 .entry-content > .fcf-products-region {
        display: contents;
        container-type: normal;
        container-name: none;
    }
    body.page-id-27387 .fcf-products-region > .woocommerce { display: contents; }
}
body.page-id-27387 .fcf-products-region ul.products { --fcf-cols: 2; }
body.page-id-27387 .fcf-products-region ul.products:has(> li.product.type-product),
body.page-id-27387 .fcf-products-region .woocommerce ul.products.columns-4:has(> li.product.type-product) {
    display: grid !important;
    grid-template-columns: repeat(var(--fcf-cols), minmax(0, 1fr)) !important;
    width: 100% !important;
}
@container fcf-products (min-width: 552px) {
    body.page-id-27387 .fcf-products-region ul.products { --fcf-cols: 3; }
}
@container fcf-products (min-width: 852px) {
    body.page-id-27387 .fcf-products-region ul.products { --fcf-cols: 4; }
}
@container fcf-products (min-width: 1152px) {
    body.page-id-27387 .fcf-products-region ul.products { --fcf-cols: 5; }
}
@container fcf-products (min-width: 1552px) {
    body.page-id-27387 .fcf-products-region ul.products { --fcf-cols: 6; }
}
@container fcf-products (min-width: 1852px) {
    body.page-id-27387 .fcf-products-region ul.products { --fcf-cols: 7; }
}
@container fcf-products (min-width: 2152px) {
    body.page-id-27387 .fcf-products-region ul.products { --fcf-cols: 8; }
}
body.page-id-27387 .fcf-layout-retry {
    font-size: 13px;
    color: var(--zf-ink-2);
    margin: 12px 0;
    order: 73;
    flex: 0 0 100%;
    grid-column: 1 / -1;
}
body.page-id-27387 .fcf-layout-retry button {
    font: inherit;
    padding: 6px 12px;
    border: 1px solid var(--zf-line-2);
    border-radius: var(--zf-r-btn);
    color: var(--zf-green-900);
    background: var(--zf-surface);
}
