/* ============================================================
   MKA MARKET — main stylesheet (v0.4.0 «belok-style» redesign)
   Світла маркетплейсна архітектура + бренд MKA (navy/gold/azure).
   Mobile-first. CSS Grid + Flexbox. Без зовнішніх залежностей.
   ============================================================ */

/* ---------- CSS variables (єдина точка кастомізації дизайну) ---------- */
:root {
    /* Фони і поверхні */
    --bg:              #ffffff;
    --bg-alt:          #f5f7fa;
    --surface:         #ffffff;

    /* Текст */
    --text:            #101828;
    --text-secondary:  #475467;
    --muted:           #98a2b3;
    --text-on-dark:    rgba(255,255,255,.78);

    /* Бордери */
    --border:          #e6eaf0;
    --border-strong:   #d4dae3;

    /* Бренд */
    --brand-navy:      #0a2e4d;
    --primary:         #0d7fd3;
    --primary-hover:   #0a68af;
    --primary-light:   #e8f4fd;
    --accent-gold:     #d4a447;
    --accent-gold-text:#a97c1d;

    /* Комерція */
    --price:           #101828;
    --price-sale:      #e02424;
    --sale:            #e02424;
    --old-price:       #98a2b3;
    --badge-counter:   #ff8a00;
    --success:         #16a34a;
    --warning:         #d97706;
    --danger:          #dc2626;

    /* Футер */
    --footer-bg:       #0a2e4d;
    --footer-bg-deep:  #082540;

    /* ЛЕГАСІ-АЛІАСИ (woocommerce.css та старі компоненти) */
    --color-bg:         var(--bg);
    --color-bg-alt:     var(--bg-alt);
    --color-text:       var(--text);
    --color-muted:      var(--text-secondary);
    --color-border:     var(--border);
    --color-primary:    var(--primary);
    --color-primary-2:  var(--primary-hover);
    --color-primary-3:  var(--brand-navy);
    --color-accent:     var(--accent-gold);
    --color-accent-2:   var(--accent-gold-text);
    --color-cta:        var(--primary);
    --color-cta-2:      var(--primary-hover);
    --color-danger:     var(--danger);
    --color-warning:    var(--warning);
    --color-success:    var(--success);

    /* Типографіка */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: var(--font-sans);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Layout */
    --container-max: 1320px;
    --container-narrow: 800px;
    --sidebar-w: 280px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 999px;

    /* Transitions / shadows / focus */
    --transition: 180ms ease;
    --transition-slow: 400ms ease;
    --shadow-sm:    0 1px 2px rgba(16,24,40,.06);
    --shadow-md:    0 2px 8px rgba(16,24,40,.08);
    --shadow-card:  0 2px 8px rgba(16,24,40,.08);
    --shadow-hover: 0 6px 16px rgba(16,24,40,.12);
    --shadow-lg:    0 8px 24px rgba(16,24,40,.16);
    --shadow-pop:   0 8px 24px rgba(16,24,40,.16);
    --focus-ring:   0 0 0 3px rgba(13,127,211,.25);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }
button { cursor: pointer; font: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--space-md); font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(1.6rem, 4vw, 1.9rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.5rem); }
h3 { font-size: 1.125rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin: 0 0 var(--space-md); }

::selection { background: var(--primary); color: #fff; }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}
.container--narrow { max-width: var(--container-narrow); }
@media (min-width: 768px) {
    .container { padding: 0 var(--space-lg); }
}

/* ---------- Skip link / a11y ---------- */
.skip-link.screen-reader-text { position: absolute; left: -9999px; top: -9999px; }
.skip-link:focus {
    left: var(--space-md); top: var(--space-md);
    z-index: 1000; padding: var(--space-sm) var(--space-md);
    background: var(--brand-navy); color: #fff; border-radius: var(--radius-sm);
}
.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ============================================================
   HEADER — 3 рівні
   ============================================================ */

.site-header {
    position: sticky; top: 0; z-index: 90;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

/* ---------- 1. Топбар ---------- */
.topbar {
    display: none;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.topbar__inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 36px; gap: var(--space-lg);
}
.topbar__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: var(--space-lg); flex-wrap: wrap;
}
.topbar__list a { color: var(--text-secondary); font-weight: 500; }
.topbar__list a:hover { color: var(--primary); }
.topbar__side { display: flex; align-items: center; gap: var(--space-lg); white-space: nowrap; }
.topbar__hours { color: var(--muted); }
.topbar__account {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-secondary); font-weight: 600;
}
.topbar__account svg { width: 16px; height: 16px; }
.topbar__account:hover { color: var(--primary); }

