/* Шрифти з кирилицею: у теми Oswald лише латиниця — кирилиця в заголовках падала на системний шрифт,
   а цифри лишались Oswald (різнобій). Roboto — справжні 500/700 замість штучного жирного. */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600&family=Roboto:wght@400;500;700&display=swap');

/* =========================================================
   Власні стилі шапки сайту (тема APEX)
   Підключається в tpl/layout/header.html.twig — після правок
   змініть ?v=... у посиланні, інакше браузери тримають стару версію

   Брейкпоінти (як у Bootstrap):
   < 992px    мобільний: пошук на всю ширину, іконки та меню —
              у нижній панелі (.mobile-nav)
   992–1399px два ряди: «пошук | іконки», під ними категорії
   >= 1400px  один ряд: «категорії | пошук | іконки»
   ========================================================= */


/* =========================================================
   1. Головний рядок шапки — сітка
   Сітка не дає блокам налазити один на одного
   ========================================================= */
.header-custom-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px 24px;
    padding: 8px 0;
}

.header-custom-row > .header-search-center {
    min-width: 0;
}

/* Пошук */
.header-search-center .search {
    width: 100%;
    min-width: 0;                 /* у теми було 500px — ламало вузькі екрани */
    margin: 0;
}

.header-search-center .form-control {
    border: 1px solid #ced4da;
    border-radius: 0;
    padding-right: 48px;          /* місце під кнопку-лупу */
}

.header-search-center .search .btn {
    border: 1px solid #ced4da;
    border-left: none;
    border-radius: 0;
}

/* --- Мобільний (< 992px) --- */
@media (max-width: 991.98px) {
    /* Пошук завжди видно. !important — бо тема ховає його
       правилом .search:not(.show) { display: none } */
    .header-search-center .search {
        display: block !important;
        position: static;
        padding: 0;
        background: transparent;
    }

    /* Блок категорій не займає місця, але виїзне меню
       (#navbarSupportedContent) відкривається кнопкою «Меню» */
    .header-custom-row > .header-inline-nav {
        position: absolute;
        width: 0;
        height: 0;
    }
}

/* --- Десктоп (>= 992px): два ряди --- */
@media (min-width: 992px) {
    .header-custom-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "search icons"
            "cats   cats";
        padding: 12px 0 0;
    }

    .header-custom-row > .header-inline-nav    { grid-area: cats; min-width: 0; }
    .header-custom-row > .header-search-center { grid-area: search; }
    .header-custom-row > .menu-dropdowns       { grid-area: icons; }

    /* Обгортки віджета категорій — без зайвих відступів */
    .header-inline-nav > .container-xxl {
        padding: 0;
        max-width: none;
    }

    .header-inline-nav #mainnav,
    .header-inline-nav .navbar-collapse {
        margin: 0;
    }

    /* У теми список займав лише половину ширини (col-md-6) */
    .header-inline-nav #navigation {
        width: auto;
        flex: 1 1 auto;
        flex-wrap: wrap;           /* якщо категорій багато — переносяться, а не налазять */
        column-gap: 28px;
        padding: 0;
    }

    .header-inline-nav .navbar-nav-mega .nav-link-1 {
        margin-right: 0;           /* у теми було 4rem */
        padding: 10px 0;
        white-space: nowrap;
    }
}

/* --- Широкий десктоп (>= 1400px): один ряд --- */
@media (min-width: 1400px) {
    .header-custom-row {
        grid-template-columns: auto minmax(220px, 1fr) auto;
        grid-template-areas: "cats search icons";
        padding: 8px 0;
    }
}


/* =========================================================
   2. Іконки праворуч (акаунт, обране, кошик)
   На мобільному сховані класом d-none — там є нижня панель
   ========================================================= */
@media (min-width: 992px) {
    .header-custom-row .menu-dropdowns {
        display: flex;
        align-items: center;
        gap: 12px;
    }
}

