/* =============================================================================
   B4.20 SHOP — основні стилі публічної частини
   Світла тема + оранжевий акцент, темні hero-банери, serif-дисплей.
   Повністю адаптивно (mobile-first). Токени — у :root, легко змінюються.
============================================================================= */

/* ---- Токени -------------------------------------------------------------- */
:root {
    --container: 1290px;
    --gutter: 24px;

    --bg: #ffffff;
    --bg-soft: #f4f4f6;
    --bg-dark: #101014;
    --ink: #111114;
    --ink-2: #34343b;
    --muted: #8b8b93;
    --line: #e8e8ec;
    --line-dark: rgba(255, 255, 255, .14);

    --accent: #e8631a;
    --accent-2: #ff7a30;
    --accent-ink: #ffffff;

    --radius-lg: 28px;
    --radius: 16px;
    --radius-sm: 10px;
    --pill: 999px;

    --shadow: 0 14px 40px rgba(17, 17, 20, .10);
    --shadow-sm: 0 4px 16px rgba(17, 17, 20, .06);

    --serif: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;  /* дисплей ≈ Lobelia */
    --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;  /* текст ≈ Gilroy */
    --script: 'Pinyon Script', cursive;  /* каліграфічний акцент ≈ Bickham Script */

    --header-h: 92px;   /* вища шапка — велике лого, повітря як у макеті */
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; }
input, select, textarea, button { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Layout -------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.section { padding-block: clamp(40px, 6vw, 72px); }
.section--soft { background: var(--bg-soft); }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- Типографіка --------------------------------------------------------- */
.display {
    font-family: var(--serif);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -.01em;
    line-height: .96;
}
.display em { font-style: italic; font-weight: 500; }
.section-title {
    font-family: var(--sans);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: clamp(22px, 3vw, 34px);
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

/* ---- Кнопки -------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    font-weight: 700; font-size: 15px;
    transition: transform .18s var(--ease), background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { display: flex; width: 100%; justify-content: center; }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn__arrow {
    display: inline-grid; place-items: center;
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--ink); color: #fff; margin-left: 6px;
}
.btn--dark .btn__arrow { background: rgba(255, 255, 255, .16); }
.btn--accent .btn__arrow { background: rgba(255, 255, 255, .22); }

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 18px; border-radius: var(--pill);
    border: 1.5px solid var(--line); background: #fff;
    font-weight: 600; font-size: 14px; color: var(--ink);
    transition: border-color .2s, background .2s, color .2s;
}
.pill:hover { border-color: var(--ink); }
.pill--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill--dark:hover { background: #000; }

/* ---- Верхній тикер ------------------------------------------------------- */
.ticker {
    background: var(--bg-dark); color: #fff;
    overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.ticker__track {
    display: inline-flex; align-items: center; gap: 34px;
    white-space: nowrap; padding-block: 11px;
    animation: ticker-move 38s linear infinite;
    will-change: transform;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
    display: inline-flex; align-items: center; gap: 34px;
    font-size: 12px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; color: #efefef;
}
.ticker__item svg { color: var(--accent); flex: none; }
@keyframes ticker-move { to { transform: translateX(-50%); } }

/* ---- Хедер --------------------------------------------------------------- */
.header {
    position: sticky; top: 0; z-index: 60;
    background: #fff;   /* без border-bottom — лінія різала перехід у банер */
}
.header__row {
    display: flex; align-items: center; gap: 16px;
    min-height: var(--header-h);
}
.header__left { display: flex; align-items: center; gap: 14px; }
.header__nav { display: flex; align-items: center; gap: 28px; margin-inline: auto; }
.header__nav a {
    font-size: 15px; font-weight: 600; color: var(--ink-2);
    text-transform: none; transition: color .2s;
}
.header__nav a:hover, .header__nav a.active { color: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 10px; }

.brand { display: inline-flex; align-items: center; }
.brand img, .brand svg { height: 46px; width: auto; }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: #fff; border: 1.5px solid var(--line); color: var(--ink);
    position: relative; transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn .badge {
    position: absolute; top: -6px; right: -6px;
    min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 999px; background: var(--accent); color: #fff;
    font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.burger { display: none; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; }

/* текстовий логотип (поки не завантажено реальний файл) */
.brand__text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand__text b { font-family: var(--serif); font-weight: 900; font-size: 24px; letter-spacing: .02em; }
.brand__text i { font-style: normal; font-weight: 800; font-size: 11px; letter-spacing: .42em; margin-left: 2px; }

/* Випадаючий список категорій */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute; top: calc(100% + 12px); left: 0; z-index: 50;
    min-width: 220px; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 8px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ease);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.dropdown a:hover { background: var(--bg-soft); color: var(--accent); }

/* Рядок пошуку */
.search-bar { border-top: 1px solid var(--line); background: #fff; }
.search-bar form { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.search-bar svg { color: var(--muted); flex: none; }
.search-bar input {
    flex: 1; border: none; outline: none; font-size: 17px; padding: 8px 0; background: transparent; color: var(--ink);
}
.main { display: block; min-height: 40vh; }

/* ---- Мобільне меню ------------------------------------------------------- */
.mmenu {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(10, 10, 12, .5); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .25s;
}
.mmenu.open { opacity: 1; visibility: visible; }
.mmenu__panel {
    position: absolute; inset: 0 auto 0 0; width: min(84vw, 340px);
    background: #fff; padding: 22px; overflow-y: auto;
    transform: translateX(-100%); transition: transform .3s var(--ease);
    display: flex; flex-direction: column; gap: 8px;
}
.mmenu.open .mmenu__panel { transform: none; }
.mmenu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mmenu a {
    padding: 14px 12px; border-radius: 12px; font-weight: 600; font-size: 17px;
    display: flex; align-items: center; gap: 12px;
}
.mmenu a:hover { background: var(--bg-soft); color: var(--accent); }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding-top: 2px; }
.hero__stage {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    min-height: clamp(430px, 60vw, 560px);
    color: #fff;
    display: grid;
    /* Преміальний темний фон за замовчуванням (поки адмін не завантажив фото банера) */
    background:
        radial-gradient(90% 130% at 82% 18%, rgba(232, 99, 26, .12) 0%, rgba(232, 99, 26, 0) 42%),
        radial-gradient(120% 120% at 78% 30%, #2b2b31 0%, #17171b 45%, #0c0c0f 100%);
}
.hero__slide {
    grid-area: 1 / 1; position: relative;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(26px, 5vw, 60px);
    opacity: 0; visibility: hidden;
    transition: opacity .7s var(--ease);
}
.hero__slide.active { opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg picture { display: block; width: 100%; height: 100%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(8, 8, 10, .82) 0%, rgba(8, 8, 10, .55) 42%, rgba(8, 8, 10, .15) 100%);
}
.hero__inner { position: relative; z-index: 1; max-width: 640px; }
.hero__title {
    font-family: var(--serif); font-weight: 800; text-transform: uppercase;
    font-size: clamp(38px, 7vw, 92px); line-height: .92; letter-spacing: -.01em;
    margin-bottom: 20px; color: #fff;
}
.hero__title em { font-style: italic; font-weight: 500; }
.hero__text {
    text-transform: uppercase; letter-spacing: .04em; font-size: clamp(12px, 1.4vw, 15px);
    font-weight: 500; color: rgba(255, 255, 255, .85); max-width: 440px; margin-bottom: 28px;
    line-height: 1.7;
}
.hero__cta .btn { background: #fff; color: var(--ink); }
.hero__cta .btn:hover { background: var(--accent); color: #fff; }
.hero__cta .btn__arrow { background: var(--ink); color: #fff; }

.hero__card {
    position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); z-index: 2;
    background: rgba(255, 255, 255, .96); color: var(--ink);
    border-radius: 20px; padding: 18px 20px; width: min(300px, 70vw);
    box-shadow: var(--shadow);
}
.hero__card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hero__count { font-family: var(--sans); font-weight: 800; font-size: 46px; line-height: .9; letter-spacing: -.03em; }
.hero__count b { color: var(--accent); }
.hero__card-top span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.hero__socials { display: flex; gap: 8px; }
.hero__socials a {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px; border-radius: 10px; border: 1.5px solid var(--line);
    font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink);
}
.hero__socials a:hover { border-color: var(--ink); }

.hero__dots {
    position: absolute; right: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%);
    z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero__dots .num { font-weight: 700; font-size: 13px; color: rgba(255, 255, 255, .8); margin-bottom: 4px; }
.hero__dot {
    width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .4);
    border: none; padding: 0; transition: background .2s, transform .2s;
}
.hero__dot.active { background: #fff; transform: scale(1.25); }

.hero__arrows { position: absolute; left: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 34px); z-index: 2; display: none; gap: 8px; }

/* ---- Стрічка переваг ----------------------------------------------------- */
.benefits { background: var(--bg-soft); overflow: hidden; border-block: 1px solid var(--line); }
.benefits__track {
    display: inline-flex; align-items: center; gap: 40px; white-space: nowrap;
    padding-block: 15px; animation: ticker-move 34s linear infinite;
}
.benefits:hover .benefits__track { animation-play-state: paused; }
.benefits__item {
    display: inline-flex; align-items: center; gap: 40px;
    font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.benefits__item svg { color: var(--accent); flex: none; }

/* ---- Секції з товарами --------------------------------------------------- */
.section-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 26px; flex-wrap: wrap;
}
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: var(--pill);
    border: 1.5px solid var(--line); background: #fff;
    font-size: 14px; font-weight: 600; color: var(--ink); transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.section-head__nav { display: flex; align-items: center; gap: 10px; }
.link-more { font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

.arrow-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
    transition: all .2s;
}
.arrow-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ---- Сітка та картка товару --------------------------------------------- */
.products {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.pcard {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.pcard__badges { position: absolute; top: 18px; left: 18px; z-index: 2; display: flex; gap: 6px; }
.badge-top {
    background: var(--ink); color: #fff; font-size: 11px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: 8px;
}
.badge-sale {
    background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
    padding: 6px 10px; border-radius: 8px;
}
.pcard__fav {
    position: absolute; top: 16px; right: 16px; z-index: 2;
    width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .9);
    border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2);
    transition: color .2s, border-color .2s;
}
.pcard__fav:hover { color: var(--accent); border-color: var(--accent); }
.pcard__fav.is-active { color: var(--accent); border-color: var(--accent); }
.pcard__fav.is-active svg { fill: var(--accent); }
.pcard__media {
    aspect-ratio: 1 / 1; border-radius: 12px; background: var(--bg-soft);
    display: grid; place-items: center; overflow: hidden; margin-bottom: 12px;
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__weight { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.pcard__name {
    font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35;
    margin-bottom: 10px; min-height: 2.7em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pcard__meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.pcard__price { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.pcard__price .old { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.pcard__rate { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.pcard__rate span { display: inline-flex; align-items: center; gap: 4px; }
.pcard__rate svg { color: var(--accent); }
.pcard__buy { margin-top: auto; }
.add-btn {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 12px 11px 18px; border-radius: 12px;
    border: 1.5px solid var(--line); background: #fff; color: var(--ink);
    font-weight: 700; font-size: 14px; transition: all .2s;
}
.add-btn:hover { border-color: var(--ink); }
.add-btn__ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: #fff; }
.add-btn.added { border-color: var(--accent); color: var(--accent); }
.add-btn.added .add-btn__ico { background: var(--accent); }

/* ---- Каталог ------------------------------------------------------------- */
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filters__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.filters__box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; color: var(--muted); }
.filters__list a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.filters__list a:hover, .filters__list a.active { background: var(--bg-soft); color: var(--accent); }
.catalog__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.catalog__count { color: var(--muted); font-size: 14px; }
.select {
    padding: 11px 16px; border-radius: 10px; border: 1.5px solid var(--line);
    background: #fff; font-weight: 600; color: var(--ink);
}
.filters-toggle { display: none; }

/* ---- Пагінація ----------------------------------------------------------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px;
    display: grid; place-items: center; border: 1.5px solid var(--line); font-weight: 700; background: #fff;
}
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- Сторінка товару ----------------------------------------------------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product__gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.product__main-img { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.product__main-img img { width: 100%; height: 100%; object-fit: cover; }
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product__thumbs img { width: 78px; height: 78px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.product__title { font-family: var(--serif); font-weight: 800; font-size: clamp(26px, 4vw, 40px); line-height: 1.05; margin-bottom: 14px; }
.product__price { font-size: 30px; font-weight: 800; margin-block: 18px; }
.product__price .old { font-size: 18px; color: var(--muted); text-decoration: line-through; margin-left: 10px; font-weight: 600; }
.product__row { display: flex; align-items: center; gap: 12px; margin-block: 18px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.qty button { width: 46px; height: 50px; background: #fff; border: none; font-size: 20px; color: var(--ink); }
.qty button:hover { background: var(--bg-soft); }
.qty input { width: 54px; height: 50px; text-align: center; border: none; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product__desc { margin-top: 26px; line-height: 1.75; color: var(--ink-2); }
.product__desc h1, .product__desc h2, .product__desc h3 { margin: 18px 0 10px; }
.product__meta-list { margin-top: 20px; border-top: 1px solid var(--line); }
.product__meta-list div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.product__meta-list span:first-child { color: var(--muted); }

/* ---- Кошик --------------------------------------------------------------- */
.cart { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
    display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
}
.cart-item__img { width: 90px; height: 90px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); }
.cart-item__name { font-weight: 600; }
.cart-item__price { color: var(--muted); font-size: 14px; margin-top: 4px; }
.cart-item__right { display: flex; align-items: center; gap: 16px; }
.cart-item__sum { font-weight: 800; font-size: 17px; white-space: nowrap; }
.cart-item__del { color: var(--muted); background: none; border: none; padding: 6px; }
.cart-item__del:hover { color: var(--accent); }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary h3 { font-size: 18px; margin-bottom: 16px; }
.summary__row { display: flex; justify-content: space-between; padding: 9px 0; color: var(--ink-2); }
.summary__total { display: flex; justify-content: space-between; font-size: 22px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }

/* ---- Форми --------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field textarea, .field select {
    width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line);
    background: #fff; color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---- Порожній стан / повідомлення ---------------------------------------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { color: var(--line); margin: 0 auto 18px; }
.empty h3 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }

.flashes { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.flash {
    background: #fff; border-left: 4px solid var(--accent); box-shadow: var(--shadow);
    border-radius: 10px; padding: 14px 16px; font-weight: 600; font-size: 14px;
    animation: flash-in .3s var(--ease);
}
.flash--error { border-left-color: #d33; }
.flash--success { border-left-color: #1a9c4f; }
@keyframes flash-in { from { opacity: 0; transform: translateX(20px); } }

.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding-block: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.page-title { font-family: var(--serif); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 5vw, 48px); margin-bottom: 8px; }
.rich { line-height: 1.8; color: var(--ink-2); max-width: 760px; }
.rich h2 { margin: 26px 0 12px; font-size: 24px; color: var(--ink); }
.rich p { margin: 0 0 14px; }
.rich ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }

/* ---- Футер --------------------------------------------------------------- */
.footer { background: var(--bg-dark); color: #d9d9de; margin-top: 60px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-block: 52px; }
.footer__brand img { height: 48px; margin-bottom: 16px; background: #fff; padding: 9px 13px; border-radius: 12px; }
.footer__brand svg { height: 52px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer__about { font-size: 14px; line-height: 1.7; color: #a5a5ac; max-width: 320px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 16px; }
.footer__links a { display: block; padding: 6px 0; color: #b4b4bb; font-size: 14px; }
.footer__links a:hover { color: var(--accent); }
.footer__socials { display: flex; gap: 10px; margin-top: 14px; }
.footer__socials a { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-dark); display: grid; place-items: center; color: #fff; }
.footer__socials a:hover { background: var(--accent); border-color: var(--accent); }
.footer__bottom {
    border-top: 1px solid var(--line-dark); padding-block: 20px;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-size: 13px; color: #8a8a92;
}

/* ---- Адаптив ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .catalog { grid-template-columns: 1fr; }
    .filters { position: static; display: none; }
    .filters.open { display: block; }
    .filters-toggle { display: inline-flex; }
    .footer__top { grid-template-columns: 1fr 1fr; }
    .cart { grid-template-columns: 1fr; }
    .summary { position: static; }
}
@media (max-width: 860px) {
    :root { --gutter: 16px; }
    .header__nav { display: none; }
    .burger { display: inline-grid; }
    .header__actions .hide-sm { display: none; }
    .product { grid-template-columns: 1fr; }
    .product__gallery { position: static; }
    .operator-btn .txt { display: none; }
}
@media (max-width: 560px) {
    .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pcard { padding: 8px; }
    .pcard__name { font-size: 13px; }
    .add-btn { font-size: 12px; padding: 9px 9px 9px 12px; }
    .add-btn__ico { width: 30px; height: 30px; }
    .hero__stage { min-height: 0; }
    .hero__slide { min-height: clamp(380px, 74vw, 460px); }
    .hero__card { position: static; grid-column: 1; width: auto; margin: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
    .hero__dots { top: auto; bottom: 14px; left: 50%; right: auto; transform: translateX(-50%); flex-direction: row; }
    .hero__dots .num { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .footer__top { grid-template-columns: 1fr; gap: 22px; }
}

/* прибрати зайві анімації для тих, хто їх вимкнув (біжучий рядок лишаємо — це частина дизайну) */
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto; }
}