/* ---------- 2. Основний хедер ---------- */
.mainbar { background: #fff; }
.mainbar__inner {
    display: flex; align-items: center;
    gap: var(--space-md);
    min-height: 56px;
    padding: var(--space-sm) 0;
}

/* Типографічне лого */
.logo { line-height: 1; }
.logo__link { display: inline-flex; flex-direction: column; text-decoration: none; }
.logo__mark {
    font-size: 26px; font-weight: 900; letter-spacing: .03em;
    color: var(--brand-navy);
}
.logo__mark::after { content: "."; color: var(--accent-gold); }
.logo__sub {
    margin-top: 3px;
    font-size: 10px; font-weight: 600; letter-spacing: .13em;
    text-transform: uppercase; color: var(--text-secondary);
    white-space: nowrap;
}
.custom-logo { max-height: 48px; width: auto; }

/* Кнопка «Каталог товарів» */
.catalog-toggle-wrap { position: relative; display: none; }
.catalog-toggle {
    display: inline-flex; align-items: center; gap: 12px;
    height: 48px; padding: 0 22px;
    background: var(--primary); color: #fff;
    border: 0; border-radius: var(--radius-md);
    font-size: 15px; font-weight: 600; white-space: nowrap;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.catalog-toggle svg { width: 20px; height: 20px; }
.catalog-toggle:hover { background: var(--primary-hover); box-shadow: var(--shadow-sm); }
.catalog-toggle:active { transform: translateY(1px); box-shadow: none; }
.catalog-toggle[aria-expanded="true"] { background: var(--primary-hover); }

.catalog-dropdown {
    position: absolute; left: 0; top: calc(100% + 8px);
    width: var(--sidebar-w);
    z-index: 100;
}
.catalog-dropdown[hidden] { display: none; }

/* Пошук */
.site-search { display: none; flex: 1 1 auto; min-width: 0; }
.search-form {
    display: flex; align-items: stretch;
    height: 48px;
    background: var(--bg-alt);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.search-form:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}
.search-form input[type="search"] {
    flex: 1; min-width: 0;
    padding: 0 var(--space-md);
    border: 0; outline: none; font: inherit; font-size: 15px;
    background: transparent; color: var(--text);
}
.search-form input[type="search"]::placeholder { color: var(--muted); }
.search-form__submit {
    width: 52px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff;
    border: 0; transition: background var(--transition);
}
.search-form__submit svg { width: 20px; height: 20px; }
.search-form__submit:hover { background: var(--primary-hover); }

/* Мобільна кнопка пошуку */
.search-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto;
    background: transparent; border: 0; border-radius: var(--radius-md);
    color: var(--text);
}
.search-toggle svg { width: 22px; height: 22px; }
.search-toggle:hover { background: var(--primary-light); color: var(--primary); }

/* Телефон */
.header-phone {
    display: none; flex-direction: column; align-items: flex-start;
    line-height: 1.25; white-space: nowrap;
}
.header-phone__number { font-size: 15px; font-weight: 700; color: var(--text); transition: color var(--transition); }
.header-phone:hover .header-phone__number { color: var(--primary); }
.header-phone__note { font-size: 12px; font-weight: 500; color: var(--text-secondary); }

/* Кошик */
.header-cart {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    color: var(--text);
    transition: background var(--transition), color var(--transition);
}
.header-cart:hover { background: var(--primary-light); color: var(--primary); }
.header-cart__iconwrap { position: relative; display: inline-flex; }
.header-cart__iconwrap svg { width: 26px; height: 26px; }
.header-cart__count {
    position: absolute; top: -6px; right: -9px;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--badge-counter); color: #fff;
    border: 2px solid #fff;
    border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 700; line-height: 1;
}
.header-cart__meta { display: none; flex-direction: column; line-height: 1.25; }
.header-cart__label { font-size: 12px; color: var(--text-secondary); }
.header-cart__total { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; }
.header-cart:hover .header-cart__total { color: var(--primary); }

/* Мобільний бургер */
.mobile-toggle {
    background: transparent; border: 0;
    border-radius: var(--radius-md);
    width: 44px; height: 44px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 0;
}
.mobile-toggle:hover { background: var(--primary-light); }
.mobile-toggle span {
    display: block; width: 20px; height: 2px;
    background: var(--text); border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 3. Квікбар ---------- */
.quickbar { display: none; border-top: 1px solid var(--border); }
.quickbar__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: var(--space-xs);
    overflow-x: auto; scrollbar-width: none;
}
.quickbar__list::-webkit-scrollbar { display: none; }
.quickbar__list a {
    display: block; padding: 10px 12px;
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    white-space: nowrap; border-radius: var(--radius-sm);
}
.quickbar__list a:hover { color: var(--primary); background: var(--primary-light); }
.quickbar__list a.is-strong { color: var(--text); font-weight: 700; }
.quickbar__list a.is-strong:hover { color: var(--primary); }

/* ---------- Desktop header layout ---------- */
@media (min-width: 1024px) {
    .topbar, .quickbar { display: block; }
    .catalog-toggle-wrap { display: block; }
    .site-search { display: block; }
    .search-toggle, .mobile-toggle { display: none; }
    .header-phone { display: flex; }
    .header-cart__meta { display: flex; }
    .mainbar__inner { min-height: 84px; gap: var(--space-lg); }
    .logo__mark { font-size: 30px; }
    .logo__sub { font-size: 11px; }
}

/* ============================================================
   КАТАЛОГ-МЕНЮ (сайдбар + дропдаун + drawer)
   ============================================================ */

.cat-menu {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 6px 0;
}
.cat-menu--dropdown { box-shadow: var(--shadow-pop); }
.cat-menu__list { list-style: none; margin: 0; padding: 0; }
.cat-menu__item { position: relative; }
.cat-menu__link {
    display: grid; grid-template-columns: 20px 1fr 16px;
    align-items: center; gap: 12px;
    min-height: 44px; padding: 6px 16px;
    color: var(--text); font-size: 14px; font-weight: 500;
    position: relative;
    transition: background var(--transition), color var(--transition);
}
.cat-menu__icon { width: 20px; height: 20px; color: var(--text-secondary); transition: color var(--transition); }
.cat-menu__label { line-height: 1.3; }
.cat-menu__chevron { width: 15px; height: 15px; color: var(--muted); justify-self: end; transition: color var(--transition); }
.cat-menu__item:hover > .cat-menu__link,
.cat-menu__item.is-open > .cat-menu__link {
    background: var(--primary-light); color: var(--primary);
}
.cat-menu__item:hover > .cat-menu__link::before,
.cat-menu__item.is-open > .cat-menu__link::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 24px; border-radius: 2px;
    background: var(--primary);
}
.cat-menu__item:hover .cat-menu__icon,
.cat-menu__item:hover .cat-menu__chevron { color: var(--primary); }

