/* ============================================================
   АРГО-Био — Основной CSS
   ============================================================ */

:root {
    --green-900: #0d3b1e;
    --green-800: #14512c;
    --green-700: #1f6f3d;
    --green-600: #2d8a52;
    --green-500: #43a663;
    --green-400: #6dbf85;
    --green-300: #9dd4af;
    --green-100: #e8f5ec;
    --green-50:  #f4faf6;

    --accent:    #ffb300;
    --danger:    #d32f2f;
    --danger-bg: #ffebee;

    --text:      #1a1a1a;
    --text-soft: #4b5563;
    --muted:     #6b7280;
    --border:    #e5e7eb;
    --border-2:  #d1d5db;
    --bg:        #ffffff;
    --bg-soft:   #f9fafb;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow:    0 2px 8px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
    --shadow-glow: 0 4px 16px rgba(45,138,82,.25);

    --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-xl: 24px;

    --header-h: 64px;
    --bottom-nav-h: 64px;
    --container: 1240px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --fs-xs: 12px; --fs-sm: 14px; --fs: 16px; --fs-lg: 18px; --fs-xl: 22px; --fs-2xl: 28px; --fs-3xl: 36px;
}

/* ==== ТЁМНАЯ ТЕМА ==== */
[data-theme="dark"] {
    /* Зелёные — светлее для контраста на тёмном */
    --green-900: #04120a;
    --green-800: #08231a;
    --green-700: #4db76e;   /* основной бренд в тёмной теме — светлый */
    --green-600: #43a663;
    --green-500: #5cb87a;
    --green-400: #7fcb98;
    --green-300: #a5dfb7;
    --green-100: #1f3828;
    --green-50:  #182b20;

    --accent:    #ffc93c;
    --danger:    #ff6b6b;
    --danger-bg: #2a1215;

    --text:      #eef7f1;
    --text-soft: #c2d3c7;
    --muted:     #92a89a;
    --border:    #263a2c;
    --border-2:  #3a5142;

    /* Фон страницы темнее, чем карточки — чтобы карточки выделялись */
    --bg:        #0b1610;   /* фон страницы */
    --bg-soft:   #142019;   /* фон карточек, модалок, полей */

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 2px 12px rgba(0,0,0,.45);
    --shadow-lg: 0 8px 28px rgba(0,0,0,.55);
    --shadow-glow: 0 4px 20px rgba(77,183,110,.4);
}

html, body, .header, .footer, .product-card, .btn, .bottom-nav, .modal__body {
    transition: background-color .25s, color .25s, border-color .25s;
}

/* ==== RESET ==== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    font-size: var(--fs);
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--green-700); text-decoration: none; transition: color .15s; }
a:hover { color: var(--green-500); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ==== КОНТЕЙНЕР ==== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

/* ==== ХЕДЕР ==== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.header__burger {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    font-size: 24px;
    color: var(--text);
    line-height: 1;
}

/* Лого */
.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green-700);
    text-decoration: none;
    flex-shrink: 0;
}

[data-theme="dark"] .header__logo {
    color: var(--green-400);
}

.header__logo-img {
    display: block;
    width: auto;
    height: 40px;
    flex-shrink: 0;
}

.header__logo-text {
    font-size: 18px;
    font-weight: 700;
    color: inherit;
}

/* Меню (десктоп) */
.header__nav {
    display: flex;
    gap: 20px;
    margin-left: 24px;
    flex: 1;
}

.header__nav a {
    color: var(--text-soft);
    font-size: var(--fs-sm);
    font-weight: 500;
}
.header__nav a:hover { color: var(--green-700); }

/* Поиск */
.header__search {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.header__search input {
    width: 100%;
    height: 42px;
    padding: 0 44px 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--bg-soft);
    color: var(--text);
    outline: none;
    transition: all .15s;
}

.header__search input:focus {
    border-color: var(--green-500);
    background: var(--bg-soft);
    box-shadow: 0 0 0 3px var(--green-100);
}

.header__search input::placeholder { color: var(--muted); }

.header__search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.header__search button:hover { color: var(--green-700); }

/* Действия в хедере */
.header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.header__icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--r);
    color: var(--text-soft);
    transition: all .15s;
    background: none;
    border: none;
    text-decoration: none;
}

