/* «Веселий Шершень» — спільна дизайн-система блогу і магазину.
   Один файл стилів для макетів; ті самі значення переносяться в Astro (блог) і в дочірню тему Blocksy (магазин).
   Кольори: чорний + медово-жовтий (основні), кремовий фон, зелений листок з логотипа — лише «в наявності»/успіх. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/onest-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/onest-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/onest-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  /* Основні */
  --mnd-ink: #151311;          /* чорний (теплий) — текст, шапка-смуга, футер, другорядні кнопки */
  --mnd-ink-2: #2a2622;        /* чорний для наведення/карток на темному */
  --mnd-honey: #f9b600;        /* медово-жовтий — головні кнопки, акценти, активні пункти */
  --mnd-honey-dark: #e0a200;   /* жовтий при наведенні */
  --mnd-honey-soft: #fff1c2;   /* світлий мед — плашки, підсвічування */
  /* Фон і поверхні */
  --mnd-bg: #fbf7ee;           /* кремовий фон сторінки */
  --mnd-surface: #ffffff;      /* картки, шапка */
  --mnd-surface-2: #f4eee1;    /* підкладка під фото товару, блоки */
  --mnd-line: #e7dfcd;         /* рамки, розділювачі */
  /* Текст */
  --mnd-text: #151311;
  --mnd-muted: #625c52;        /* 6.1:1 на кремовому — проходить WCAG AA */
  --mnd-on-dark: #f6f1e6;
  --mnd-on-dark-muted: #b9b1a3;
  /* Службові */
  --mnd-leaf: #2f7a23;         /* зелений з логотипа: «в наявності», «додано», успіх */
  --mnd-leaf-soft: #e6f2df;
  --mnd-red: #c4291c;          /* знижка, помилка */
  --mnd-red-soft: #fde8e5;

  --mnd-font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mnd-width: 1240px;
  --mnd-read: 720px;           /* ширина тексту статті (~70 знаків у рядку) */
  --mnd-r-sm: 8px;
  --mnd-r: 14px;
  --mnd-r-lg: 22px;
  --mnd-shadow: 0 1px 2px rgba(21, 19, 17, .05), 0 6px 20px rgba(21, 19, 17, .06);
  --mnd-shadow-lift: 0 2px 4px rgba(21, 19, 17, .06), 0 14px 34px rgba(21, 19, 17, .12);
  --mnd-gap: clamp(16px, 2.4vw, 28px);
  --mnd-hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66 0 50V18L28 2l28 16v32L28 66zm0 32L0 82V66l28-16 28 16v16L28 98' fill='none' stroke='%23f9b600' stroke-opacity='.16' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--mnd-bg); color: var(--mnd-text); font: 16px/1.6 var(--mnd-font); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--mnd-honey); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--mnd-ink); text-decoration-color: var(--mnd-ink); }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.18; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mnd-honey); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--mnd-width); margin: 0 auto; padding: 0 16px; }