/* Flyout підкатегорій */
.cat-flyout {
    position: absolute; left: 100%; top: 0;
    min-width: 340px; max-width: 560px; min-height: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-pop);
    padding: 20px 24px;
    display: none; z-index: 110;
}
@media (min-width: 1024px) {
    .cat-menu--sidebar .cat-menu__item:hover > .cat-flyout,
    .cat-menu--dropdown .cat-menu__item:hover > .cat-flyout,
    .cat-menu__item:focus-within > .cat-flyout { display: block; }
}
.cat-flyout__head { margin-bottom: 10px; }
.cat-flyout__head a { font-size: 15px; font-weight: 700; color: var(--text); }
.cat-flyout__head a:hover { color: var(--primary); }
.cat-flyout__list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 2px 20px;
}
.cat-flyout__list a {
    display: flex; align-items: baseline; gap: 6px;
    padding: 5px 0;
    font-size: 14px; color: var(--text-secondary);
    line-height: 1.4;
}
.cat-flyout__list a:hover { color: var(--primary); }
.cat-flyout__count { font-size: 12px; color: var(--muted); }

/* Drawer-контекст: акордеон замість flyout */
.cat-menu--drawer { border: 0; box-shadow: none; border-radius: 0; padding: 0; }
.cat-menu--drawer .cat-flyout {
    position: static; display: none;
    min-width: 0; max-width: none; box-shadow: none; border: 0;
    padding: 0 0 8px 48px;
}
.cat-menu--drawer .cat-menu__item.is-open > .cat-flyout { display: block; }
.cat-menu--drawer .cat-flyout__list { grid-template-columns: 1fr; }
.cat-menu--drawer .cat-flyout__head { display: none; }
.cat-menu--drawer .cat-menu__item.has-children > .cat-menu__link .cat-menu__chevron {
    transition: transform var(--transition);
}
.cat-menu--drawer .cat-menu__item.is-open > .cat-menu__link .cat-menu__chevron {
    transform: rotate(90deg);
}

/* ============================================================
   МОБІЛЬНИЙ DRAWER
   ============================================================ */