.header__icon-btn:hover {
    background: var(--green-50);
    color: var(--green-700);
}

.header__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ==== МОБИЛЬНОЕ МЕНЮ (bottom bar) ==== */
.bottom-nav {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: var(--bottom-nav-h);
    background: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}

.bottom-nav__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr 1fr 1fr;
    align-items: center;
    height: 100%;
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s;
    position: relative;
}

.bottom-nav__item svg {
    width: 22px;
    height: 22px;
    display: block;
}

.bottom-nav__item.is-active { color: var(--green-700); }

.bottom-nav__item--main { position: relative; }

.bottom-nav__item--main .bottom-nav__icon-wrap {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: var(--green-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-glow);
    border: 4px solid var(--bg);
    transition: all .2s;
}

.bottom-nav__item--main:active .bottom-nav__icon-wrap {
    transform: translateX(-50%) scale(.95);
}

.bottom-nav__item--main .bottom-nav__label {
    margin-top: 34px;
    color: var(--green-700);
    font-weight: 600;
}

.bottom-nav__icon-wrap svg {
    width: 26px;
    height: 26px;
}

.bottom-nav__badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--bg);
}

.bottom-nav__badge--sm {
    top: 4px;
    right: 18px;
    min-width: 14px;
    height: 14px;
    font-size: 9px;
}

/* ==== КНОПКИ ==== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: var(--r);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--green-600);
    color: #fff;
}
.btn--primary:hover { background: var(--green-700); color: #fff; }
.btn--primary:active { transform: scale(.98); }

.btn--outline {
    background: transparent;
    border: 1.5px solid var(--green-600);
    color: var(--green-700);
}
.btn--outline:hover { background: var(--green-50); }

.btn--ghost {
    background: var(--bg-soft);
    color: var(--text);
}
.btn--ghost:hover { background: var(--green-50); }

.btn--block { width: 100%; }
.btn--lg { height: 52px; padding: 0 28px; font-size: var(--fs); }
.btn--sm { height: 36px; padding: 0 14px; font-size: var(--fs-xs); }

/* ==== КАРТОЧКА ТОВАРА ==== */
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-soft);  /* ← так карточка светлее фона в тёмной теме */
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all .2s;
    position: relative;
}

.product-card:hover {
    border-color: var(--green-300);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.product-card__image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--green-50);
    overflow: hidden;
}

.product-card__image {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 12px;
}

.product-card__badge {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.product-card__fav {
    position: absolute;
    top: 8px; right: 8px;
    width: 32px; height: 32px;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    color: var(--muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    cursor: pointer;
}

.product-card__fav:hover,
.product-card__fav.is-active { color: var(--danger); background: #fff; }

.product-card__body {
    display: flex;
    flex-direction: column;
    padding: 12px;
    flex: 1;
    gap: 6px;
}

.product-card__name {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.product-card__name:hover { color: var(--green-700); }

.product-card__meta {
    font-size: var(--fs-xs);
    color: var(--muted);
}

.product-card__prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.product-card__price {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text);
}

.product-card__btn { margin-top: 8px; }

/* ==== GRID ТОВАРОВ ==== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

@media (min-width: 640px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 900px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
    .products-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ==== ХЛЕБНЫЕ КРОШКИ ==== */
.breadcrumbs {
    font-size: var(--fs-xs);
    color: var(--muted);
    padding: 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green-700); }
.breadcrumbs__sep { opacity: .5; }

/* ==== ЗАГОЛОВКИ ==== */
.page-title {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin: 16px 0;
    color: var(--text);
}

@media (min-width: 640px) {
    .page-title { font-size: var(--fs-2xl); }
}

/* ==== ФУТЕР ==== */
.footer {
    background: var(--green-900);
    color: rgba(255,255,255,.85);
    padding: 32px 0 24px;
    margin-top: 48px;
    margin-bottom: var(--bottom-nav-h);
}

@media (min-width: 900px) {
    .footer { margin-bottom: 0; }
}

.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: #fff; }

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
    .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__title {
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    margin: 0 0 12px;
}

.footer__list { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); }
.footer__list li { margin-bottom: 8px; }

.footer__logo {
    margin-bottom: 12px;
    display: inline-block;
}

.footer__logo-img {
    display: block;
    height: 44px;
    width: auto;
    /* Всегда белое, независимо от темы */
    filter: brightness(0) invert(1);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 24px;
    padding-top: 16px;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.6);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==== МОДАЛКА ==== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.modal.is-open { display: flex; }

@media (min-width: 640px) {
    .modal { align-items: center; }
}

.modal__body {
    background: var(--bg);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    width: 100%;
    max-width: 480px;
    padding: 24px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

@media (min-width: 640px) {
    .modal__body { border-radius: var(--r-xl); }
}

.modal__title {
    margin: 0 0 16px;
    font-size: var(--fs-lg);
    font-weight: 700;
}

.modal__close {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
}

/* ==== БУРГЕР-МЕНЮ ==== */
.burger-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,.5);
}
.burger-menu.is-open { display: block; }

