/* ============================================================
       CSS ЗМІННІ (Design Tokens)
       ============================================================ */

 :root {
    /* Кольори */
    --color-primary: #3fa383;
    /* основний зелений акцент */
    --color-primary-dark: #3da28b;
    /* темніший відтінок акценту */
    --color-primary-hover: #338f72;
    /* hover-стан */
    --color-logo-text: #1f5c3e;
    /* темно-зелений текст логотипу */
    --color-topbar-bg: #3fa383;
    /* фон топ-бару */
    --color-topbar-text: #ffffff;
    /* текст топ-бару */
    --color-nav-bg: #ffffff;
    /* фон навігації */
    --color-nav-text: #333333;
    /* текст пунктів меню */
    --color-nav-hover: #3fa383;
    /* нижня лінія під навігацією */
    --color-header-bg: #ffffff;
    --color-bg: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --color-input-border: #cccccc;
    --color-white: #ffffff;
    --color-link-inactive: rgba(255, 255, 255, 0.75);
    /* Типографіка */
    --font-main: 'Roboto', sans-serif;
    /* Розміри */
    --nav-height: 48px;
    --container-max: 1500px;
    --container-pad: 16px;
}


/* ============================================================
       RESET & BASE
       ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

img {
    width: 100%;
    display: block;
}


/* ============================================================
       ТОПБАР
       ============================================================ */

.topbar {
    background: #fff linear-gradient(90deg, #3fa382 0%, #2b97d2 100%);
    font-size: 12px;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
}

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.topbar__nav a {
    color: var(--color-topbar-text);
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.topbar__nav a:hover {
    opacity: 0.5;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}


/* Перемикач мови */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-topbar-text);
    font-size: 12px;
}

.lang-switch a {
    color: var(--color-topbar-text);
    padding: 0 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lang-switch a.active {
    opacity: 1;
    font-weight: 500;
}

.lang-switch a:hover {
    opacity: 1;
}


/* Іконки справа (порівняння, бажане, вхід) */

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar__action {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--color-topbar-text);
    font-size: 12px;
    transition: opacity 0.2s;
    opacity: 0.92;
    white-space: nowrap;
}

.topbar__action:hover {
    opacity: 1;
}

.topbar__action svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}


/* ============================================================
       ХЕДЕР (логотип + пошук + телефон + кошик)
       ============================================================ */

.header {
    background: var(--color-header-bg);
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}


.logo {
        width: 125px;
}

.logo img {
        height: auto;
}

/* Пошук */

.header__search {
    flex: 1;
    max-width: 200px;
    position: relative;
}

.header__search input, body  #ajaxsearchlite1 .probox .proinput input, div.asl_w .probox .proinput input {
    width: 100%;
  
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--color-text);
}

.header__search input::placeholder {
    color: #aaaaaa;
}

.header__search input:focus {
    border-color: var(--color-primary);
}

.header__search-btn {
    position: absolute;
    right: 11px;
    top: 6px;
    height: 25px;
    width: 18px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.header__search-btn:hover {
    color: var(--color-primary);
}


/* Телефон + кошик */

.header__contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header__phone {
    text-align: right;
}

.header__phone-num {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
}

.header__phone-num svg {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

.header__phone-callback {
    font-size: 11px;
    color: var(--color-primary);
    text-align: right;
    cursor: pointer;
    transition: opacity 0.2s;
}

.header__phone-callback:hover {
    opacity: 0.8;
    text-decoration: underline;
}


/* Кошик */

.header__cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    transition: border-color 0.2s;
    color: var(--color-text);
}

.header__cart:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.header__cart svg {
    width: 20px;
    height: 20px;
}

.header__cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ============================================================
       НАВІГАЦІЯ (горизонтальне меню категорій)
       ============================================================ */

#mainNav {
    background: #f8f8f8;
}

.nav__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
        background: #fffaed;
    padding: 10px 0;
    margin-top: 15px;
}

.nav__inner li {
    flex: 1;
    position: relative;
}

.nav__inner li a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: var(--nav-height);
    padding: 0 28px;
    font-weight: 500;
    color: var(--color-nav-text);
    transition: color 0.2s, background 0.2s;
    line-height: 1.3;
    font-size: 14px;
}

.nav__inner li a:hover {
    color: var(--color-nav-hover);
    background: rgba(63, 163, 131, 0.06);
}

/* ============================================================
   ВИПАДАЮЧІ ПІДМЕНЮ КАТЕГОРІЙ
   (додати після існуючих стилів .nav__inner)
   ============================================================ */

.nav__item {
    position: relative;
}

.nav__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 260px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
}

.nav__item--has-children:hover .nav__dropdown {
    display: block;
}

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

.nav__dropdown-list li {
    flex: none; /* скидаємо flex: 1 успадкований від .nav__inner li */
}