.mobile-drawer {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(360px, 88vw);
    background: #fff; z-index: 200;
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 250ms ease;
    box-shadow: var(--shadow-lg);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer[hidden] { display: block; visibility: hidden; }
.mobile-drawer.is-open[hidden] { visibility: visible; }
.mobile-drawer__head {
    display: flex; align-items: center; gap: var(--space-md);
    padding: var(--space-md);
    background: var(--brand-navy);
}
.mobile-drawer__phone { color: #fff; font-weight: 700; font-size: 15px; }
.mobile-drawer__account { color: var(--accent-gold); font-weight: 600; font-size: 13px; }
.mobile-drawer__close {
    margin-left: auto;
    width: 36px; height: 36px;
    background: rgba(255,255,255,.1); color: #fff;
    border: 0; border-radius: var(--radius-md);
    font-size: 22px; line-height: 1;
}
.mobile-drawer__catalog { padding: var(--space-sm) 0; }
.mobile-drawer__links { border-top: 1px solid var(--border); padding: var(--space-md); }
.mobile-drawer__links .topbar__list { flex-direction: column; gap: 2px; }
.mobile-drawer__links .topbar__list a {
    display: block; padding: 8px 0;
    font-size: 14px; color: var(--text-secondary);
}
.drawer-overlay {
    position: fixed; inset: 0; z-index: 190;
    background: rgba(16,24,40,.5);
    opacity: 0; transition: opacity 250ms ease;
}
.drawer-overlay.is-open { opacity: 1; }
.drawer-overlay[hidden] { display: block; visibility: hidden; pointer-events: none; }
.drawer-overlay.is-open[hidden] { visibility: visible; pointer-events: auto; }
body.drawer-locked { overflow: hidden; }

/* Мобільний пошук поверх хедера */
@media (max-width: 1023px) {
    .site-search.is-open {
        display: block;
        position: absolute; left: 0; right: 0; top: 100%;
        padding: var(--space-sm) var(--space-md);
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        z-index: 95;
    }
    .mainbar { position: relative; }
}

/* ============================================================
   HERO-ЗОНА: сайдбар + слайдер
   ============================================================ */

.hero-zone { margin-top: var(--space-lg); }
.hero-zone__inner { display: block; }
.hero-zone__sidebar { display: none; }

@media (min-width: 1024px) {
    .hero-zone__inner {
        display: grid;
        grid-template-columns: var(--sidebar-w) 1fr;
        gap: var(--space-lg);
        align-items: stretch;
    }
    .hero-zone__sidebar { display: block; }
    /* На головній дропдаун каталогу не потрібен — сайдбар вже відкритий */
    .home .catalog-dropdown { display: none !important; }
}

/* Слайдер */
.hero-slider {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 220px;
    box-shadow: var(--shadow-sm);
}
.hero-slider__track { position: relative; height: 100%; min-height: 220px; }
.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    padding: var(--space-lg);
    opacity: 0; visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}
.hero-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.hero-slide--navy {
    background:
        radial-gradient(circle at 85% 15%, rgba(212,164,71,.18), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(13,127,211,.25), transparent 55%),
        linear-gradient(115deg, #0a2e4d 0%, #0f3f66 60%, #14507f 100%);
}
.hero-slide--azure {
    background:
        radial-gradient(circle at 80% 80%, rgba(255,255,255,.08), transparent 50%),
        linear-gradient(115deg, #0a68af 0%, #0d7fd3 70%, #2596e2 100%);
}
.hero-slide--gold {
    background:
        radial-gradient(circle at 85% 20%, rgba(212,164,71,.35), transparent 50%),
        linear-gradient(115deg, #082540 0%, #0a2e4d 55%, #275079 100%);
}
.hero-slide__content { max-width: 620px; position: relative; z-index: 1; }

/* Фото товару на слайді */
.hero-slide__media { display: none; }
@media (min-width: 768px) {
    .hero-slide.has-media { justify-content: space-between; gap: var(--space-lg); }
    .hero-slide__media {
        display: flex; align-items: center; justify-content: center;
        flex: 0 0 34%;
        order: 2;
        position: relative; z-index: 1;
        align-self: center;
    }
    .hero-slide__media::before {
        content: '';
        position: absolute; inset: -8%;
        background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 70%);
        pointer-events: none;
    }
    .hero-slide__media img {
        max-height: 300px; max-width: 100%;
        object-fit: contain;
        background: #fff;
        border-radius: var(--radius-xl);
        padding: 18px;
        box-shadow: 0 16px 40px rgba(4,16,28,.35);
    }
    .hero-slide.has-media .hero-slide__content { flex: 1 1 auto; order: 1; }
}
.hero-slide__badge {
    display: inline-block; margin-bottom: var(--space-md);
    padding: 5px 12px;
    background: var(--accent-gold); color: #1a1503;
    border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
}
.hero-slide__title {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 var(--space-md);
}
.hero-slide__subtitle {
    color: rgba(255,255,255,.85);
    font-size: clamp(.95rem, 1.5vw, 1.05rem);
    margin: 0 0 var(--space-lg);
    max-width: 520px;
}
a.button.hero-slide__cta {
    background: #fff !important;
    color: var(--brand-navy) !important;
    font-weight: 700;
}
a.button.hero-slide__cta:hover {
    background: var(--primary-light) !important;
    color: var(--primary-hover) !important;
}
.hero-slide--azure .hero-slide__badge { background: #fff; color: var(--primary-hover); }

.hero-slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.92); color: var(--brand-navy);
    border: 0; border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), color var(--transition);
}
.hero-slider__arrow svg { width: 18px; height: 18px; }
.hero-slider__arrow:hover { background: var(--primary); color: #fff; }
.hero-slider__arrow--prev { left: 16px; }
.hero-slider__arrow--next { right: 16px; }

.hero-slider__dots {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 5;
}
.hero-slider__dot {
    width: 8px; height: 8px; padding: 0;
    background: rgba(255,255,255,.55);
    border: 0; border-radius: var(--radius-pill);
    transition: width var(--transition), background var(--transition);
}
.hero-slider__dot.is-active { width: 24px; background: #fff; }

@media (min-width: 1024px) {
    .hero-slider, .hero-slider__track { min-height: 400px; }
    .hero-slide { padding: var(--space-2xl) var(--space-2xl); }
    .hero-slider__arrow { opacity: 0; }
    .hero-slider:hover .hero-slider__arrow { opacity: 1; }
}
@media (max-width: 1023px) {
    .hero-slider__arrow { display: none; }
}

/* ============================================================
   СЕКЦІЇ ГОЛОВНОЇ
   ============================================================ */

.section { padding: var(--space-xl) 0 0; }
.front-page > .section:last-child { padding-bottom: var(--space-xl); }

.section__head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.section__title {
    display: flex; align-items: center; gap: 12px;
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 800;
    text-align: left;
}
.section__title::before {
    content: '';
    width: 4px; height: 24px; flex: 0 0 auto;
    background: var(--primary);
    border-radius: 2px;
}
.section__title--standalone { margin: var(--space-xl) 0 var(--space-lg); }
.section__more {
    font-size: 14px; font-weight: 600; color: var(--primary);
    white-space: nowrap;
}
.section__more:hover { text-decoration: underline; }

/* ---------- Переваги опту ---------- */
.section--benefits { padding-top: var(--space-lg); }
.benefits {
    display: grid; gap: var(--space-md);
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); } }
.benefit {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}
.benefit__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    background: #fff; color: var(--primary);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-md);
}
.benefit__icon svg { width: 24px; height: 24px; }
.benefit__title { font-size: 15px; font-weight: 700; margin: 0 0 var(--space-xs); }
.benefit__text { font-size: 13px; line-height: 1.5; color: var(--text-secondary); margin: 0; }

/* ---------- Картки категорій ---------- */
.cat-grid {
    display: grid; gap: var(--space-md);
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px)  { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); } }
.cat-grid--hub { margin-bottom: var(--space-xl); }

.cat-card {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: var(--space-lg) var(--space-md);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--text);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.cat-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    color: var(--text);
}
.cat-card__image {
    width: 110px; height: 110px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}
.cat-card__image img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}
.cat-card:hover .cat-card__image img { transform: scale(1.06); }
.cat-card__image--icon { color: var(--primary); background: var(--primary-light); border-radius: 50%; padding: 26px; }
.cat-card__name { font-weight: 600; font-size: 14px; line-height: 1.35; transition: color var(--transition); }
.cat-card:hover .cat-card__name { color: var(--primary); }
.cat-card__count { font-size: 12px; color: var(--muted); }