.burger-menu__panel {
    background: var(--bg);
    width: 85%;
    max-width: 320px;
    height: 100%;
    padding: 16px;
    overflow-y: auto;
    animation: slideIn .25s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to   { transform: none; }
}

.burger-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
    font-weight: 700;
    font-size: var(--fs-lg);
    color: var(--text);
}

.burger-menu__close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--muted);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.burger-menu__nav { display: flex; flex-direction: column; }
.burger-menu__nav a {
    padding: 12px 8px;
    color: var(--text);
    font-size: var(--fs);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}
.burger-menu__nav a:hover { background: var(--green-50); color: var(--green-700); }
.burger-menu__nav hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }

body.no-scroll { overflow: hidden; }

/* ==== КНОПКА ПЕРЕКЛЮЧЕНИЯ ТЕМЫ ==== */
.theme-toggle {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
}

.theme-toggle:hover { background: rgba(255,255,255,.2); }

.theme-toggle__icon { display: none; }
[data-theme="light"] .theme-toggle__icon--dark { display: inline; }
[data-theme="dark"]  .theme-toggle__icon--light { display: inline; }

/* ==== УТИЛИТЫ ==== */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* ============================================================
   АДАПТИВ — МОБИЛЬНЫЙ
   ============================================================ */
@media (max-width: 899px) {
    .header__nav { display: none; }
    .header__burger { display: flex; }
    .bottom-nav { display: block; }
    body { padding-bottom: var(--bottom-nav-h); }

    .header__inner { gap: 8px; }

    /* Поиск — компактнее */
    .header__search {
        flex: 1;
        max-width: none;
    }

    .header__search input {
        height: 40px;
        padding: 0 40px 0 12px;
        font-size: 14px;
    }

    .header__logo-img { height: 34px; }

    /* В мобильном хедере скрываем корзину и сердце (они в bottom-nav) */
    .header__icon-btn--desktop { display: none; }
}

@media (min-width: 900px) {
    .header__burger { display: none; }
    .bottom-nav { display: none !important; }
}











/* ============================================================
   КАТАЛОГ
   ============================================================ */
.catalog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 900px) {
    .catalog-layout { grid-template-columns: 260px 1fr; gap: 32px; }
}

/* Сайдбар */
.catalog-sidebar {
    display: none;
}

@media (min-width: 900px) {
    .catalog-sidebar { display: block; }
}

/* Toolbar */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}


.catalog-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
}
.catalog-toolbar__sort label { color: var(--muted); }
.catalog-toolbar__sort select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg-soft);
    color: var(--text);
    cursor: pointer;
}

/* Пустой результат */
.catalog-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-soft);
    border-radius: var(--r-lg);
}
.catalog-empty h3 { margin: 16px 0 8px; }

/* ============================================================
   ФИЛЬТРЫ
   ============================================================ */
.filters {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px;
    position: sticky;
    top: calc(var(--header-h) + 12px);
}

.filters__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.filters__header h3 { margin: 0; font-size: var(--fs); }
.filters__reset {
    font-size: var(--fs-xs);
    color: var(--muted);
}
.filters__reset:hover { color: var(--danger); }

.filters__block { margin-bottom: 20px; }
.filters__title {
    font-size: var(--fs-sm);
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.filters__cats { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); }
.filters__cat { margin-bottom: 2px; }


.filters__subcats {
    list-style: none;
    padding: 0 0 0 4px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    border-left: 2px solid var(--border);
    margin-left: 6px;
}