.nav__dropdown-list li a {
    display: block;
    height: auto;
    padding: 8px 0;
    text-align: left;
    justify-content: flex-start;
    font-weight: 400;
    white-space: nowrap;
    color: var(--color-text, #222);
}

.nav__dropdown-list li a:hover {
    color: var(--color-nav-hover, #3fa383);
    background: none;
}

.nav__item--has-children:last-child .nav__dropdown {
   left: auto;
   right:0;
}

.nav__dropdown--two-col .nav__dropdown-list {
    column-count: 1;
    column-gap: 32px;
}

.nav__dropdown--two-col .nav__dropdown-list li {
    break-inside: avoid;
}

/* Мобільна адаптація — випадаюче меню ховаємо, бо на мобілці зазвичай свій бургер-список */
@media (max-width: 1024px) {
    .nav__dropdown {
        position: static;
        box-shadow: none;
        border: none;
        display: none;
    }
}


/* ============================================================
       МОБІЛЬНИЙ ГАМБУРГЕР
       ============================================================ */

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.burger span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}


/* ============================================================
       АДАПТИВ
       ============================================================ */


/* Планшет */

@media (max-width: 1024px) {
    .topbar__nav a {
        padding: 0 7px;
    }
    .nav__link {
        font-size: 12px;
        padding: 0 6px;
    }
}


/* Мобільний */

@media (max-width: 768px) {
     :root {
        --header-height: 60px;
        --nav-height: 44px;
    }
    /* Топбар — прибираємо всі посилання крім мови */
    .topbar__inner {
        justify-content: space-between;
        padding: 6px 0;
    }
    .topbar__nav {
        display: none;
    }
    .topbar__actions {
        display: none;
    }
    /* Хедер */
    .header__inner {
        gap: 12px;
        padding: 12px 0;
    }
    .header__search {
        max-width: none;
        flex: 1;
    }
    .header__phone, .header__search {
        display: none;
    }
    /* Показуємо гамбургер */
    .burger {
        display: flex;
    }
    /* Навігація — горизонтальний скрол на мобільному */
    .nav__inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        gap: 0;
    }
    .nav__inner::-webkit-scrollbar, #mainNav   {
        display: none;
    }
    .nav__inner li {
        flex: 0 0 auto;
    }
    .nav__inner li a {
        font-size: 12px;
        padding: 0 14px;
    }

}


/* ============================================================
   HERO — банер (повна картинка)
   ============================================================ */

.hero {
    width: 100%;
    padding: 20px 10px;
}

.hero__img {
    display: block;
    width: 100%;
    height: 705px;
    object-fit: cover;
}


.hero__catalog-btn {
    display: none; /* на десктопі прихована */
}


@media (max-width: 768px) {
    .hero__catalog-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin:27px auto;
        width: calc(100% - 32px);
        padding: 11px 16px;
        border: 1.5px solid #2e99c5;
        border-radius: 6px;
        background: #fff;
        color: #2e99c5;
        font-size: 15px;
        font-weight: 500;
        font-family: var(--font-main);
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
    }

    .hero__catalog-btn:hover {
        background: #2e99c5;
        color: #fff;
    }

    .hero__catalog-btn svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
}


/* ============================================================
   BENEFITS — переваги (4 іконки в ряд)
   ============================================================ */

.benefits {
    padding: 20px 0;
}

.benefits__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefits__item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}


/* Роздільники між елементами */

.benefits__item+.benefits__item {
    border-left: 1px solid var(--color-border);
    padding-left: 20px;
}

.benefits__icon {
    width: 80px;
}

.benefits__text {
    line-height: 1.4;
    color: var(--color-text);
    font-weight: 600;
}


/* ============================================================
   АДАПТИВ
   ============================================================ */


/* Планшет */

@media (max-width: 900px) {
    .benefits__list {
        flex-wrap: wrap;
        justify-content: center;
    }
    .benefits__item {
        flex: 0 0 calc(50% - 24px);
        min-width: 200px;
    }
    /* Прибираємо роздільники при переносі */
    .benefits__item+.benefits__item {
        border-left: none;
        padding-left: 0;
    }
    /* Додаємо роздільники лише для першого ряду */
    .benefits__item:nth-child(2) {
        border-left: 1px solid var(--color-border);
        padding-left: 20px;
    }
    
    .benefits__icon {
        width: 50px;
    }
}


/* Мобільний */

@media (max-width: 540px) {
    .hero__img {
        max-height: 220px;
        object-position: 70% center;
    }
    .benefits {
        padding: 16px 0;
    }
    .benefits__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .benefits__item {
        flex: none;
        width: 100%;
    }
    .benefits__item+.benefits__item {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--color-border);
        padding-top: 14px;
    }
    .benefits__item:nth-child(2) {
        border-left: none;
        padding-left: 0;
    }
    
    .promo__grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
    width: 100%;
    padding: 0;
}

.custom-logo-link {
        width: 70px;
    display: block;
}

.custom-logo-link img {
        height: auto;
}


}


/* ============================================================
   PROMO — дві інформаційні картинки поруч
   ============================================================ */

.promo {
    padding: 32px 0;
}

.promo__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.promo__banner {
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

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


@media (max-width: 540px) {
    .promo__grid {
        display: flex;
        overflow: hidden;
        gap: 0;
    }

    .promo__banner {
        flex: 0 0 100%;
        border-radius: 0;
        transition: transform 0.4s ease;
    }
}
/* ============================================================
   PRODUCTS — табова секція (Хіти / Розпродаж / Новинки)
   ============================================================ */

.products {
    padding: 40px 0 70px;
}


/* Таби */

.products__tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 28px;
}

.products__tab {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-main);
}

.products__tab:hover {
    color: var(--color-primary);
}

.products__tab.active {
    color: var(--color-primary);
}


/* Панелі контенту */

.products__panel {
    display: none;
}

.products__panel.active {
    display: block;
}

.products__panel .swiper-wrapper {
        justify-content: center;
}




/* Слайдер */

.products__slider-wrap {
    position: relative;
}

.products__slider {
    display: flex;
    gap: 16px;
    overflow: hidden;
    /* JS керує зміщенням */
}


/* Картка товару */