/* ---------- Бренди ---------- */
.brand-strip {
    display: grid; gap: var(--space-md);
    grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 640px)  { .brand-strip { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .brand-strip { grid-template-columns: repeat(6, 1fr); } }

.brand-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 88px;
    padding: var(--space-md);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.brand-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.brand-card__logo {
    max-width: 120px; max-height: 48px;
    object-fit: contain;
    filter: grayscale(1); opacity: .7;
    transition: filter var(--transition), opacity var(--transition);
}
.brand-card:hover .brand-card__logo { filter: none; opacity: 1; }
.brand-card__name {
    color: var(--text); font-weight: 800; font-size: 15px;
    letter-spacing: .02em; text-align: center; text-transform: uppercase;
    transition: color var(--transition);
}
.brand-card:hover .brand-card__name { color: var(--primary); }
.brand-card__count { font-size: 12px; color: var(--muted); }

.brand-grid--page {
    display: grid; gap: var(--space-md);
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: var(--space-xl);
}
@media (min-width: 640px)  { .brand-grid--page { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .brand-grid--page { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Каруселі товарів ---------- */
.carousel { position: relative; }
.products--carousel {
    display: flex !important; gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px;
    margin: -4px;
    list-style: none;
}
.products--carousel::-webkit-scrollbar { display: none; }
.products--carousel > li,
.products--carousel > .product {
    flex: 0 0 calc(50% - var(--space-md) / 2);
    scroll-snap-align: start;
}
@media (min-width: 640px)  { .products--carousel > li, .products--carousel > .product { flex-basis: calc(33.333% - var(--space-md) * 2 / 3); } }
@media (min-width: 1024px) { .products--carousel > li, .products--carousel > .product { flex-basis: calc(25% - var(--space-md) * 3 / 4); } }
@media (min-width: 1280px) { .products--carousel > li, .products--carousel > .product { flex-basis: calc(20% - var(--space-md) * 4 / 5); } }

.carousel__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; z-index: 5;
    display: none; align-items: center; justify-content: center;
    background: #fff; color: var(--brand-navy);
    border: 1px solid var(--border); border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: background var(--transition), color var(--transition);
}
.carousel__arrow svg { width: 18px; height: 18px; }
.carousel__arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.carousel__arrow--prev { left: -12px; }
.carousel__arrow--next { right: -12px; }
.carousel__arrow[disabled] { opacity: .35; pointer-events: none; }
@media (min-width: 1024px) { .carousel__arrow { display: flex; } }

/* ---------- Кому постачаємо ---------- */
.audience {
    display: grid; gap: var(--space-md);
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .audience { grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); } }
.audience-card {
    display: flex; flex-direction: column;
    padding: var(--space-lg);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
a.audience-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    color: var(--text);
}
.audience-card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    background: var(--primary-light); color: var(--primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}
.audience-card__icon svg { width: 26px; height: 26px; }
.audience-card__title { font-size: 17px; font-weight: 700; margin: 0 0 var(--space-sm); }
.audience-card__text { font-size: 14px; color: var(--text-secondary); margin: 0 0 var(--space-md); flex: 1; }
.audience-card__more { font-size: 14px; font-weight: 600; color: var(--primary); }
a.audience-card:hover .audience-card__more { text-decoration: underline; }

/* ---------- Про MKA (navy-смуга) ---------- */
.about-band {
    margin-top: var(--space-2xl);
    background: var(--brand-navy);
    padding: var(--space-2xl) 0;
}
.about-band__inner {
    display: grid; gap: var(--space-xl);
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 1024px) { .about-band__inner { grid-template-columns: 1.2fr 1fr; } }
.about-band__title { color: #fff; font-size: clamp(1.3rem, 2.5vw, 1.5rem); margin: 0 0 var(--space-md); }
.about-band__text { color: var(--text-on-dark); font-size: 15px; line-height: 1.7; margin: 0; max-width: 560px; }
.about-band__stats {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg) var(--space-md);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800; line-height: 1.1;
    color: var(--accent-gold);
    letter-spacing: -0.02em;
}
.stat__label { font-size: 14px; color: rgba(255,255,255,.65); }

/* ---------- SEO-текст (згорнутий) ---------- */
.section--seo { padding-bottom: var(--space-xl); }
.seo-text { margin-bottom: var(--space-xl); }
.seo-text__body {
    line-height: 1.7; color: var(--text-secondary);
    max-height: 180px; overflow: hidden; position: relative;
    transition: max-height var(--transition-slow);
}
.seo-text.is-expanded .seo-text__body { max-height: none; }
.seo-text:not(.is-expanded) .seo-text__body::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
    background: linear-gradient(transparent, var(--bg));
}
.seo-text__body h2, .seo-text__body h3 { color: var(--text); }
.seo-text__toggle {
    margin-top: var(--space-sm);
    background: transparent; border: 0; padding: 0;
    color: var(--primary); font-weight: 600; font-size: 14px;
}
.seo-text__toggle:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.faq__item { border-top: 1px solid var(--border); }
.faq__item:first-child { border-top: 0; }
.faq__q {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
    padding: 18px 20px;
    font-size: 15px; font-weight: 600; color: var(--text);
    cursor: pointer; list-style: none;
    transition: color var(--transition), background var(--transition);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--primary); }