.header-custom-row .menu-dropdowns > .btn,
.header-custom-row .menu-dropdowns > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    color: #333;
    padding: 0 4px;
    background: transparent;
    border: none;
    white-space: nowrap;
}

.header-custom-row .menu-dropdowns svg {
    width: 22px;
    height: 22px;
}


/* =========================================================
   2a. Логотип у сірій смузі зверху
   Тема на мобільному стискала його (width: 50%, max-width: 140px)
   і зсувала за лівий край — показуємо в натуральних пропорціях
   ========================================================= */
.top-logo-area {
    min-width: 0;
    flex: 0 1 auto;
}

.top-logo-area .logo-link {
    width: auto;
    height: auto;
    padding: 0;
    justify-content: flex-start;
}

.top-logo-area .logo-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 30px;
}


/* =========================================================
   3. Випадаюче меню категорій (десктоп)
   У теми це панель на всю ширину екрана (.nav-level-2), а пункти
   стоять біля лівого краю. Робимо компактне меню під своєю
   категорією, шириною за текстом.
   На мобільному не діє — там виїзне меню теми.
   ========================================================= */
@media (min-width: 992px) {
    .header-inline-nav .navbar-nav-mega .nav-item.has-subs {
        position: relative;
    }

    .header-inline-nav .navbar-nav-mega .nav-level-2 {
        top: 100%;
        left: 0;
        right: auto;
        width: max-content;
        min-width: 200px;
        padding: 10px 20px;
        background: #fff;
        border: 1px solid #ced4da;
        border-radius: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        z-index: 1050;
    }

    /* Сітка Bootstrap усередині меню не потрібна */
    .header-inline-nav .nav-level-2 > .container-xxl {
        padding: 0;
        max-width: none;
    }

    .header-inline-nav .nav-level-2 .row {
        display: block;
        margin: 0;
    }

    .header-inline-nav .nav-level-2 .row > * {
        width: auto;
        padding: 0;
    }

    /* Права колонка для банера (oxstartslot1) — ховаємо, поки порожня.
       !important — бо на ній клас Bootstrap d-lg-block */
    .header-inline-nav .nav-level-2 .col-md-8:not(:has(*)) {
        display: none !important;
    }

    .header-inline-nav .nav-level-2 .nav-link {
        white-space: nowrap;
    }
}

/* ===== Картка товару: ціна під назвою на всіх екранах =====
   APEX з 992px ставить назву й ціну в один ряд. Повертаємо планшетний вигляд:
   ціна притиснута до низу картки, назва займає всю ширину. */
@media (min-width: 992px) {
    .product-card .card-body { padding-bottom: 40px; }
    .product-card .card-body.sale { padding-bottom: 50px; }
    .product-card .price { position: absolute; }
    .product-card .price .h5 { margin-left: 0; }
    .product-card .price .pricePerUnit { position: absolute; }
}

/* ===== Акцентний колір: латунно-золотий замість бірюзового APEX (#487C84) =====
   #956205 — латунь, наведення #7F5304, натиснуто #774E04. */