.product-card {
    flex: 0 0 calc(20% - 13px);
    /* 5 карток на десктопі */
    min-width: 0;
}

.product-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f3;
    border-radius: 4px;
    margin-bottom: 10px;
    display: block;
}

.product-card__img-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-card__img-wrap img {
    transform: scale(1.03);
}


/* ============================================================
   СЕКЦІЯ ТОВАРІВ — Swiper
   ============================================================ */

.products { padding: 40px 0; }

/* ── Таби ── */
.products__tabs {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}
.products__tab {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.products__tab.active,
.products__tab:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* ── Панелі ── */
.products__panel         { display: none; }
.products__panel.active  { display: block; }

/* ── Обгортка з місцем для стрілок ── */
.products__swiper-wrap {
    position: relative;
    padding: 0 36px;
}

/* ── Картка ── */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-card__img-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #f5f5f5;
}
.product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.product-card__img-wrap:hover img {
    transform: scale(1.04);
}

/* ── Hover-кнопка «Купити» ── */
.product-card__buy {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary, #3fa383);
    color: #fff;
    border: none;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease, background 0.2s;
    border-radius: 0 0 4px 4px;
}
.product-card__img-wrap:hover .product-card__buy {
    opacity: 1;
    transform: translateY(0);
}
.product-card__buy:hover { background: #2e8a6d; }

/* ── Бейдж ── */
.product-card__badge {
    position: absolute;
    top: 8px;
    left: 0;
    background: #7baf35;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px 4px 8px;
    border-radius: 0 3px 3px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}
.product-card__badge--sale { background: #e05c5c; }

/* ── Назва та ціна ── */
.product-card__title {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}
.product-card__title:hover { color: var(--color-primary); }

.product-card__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-top: auto;
}

/* ── Стрілки ── */
.swiper-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    z-index: 10;
    transition: border-color 0.2s, color 0.2s;
}
.swiper-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.swiper-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}
.products-swiper__prev { left: 0; }
.products-swiper__next { right: 0; }
.swiper-btn svg { width: 14px; height: 14px; }

/* ── Адаптив ── */
@media (max-width: 768px) {
    .products__swiper-wrap { padding: 0 20px; }
    .products__panel .swiper-wrapper {
    padding-left: 250px;
    
}

}

/* ============================================================
   СЕКЦІЯ: КАТЕГОРІЇ
   ============================================================ */

.categories {
    padding: 50px 0;
}


/* Сітка: 6 колонок на десктопі, менше на мобільних */

.categories__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px 24px;
}

@media (max-width: 1100px) {
    .categories__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 720px) {
    .categories__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 16px;
    }
}

@media (max-width: 480px) {
    .categories__grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox — приховати смугу */
    }

    .categories__grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari — приховати смугу */
    }

    .cat-card {
        flex: 0 0 140px; /* фіксована ширина картки */
    }

    .cat-card__subs,
    .cat-card__more-btn {
        display: none; /* на мобільному підкатегорії не показуємо */
    }

    .cat-card__img-wrap {
        width: 100%;
        height: 100px;
    }
}

/* ============================================================
   КАРТКА КАТЕГОРІЇ
   ============================================================ */

.cat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* Обгортка зображення */

.cat-card__img-wrap {
    display: block;
    width: 100px;
    height: 140px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

.cat-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.cat-card__img-wrap:hover .cat-card__img {
    transform: scale(1.04);
}


/* Назва категорії */

.cat-card__title {
    display: block;
    font-family: var(--font-main);
    font-weight: 700;
    margin: 10px 0;
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.3;
    transition: color 0.2s;
}

.cat-card__title:hover {
    color: var(--color-primary);
}


/* Список підкатегорій */

.cat-card__subs {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cat-card__subs li a {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
    transition: color 0.2s;
}

.cat-card__subs li a:hover {
    color: var(--color-primary);
}


/* Кнопка «Всі категорії» */

.cat-card__more-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 4px 14px;
    border: 1px solid #2e99c5;
    border-radius: 3px;
    font-size: 12px;
    color: #2e99c5;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    align-self: flex-start;
}

.cat-card__more-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}


/* ============================================================
   СЕКЦІЯ: ТЕКСТОВИЙ БЛОК (про магазин)
   ============================================================ */

.about {
    background: #f6f6f8;
    padding: 40px 0 44px;
}

.about__content {
    max-width: 900px;
    margin: auto;
}

.about__content p {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 12px;
}

.about__content p:first-child {
    font-weight: 700;
    margin-bottom: 14px;
}

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


/* список через тире */

.about__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.about__list li {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.7;
}

.about__list li::before {
    content: '— ';
}


/* ============================================================
   ФУТЕР
   ============================================================ */

.footer {
    background: #f6f6f8;
    border-top: 3px solid var(--color-primary);
    padding: 40px 0 24px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 450px 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 1024px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer__inner {
        grid-template-columns: 1fr;
    }
    
    .cat-card__img-wrap {

        width: 70px;
        height: 90px;
    }
    
    
    .cat-card__title {
        font-size: 13px;
    }
        
}


/* --- Логотип + опис --- */

.footer__logo {
    width: 200px;
    display: block;
    margin-bottom: 20px;
}

.footer__desc {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}


/* --- Колонки посилань --- */

.footer__col-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 14px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__links a {
    font-size: 13px;
    color: var(--color-text-light);
    transition: color 0.2s;
    line-height: 1.5;
}

.footer__links a:hover {
    color: var(--color-primary);
}