.faq__item[open] { background: #f9fafc; }
.faq__plus {
    position: relative; flex: 0 0 20px; width: 20px; height: 20px;
    transition: transform var(--transition);
}
.faq__plus::before, .faq__plus::after {
    content: ''; position: absolute; background: var(--primary); border-radius: 1px;
}
.faq__plus::before { left: 9px; top: 3px; width: 2px; height: 14px; }
.faq__plus::after  { left: 3px; top: 9px; width: 14px; height: 2px; }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__a { padding: 0 20px 18px; font-size: 14px; line-height: 1.65; color: var(--text-secondary); max-width: 760px; }
.faq__a p { margin: 0; }

/* ============================================================
   FOOTER — темний navy
   ============================================================ */

.site-footer {
    background: var(--footer-bg);
    color: var(--text-on-dark);
    padding: var(--space-2xl) 0 0;
    margin-top: var(--space-2xl);
}
.home .site-footer { margin-top: 0; }
.site-footer a { color: var(--text-on-dark); }
.site-footer a:hover { color: #fff; }

.site-footer__cols {
    display: grid; gap: var(--space-xl) var(--space-lg);
    grid-template-columns: 1fr;
    padding-bottom: var(--space-xl);
}
@media (min-width: 640px)  { .site-footer__cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__cols--default { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .site-footer__cols { grid-template-columns: repeat(4, 1fr); } }

.logo--footer { display: flex; flex-direction: column; margin-bottom: var(--space-md); }
.logo--footer .logo__mark { color: #fff; font-size: 28px; font-weight: 900; letter-spacing: .03em; }
.logo--footer .logo__mark::after { content: none; }
.logo__mark-accent { color: #ff7a00; margin-left: 6px; }
.logo--footer .logo__sub { color: rgba(255,255,255,.5); }
.site-footer__about { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.65); max-width: 340px; }
.site-footer__contact {
    display: block; font-size: 15px; font-weight: 700; color: #fff !important;
    margin-bottom: 4px;
}
.site-footer__contact:hover { color: var(--accent-gold) !important; }
.site-footer__hours { display: block; font-size: 13px; color: rgba(255,255,255,.5); margin-top: 4px; }
.site-footer__messengers { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.site-footer__messengers a {
    padding: 3px 10px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius-pill);
    font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,.7);
    transition: border-color var(--transition), color var(--transition);
}
.site-footer__messengers a:hover { border-color: var(--accent-gold); color: #fff; }

.site-footer__heading,
.site-footer .widget__title {
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: rgba(255,255,255,.5);
    margin: 0 0 var(--space-md);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 2px; }
.site-footer ul a { font-size: 14px; line-height: 2; }

.site-footer__nav .site-nav__list {
    display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--space-md);
    list-style: none; margin: 0 0 var(--space-lg); padding: 0;
}

.site-footer__bottom {
    background: var(--footer-bg-deep);
    padding: var(--space-md) 0;
}
.site-footer__bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-md); flex-wrap: wrap;
}
.site-footer__copyright { margin: 0; font-size: 13px; color: rgba(255,255,255,.45); }
.site-footer__payments { display: flex; gap: var(--space-sm); }
.pay-badge {
    padding: 3px 10px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius-sm);
    font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,.55);
    white-space: nowrap;
}

/* ============================================================
   ЗАГАЛЬНІ КОМПОНЕНТИ (кнопки, breadcrumbs, блог, пагінація...)
   ============================================================ */

.button,
.wp-block-button__link,
button.button,
input[type="submit"] {
    display: inline-flex; align-items: center; gap: var(--space-sm);
    padding: 12px 24px;
    background: var(--primary);
    color: #fff !important;
    border: 0; border-radius: var(--radius-md);
    font-weight: 600; font-size: 15px; line-height: 1.4;
    text-decoration: none; cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}
.button:hover,
.wp-block-button__link:hover,
button.button:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-sm);
}
.button:active { transform: translateY(1px); box-shadow: none; }
.button--accent, .button--cta { background: var(--primary) !important; }
.button--accent:hover, .button--cta:hover { background: var(--primary-hover) !important; }
.button--gold {
    background: var(--accent-gold) !important;
    color: #1a1503 !important;
}
.button--gold:hover { background: #c2933a !important; }
.button--ghost {
    background: transparent !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
}
.button--lg { padding: 14px 32px; font-size: 16px; }
button:disabled, .button:disabled { background: var(--border) !important; color: var(--muted) !important; cursor: not-allowed; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin: var(--space-md) 0; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }

/* ---------- Page header / titles ---------- */
.page-header { margin: var(--space-lg) 0; }
.page-title { margin: 0 0 var(--space-sm); }
.archive-description { color: var(--text-secondary); max-width: 760px; }

/* ============================================================
   НОВИНИ: тулбар, фільтри, картки
   ============================================================ */

.news-page__header { margin-bottom: var(--space-lg); }

/* Тулбар: пошук + чіпи */
.news-toolbar { margin-bottom: var(--space-xl); }
.news-search {
    position: relative;
    display: flex; align-items: stretch;
    max-width: 640px;
    height: 52px;
    background: var(--bg-alt);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-md);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.news-search:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}
.news-search__icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; color: var(--muted);
    pointer-events: none;
}
.news-search input[type="search"] {
    flex: 1; min-width: 0;
    padding: 0 var(--space-md) 0 48px;
    border: 0; outline: none; font: inherit; font-size: 15px;
    background: transparent; color: var(--text);
}
.news-search input[type="search"]::placeholder { color: var(--muted); }
.news-search__submit {
    padding: 0 24px;
    background: var(--primary); color: #fff;
    border: 0; font-weight: 600; font-size: 14px;
    transition: background var(--transition);
}
.news-search__submit:hover { background: var(--primary-hover); }