:root {
    --bs-highlight: #956205;
    --bs-highlight-rgb: 149, 98, 5;
}
.btn-highlight {
    --bs-btn-bg: #956205;
    --bs-btn-border-color: #956205;
    --bs-btn-hover-bg: #7F5304;
    --bs-btn-hover-border-color: #7F5304;
    --bs-btn-focus-shadow-rgb: 149, 98, 5;
    --bs-btn-active-bg: #774E04;
    --bs-btn-active-border-color: #774E04;
    --bs-btn-disabled-bg: #956205;
    --bs-btn-disabled-border-color: #956205;
}
.btn-outline-highlight {
    --bs-btn-color: #956205;
    --bs-btn-border-color: #956205;
    --bs-btn-hover-bg: #956205;
    --bs-btn-hover-border-color: #956205;
    --bs-btn-focus-shadow-rgb: 149, 98, 5;
    --bs-btn-active-bg: #956205;
    --bs-btn-active-border-color: #956205;
    --bs-btn-disabled-color: #956205;
    --bs-btn-disabled-border-color: #956205;
}
.link-highlight { color: #956205 !important; }
.link-highlight:hover, .link-highlight:focus { color: #774E04 !important; }
.text-bg-highlight { background-color: RGBA(149, 98, 5, var(--bs-bg-opacity, 1)) !important; }
.badge { background: #956205; }
.navbar-nav.navbar-nav-mega .nav-item-2 .nav-link:hover,
.navbar-nav.navbar-nav-mega .nav-item:hover .nav-link-1,
.header .menu-dropdowns .btn:hover, .header .menu-dropdowns .btn:focus, .header .menu-dropdowns .btn.show { color: #956205; }
.search .btn:hover svg,
.meta .btn:hover svg, .meta .btn:focus svg, .meta .btn.show svg { fill: #956205; }

/* ===== Перемикач валют € / ₴ у верхній сірій панелі ===== */
.meta-right { gap: 8px; }
.currency-switch {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 0;
    overflow: hidden;
    line-height: 1;
}
.currency-switch a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background-color .15s;
}
.currency-switch a + a { border-left: 1px solid rgba(255, 255, 255, .45); }
.currency-switch a:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.currency-switch a.active { background: #956205; color: #fff; }
.currency-switch-name { font-size: 11px; font-weight: 400; opacity: .85; }
@media (max-width: 575.98px) {
    .currency-switch-name { display: none; }
}

/* ===== Курс гривні на сторінці товару ===== */
.currency-rate-note { font-size: 12px; color: #6c757d; margin-top: 2px; }

/* ===== Порожній кошик: без емодзі 🤷 у міні-кошику ===== */
.emoji { display: none; }


/* =========================================================
   ДИЗАЙН-СИСТЕМА: єдині відступи, розміри, шрифти
   Крок відступів — 8px (8/16/24/32/48). Поля сторінки — --ps-gutter.
   ========================================================= */
:root {
    --ps-gutter: 16px;
    --ps-section: 40px;          /* відстань між секціями сторінки */
    --ps-radius: 0;              /* без закруглень — як у теми */
    --ps-border: #dee2e6;
    --ps-muted: #6c757d;
    --row-spacing: var(--ps-section);
}
@media (min-width: 768px)  { :root { --ps-gutter: 24px; --ps-section: 48px; } }
@media (min-width: 1200px) { :root { --ps-gutter: 32px; } }

/* --- Поля сторінки: однакові скрізь (у теми було 5px) --- */
.container, .container-xxl, .container-fluid {
    padding-left: var(--ps-gutter);
    padding-right: var(--ps-gutter);
}
.container, .container-xxl { max-width: 1440px; }

/* --- Типографіка --- */
body { font-size: 16px; line-height: 1.5; }
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 {
    font-family: Oswald, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.2;
}
h1, .h1 { font-size: 32px; font-weight: 600; margin: 0 0 16px; }
h2, .h2 { font-size: 28px; font-weight: 600; margin: 0 0 12px; }
h3, .h3 { font-size: 24px; font-weight: 600; margin: 0 0 12px; }
h4, .h4 { font-size: 20px; font-weight: 500; margin: 0 0 12px; }
h5, .h5 { font-size: 18px; font-weight: 500; margin: 0 0 8px; }
@media (max-width: 767.98px) {
    h1, .h1 { font-size: 26px; }
    h2, .h2 { font-size: 24px; }
    h3, .h3 { font-size: 21px; }
}
p { margin: 0 0 12px; }
small, .small { font-size: 14px; }
.text-muted { color: var(--ps-muted) !important; }

/* --- Кнопки й поля: одна висота, один радіус --- */
.btn { border-radius: var(--ps-radius); }
.form-control, .form-select { border-radius: var(--ps-radius); min-height: 44px; }
.btn:not(.btn-sm):not(.btn-lg):not(.btn-close) { min-height: 40px; }
.btn-lg { min-height: 48px; font-size: 18px; }
.input-group > .form-control, .input-group > .btn { min-height: inherit; }

/* =========================================================
   ШАПКА
   ========================================================= */
/* Сіра смуга зверху: однакова висота, все по центру */
.header .meta { padding: 0; }
.header .meta-wrapper { min-height: 44px; gap: 16px; }

/* Іконки праворуч: однакові квадрати 40×40, іконка 24px, без підписів.
   Підпис «Кошик» показувала тема, бо в нашій шапці немає .header-container */
.header-custom-row .btn-text { display: none !important; }
@media (min-width: 992px) {
    .header-custom-row .menu-dropdowns { gap: 4px; }
}
.header-custom-row .menu-dropdowns > .btn,
.header-custom-row .menu-dropdowns > a,
.header-custom-row .menu-dropdowns .btn-minibasket {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--ps-radius);
    flex-direction: row;
}
.header-custom-row .menu-dropdowns svg { width: 24px; height: 24px; }
.header-custom-row .menu-dropdowns > .btn:hover,
.header-custom-row .menu-dropdowns > a:hover,
.header-custom-row .menu-dropdowns .btn-minibasket:hover { background: #f1f3f5; }
.header .menu-dropdowns .btn .badge {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 18px;
}

/* Пошук — тієї ж висоти, що й іконки */
.header-search-center .form-control { height: 44px; }
.header-search-center .search .btn { height: 44px; min-height: 44px; }

/* Рядок категорій: однаковий шрифт і відступи */
@media (min-width: 992px) {
    .header-inline-nav .navbar-nav-mega .nav-link-1 {
        font-size: 16px;
        padding: 12px 0;
    }
}
.header-box { border-bottom: 1px solid var(--ps-border); }

/* =========================================================
   ЗАГОЛОВКИ СТОРІНОК І ХЛІБНІ КРИХТИ
   ========================================================= */
.breadcrumb-wrapper { padding-top: 16px !important; padding-bottom: 16px !important; }
.breadcrumb-wrapper .container-xxl { padding-left: var(--ps-gutter); padding-right: var(--ps-gutter); }
.breadcrumb { margin: 0; font-size: 14px; }
.list-header { padding-bottom: 8px; }
.list-header h1, .list-header .h1, .list-header .h2 { margin: 0 0 16px; }
/* Сторінки без хлібних крихт (акаунт, вхід): заголовок не прилипає до шапки */
main.content > .container-xxl:first-child > h1:first-child,
main.content > .container-xxl:first-child h1.page-title,
main.content > .container:first-child > h1:first-child { margin-top: 24px; }

/* =========================================================
   ГОЛОВНА
   ========================================================= */
.article-slider, .row-spacer { margin-bottom: var(--ps-section); }
.article-slider h2, .article-slider .h2, .article-slider .h3 { margin-bottom: 4px; }
.article-slider h2 + p, .article-slider .h2 + p, .article-slider .h3 + p,
.article-slider .subtitle { color: var(--ps-muted); margin-bottom: 16px; }

/* Кола категорій: однакова ширина колонок, підпис до 3 рядків */
.cat-list {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    gap: 8px 0;
    padding-bottom: 16px !important;
    margin-bottom: var(--ps-section) !important;
    border-bottom-color: var(--ps-border);
}
.cat-list-item {
    flex: 1 1 0;
    min-width: 100px;
    max-width: 128px;
    width: auto;
    padding: 4px;
    font-size: 14px;
    line-height: 1.3;
    color: #212529;
}
.cat-list-item-img { width: 72px; height: 72px; margin-bottom: 8px; border-color: var(--ps-border); }
.cat-list-item:hover { color: #956205; }
.cat-list-item:hover .cat-list-item-img { border-color: #956205; }
.cat-list-item-name {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    hyphens: auto;
}

/* Логотипи брендів: однакові клітинки, логотип по центру */
.manufacturer-list .row, .manufacturer .row { align-items: stretch; }
.manufacturer-item, .manufacturer-list .card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.manufacturer-item .card-img, .manufacturer-list img {
    margin: 0 auto !important;
    max-height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* =========================================================
   КАРТКИ ТОВАРІВ (сітка, слайдери)
   ========================================================= */
.product-card { border-radius: var(--ps-radius); overflow: hidden; }
.product-card .product-img-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 12px;
}
.product-card .product-img-wrapper .product-img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}
/* Друге фото: у <img> width/height auto беруть власний розмір файлу (800×600),
   тому картинка виходила за межі й було видно лише білий край. */
.product-card .product-img-wrapper .product-img.img-2 {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    bottom: auto;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
}
.product-card .card-body,
.product-card .card-body.sale { padding: 12px 16px 48px; }
.product-card .card-title {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .card-title .artnum { color: var(--ps-muted); font-weight: 500; }
.product-card .price { left: 16px; bottom: 12px; }
.product-card .price .h5 { font-size: 20px; font-weight: 600; margin: 0; }
.product-card .short-desc { display: none; }
@media (min-width: 992px) {
    .product-card .card-body,
    .product-card .card-body.sale { padding-bottom: 48px; }
}

@media (min-width: 768px) { .product-card .product-img-wrapper { height: 220px; } }

/* Проміжки сітки товарів однакові */
.product-list, .list-container .row { --bs-gutter-x: 16px; --bs-gutter-y: 16px; }

/* =========================================================
   СТОРІНКА ТОВАРУ
   ========================================================= */
.details-title { font-size: 30px; margin-bottom: 8px !important; }
.price-wrapper { margin: 16px 0; row-gap: 4px; }
.price-wrapper .price-label { font-family: Oswald, sans-serif; font-weight: 600; }
.vat-info-text { font-size: 13px; color: var(--ps-muted); }
.vat-info-text a { margin-left: .3em; }
.tobasket-function { margin-bottom: 16px !important; }
.product-links { --bs-gutter-x: 8px; --bs-gutter-y: 8px; }
.product-links .btn {
    min-height: 36px;
    font-size: 13px;
    white-space: normal;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--ps-border);
}
.product-links .btn:hover { border-color: #956205; color: #956205; }
.details-more { padding-top: var(--ps-section); padding-bottom: var(--ps-section) !important; }
.details-more h2, .details-more .h2, .details-more .h3 {
    font-size: 22px;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--ps-border);
}
.details-more p { margin-bottom: 8px; }

/* =========================================================
   ФОРМИ, КОШИК, АКАУНТ
   ========================================================= */
.card { border-radius: var(--ps-radius); }
.form-floating > .form-control, .form-floating > .form-select { min-height: 52px; }
.form-label { font-size: 14px; margin-bottom: 4px; }
.alert { border-radius: var(--ps-radius); }

/* Міні-кошик (бічна панель) */
.basketFlyout .modal-header { padding: 16px 24px; }
.basketFlyout .modal-title { font-size: 22px; }
.basketFlyout .modal-body { padding: 16px 24px; }
.basketFlyout .modal-body > .p-3.text-center { padding: 32px 0 !important; color: var(--ps-muted); }

/* =========================================================
   ФУТЕР
   ========================================================= */
.footer { padding: var(--ps-section) 0 24px; }
.footer .h4 { font-size: 18px; font-weight: 500; color: #fff; margin-bottom: 12px; }
.footer .nav-link, .footer .footer-content a { padding: 4px 0; line-height: 1.4; font-size: 15px; }
.footer .footer-content .nav { flex-direction: column; gap: 0; }
.footer .footer-content p { margin: 0 0 4px; }
.footer nav, .footer [class*="col-"] { margin-bottom: 24px; }
.footer-newsletter .footer-content p { font-size: 15px; margin-bottom: 12px; }
.footer-newsletter .form-control { min-height: 44px; }
.footer-newsletter .btn { min-height: 44px; }
.footer .social-links .btn {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    border-color: transparent;
}
.footer .social-links .btn:hover { background: #956205; }
.footer .legal { font-size: 14px; }

/* --- Вкладені контейнери не додають другого поля --- */
.container .container, .container .container-xxl, .container .container-fluid,
.container-xxl .container, .container-xxl .container-xxl, .container-xxl .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* --- Слайдери товарів на головній: у полях сторінки, проміжок 16px --- */
.article-slider {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ps-gutter);
    padding-right: var(--ps-gutter);
}
.article-slider .container, .article-slider .container-xxl { padding-left: 0; padding-right: 0; }
.slider-container { gap: 16px; }
.slider-container > div { margin: 0 !important; }
.subhead { display: block; color: var(--ps-muted); margin-bottom: 16px; }

/* --- Бренди: логотипи по центру клітинки --- */
.manufacturer { margin: 0 0 var(--ps-section) !important; padding: 0 !important; }
.manufacturer-list { --bs-gutter-y: 16px; margin-left: 0; margin-right: 0; }
.manufacturer-list > [class*="col"] { display: flex; align-items: center; justify-content: center; }
.manufacturer-list > [class*="col"] > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 96px;
    padding: 8px;
    background: #fff;
    border-radius: var(--ps-radius);
}
.manufacturer-list-logo { max-height: 80px; max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* Порожні посилання у футері (CMS-сторінка без назви) давали зайвий проміжок */
.footer .nav-link:empty { display: none; }

/* Кнопки «Порівняти / Додати до списку…»: текст повністю, рівна висота в ряду */
.product-links > [class*="col-"] { display: flex; }
.product-links > [class*="col-"] > * { flex: 1 1 auto; display: flex; }
.details .product-links .btn {
    flex: 1 1 auto;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: center;
    padding: 6px 8px;
}

/* Опис товару: рядки без великих проміжків */
.accordeon .collapse p, #description p { margin-bottom: 6px; }
.accordeon h2, .accordeon .h2, .accordeon .h3, .accordeon .h4 {
    font-size: 22px;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* Короткі сторінки (порожній кошик): футер не «висить» посеред екрана */
main.content { min-height: 50vh; }

/* Навігація «до огляду / попередній / наступний» на сторінці товару */
.product-list-navigation { font-size: 14px; padding: 8px 0; }
.product-list-navigation a { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.product-list-navigation svg { width: 14px; height: 14px; }
@media (max-width: 767.98px) {
    .product-list-navigation .row { flex-wrap: nowrap; justify-content: space-between; margin: 0; }
    .product-list-navigation .row > div { width: auto; flex: 0 1 auto; padding: 0; }
    .product-list-navigation .pager-current-page { display: none; }
}

/* Нижня мобільна панель: однакові іконки й підписи */
.mobile-nav { padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); }
.mobile-nav .btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    padding: 4px 6px;
    position: relative;
}
.mobile-nav .btn svg { width: 24px; height: 24px; }
.mobile-nav .btn-text { font-size: 12px; line-height: 1.2; }
.mobile-nav .btn .badge { position: absolute; top: 2px; left: calc(50% + 6px); }

/* На телефоні картинка в картці нижча */
@media (max-width: 575.98px) {
    .product-card .product-img-wrapper { height: 150px; padding: 8px; }
    .product-card .card-body, .product-card .card-body.sale { padding: 10px 12px 44px; }
    .product-card .price { left: 12px; bottom: 10px; }
    .product-card .card-title { font-size: 15px; }
}

/* На мобільному низ сторінки не ховається під нижньою панеллю */
@media (max-width: 991.98px) {
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* Список товарів рядками («Обране», вигляд «список»): на телефоні тема ховала ціну й кнопки */
@media (max-width: 767.98px) {
    .card .row > .d-none.d-md-block.col-md-4.order-md-2 { display: block !important; margin-top: 8px; }
    .card .row > .d-none.d-md-block.col-md-4.order-md-2 .functions { text-align: left !important; }
}