/* --- Контактна колонка --- */

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.footer__contact-item svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.footer__contact-item a {
    color: var(--color-text-light);
    transition: color 0.2s;
}

.footer__contact-item a:hover {
    color: var(--color-primary);
}

.footer__contact-item--phone .footer__phone {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
}

.footer__callback {
    font-size: 12px;
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
}


/* Соцмережі */

.footer__socials-title {
    font-size: 13px;
    color: var(--color-text-light);
    margin-top: 16px;
    margin-bottom: 10px;
}

.footer__socials {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.footer__socials a:hover {
    color: var(--color-primary);
}


/* Адреса */

.footer__address-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__address-col p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.footer__address-col a {
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: underline;
}


/* ============================================================
   СТОРІНКА ТОВАРУ
   ============================================================ */


/* --- Хлібні крихти --- */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
    color: var(--color-text-light);
    padding: 30px 0 10px;
}

.breadcrumb a {
    color: var(--color-text-light);
    transition: color .2s;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb__sep {
    color: #bbb;
}


/* --- Заголовок + артикул --- */

.product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 5px;
}

.product-header__title, .entry-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.3;
    flex: 1;
}

.product-header__sku {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--color-text-light);
}

.product-header__sku-label {
    margin-bottom: 2px;
}

.product-header__sku-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}


/* ============================================================
   ГОЛОВНА СІТКА: фото ліво, весь контент право
   ============================================================ */

.product-layout {
    display: grid;
    grid-template-columns: 700px 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 100px;
}

@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


/* --- Ліва колонка: галерея прилипає --- */

.product-gallery__badge {
    display: block;
    position: absolute;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
}

.product-gallery__main {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-gallery__img {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}
.product-gallery {
        position: sticky;
    top: 3%;
}

.product-gallery__thumbs {
    display: none;
    gap: 8px;
    margin-top: 12px;
}

.product-gallery__thumb {
    width: 70px;
    height: 96px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #999;
    transition: border-color .2s;
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    /* прибрати, якщо є реальні фото */
}

.product-gallery__thumb--active,
.product-gallery__thumb:hover {
    border-color: var(--color-primary);
}


/* --- Права колонка --- */

.product-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* Наявність */

.product-info__status {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.product-info__in-stock {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 500;
}

.product-info__review-link {
    font-size: 13px;
    color: var(--color-text-light);
    text-decoration: underline;
    cursor: pointer;
    transition: color .2s;
}

.product-info__review-link:hover {
    color: var(--color-primary);
}


/* Ціна */

.product-info__price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.product-info__price {
    font-size: 28px;
    color: var(--color-text);
}

.product-info__price-old {
    font-size: 18px;
    color: #aaa;
    text-decoration: line-through;
}


/* Знижка */

.product-info__loyalty {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-light);
}

.product-info__loyalty svg {
    width: 30px;
}


/* Купити */

.product-info__buy-btn {
    display: inline-block;
    width: fit-content;
    padding: 10px 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-size: 18px;
    font-family: var(--font-main);
    border-radius: 5px;
    cursor: pointer;
    transition: background .2s;
}

.product-info__buy-btn:hover {
    background: var(--color-primary-hover);
}


/* Характеристики */

.product-info__chars {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.product-info__chars-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.product-info__chars-table {
    width: 100%;
    border-collapse: collapse;
}

.product-info__chars-key {
    padding: 6px 16px 6px 0;
    font-size: 13px;
    color: var(--color-text-light);
    width: 160px;
    vertical-align: top;
}

.product-info__chars-val {
    padding: 6px 0;
    font-size: 13px;
    color: var(--color-text);
}


/* Поширити */

.product-info__share {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.product-info__share-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.product-info__share-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-info__share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    transition: opacity .2s;
}

.product-info__share-btn:hover {
    opacity: .85;
}

.product-info__share-btn--fb {
    background: #1877f2;
}

.product-info__share-btn--x {
    background: #000;
}

.product-info__share-btn--wa {
    background: #25d366;
}


/* ============================================================
   ТАБИ (обидва блоки)
   ============================================================ */

.product-tabs__nav {
    display: flex;
    border-top: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.product-tabs__btn {
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-light);
    background: none;
    border: none;
    border-top: 1px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.product-tabs__btn:hover {
    color: var(--color-primary);
}

.product-tabs__btn--active {
    color: #2e99c5;
    border-top-color: #2e99c5;
}

.product-tabs__content {
    display: none;
}

.product-tabs__content--active {
    display: block;
}

.product-tabs__content img {
        width: auto;
}


.product-tabs__content[data-tab-content="description"] p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text);
}


/* Форма відгуку */

.review-form__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.review-form__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-form__fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 180px;
}

.review-form__input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 13px;
    font-family: var(--font-main);
    outline: none;
    transition: border-color .2s;
}

.review-form__input:focus {
    border-color: var(--color-primary);
}

.review-form__social-login {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-light);
    flex-shrink: 0;
}

.review-form__textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 13px;
    font-family: var(--font-main);
    resize: vertical;
    outline: none;
    transition: border-color .2s;
    margin-bottom: 12px;
}

.review-form__textarea:focus {
    border-color: var(--color-primary);
}

.review-form__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.review-form__stars {
    display: flex;
    gap: 4px;
}

.review-form__star {
    font-size: 22px;
    color: #ccc;
    cursor: pointer;
    transition: color .15s;
    user-select: none;
}

.review-form__star--active,
.review-form__star:hover {
    color: #f5a623;
}

.review-form__submit {
    padding: 10px 30px;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background .2s;
}