.news-filters {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.news-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    font-size: 14px; font-weight: 500;
    color: var(--text);
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.news-chip:hover { border-color: var(--primary); color: var(--primary); }
.news-chip.is-active {
    background: var(--primary); border-color: var(--primary);
    color: #fff; font-weight: 600;
}
.news-chip__count {
    font-size: 12px; color: var(--muted);
    background: var(--bg-alt);
    padding: 1px 7px; border-radius: var(--radius-pill);
}
.news-chip.is-active .news-chip__count { background: rgba(255,255,255,.2); color: #fff; }

/* Грід карток */
.news-grid {
    display: grid; gap: var(--space-lg);
    grid-template-columns: 1fr;
    margin-bottom: var(--space-xl);
}
@media (min-width: 640px)  { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.news-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.news-card__image {
    position: relative; display: block;
    aspect-ratio: 40 / 21;               /* формат обкладинок 1200×630 — без обрізань */
    overflow: hidden;
    background: var(--brand-navy);
}
.news-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.news-card:hover .news-card__image img { transform: scale(1.04); }
.news-card__topic {
    position: absolute; left: 12px; top: 12px;
    padding: 4px 12px;
    background: rgba(255,255,255,.94);
    color: var(--brand-navy);
    border-radius: var(--radius-pill);
    font-size: 12px; font-weight: 700;
    backdrop-filter: blur(2px);
}
.news-card__body {
    display: flex; flex-direction: column; flex: 1;
    padding: var(--space-md) var(--space-md) var(--space-lg);
}
.news-card__meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; color: var(--muted);
    margin-bottom: 8px;
}
.news-card__soon {
    padding: 1px 8px;
    background: var(--primary-light); color: var(--primary);
    border-radius: var(--radius-pill);
    font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: .05em;
}
.news-card__title {
    font-size: 17px; font-weight: 700; line-height: 1.35;
    margin: 0 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card__title a { color: var(--text); }
.news-card__title a:hover { color: var(--primary); }
.news-card__excerpt {
    font-size: 14px; line-height: 1.55; color: var(--text-secondary);
    margin: 0 0 var(--space-md);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    flex: 1;
}
.news-card__more {
    font-size: 14px; font-weight: 600; color: var(--primary);
    margin-top: auto;
}
.news-card__more:hover { text-decoration: underline; }

/* Головна (featured) картка — на всю ширину, горизонтальна на десктопі */
.news-card--featured { grid-column: 1 / -1; }
@media (min-width: 768px) {
    .news-card--featured { flex-direction: row; }
    .news-card--featured .news-card__image {
        flex: 0 0 55%;
        aspect-ratio: 40 / 21;
        align-self: stretch;
    }
    .news-card--featured .news-card__body {
        justify-content: center;
        padding: var(--space-xl);
    }
    .news-card--featured .news-card__title {
        font-size: clamp(1.25rem, 2.5vw, 1.6rem);
        -webkit-line-clamp: 3;
    }
    .news-card--featured .news-card__excerpt { -webkit-line-clamp: 3; flex: 0 0 auto; }
}

.news-empty { color: var(--muted); padding: var(--space-xl) 0; }

/* ---------- Blog cards ---------- */
.post-list {
    display: grid; gap: var(--space-lg);
    grid-template-columns: 1fr;
    margin: var(--space-lg) 0;
}
@media (min-width: 768px)  { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.post-card__image img { width: 100%; aspect-ratio: 40/21; object-fit: cover; }
.post-card__title { padding: var(--space-md) var(--space-md) 0; font-size: 16px; margin: 0 0 var(--space-sm); }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--primary); }
.post-card__excerpt { padding: 0 var(--space-md) var(--space-md); color: var(--text-secondary); font-size: 14px; }

/* ---------- Pagination ---------- */
.navigation.pagination { margin: var(--space-xl) 0; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.pagination .page-numbers {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-weight: 500; font-size: 14px;
    transition: all var(--transition);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ---------- Page content ---------- */
.page-content, .post-single { margin-bottom: var(--space-2xl); }
.entry-content { line-height: 1.7; }
.entry-content > * + * { margin-top: var(--space-md); }
.entry-content img { border-radius: var(--radius-md); }

/* ---------- 404 ---------- */
.error-404 .page-title { font-size: clamp(4rem, 12vw, 8rem); color: var(--brand-navy); margin: 0; font-weight: 800; }
.error-404__lead { font-size: 1.25rem; color: var(--text-secondary); }

/* ---------- Shop sidebar (архіви) ---------- */
.shop-sidebar {
    background: #fff;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: var(--space-lg);
}
.shop-sidebar .widget + .widget { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--border); }
@media (min-width: 1024px) {
    .shop-sidebar { position: sticky; top: 100px; }
}
.shop-sidebar .widget_layered_nav,
.shop-sidebar .widget_price_filter,
.shop-sidebar .widget_product_categories { background: transparent; padding: 0; border: 0; }
.shop-sidebar .widget__title {
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
    color: var(--text); font-size: 15px;
}

/* ---------- Старі nav-стилі (fallback-меню, футер-меню) ---------- */
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.site-nav__list a { display: block; padding: var(--space-xs) var(--space-sm); }

/* ---------- Mega-menu (legacy, використовується якщо створять WP-меню) ---------- */
.site-nav__list .menu-item.mega { position: relative; }
.mega-panel {
    position: absolute; left: 0; top: 100%;
    min-width: 600px; max-width: 1000px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg);
    display: none; z-index: 100;
}
.site-nav__list .menu-item.mega:hover > .mega-panel,
.site-nav__list .menu-item.mega:focus-within > .mega-panel { display: block; }
.mega-panel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); grid-template-columns: repeat(2, 1fr); }
.mega-panel__categories { margin-top: var(--space-md); display: grid; gap: var(--space-md); grid-template-columns: repeat(4, 1fr); }
.mega-cat {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-xs);
    text-align: center; padding: var(--space-sm);
    border-radius: var(--radius-sm); color: var(--text);
}
.mega-cat:hover { background: var(--primary-light); color: var(--primary); }
.mega-cat__image { width: 48px; height: 48px; object-fit: contain; }
.mega-cat__name { font-size: 13px; line-height: 1.2; }