.section { padding-block: clamp(32px, 5vw, 64px); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 20px; }
.section__head h2 { margin: 0; }
.section__more { font-weight: 700; white-space: nowrap; }
.muted { color: var(--mnd-muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.25em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em;
  border: 2px solid transparent; border-radius: 12px; font-weight: 700; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--honey { background: var(--mnd-honey); color: var(--mnd-ink); }
.btn--honey:hover { background: var(--mnd-honey-dark); color: var(--mnd-ink); }
.btn--ink { background: var(--mnd-ink); color: #fff; }
.btn--ink:hover { background: var(--mnd-ink-2); color: var(--mnd-honey); }
.btn--ghost { background: transparent; border-color: var(--mnd-ink); color: var(--mnd-ink); }
.btn--ghost:hover { background: var(--mnd-ink); color: #fff; }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { border-color: var(--mnd-honey); color: var(--mnd-honey); }
.btn--sm { min-height: 38px; padding: .45em .95em; font-size: .92rem; border-radius: 10px; }
.btn--lg { min-height: 56px; padding: .85em 1.8em; font-size: 1.08rem; }
.btn--block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  border: 0; background: transparent; color: var(--mnd-ink); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--mnd-surface-2); }
.icon-btn .icon { width: 24px; height: 24px; }
.count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--mnd-honey); color: var(--mnd-ink); font-size: .72rem; font-weight: 800; line-height: 20px; text-align: center; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: .35em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Плашки / мітки ---------- */
.badge { display: inline-flex; align-items: center; gap: .3em; padding: .22em .6em; border-radius: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .02em; line-height: 1.3; }
.badge--sale { background: var(--mnd-red); color: #fff; }
.badge--hit { background: var(--mnd-honey); color: var(--mnd-ink); }
.badge--new { background: var(--mnd-ink); color: #fff; }
.badge--stock { background: var(--mnd-leaf-soft); color: var(--mnd-leaf); }
.badge--out { background: var(--mnd-surface-2); color: var(--mnd-muted); }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .45em .95em; border-radius: 999px; border: 1px solid var(--mnd-line);
  background: var(--mnd-surface); font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--mnd-ink); color: var(--mnd-ink); }
.chip[aria-current], .chip.is-active { background: var(--mnd-ink); border-color: var(--mnd-ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips--scroll::-webkit-scrollbar { display: none; }

/* ---------- Верхня смуга ---------- */
.topbar { background: var(--mnd-ink); color: var(--mnd-on-dark); font-size: .86rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: var(--mnd-on-dark); text-decoration: none; }
.topbar a:hover { color: var(--mnd-honey); }
.topbar__list { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar__hours { color: var(--mnd-on-dark-muted); }
.topbar__hours b { color: var(--mnd-honey); font-weight: 600; }
.langs { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.langs a { display: block; padding: .15em .5em; border-radius: 6px; font-weight: 700; font-size: .8rem; letter-spacing: .04em; }
.langs [aria-current] { background: var(--mnd-honey); color: var(--mnd-ink); }

/* ---------- Шапка ---------- */
.header { background: var(--mnd-surface); border-bottom: 1px solid var(--mnd-line); position: sticky; top: 0; z-index: 30; }
.header__row { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); min-height: 76px; }
.logo { display: block; flex: none; }
.logo img { width: 196px; height: auto; }
.search { flex: 1; display: flex; align-items: center; max-width: 560px; height: 48px; border: 2px solid var(--mnd-ink); border-radius: 12px; background: var(--mnd-surface); overflow: hidden; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0 14px; background: transparent; outline: none; }
.search button { height: 100%; padding: 0 18px; border: 0; background: var(--mnd-honey); font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: .4em; }
.search button:hover { background: var(--mnd-honey-dark); }
.header__contact { display: flex; flex-direction: column; line-height: 1.25; margin-left: auto; }
.header__contact a { font-weight: 800; text-decoration: none; font-size: 1.05rem; white-space: nowrap; }
.header__contact button { all: unset; cursor: pointer; font-size: .85rem; color: var(--mnd-muted); text-decoration: underline dotted; text-underline-offset: 3px; }
.header__contact button:hover { color: var(--mnd-ink); }
.header__actions { display: flex; align-items: center; gap: 4px; }
.header__burger { display: none; }
.header__cart { display: inline-flex; align-items: center; gap: .55em; padding: 0 14px 0 10px; height: 48px; border-radius: 12px; background: var(--mnd-ink); color: #fff; text-decoration: none; font-weight: 700; position: relative; }
.header__cart:hover { background: var(--mnd-ink-2); color: var(--mnd-honey); }
.header__cart .count { position: static; }
.header__shop { background: var(--mnd-honey); color: var(--mnd-ink); }
.header__shop:hover { background: var(--mnd-honey-dark); color: var(--mnd-ink); }

/* Головне меню */
.nav { background: var(--mnd-surface); border-bottom: 1px solid var(--mnd-line); }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav__list::-webkit-scrollbar { display: none; }
.nav__list a { display: block; padding: 14px 14px 12px; font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav__list a:hover { border-bottom-color: var(--mnd-line); }
.nav__list a[aria-current] { border-bottom-color: var(--mnd-honey); }
.nav__list .nav__other { margin-left: auto; }
.nav__other a { color: var(--mnd-ink); display: flex; gap: .4em; align-items: center; }
.nav__other a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mnd-honey); }

/* Мобільне меню (шухляда) */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.is-open { display: block; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(21,19,17,.5); }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); background: var(--mnd-surface); padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__nav { list-style: none; margin: 0; padding: 0; }
.drawer__nav a { display: flex; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--mnd-line); font-weight: 700; text-decoration: none; }

/* ---------- Хлібні крихти ---------- */
.crumbs { font-size: .88rem; color: var(--mnd-muted); padding-block: 16px 8px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25em .5em; }
.crumbs li + li::before { content: "/"; margin-right: .5em; color: var(--mnd-line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Великий банер (hero) ---------- */
.hero { background: var(--mnd-ink) var(--mnd-hex); color: var(--mnd-on-dark); border-radius: var(--mnd-r-lg); overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; }
.hero__body { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.hero__kicker { color: var(--mnd-honey); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.hero h1, .hero h2 { color: #fff; margin: 0; font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); }
.hero h1 mark, .hero h2 mark { background: none; color: var(--mnd-honey); }
.hero p { color: var(--mnd-on-dark-muted); font-size: 1.08rem; margin: 0; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; min-height: 320px; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 6px; }
.hero__facts div { display: flex; flex-direction: column; }
.hero__facts b { color: var(--mnd-honey); font-size: 1.5rem; line-height: 1.1; }
.hero__facts span { font-size: .86rem; color: var(--mnd-on-dark-muted); }

/* ---------- Переваги ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.perk { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: var(--mnd-r); background: var(--mnd-surface); border: 1px solid var(--mnd-line); }
.perk__ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--mnd-honey-soft); display: grid; place-items: center; }
.perk__ico .icon { width: 24px; height: 24px; }
.perk b { display: block; line-height: 1.25; }
.perk span { font-size: .86rem; color: var(--mnd-muted); }

/* ---------- Плитки категорій ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat-tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 14px; border-radius: var(--mnd-r); background: var(--mnd-surface); border: 1px solid var(--mnd-line); text-decoration: none; font-weight: 700; transition: box-shadow .2s, transform .2s; }
.cat-tile:hover { box-shadow: var(--mnd-shadow-lift); transform: translateY(-2px); color: var(--mnd-ink); }
.cat-tile img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--mnd-surface-2); width: 100%; }
.cat-tile small { display: block; font-weight: 500; color: var(--mnd-muted); }

/* ---------- Картка товару ---------- */
.grid { display: grid; gap: var(--mnd-gap); }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.grid--articles { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.product { position: relative; display: flex; flex-direction: column; background: var(--mnd-surface); border: 1px solid var(--mnd-line); border-radius: var(--mnd-r); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.product:hover { box-shadow: var(--mnd-shadow-lift); border-color: transparent; }
.product__media { position: relative; display: block; background: var(--mnd-surface-2); aspect-ratio: 1; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.product__body { display: flex; flex-direction: column; gap: 8px; padding: 14px; flex: 1; }
.product__title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.product__title a { text-decoration: none; }
.product__title a::after { content: ""; position: absolute; inset: 0; } /* уся картка клікабельна */
.product__meta { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--mnd-muted); flex-wrap: wrap; }
.product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.product__foot .btn { position: relative; z-index: 1; }
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price b { font-size: 1.3rem; font-weight: 800; white-space: nowrap; }
.price s { font-size: .86rem; color: var(--mnd-muted); }
.price--sale b { color: var(--mnd-red); }
.price--lg b { font-size: 2rem; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: .86rem; color: var(--mnd-muted); }
.stars { --v: 5; position: relative; display: inline-block; font-size: 15px; letter-spacing: 1px; line-height: 1; color: var(--mnd-line); }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: calc(var(--v) / 5 * 100%); overflow: hidden; color: var(--mnd-honey); }

/* ---------- Картка статті ---------- */
.post { position: relative; display: flex; flex-direction: column; background: var(--mnd-surface); border: 1px solid var(--mnd-line); border-radius: var(--mnd-r); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.post:hover { box-shadow: var(--mnd-shadow-lift); border-color: transparent; }
.post__media { aspect-ratio: 16 / 10; background: var(--mnd-surface-2); overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post:hover .post__media img { transform: scale(1.03); }
.post__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post__cat { align-self: flex-start; position: relative; z-index: 1; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; background: var(--mnd-honey-soft); padding: .25em .6em; border-radius: 6px; }
.post__title { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.post__title a { text-decoration: none; }
.post__title a::after { content: ""; position: absolute; inset: 0; }
.post__excerpt { color: var(--mnd-muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post__meta { margin-top: auto; display: flex; gap: 14px; font-size: .84rem; color: var(--mnd-muted); flex-wrap: wrap; }
.post--wide { display: grid; grid-template-columns: 1.15fr 1fr; }
.post--wide .post__media { aspect-ratio: auto; min-height: 280px; }
.post--wide .post__body { padding: clamp(18px, 3vw, 36px); justify-content: center; }
.post--wide .post__title { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.post--row { flex-direction: row; }
.post--row .post__media { width: 38%; flex: none; aspect-ratio: 4 / 3; }

/* ---------- Сторінка зі статтею (читання) ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.box { background: var(--mnd-surface); border: 1px solid var(--mnd-line); border-radius: var(--mnd-r); padding: 18px; }
.box h3 { font-size: 1.02rem; margin-bottom: 12px; }
.box--ink { background: var(--mnd-ink) var(--mnd-hex); color: var(--mnd-on-dark); border: 0; }
.box--ink h3 { color: #fff; }
.box--honey { background: var(--mnd-honey); border: 0; }
.article-head { max-width: var(--mnd-read); }
.article-head h1 { margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--mnd-muted); font-size: .9rem; }
.author { display: inline-flex; align-items: center; gap: 10px; color: var(--mnd-text); font-weight: 700; }
.author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.article-cover { margin: 20px 0 8px; border-radius: var(--mnd-r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--mnd-surface-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: var(--mnd-read); font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.05em; }
.prose p { margin: 0; }
.prose h2 { margin: 1.8em 0 .5em; font-size: 1.6rem; }
.prose h3 { margin: 1.5em 0 .4em; font-size: 1.28rem; }
.prose a { color: var(--mnd-ink); font-weight: 600; }
.prose img { border-radius: var(--mnd-r); margin-inline: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .88rem; color: var(--mnd-muted); text-align: center; margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--mnd-honey-dark); font-weight: 800; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 5px solid var(--mnd-honey); background: var(--mnd-honey-soft); border-radius: 0 var(--mnd-r) var(--mnd-r) 0; font-size: 1.08rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--mnd-line); text-align: left; }
.prose th { background: var(--mnd-surface-2); }
.prose .video { aspect-ratio: 16 / 9; border-radius: var(--mnd-r); overflow: hidden; background: #000; }
.toc { border: 1px solid var(--mnd-line); border-radius: var(--mnd-r); background: var(--mnd-surface); padding: 16px 20px; }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.callout-shop { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 16px; border-radius: var(--mnd-r); background: var(--mnd-ink) var(--mnd-hex); color: var(--mnd-on-dark); }
.callout-shop img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; }
.callout-shop b { color: #fff; display: block; font-size: 1.05rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { font-size: .86rem; padding: .3em .7em; border-radius: 6px; background: var(--mnd-surface-2); text-decoration: none; }
.tags a:hover { background: var(--mnd-honey-soft); }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Коментарі / відгуки ---------- */
.comments { max-width: var(--mnd-read); }
.comment { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--mnd-line); }
.comment__ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mnd-honey-soft); font-weight: 800; }
.comment__head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.comment__head b { font-weight: 700; }
.comment__head time { font-size: .84rem; color: var(--mnd-muted); }
.comment p { margin: 6px 0 0; }
.comment--reply { margin-left: 56px; }
.comment--owner .comment__ava { background: var(--mnd-honey); }
.comment__owner { font-size: .74rem; font-weight: 800; background: var(--mnd-ink); color: var(--mnd-honey); padding: .15em .5em; border-radius: 5px; }

/* ---------- Форми ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .92rem; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--mnd-line); border-radius: 10px; background: var(--mnd-surface); transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--mnd-ink); box-shadow: 0 0 0 3px var(--mnd-honey-soft); }
.field__hint { font-size: .84rem; color: var(--mnd-muted); }
.field--error .input { border-color: var(--mnd-red); }
.field--error .field__hint { color: var(--mnd-red); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--mnd-ink); margin: 2px 0 0; flex: none; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--mnd-line); border-radius: 12px; background: var(--mnd-surface); cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--mnd-ink); box-shadow: 0 0 0 3px var(--mnd-honey-soft); }
.radio-card input { accent-color: var(--mnd-ink); width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.qty { display: inline-flex; align-items: center; height: 48px; border: 1.5px solid var(--mnd-line); border-radius: 12px; background: var(--mnd-surface); overflow: hidden; }
.qty button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.qty button:hover { background: var(--mnd-surface-2); }
.qty input { width: 44px; height: 100%; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.alert { padding: 12px 16px; border-radius: 12px; display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.alert--ok { background: var(--mnd-leaf-soft); color: #1f5517; }
.alert--info { background: var(--mnd-honey-soft); }
.alert--err { background: var(--mnd-red-soft); color: #8d1d13; }

/* ---------- Пагінація ---------- */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--mnd-line); background: var(--mnd-surface); font-weight: 700; text-decoration: none; }
.pager a:hover { border-color: var(--mnd-ink); }
.pager [aria-current] { background: var(--mnd-ink); color: #fff; border-color: var(--mnd-ink); }
.pager .pager__gap { border: 0; background: none; }

/* ---------- Каталог (категорія) ---------- */
.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.filters { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.filters__list { list-style: none; margin: 0; padding: 0; }
.filters__list a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.filters__list a:hover { background: var(--mnd-surface-2); }
.filters__list a[aria-current] { background: var(--mnd-honey-soft); }
.filters__list small { color: var(--mnd-muted); font-weight: 500; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar .select { width: auto; min-height: 42px; }
.cat-intro { display: grid; gap: 6px; margin-bottom: 16px; }
.cat-intro p { color: var(--mnd-muted); max-width: 70ch; margin: 0; }
.seo-text { max-width: 860px; color: var(--mnd-text); }
.seo-text--clamp { max-height: 9.6em; overflow: hidden; position: relative; }
.seo-text--clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(transparent, var(--mnd-bg)); }

/* ---------- Сторінка товару ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; position: sticky; top: 96px; }
.gallery__main { aspect-ratio: 1; border-radius: var(--mnd-r-lg); overflow: hidden; background: var(--mnd-surface-2); position: relative; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 8px; }
.gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--mnd-surface-2); aspect-ratio: 1; }
.gallery__thumbs button[aria-current] { border-color: var(--mnd-ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: flex; flex-direction: column; gap: 16px; }
.buy h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin: 0; }
.buy__top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: .9rem; color: var(--mnd-muted); }
.buy__panel { background: var(--mnd-surface); border: 1px solid var(--mnd-line); border-radius: var(--mnd-r-lg); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.buy__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.buy__row .btn--honey { flex: 1; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { display: flex; flex-direction: column; padding: 10px 14px; border: 1.5px solid var(--mnd-line); border-radius: 12px; background: var(--mnd-surface); text-decoration: none; line-height: 1.25; min-width: 96px; }
.variant b { font-size: .98rem; }
.variant span { font-size: .84rem; color: var(--mnd-muted); }
.variant:hover { border-color: var(--mnd-ink); }
.variant[aria-current] { border-color: var(--mnd-ink); box-shadow: 0 0 0 3px var(--mnd-honey-soft); }
.buy__notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.buy__notes li { display: flex; gap: 10px; align-items: flex-start; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { padding: 10px 0; border-bottom: 1px dashed var(--mnd-line); text-align: left; vertical-align: top; }
.specs th { font-weight: 500; color: var(--mnd-muted); width: 45%; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--mnd-line); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 12px 16px; border: 0; background: none; font-weight: 700; border-bottom: 3px solid transparent; text-decoration: none; white-space: nowrap; cursor: pointer; }
.tabs [aria-selected="true"], .tabs [aria-current] { border-bottom-color: var(--mnd-honey); }
.buybar { display: none; }

/* ---------- Кошик / оформлення ---------- */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--mnd-line); }
.cart-line img { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; background: var(--mnd-surface-2); }
.cart-line a { font-weight: 700; text-decoration: none; }
.cart-line__end { display: flex; align-items: center; gap: 8px; }
.summary { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; }
.summary__total { font-size: 1.3rem; font-weight: 800; padding-top: 12px; border-top: 1px solid var(--mnd-line); }
.steps { display: flex; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--mnd-muted); }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--mnd-surface-2); font-size: .86rem; }
.steps li[aria-current] { color: var(--mnd-ink); }
.steps li[aria-current]::before { background: var(--mnd-honey); }
.steps li + li::after { content: none; }

/* ---------- Спливаюче вікно ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(21,19,17,.55); }
.modal[hidden] { display: none; }
.modal__box { width: min(100%, 440px); background: var(--mnd-surface); border-radius: var(--mnd-r-lg); padding: 24px; position: relative; box-shadow: var(--mnd-shadow-lift); }
.modal__close { position: absolute; top: 10px; right: 10px; }

/* ---------- Смуга-заклик ---------- */
.band { background: var(--mnd-honey); border-radius: var(--mnd-r-lg); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; position: relative; overflow: hidden; }
.band h2 { margin: 0 0 6px; }
.band p { margin: 0; max-width: 56ch; }
.band--ink { background: var(--mnd-ink) var(--mnd-hex); color: var(--mnd-on-dark); }
.band--ink h2 { color: #fff; }

/* ---------- Відгуки (стрічка) ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.review { background: var(--mnd-surface); border: 1px solid var(--mnd-line); border-radius: var(--mnd-r); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.review p { margin: 0; }
.review__foot { display: flex; justify-content: space-between; color: var(--mnd-muted); font-size: .86rem; margin-top: auto; }

/* ---------- Сторінка 404 ---------- */
.notfound { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-block: clamp(32px, 6vw, 80px); }
.notfound__code { font-size: clamp(6rem, 4rem + 10vw, 12rem); font-weight: 800; line-height: .9; letter-spacing: -.04em; color: var(--mnd-ink); }
.notfound__code span { color: var(--mnd-honey); }

/* ---------- Підвал ---------- */
.footer { background: var(--mnd-ink) var(--mnd-hex); color: var(--mnd-on-dark-muted); margin-top: clamp(40px, 6vw, 80px); font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 48px 32px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--mnd-on-dark); text-decoration: none; }
.footer a:hover { color: var(--mnd-honey); }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__name { font-size: 1.35rem; font-weight: 800; color: #fff; line-height: 1.1; }
.footer__name span { color: var(--mnd-honey); }
.footer__phone { font-size: 1.15rem; font-weight: 800; color: #fff !important; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a:hover { background: var(--mnd-honey); color: var(--mnd-ink); }
/* Підписка на новини + месенджери (над підвалом, обидва сайти) */
.connect { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-block: 40px 0; }
.connect__form, .connect__msgr { background: var(--mnd-surface); border: 1px solid var(--mnd-line); border-radius: var(--mnd-r-lg); padding: 20px; }
.connect__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: center; background: var(--mnd-honey-soft); border-color: transparent; }
.connect__form h2 { font-size: 1.25rem; margin: 0 0 4px; }
.connect__form p { margin: 0; color: var(--mnd-muted); }
.connect__row { display: flex; gap: 8px; }
.connect__row .input { flex: 1; min-width: 0; }
.connect__msgr { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.msgr { display: flex; flex-wrap: wrap; gap: 8px; }
.msgr a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--mnd-ink); color: var(--mnd-on-dark); font-weight: 700; text-decoration: none; }
.msgr a:hover { background: var(--mnd-ink-2); color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .84rem; }

/* ---------- Мобільна нижня панель і кнопка дзвінка ---------- */
.tabbar { display: none; }
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--mnd-honey); color: var(--mnd-ink); display: grid; place-items: center; box-shadow: var(--mnd-shadow-lift); border: 0; cursor: pointer; }

/* =================== Планшет =================== */
@media (max-width: 1024px) {
  .layout, .catalog { grid-template-columns: minmax(0, 1fr); }
  .sidebar, .filters { position: static; }
  .filters { display: none; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .connect { grid-template-columns: minmax(0, 1fr); }
  .cart { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .header__contact { display: none; }
}

/* =================== Телефон =================== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar__list, .topbar__hours { display: none; }
  .topbar .container { justify-content: space-between; min-height: 34px; }
  .header__row { min-height: 60px; gap: 8px; flex-wrap: wrap; }
  .header__burger { display: inline-flex; margin-left: -8px; }
  .logo img { width: 138px; }
  .header__actions { margin-left: auto; }
  .header__cart { padding: 0; width: 44px; height: 44px; justify-content: center; background: transparent; color: var(--mnd-ink); }
  .header__cart span.label { display: none; }
  .header__cart .count { position: absolute; top: 2px; right: 0; }
  .header__cart.header__shop { width: auto; padding: 0 12px; background: var(--mnd-honey); }
  .header__cart.header__shop span.label { display: inline; }
  .topbar:not(:has(.langs)) { display: none; }
  .search { order: 5; flex-basis: 100%; max-width: none; height: 44px; margin-bottom: 10px; }
  .search button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; border-radius: var(--mnd-r); }
  .hero__media { min-height: 220px; order: -1; }
  .perks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .perk { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-tile { padding: 8px; font-size: .86rem; gap: 6px; }
  .grid--products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product__body { padding: 10px; gap: 6px; }
  .product__title { font-size: .92rem; }
  .price b { font-size: 1.1rem; }
  .product__foot { flex-direction: column; align-items: stretch; }
  .product__foot .btn { width: 100%; }
  .grid--articles { grid-template-columns: 1fr; }
  .post--wide { grid-template-columns: 1fr; }
  .post--wide .post__media { min-height: 0; aspect-ratio: 16 / 10; }
  .post--row .post__media { width: 112px; aspect-ratio: 1; }
  .post--row .post__body { padding: 10px 12px; }
  .post--row .post__excerpt { display: none; }
  .prose { font-size: 1.04rem; }
  .article-cover { margin-inline: -16px; border-radius: 0; }
  .callout-shop { grid-template-columns: 64px 1fr; }
  .callout-shop img { width: 64px; height: 64px; }
  .callout-shop .btn { grid-column: 1 / -1; }
  .comment--reply { margin-left: 24px; }
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .gallery { position: static; grid-template-columns: 1fr; margin-inline: -16px; }
  .gallery__main { border-radius: 0; }
  .gallery__thumbs { flex-direction: row; overflow-x: auto; padding-inline: 16px; order: 2; } /* мініатюри під головним фото */
  .gallery__thumbs button { width: 64px; flex: none; }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 10px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--mnd-surface); border-top: 1px solid var(--mnd-line); box-shadow: 0 -6px 20px rgba(21,19,17,.08); }
  .buybar .btn { flex: 1; }
  body.has-buybar { padding-bottom: 76px; }
  body.has-buybar .tabbar { display: none; }      /* на сторінці товару внизу лише панель «Купити» */
  .variants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .variant { min-width: 0; padding: 8px 10px; }
  /* рядок кошика: фото | назва; під назвою — кількість, сума і «видалити» */
  .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; row-gap: 10px; }
  .cart-line img { width: 72px; height: 72px; grid-row: span 2; align-self: start; }
  .cart-line > div:nth-child(2) { grid-column: 2 / -1; }
  .cart-line .qty { grid-column: 2; justify-self: start; }
  .cart-line__end { grid-column: 3; }
  .connect__form { grid-template-columns: minmax(0, 1fr); }
  .connect__row { flex-direction: column; }
  /* пальцем зручно: усе, що натискають, — не менше 44 px */
  .btn--sm, .chip { min-height: 44px; }
  .chip { padding-block: .6em; }
  .band { grid-template-columns: 1fr; }
  .notfound { grid-template-columns: 1fr; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; padding-block: 32px 16px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--mnd-surface); border-top: 1px solid var(--mnd-line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: .72rem; font-weight: 700; text-decoration: none; position: relative; }
  .tabbar a[aria-current] { color: var(--mnd-ink); }
  .tabbar a[aria-current]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--mnd-honey); }
  .tabbar .icon { width: 24px; height: 24px; }
  .tabbar .count { top: 4px; right: calc(50% - 22px); }
  body.has-tabbar { padding-bottom: 64px; }
  body.has-tabbar .fab { bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