.review-form__submit:hover {
    background: var(--color-primary-hover);
}


/* Info-таби (доставка тощо) */

.info-tab-content {
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-text);
}

.info-tab-content p {
    margin-bottom: 8px;
}

.info-tab-content ul {
    padding-left: 4px;
    margin-bottom: 10px;
}

.info-tab-content ul li {
    margin-bottom: 2px;
}

.info-tab-content ul ul {
    padding-left: 16px;
}

.info-tab-content__subtitle {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}


/* ============================================================
   СЛАЙДЕР
   ============================================================ */

.related__title {
    font-size: 18px;
    font-weight: 700;
    color: #2e99c5;
    margin-bottom: 16px;
}

.related__wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
        max-width: 700px;
    width: 100%
}

.related__track-outer {
    overflow: hidden;
    flex: 1;
}

.related__track {
    display: flex;
    gap: 16px;
    transition: transform .35s ease;
}

.related__arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-light);
    transition: border-color .2s, color .2s;
}

.related__arrow:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.recently-viewed  .related-card {
    flex: 0 0 calc(14% - 12px);
}

.related-card {
    flex: 0 0 calc(25% - 12px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (max-width: 800px) {
    .recently-viewed .related-card {
        flex: 0 0 calc(33.33% - 11px); /* 3 картки в ряд */
    }
    
.related__wrapper {
    max-width: 350px;
    width: 100%;
    margin: auto;
}

.product-tabs__btn {
    padding: 12px 7px;
    font-size: 14px;
}

.product-header__title, .entry-title {
    font-size: 24px;
    line-height: 1.2;
}


}

@media (max-width: 540px) {
    .related-card, .recently-viewed .related-card  {
          flex: 0 0 calc(50% - 8px); 
    }
}

.related-card__img-wrap {
    display: block;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    background: #f9f9f9;
}

.related-card__img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform .25s;
}

.related-card__img-wrap:hover .related-card__img {
    transform: scale(1.03);
}

.related-card__title {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.related-card__title:hover {
    color: var(--color-primary);
}

.related-card__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}


/* ============================================================
   СТОРІНКА КАТАЛОГУ
   ============================================================ */


/* Загальна сітка: фільтри + товари */

.catalog {
    padding: 24px 0 48px;
}

.catalog__layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 768px) {
    .catalog__layout {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   ФІЛЬТРИ (ліва колонка)
   ============================================================ */

.catalog-filters {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}


/* Чекбокси */

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text);
    cursor: pointer;
    user-select: none;
}

.filter-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-checkbox span {
    flex: 1;
}

.filter-checkbox em {
    font-style: normal;
    font-size: 12px;
    color: var(--color-text-light);
}


/* Поля ціни */

.filter-price__inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.filter-price__input {
    width: 70px;
    padding: 5px 8px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 13px;
    font-family: var(--font-main);
    outline: none;
    transition: border-color .2s;
}

.filter-price__input:focus {
    border-color: var(--color-primary);
}

.filter-price__sep {
    color: var(--color-text-light);
    font-size: 13px;
}

.filter-price__ok {
    padding: 5px 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
}

.filter-price__ok:hover {
    background: var(--color-primary-hover);
}


/* Слайдер ціни (подвійний range) */

.filter-price__slider {
    position: relative;
    height: 20px;
}

.filter-price__track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    transform: translateY(-50%);
}

.filter-price__range {
    position: absolute;
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
}

.filter-price__range-input {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    left: 0;
}

.filter-price__range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    cursor: pointer;
    pointer-events: all;
}

.filter-price__range-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid #fff;
    cursor: pointer;
    pointer-events: all;
}


/* ============================================================
   ПРАВА КОЛОНКА
   ============================================================ */

.catalog-main {
    min-width: 0;
}

.catalog-title {
    font-size: 32px;
    margin: 0 0 18px;
    line-height: 1.1;
    font-weight: 400;
}


/* Сортування + перемикач виду */

.catalog-main__controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.catalog-sort__label,
.catalog-view__label {
    font-size: 14px;
}

.catalog-sort__btns {
    display: flex;
    flex-wrap: wrap;
}

.catalog-sort__btn {
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-text-light);
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    white-space: nowrap;
}

.catalog-sort__btn:first-child {
    border-radius: 4px 0 0 4px;
}

.catalog-sort__btn:last-child {
    border-radius: 0 4px 4px 0;
}

.catalog-sort__btn:hover {
    color: var(--color-primary);
}

.catalog-sort__btn--active {
    background: #efefef;
    color: #000;
}

.catalog-view {
    display: flex;
    align-items: center;
    gap: 6px;
}

.catalog-view__btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #fff;
    display: flex;
    padding: 6px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-light);
    transition: border-color .2s, color .2s;
}

.catalog-view__btn:hover {
    border-color: var(--color-primary);
}

.catalog-view__btn--active {
    background-color: #efefef;
}


/* ============================================================
   СІТКА ТОВАРІВ — вид «плитка»
   ============================================================ */

.catalog-products--grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 16px;
}

@media (max-width: 1100px) {
    .catalog-products--grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 860px) {
    .catalog-products--grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .catalog-products--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Картка в режимі сітки */

.catalog-products--grid .product-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.catalog-products--grid .product-card__img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.catalog-products--grid .product-card__img {
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform .25s;
}

.catalog-products--grid .product-card__img-wrap:hover .product-card__img {
    transform: scale(1.04);
}

.catalog-products--grid .product-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.catalog-products--grid .product-card__title {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.catalog-products--grid .product-card__title:hover {
    color: var(--color-primary);
}

.catalog-products--grid .product-card__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}


/* ============================================================
   СПИСОК ТОВАРІВ — вид «таблиця»
   ============================================================ */

.catalog-products--list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-border);
}