/* ---------- Adult badge ---------- */
.single-product .product .badge--adult {
    display: inline-block; vertical-align: middle; margin-left: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--warning); color: #fff;
    border-radius: var(--radius-sm); font-size: 12px; font-weight: 700;
}

/* ---------- Category SEO text ---------- */
.category-seo {
    margin: var(--space-2xl) auto 0;
    padding: var(--space-lg);
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
}
.category-seo__inner { line-height: 1.7; color: var(--text-secondary); }
.category-seo__inner > * + * { margin-top: var(--space-md); }
.category-seo__inner h2, .category-seo__inner h3 { color: var(--text); }

/* ============================================================
   КОМЕНТАРІ: список, реакції, форма з тулбаром
   ============================================================ */

.comments-area {
    max-width: 760px;
    margin: var(--space-2xl) 0;
}
.comments-title { font-size: 1.25rem; margin-bottom: var(--space-lg); }

.comment-list { list-style: none; margin: 0 0 var(--space-xl); padding: 0; }
.comment-list .comment { margin-bottom: var(--space-md); }
.comment-list .children { list-style: none; margin: var(--space-md) 0 0 var(--space-xl); padding: 0; }

.comment-body {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
}
.comment-meta { margin-bottom: var(--space-sm); }
.comment-author { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-style: normal; color: var(--text); }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; color: var(--muted); margin-top: 2px; }
.comment-metadata a { color: var(--muted); }
.comment-content { font-size: 14.5px; line-height: 1.65; color: var(--text); }
.comment-content blockquote {
    margin: var(--space-sm) 0; padding: var(--space-sm) var(--space-md);
    border-left: 3px solid var(--primary);
    background: var(--bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
}
.comment-reply-link {
    display: inline-block; margin-top: var(--space-sm);
    font-size: 13px; font-weight: 600; color: var(--primary);
}
.comment-awaiting-moderation { font-size: 12px; color: var(--warning); font-style: italic; }

/* Емоджі-реакції */
.comment-reactions {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: var(--space-md);
}
.reaction {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    background: var(--bg-alt);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 14px; line-height: 1;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.reaction:hover { background: var(--primary-light); border-color: var(--primary); transform: translateY(-1px); }
.reaction.is-voted {
    background: var(--primary-light);
    border-color: var(--primary);
    cursor: default;
}
.reaction.is-pop { animation: mka-pop .35s ease; }
@keyframes mka-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.35) rotate(-6deg); }
    100% { transform: scale(1); }
}
.reaction__emoji { font-size: 16px; }
.reaction__count { font-size: 12px; font-weight: 700; color: var(--primary); min-width: 12px; }

/* Форма коментаря */
.comment-respond {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}
.comment-reply-title { font-size: 1.125rem; margin: 0 0 4px; }
.comment-reply-title small { display: block; font-size: 13px; margin-top: 4px; }
.comment-reply-hint { font-size: 13px; color: var(--text-secondary); margin: 0 0 var(--space-md); }
.logged-in-as { font-size: 13px; color: var(--muted); margin: 0 0 var(--space-sm); }
.logged-in-as a { color: var(--primary); }

.comment-toolbar {
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
    padding: 6px;
    background: var(--bg-alt);
    border: 1px solid var(--border-strong);
    border-bottom: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.ct-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 32px; padding: 0 8px;
    background: transparent; border: 0; border-radius: var(--radius-sm);
    font-size: 14px; color: var(--text);
    transition: background var(--transition);
}
.ct-btn:hover { background: #fff; box-shadow: var(--shadow-sm); }
.ct-btn--emoji { font-size: 17px; }
.ct-sep { width: 1px; height: 20px; background: var(--border-strong); margin: 0 6px; }

.comment-form-comment { margin: 0 0 var(--space-md); }
.comment-form-comment textarea {
    width: 100%;
    min-height: 130px;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font: inherit; font-size: 15px; color: var(--text);
    resize: vertical;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}
.comment-form-author, .comment-form-email, .comment-form-url { margin: 0 0 var(--space-md); }
.comment-form-author input, .comment-form-email input, .comment-form-url input {
    width: 100%; max-width: 380px;
    min-height: 42px; padding: 8px 14px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    font: inherit; font-size: 14px;
}
.comment-form-author label, .comment-form-email label, .comment-form-url label {
    display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px;
}
.comment-form-cookies-consent { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--text-secondary); margin: 0 0 var(--space-md); }
.form-submit { margin: 0; }
.comment-submit { font-size: 15px !important; padding: 12px 28px !important; }

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, .mobile-toggle, .site-search, .header-cart,
    .pagination, .hero-zone, .mobile-drawer, .drawer-overlay { display: none !important; }
    a { color: #000 !important; text-decoration: underline; }
}