.filters__cat.is-open > .filters__subcats {
    max-height: 1200px;
}


.filters__cat-row a.is-active,
.filters__subcats a.is-active {
    color: var(--green-700) !important;
    font-weight: 600;
}

.filters__toggle {
    background: none;
    border: none;
    color: var(--muted);
    padding: 4px 6px;
    cursor: pointer;
    transition: transform .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.filters__toggle:hover {
    background: var(--green-100);
    color: var(--green-700);
}

.filters__cat.is-open > .filters__cat-row .filters__toggle {
    transform: rotate(180deg);
}

.filters__subcats a {
    display: block;
    padding: 4px 6px;
    color: var(--text-soft);
    border-radius: var(--r-sm);
    font-size: var(--fs-sm);
}
.filters__subcats a:hover { color: var(--green-700); background: var(--green-50); }
.filters__subcats a.is-active { color: var(--green-700); font-weight: 600; background: var(--green-50); }

.filters__select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
}

.filters__price {
    display: flex;
    align-items: center;
    gap: 6px;
}
.filters__price input {
    flex: 1;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--text);
    min-width: 0;
    outline: none;
}
.filters__price input:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px var(--green-100);
}
.filters__price span { color: var(--muted); }

.filters__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: var(--fs-sm);
    color: var(--text);
}
.filters__checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--green-600);
    cursor: pointer;
}

/* ============================================================
   ПАГИНАЦИЯ
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--text-soft);
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: all .15s;
}

.pagination__item:hover {
    border-color: var(--green-500);
    color: var(--green-700);
}

.pagination__item.is-active {
    background: var(--green-600);
    border-color: var(--green-600);
    color: #fff;
}

/* ============================================================
   ПЛЕЙСХОЛДЕР ДЛЯ ФОТО
   ============================================================ */
.product-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-300);
    background: var(--green-50);
}

.product-card__badge--out {
    background: var(--muted);
    left: 8px;
    right: 8px;
    text-align: center;
}

.product-card__fav svg { width: 18px; height: 18px; }
.product-card__fav.is-active { color: var(--danger); }
.product-card__fav.is-active svg { fill: currentColor; }

/* ============================================================
   МОБИЛЬНЫЕ ФИЛЬТРЫ (модалка снизу)
   ============================================================ */
@media (max-width: 899px) {
    .filters-mobile-btn {
        display: inline-flex;
        margin-bottom: 12px;
    }
}



.product-card__bonus {
    font-size: var(--fs-xs);
    color: var(--green-600);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

[data-theme="dark"] .product-card__bonus {
    color: var(--green-400);
}


.product-card__meta-sep {
    opacity: .5;
    margin: 0 4px;
}





/* ==== КНОПКА ФИЛЬТРОВ (только мобилка) ==== */
.catalog-toolbar__filters-btn {
    display: none;   /* по умолчанию скрыто */
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--green-600);
    color: #fff;
    border: none;
    border-radius: var(--r);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background .15s;
}

.catalog-toolbar__filters-btn:hover {
    background: var(--green-700);
}

.catalog-toolbar__filters-count {
    background: #fff;
    color: var(--green-700);
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

@media (max-width: 899px) {
    .catalog-toolbar__filters-btn {
        display: inline-flex;   /* только мобилка */
    }
}

@media (max-width: 899px) {
    .catalog-toolbar {
        position: sticky;
        top: var(--header-h);
        z-index: 50;
        background: var(--bg);
        gap: 8px;
        margin: 0 -16px 16px;
        padding: 10px 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 2px 8px rgba(0,0,0,.04);
    }

    .catalog-toolbar__sort {
        flex: 1;
        justify-content: flex-end;
    }

    .catalog-toolbar__sort label {
        display: none;
    }

    .catalog-toolbar__sort select {
        width: 100%;
        max-width: 200px;
    }
}

/* Модалка фильтров на мобилке */
.modal--filters .modal__body {
    max-height: 85vh;
}

.modal--filters .filters {
    position: static;
    border: none;
    background: none;
    padding: 0;
}

.modal--filters .filters__header {
    display: none; /* заголовок "Фильтры" и "Сбросить" уже в модалке */
}

@media (min-width: 900px) {
    .modal--filters { display: none !important; }
}