/* Кількість +/- */

.product-card__qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-card__qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    background: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: border-color .2s, color .2s;
}

.product-card__qty-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.product-card__qty-val {
    font-size: 13px;
    min-width: 16px;
    text-align: center;
}


/* ── Мобільна панель управління ── */
.catalog-mobile-bar {
    display: none;
}

  .catalog-filter-overlay, .catalog-filters__close {
        display: none;
       
    }

@media (max-width: 768px) {
    /* Показуємо мобільну панель */
    .catalog-mobile-bar {
        display: flex;
        align-items: center;
        gap: 0;
        border: 1px solid var(--color-border);
        border-radius: 6px;
        overflow: hidden;
        margin-bottom: 16px;
        background: #fff;
    }

    .catalog-mobile-bar__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px 14px;
        background: none;
        border: none;
        font-size: 14px;
        font-family: var(--font-main);
        color: var(--color-text);
        cursor: pointer;
        white-space: nowrap;
        border-right: 1px solid var(--color-border);
    }

    .catalog-mobile-bar__btn:last-child {
        border-right: none;
        border-left: 1px solid var(--color-border);
        padding: 10px 12px;
    }

    /* Сортування select */
    .catalog-mobile-sort {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 0 10px;
        color: var(--color-text);
        min-width: 0;
    }

    .catalog-mobile-sort svg {
        flex-shrink: 0;
    }

    .catalog-mobile-sort__select {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 14px;
        font-family: var(--font-main);
        color: var(--color-text);
        outline: none;
        cursor: pointer;
        min-width: 0;
        appearance: none;
        -webkit-appearance: none;
    }

    /* Ховаємо десктопні фільтри і controls */
    .catalog-filters {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        background: #fff;
        z-index: 1000;
        padding: 20px 16px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        gap: 20px;
    }

    .catalog-filters.is-open {
        transform: translateX(0);
    }

    .catalog-filters__close {
        display: flex;
        align-self: flex-end;
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
        color: var(--color-text-light);
        padding: 0;
        margin-bottom: 8px;
        line-height: 1;
    }

    /* Overlay */
    .catalog-filter-overlay {
      
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 999;
    }

    .catalog-filter-overlay.is-visible {
        display: block;
    }

    /* Ховаємо десктопні контроли сортування */
    .catalog-main__controls {
        display: none;
    }

    /* Layout — на мобільному одна колонка */
    .catalog__layout {
        grid-template-columns: 1fr;
    }

    /* Заголовок каталогу — перемістити вгору */
    .catalog-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    
     /* Ховаємо шапку таблиці на мобільному */
    .catalog-products--list .catalog-list__header {
        display: none!important;
    }

    /* Кожна картка — flex-рядок */
    .catalog-products--list .product-card__list-view {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 0;
        align-items: flex-start;
    }

    /* Артикул — маленький текст над фото */
    .catalog-products--list .list-col--sku {
        order: 1;
        width: 100%;
        font-size: 11px;
        color: var(--color-text-light);
    }

    /* Фото — зліва, фіксована ширина */
    .catalog-products--list .list-col--img {
        order: 2;
        width: 70px;
        flex-shrink: 0;
    }

    .catalog-products--list .list-col--img img {
        width: 70px;
        height: 95px;
        object-fit: cover;
        border-radius: 3px;
    }

    /* Блок з назвою + ціною + статусом — справа від фото */
    .catalog-products--list .list-col--title {
        order: 3;
        flex: 1;
        font-size: 13px;
        line-height: 1.4;
    }

    .catalog-products--list .list-col--price {
        order: 4;
        width: calc(100% - 78px); /* ширина мінус фото */
        margin-left: 78px;
        font-size: 16px;
        font-weight: 700;
    }

    .catalog-products--list .list-col--stock {
        order: 5;
        width: calc(100% - 78px);
        margin-left: 78px;
        font-size: 12px;
    }

    /* Ховаємо оптові ціни на мобільному */
    .catalog-products--list .list-col--wholesale{
        display: none;
    }

    /* Qty і кнопка — в один рядок внизу */
    .catalog-products--list .list-col--qty {
        order: 6;
        margin-left: 78px;
    }

    .catalog-products--list .list-col--order {
        order: 7;
        flex: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .catalog-products--list .btn-order {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    
    
}


/* ============================================================
   ІНФОРМАЦІЙНІ СТОРІНКИ (про нас, контакти тощо)
   ============================================================ */

.info-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    padding: 24px 0 56px;
    align-items: start;
}

@media (max-width: 768px) {
    .info-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .product-gallery {
        position: static;

}
}


/* ============================================================
   ЛІВА НАВІГАЦІЯ
   ============================================================ */

.info-nav {
    position: sticky;
    top: 20px;
}

.info-nav__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-nav__link {
    display: block;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--color-text);
    border-radius: 4px;
    transition: background .15s, color .15s;
    line-height: 1.3;
}

.info-nav__link:hover {
    background: #f0faf5;
    color: var(--color-primary);
}

.info-nav__link--active {
    background: #e8f5ef;
    color: var(--color-text);
    font-weight: 500;
}


/* ============================================================
   ПРАВИЙ КОНТЕНТ
   ============================================================ */

.info-content__title {
    font-size: 32px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 15px;
}


.info-content .breadcrumb {
    padding: 0 0 10px;
}

.info-text {
    max-width: 820px;
}

.info-text h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 28px 0 14px;
}

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

.info-text h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin: 18px 0 6px;
}

.info-text p {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.75;
    margin-bottom: 10px;
}

.info-text__list, .info-text ol {
    margin: 0 0 14px 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-text__list li, .info-text ol li {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
}

.info-text__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-text);
}

 .info-text ol  {
         list-style: auto;
    padding-left: 13px;
 }


.info-text ol li  {
    padding-left: 0;
}

/* ============================================================
   СТОРІНКА КОНТАКТІВ
   ============================================================ */

.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .info-nav {
        display: none;
    }
}


/* Контактні елементи */

.contacts-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--color-text);
}

.contacts-item svg {
    flex-shrink: 0;
    color: #555;
}

.contacts-item a {
    color: var(--color-text);
    transition: color .2s;
}

.contacts-item a:hover {
    color: var(--color-primary);
}


/* Кнопка дзвінка */

.contacts-callback-btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: var(--color-primary);
    cursor: pointer;
    margin: 4px 0 16px;
    transition: background .2s, color .2s;
}

.contacts-callback-btn:hover {
    background: var(--color-primary);
    color: #fff;
}


/* Графік роботи */

.contacts-schedule {
    margin-top: 20px;
}

.contacts-schedule__title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.contacts-schedule p {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.7;
}

.contacts-schedule__note {
    margin-top: 8px;
    color: var(--color-text-light) !important;
}


/* Адреса */

.contacts-address__title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.contacts-address__text {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
}


/* Карта */

.contacts-map {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.contacts-map iframe {
    display: block;
}


/* За замовчуванням: grid-view видимий, list-view прихований */
.product-card__list-view  { display: none; }
.product-card__grid-view  { display: block; }
.catalog-list__header     { display: none; }

/* В режимі список — навпаки */
.catalog-products--list .product-card          { border-bottom: 1px solid #e8e8e8; padding: 10px 0; }
.catalog-products--list .product-card__grid-view { display: none; }
.catalog-products--list .product-card__list-view {
    display: grid;
    grid-template-columns: 80px 64px 1fr 130px 100px 110px 110px;
    align-items: center;
        font-size: 14px;
    gap: 12px;
    padding: 8px 0;
}
.catalog-products--list .catalog-list__header {
    display: grid;
    grid-template-columns: 80px 64px 1fr 130px 100px 110px 110px;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 2px solid #e8e8e8;
    font-weight: 500;
    color: #888;
    font-size: 13px;
}

.list-col--img a  {
        width: 32px;
    height: 32px;
    display: block;
}

.list-col--img  img {
        height: auto;
}

.list-col--title a {
    color: #000;
}

/* Статуси */
.status--in   { color: #3fa383; }
.status--out  { color: #e74c3c; }
.status--back { color: #e67e22; }

/* Кнопка кількості */
.qty-control { display: flex; align-items: center; gap: 4px; }
.qty-control__btn {
    width: 26px; height: 26px;
    border: 1px solid #ccc; background: #fff;
    cursor: pointer; font-size: 16px; line-height: 1;
    border-radius: 3px;
}
.qty-control__input {
    width: 40px; text-align: center;
    border: 1px solid #ccc; border-radius: 3px;
    padding: 3px 4px; font-size: 13px;
}

/* Кнопка "замовити" з ціною */
.btn-order {
    display: inline-block;
    background: #3fa383;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}
.btn-order:hover { background: #2e8a6d; }

.btn-order--disabled {
    background: #ccc;
    cursor: default;
    pointer-events: none;
}


/* ── Ціна WooCommerce (замість звичайного тексту) ── */
.product-info__price-row .woocommerce-Price-amount {
  font-size: 1.7rem;
  color: #222;
}
.product-info__price-row del .woocommerce-Price-amount {
  font-size: 1rem;
  font-weight: 400;
  color: #999;
}
.product-info__price-row ins {
  text-decoration: none;
}
 
/* ── Список відгуків ── */
.review-list {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-item {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 14px 16px;
}
.review-item__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.review-item__author {
  font-weight: 600;
  font-size: .95rem;
}
.review-item__stars {
  color: #f4a10a;
  font-size: 1rem;
  letter-spacing: 1px;
}
.review-item__date {
  color: #aaa;
  font-size: .8rem;
  margin-left: auto;
}
.review-item__text {
  margin: 0;
  font-size: .9rem;
  color: #444;
  line-height: 1.5;
}
 
/* ── Повідомлення форми ── */
.review-form__heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #222;
}
.review-form__message {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: .9rem;
  margin-bottom: 12px;
}
.review-form__message--success {
  background: #e8f5f0;
  color: #2e8a6d;
  border: 1px solid #b2dece;
}
.review-form__message--error {
  background: #fdf0f0;
  color: #c0392b;
  border: 1px solid #f5b8b8;
}
 
/* ── Секція «Переглянуті товари» ── */
.recently-viewed {
  margin-top: 48px;
  padding-bottom: 48px;
}
.recently-viewed__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.recently-viewed__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}
.recently-viewed__wrapper {
  /* Наслідує стилі від .related__wrapper */
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
 
/* ── Статус товару ── */
.product-info__in-stock {
  color: #2e8a6d;
  font-size: .85rem;
  font-weight: 500;
}
.product-info__out-of-stock {
  color: #c0392b;
  font-size: .85rem;
  font-weight: 500;
}

.site-main {
    padding: 50px 0;
}

body .wc-block-components-button {
        background-color: #3fa383;
    border-radius: 5px;
}

.info-nav__list .current-menu-item a {
    color: #3fa383;
    font-weight: 600;
}

.wc-block-components-button {
    font-size: 16px!important;
}

.wc-block-components-address-form {
    gap: 20px!important;
}


/* ═══ МОБІЛЬНИЙ DRAWER ═══ */
.mob-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: #fff;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
}

.mob-drawer.is-open {
    transform: translateX(0);
}

.mob-drawer__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1999;
}

.mob-drawer__overlay.is-visible {
    display: block;
}

.mob-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.mob-drawer__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
}

.mob-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    padding: 4px;
    display: flex;
    align-items: center;
}

/* Навігаційні посилання */
.mob-drawer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mob-drawer__links li a {
    display: block;
    padding: 13px 20px;
    font-size: 14px;
    color: var(--color-text);
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s;
}

.mob-drawer__links li a:hover {
    color: var(--color-primary);
}

.mob-drawer__divider {
    height: 1px;
    background: var(--color-border);
    margin: 8px 0;
}

/* Вхід */
.mob-drawer__action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    font-size: 14px;
    color: var(--color-text);
    transition: color 0.2s;
}

.mob-drawer__action:hover {
    color: var(--color-primary);
}

/* Контакти */
.mob-drawer__contacts {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.mob-drawer__contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-size: 14px;
    color: var(--color-text);
    transition: color 0.2s;
}

.mob-drawer__contact:hover {
    color: var(--color-primary);
}

/* Кнопка callback */
.mob-drawer__callback {
    margin: 8px 20px;
    padding: 9px 20px;
    border: 1.5px solid #2e99c5;
    border-radius: 5px;
    background: #fff;
    color: #2e99c5;
    font-size: 14px;
    font-family: var(--font-main);
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, color 0.2s;
    align-self: flex-start;
}

.mob-drawer__callback:hover {
    background: #2e99c5;
    color: #fff;
}

/* Мова */
.mob-drawer__lang {
    padding: 12px 20px 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mob-drawer__lang-label {
    font-size: 11px;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mob-drawer__lang-btns {
    display: flex;
    gap: 12px;
}

.mob-drawer__lang-btn {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.mob-drawer__lang-btn.active {
    color: var(--color-text);
}

/* Соцмережі */
.mob-drawer__socials {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mob-drawer__socials-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.mob-drawer__social {
    color: var(--color-text-light);
    transition: color 0.2s;
    display: flex;
}

.mob-drawer__social:hover { color: var(--color-primary); }

/* На десктопі drawer не потрібен */
@media (min-width: 769px) {
    .mob-drawer,
    .mob-drawer__overlay { display: none !important; }
}


.catalog-pagination {
    margin-top: 50px;
    text-align: center;
}

.catalog-pagination .pager__container {
    display: inline-flex;
}

/* Всі кнопки */
.catalog-pagination a.page-numbers,
.catalog-pagination span.page-numbers {
    flex-shrink: 0;
    position: relative;
    margin-left: -1px;
    border: 1px solid #d7d7d7;
    background: #fff;
    height: 28px;
    line-height: 28px;
    padding: 0 10px;
    text-decoration: none;
    white-space: nowrap;
    color: #333;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

/* Назад */
.catalog-pagination a.prev {
    border-radius: 4px 0 0 4px;
}

/* Вперед */
.catalog-pagination a.next {
    border-radius: 0 4px 4px 0;
}

/* Активна */
.catalog-pagination span.current {
    background: #efefef;
    color: #000;
    z-index: 1;
    font-weight: bold;
    cursor: default;
}

/* Крапки */
.catalog-pagination span.dots {
    cursor: default;
    pointer-events: none;
}

/* Hover */
.catalog-pagination a.page-numbers:not(.prev):not(.next):hover,
.catalog-pagination a.prev:hover,
.catalog-pagination a.next:hover {
    color: #3da28b;
}

.catalog-pagination svg {
    display: block;
    width: 6px;
    height: 9px;
    margin: 0 4px;
}


/* ===================== ПЛАВАЮЧИЙ ЧАТ-ВІДЖЕТ ===================== */

.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: inherit;
}

.chat-widget__toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #3fa383;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.chat-widget__toggle:hover {
    transform: scale(1.06);
}

.chat-widget__toggle svg {
    width: 26px;
    height: 26px;
}

.chat-widget__popup {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-widget.is-open .chat-widget__popup {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chat-widget__header {
    background: #2f2f2f;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.chat-widget__star {
    font-size: 14px;
}

.chat-widget__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

.chat-widget__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 8px;
}

.chat-widget__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-widget__label {
    font-size: 13px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-widget__input,
.chat-widget__textarea {
    font-family: inherit;
    font-size: 14px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    outline: none;
}

.chat-widget__input:focus,
.chat-widget__textarea:focus {
    border-color: #3fa383;
}

.chat-widget__buttons {
    display: flex;
    gap: 8px;
}

.chat-widget__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.chat-widget__btn:hover {
    opacity: 0.9;
}

.chat-widget__btn--telegram {
    background: #229ed9;
}

.chat-widget__btn--viber {
    background: #7360f2;
}

.chat-widget__hint {
    margin: 0;
    font-size: 11px;
    color: #999;
    text-align: center;
}

/* Мобільна адаптація */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 16px;
        right: 16px;
    }

    .chat-widget__popup {
        width: calc(100vw - 32px);
        right: -8px;
    }
}