/* SezonHit — ocStore 3 theme stylesheet (catalog/view/theme/sezonhit).
   Ported from the approved mock (mock-v2/assets/css/site.css, tag mock-approved).
   Plain CSS + custom properties. No framework, no build step.
   Pages still rendered by default templates also load Bootstrap 3 (see common/header.twig),
   so shared components set their hover colours explicitly instead of inheriting them. */

/* ── Fonts (self-hosted, SIL OFL; Cyrillic + ₴) ───────────────── */
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-display: swap;
  src: url(../fonts/GolosText-normal-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-display: swap;
  src: url(../fonts/GolosText-normal-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-display: swap;
  src: url(../fonts/GolosText-normal-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: "Lora"; font-weight: 400 700; font-display: swap;
  src: url(../fonts/Lora-normal-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Lora"; font-weight: 400 700; font-display: swap;
  src: url(../fonts/Lora-normal-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Lora"; font-weight: 400 700; font-display: swap;
  src: url(../fonts/Lora-normal-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: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(../fonts/Lora-italic-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(../fonts/Lora-italic-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(../fonts/Lora-italic-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; }

/* ── Tokens ───────────────────────────────────────────────────── */
:root {
  --paper: #f6f1e8;        /* page ground (brand off-white) */
  --paper-2: #eee6d8;      /* sunken bands */
  --card: #fffcf6;         /* raised surfaces */
  --ink: #1d1a16;
  --ink-2: #4e473d;        /* secondary text, 8.2:1 on paper */
  --ink-3: #635a4d;        /* captions, 6.0:1 on paper */
  --line: #e2d8c6;
  --line-2: #c9bba3;

  --green: #1e3a2b;        /* brand forest */
  --green-2: #2a4c3a;
  --green-tint: #e2eadf;
  --brown: #6a4329;        /* brand brown */
  --brown-2: #7c5233;
  --brown-tint: #f1e5d6;
  --gold: #c2a062;         /* decor only: never text on light grounds */
  --warn: #9e2f1c;
  --warn-tint: #f8e2da;
  --ph: #ffe066;           /* placeholder yellow */
  --ph-ink: #2a2200;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgb(40 30 15 / .06), 0 10px 30px -14px rgb(60 40 20 / .28);
  --shadow-lg: 0 24px 60px -20px rgb(30 25 15 / .45);

  --ui: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --gutter: 32px;
  --hdr-h: 84px;
  /* what the header keeps covered at the window's top, to stay clear of when something scrolls or sticks: nothing, as it
     scrolls away with the page (it was sticky: 87 px, 123 on phones with the search row) */
  --hdr-stick: 0px;

  /* motion: three durations and one curve (ease-out: things arrive quickly and settle). Hover and press feedback
     --t-fast; menus, dialogs, the toast and the buy bar --t; photo zooms --t-zoom. Reduced motion: block near the
     end of this file, and each page file for its own. */
  --t-fast: .15s;
  --t: .2s;
  --t-zoom: .4s;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* finger joint (шип-паз) — the box-joint edge of their own boxes, used as the one decorative motif */
  --joint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8'%3E%3Cpath d='M0 7H6V1H18V7H24' fill='none' stroke='%23c2a062' stroke-width='1.6'/%3E%3C/svg%3E");
}
@media (max-width: 760px) { :root { --gutter: 16px; --hdr-h: 60px; } }

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-stick) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--ui); font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; color: inherit; }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
/* a phrase that mustn't break («будь-яке» breaks at its hyphen) */
.nw { white-space: nowrap; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.sr:focus { position: fixed !important; left: 16px; top: 12px; z-index: 100; width: auto; height: auto; overflow: visible; clip: auto;
  padding: 12px 18px; border-radius: var(--r); background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-lg); }
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
/* page notices: «Кошик оновлено», warnings, sent forms */
.note { margin-top: 16px; max-width: 72ch; padding: 12px 16px; border-radius: var(--r); background: var(--paper-2); color: var(--ink); }
.note--ok { background: var(--green-tint); color: var(--green); }
.note--warn { background: var(--warn-tint); color: var(--warn); }

/* form fields (contact page, the captcha; later login and checkout) */
.ff { display: grid; gap: 6px; margin-bottom: 18px; }
.ff label { font: 600 14.5px/1.3 var(--ui); color: var(--ink); }
.ff input, .ff textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--card); font: 400 16px/1.4 var(--ui); color: var(--ink); }
.ff textarea { min-height: 150px; resize: vertical; }
.ff input:focus, .ff textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.ff--err input, .ff--err textarea { border-color: var(--warn); }
.ff__err { font-size: 14px; color: var(--warn); }
.ff__captcha { display: flex; align-items: center; gap: 12px; }
.ff__captcha img { flex: none; height: 48px; width: auto; border-radius: var(--r-sm); border: 1px solid var(--line); }
.ff__captcha input { max-width: 180px; }

/* account and checkout forms: .aform a column of fields, .aform__row two side by side, .aform__foot the button row,
   .alink a text link with a 44 px target, .ff__hint a note under a field, .ff__opt «(необов’язково)» in a label,
   .ff__check a box with its label as the target */
.ff select { width: 100%; min-height: 48px; padding: 11px 40px 11px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  font: 400 16px/1.4 var(--ui); color: var(--ink); cursor: pointer; -webkit-appearance: none; appearance: none;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234e473d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px; }
.ff select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.ff select:disabled { color: var(--ink-2); cursor: progress; }
.ff--err select { border-color: var(--warn); }
.ff__opt { font-weight: 400; color: var(--ink-3); }
.ff__hint { font-size: 14px; color: var(--ink-3); }
fieldset.ff { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
fieldset.ff legend { padding: 0; font: 600 14.5px/1.3 var(--ui); color: var(--ink); }
.ff .ff__check { display: flex; align-items: center; gap: 12px; min-height: 44px; font: 400 16px/1.4 var(--ui); color: var(--ink); cursor: pointer; }
.ff .ff__check input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; accent-color: var(--green); }
/* the agreement link: a 44 px target without taller lines */
.ff__check a { display: inline-block; padding: 12px 0; margin: -12px 0; font-weight: 600; color: var(--green); text-underline-offset: 3px; }
.ff--err .ff__check input { outline: 2px solid var(--warn); outline-offset: 2px; }
/* a consent checkbox as a whole-row card, like the checkout's radio cards (checkout, registration): the row ticks the box, a
   thumb can't open a page by mistake; the texts it names are links on their own line under it (.consent-links) */
.consent { display: flex; align-items: flex-start; gap: 12px; min-height: 52px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--card); font: 400 15px/1.4 var(--ui); color: var(--ink); cursor: pointer; transition: border-color var(--t-fast), background-color var(--t-fast); }
.ff .consent { font: 400 15px/1.4 var(--ui); } /* a label in a field is bold; this one is a sentence */
.consent:hover { border-color: var(--ink-3); }
.consent input { flex: none; width: 22px; height: 22px; min-height: 0; margin: -1px 0 0; padding: 0; accent-color: var(--green); } /* min-height: a field's 48 px (.ff input) is not for a box */
.consent:has(input:checked) { border-color: var(--green); background: #f7faf4; box-shadow: inset 0 0 0 1px var(--green); }
.consent:has(input[aria-invalid="true"]) { border-color: var(--warn); }
.consent:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.consent input:focus-visible { outline: none; }
.consent-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0; padding: 0 4px; }
.consent-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font: 600 14.5px/1.3 var(--ui); text-underline-offset: 3px; }
.aform { max-width: 600px; margin-top: 24px; }
.aform__lead { max-width: 62ch; margin-top: 10px; color: var(--ink-2); }
.aform__lead a { font-weight: 600; color: var(--green); text-underline-offset: 3px; }
.aform__whs { max-width: 600px; } /* the wholesale sign-up's note: as wide as the form */
.aform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
.aform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 6px; }
.aform__foot .btn--primary { min-width: 200px; }
.alink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--green); text-underline-offset: 3px; }
.alink:hover { color: var(--green-2); }
@media (max-width: 560px) {
  .aform { margin-top: 18px; }
  .aform__row { grid-template-columns: minmax(0, 1fr); }
  .aform__foot .btn--primary { width: 100%; }
}
/* login, and an expired reset link (its controller shows the login page): two cards, the form first */
.auth { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; max-width: 940px; margin-top: 24px; }
.auth__box { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.auth__box h2 { font-size: 26px; }
.auth__box > p { margin-top: 10px; color: var(--ink-2); }
.auth__box > p b { color: var(--ink); font-weight: 600; }
.auth__box form { margin-top: 20px; }
.auth__box--new { background: var(--paper-2); border-color: transparent; }
.auth__box--new .btn { margin-top: 20px; }
.auth .note { margin-top: 16px; }
@media (max-width: 760px) {
  .auth { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 18px; }
  .auth__box { padding: 20px 18px; }
  .auth__box h2 { font-size: 23px; }
}

/* long text from the admin: information pages, «done» messages */
.prose { max-width: 72ch; margin-top: 20px; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.prose > * + * { margin-top: 14px; }
.prose h2, .prose h3 { margin-top: 30px; color: var(--ink); }
.prose h2 { font-size: 24px; }
.prose h3 { font: 600 18px/1.3 var(--ui); }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--green); font-weight: 600; text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--ink); }

/* «Особистий кабінет» (account/account.twig): its pages as tiles */
.acct { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.acct a { display: grid; gap: 6px; min-height: 100%; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); text-decoration: none; }
.acct a:hover { border-color: var(--green); }
.acct b { font: 600 17px/1.3 var(--ui); color: var(--ink); }
.acct span { font-size: 14.5px; color: var(--ink-2); }

/* «done» pages (common/success.twig): a mark, the title, the message, one way on */
.done { display: grid; justify-items: start; gap: 14px; max-width: 640px; padding: 28px 0 8px; }
.done__mark { width: 56px; height: 56px; color: var(--green); }
.done h1 { font-size: clamp(28px, 3.2vw, 40px); }
.done .prose { margin-top: 0; }
.done .btn { margin-top: 8px; }
[hidden] { display: none !important; }

/* pages still on default templates (body.is-legacy): line Bootstrap's container up with .wrap
   and give the content room under the category row */
.is-legacy main { padding-top: 24px; }
.is-legacy main .container { width: auto; max-width: calc(var(--container) + 2 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
/* …and dress their Bootstrap parts like the theme (login, registration, account pages, checkout) until each gets a template */
.is-legacy main { font-size: 16px; color: var(--ink-2); }
.is-legacy main h1 { margin: 8px 0 22px; font-size: clamp(30px, 3.4vw, 44px); color: var(--ink); }
.is-legacy main h2 { margin: 0 0 10px; font-size: 24px; color: var(--ink); }
.is-legacy main legend { padding: 0 0 6px; border: 0; font: 600 20px/1.3 var(--serif); color: var(--ink); }
.is-legacy .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 4px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 14px; }
.is-legacy .breadcrumb > li { padding: 0; text-shadow: none; }
.is-legacy .breadcrumb > li::after { display: none; }
.is-legacy .breadcrumb > li + li::before { content: "/"; padding: 0 8px; color: var(--line-2); }
.is-legacy .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.is-legacy .breadcrumb > li:last-child a { color: var(--ink-3); }
.is-legacy .breadcrumb .fa-home { font: 400 14px/1 var(--ui); }
.is-legacy .breadcrumb .fa-home::before { content: "Головна"; }
.is-legacy .well, .is-legacy .panel-default { margin-bottom: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: none; }
.is-legacy .panel-default { padding: 0; overflow: hidden; }
.is-legacy .panel-default > .panel-heading { padding: 16px 22px; border: 0; background: var(--card); color: var(--ink); }
.is-legacy .panel-title { font: 600 17px/1.3 var(--ui); }
.is-legacy .panel-title a { display: flex; align-items: center; min-height: 44px; margin: -6px 0; color: inherit; text-decoration: none; }
.is-legacy main p + .btn, .is-legacy main p + input.btn, .is-legacy .form-group + .btn, .is-legacy .form-group + input.btn { margin-top: 10px; }
.is-legacy .form-group > a, .is-legacy a.agree, .is-legacy .buttons a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-weight: 600; }
.is-legacy .panel-body { padding: 4px 22px 22px; border-top: 0 !important; }
.is-legacy .btn { min-height: 48px; padding: 0 22px; border-radius: var(--r); background-image: none; text-shadow: none; box-shadow: none; font: 600 15px/1.2 var(--ui); }
.is-legacy .btn-primary { background: var(--green); border-color: var(--green); color: var(--card); }
.is-legacy .btn-primary:hover, .is-legacy .btn-primary:focus { background: var(--green-2); border-color: var(--green-2); color: var(--card); }
.is-legacy .btn-default { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.is-legacy .btn-default:hover, .is-legacy .btn-default:focus { border-color: var(--ink-3); background: var(--card); color: var(--ink); }
.is-legacy .btn-danger { background: var(--card); border-color: var(--line-2); color: var(--warn); }
.is-legacy .control-label { padding-top: 0; font: 600 14.5px/1.3 var(--ui); color: var(--ink); }
.is-legacy .form-group { margin-bottom: 16px; }
.is-legacy .form-control { height: 48px; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--card); box-shadow: none; font: 400 16px/1.4 var(--ui); color: var(--ink); }
.is-legacy textarea.form-control { height: auto; min-height: 120px; }
.is-legacy .form-control:focus { border-color: var(--green); outline: 2px solid var(--green); outline-offset: 1px; box-shadow: none; }
.is-legacy .radio label, .is-legacy .checkbox label, .is-legacy label.radio-inline, .is-legacy label.checkbox-inline { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-left: 0; font-size: 16px; color: var(--ink); }
.is-legacy label.radio-inline + label.radio-inline { margin-left: 20px; }
.is-legacy input[type="radio"], .is-legacy input[type="checkbox"] { position: static; width: 20px; height: 20px; margin: 0 6px 0 0; vertical-align: middle; accent-color: var(--green); }
.is-legacy .text-danger { color: var(--warn); }
.is-legacy .has-error .form-control { border-color: var(--warn); }
.is-legacy .alert { border: 0; border-radius: var(--r); }
.is-legacy .alert-danger, .is-legacy .alert-warning { background: var(--warn-tint); color: var(--warn); }
.is-legacy .alert-success { background: var(--green-tint); color: var(--green); }
.is-legacy .alert-info { background: var(--paper-2); color: var(--ink); }
.is-legacy .list-group { margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.is-legacy .list-group-item { display: flex; align-items: center; min-height: 48px; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0 !important; background: none; color: var(--ink-2); }
.is-legacy .list-group-item:first-child { border-top: 0; }
.is-legacy a.list-group-item:hover, .is-legacy a.list-group-item:focus { background: var(--paper); color: var(--ink); }
.is-legacy .table-bordered, .is-legacy .table-bordered > * > tr > * { border-color: var(--line); }
.is-legacy .table > thead > tr > td { font-weight: 600; color: var(--ink); background: var(--paper-2); }
.is-legacy .img-thumbnail { border-color: var(--line); border-radius: var(--r-sm); }

/* placeholder for anything the owner hasn't confirmed */
.ph { background: var(--ph); color: var(--ph-ink); font-weight: 600; padding: .05em .35em; border-radius: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; font-style: normal; }

/* ── Buttons & links ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1.5px solid transparent;
  font: 600 15px/1.2 var(--ui); text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--green); color: var(--card); }
.btn--primary:hover, .btn--primary:focus { background: var(--green-2); color: var(--card); }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn--ghost:hover, .btn--ghost:focus { background: var(--green-tint); color: var(--green); }
.btn--soft { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn--soft:hover, .btn--soft:focus { border-color: var(--ink-3); color: var(--ink); }
.btn--brown { background: var(--brown); color: var(--card); }
.btn--brown:hover, .btn--brown:focus { background: var(--brown-2); color: var(--card); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { background: #d9d1c3; color: #4e473d; border-color: transparent; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

.more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; flex: none;
  font: 600 15px/1 var(--ui); color: var(--green); text-decoration: none; white-space: nowrap;
}
.more::after { content: "→"; transition: transform var(--t-fast) var(--ease); }
.more:hover::after { transform: translateX(3px); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); position: relative; text-decoration: none;
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 24px; height: 24px; }

/* ── Header (common/header.twig) ──────────────────────────────── */
/* scrolls away with the page, not stuck to the window (the user's choice); above the page for its popovers */
.hdr { position: relative; z-index: 40; }
.hdr__row { display: flex; align-items: center; gap: 28px; height: var(--hdr-h); }
.logo {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  font: 600 32px/1 var(--serif); letter-spacing: -.015em; color: var(--green); white-space: nowrap;
}
.logo b { font-weight: 600; color: var(--brown); }
/* the search fills the space between the logo and the tools, so both gaps are the row's gap */
.hdr__search { flex: 1 1 auto; min-width: 0; position: relative; }
.hdr__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (min-width: 861px) { .hdr__row { gap: 44px; } .hdr__tools { gap: 28px; } }
.hdr__phone { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 0 8px;
  border-radius: var(--r-sm); text-decoration: none; border: 0; background: none; text-align: left; }
.hdr__phone:hover { background: var(--paper-2); }
/* phone: icon + number + the live open/closed line */
.hdr__phone { flex-direction: row; align-items: center; gap: 10px; padding: 0 10px 0 0; } /* no left padding: the gap to the search stays the row gap */
.hdr__phone-icon { width: 26px; height: 26px; flex: none; }
.hdr__phone-text { display: flex; flex-direction: column; }
.hdr__phone strong { font: 600 19px/1.2 var(--ui); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hdr__status { font-size: 14px; line-height: 1.3; color: var(--ink-3); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #9c9384; flex: none; }
.dot--open { background: #2f7a4b; box-shadow: 0 0 0 3px rgb(47 122 75 / .18); position: relative; }
/* open now: a ring grows out of the dot and fades, every 2.4 s */
.dot--open::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: dot-pulse 2.4s cubic-bezier(.2, .6, .35, 1) infinite; }
@keyframes dot-pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot--open::after { animation: none; opacity: 0; } }
.badge {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--brown); color: var(--card); font: 700 11px/19px var(--ui); text-align: center; font-variant-numeric: tabular-nums;
}
.acct-initial { position: absolute; bottom: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 2px var(--paper); }

/* green header: the forest band. Popovers and suggestions stay on light cards. */
.hdr { --hdr-ink: #f6f1e8; --hdr-ink-2: #c9d3c8; --hdr-hover: rgb(246 241 232 / .1); --hdr-gold: #e0c79a;
  background: var(--green); color: var(--hdr-ink); backdrop-filter: none; border-bottom: 3px solid var(--brown); }
.hdr .logo { color: var(--hdr-ink); }
.hdr .logo b { color: var(--hdr-gold); }
.hdr .icon-btn { color: var(--hdr-ink); }
.hdr .icon-btn:hover, .hdr__phone:hover { background: var(--hdr-hover); }
.hdr__status { color: var(--hdr-ink-2); }
.hdr__phone-icon { color: var(--hdr-ink); }
.hdr .icon-btn { width: 52px; height: 52px; }
.hdr .icon-btn svg { width: 30px; height: 30px; }
.hdr__search .search { height: 48px; border-radius: 999px; padding-left: 18px; background: var(--card); }
.hdr__search .search input { height: 44px; font-size: 15px; }
.hdr__search .search svg { width: 18px; height: 18px; }
.hdr .dot { background: #8f9a8f; }
.hdr .dot--open { background: #7fd19b; box-shadow: 0 0 0 3px rgb(127 209 155 / .22); }
.hdr .badge { background: var(--hdr-gold); color: var(--green); }
.hdr .acct-initial { background: var(--hdr-gold); box-shadow: 0 0 0 2px var(--green); }
form[data-whs].is-busy button { cursor: progress; }
/* «ОПТ» by the phone (common/header.twig): a gold outline pill, filled while wholesale prices are on (so the account
   icon keeps its plain dot then; it wore a little «опт» tag before the pill); the link around it is the 44 px target */
.hdr__opt { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; flex: none; color: var(--hdr-gold); text-decoration: none; }
.hdr__opt-pill { display: block; height: 32px; padding: 0 12px; border: 1.5px solid currentColor; border-radius: 999px;
  font: 700 13px/29px var(--ui); letter-spacing: .08em; white-space: nowrap; transition: background-color var(--t-fast) var(--ease); }
.hdr__opt:hover .hdr__opt-pill { background: var(--hdr-hover); }
.hdr__opt.is-on .hdr__opt-pill { background: var(--hdr-gold); color: var(--green); border-color: var(--hdr-gold); }
.hdr__opt.is-on:hover .hdr__opt-pill { background: #ead6b0; }
.hdr .search { border-color: transparent; }
.hdr .search:focus-within { border-color: var(--hdr-gold); box-shadow: 0 0 0 4px rgb(224 199 154 / .3); }
.hdr :focus-visible { outline-color: var(--hdr-gold); }
/* the same gold on the other forest-green grounds: the footer and the social panel (the page's green ring vanishes on them) */
.ftr :focus-visible, .social :focus-visible, .home-social :focus-visible { outline-color: #e0c79a; }
.hdr .pop, .hdr .suggest { color: var(--ink); }
.hdr .pop :focus-visible, .hdr .suggest :focus-visible { outline-color: var(--green); }

/* search */
.search { display: flex; align-items: center; height: 48px; margin: 0; font-weight: 400; border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--card); padding: 0 6px 0 16px; gap: 10px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgb(30 58 43 / .1); }
.search svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; outline: none; font-size: 15.5px; color: var(--ink); }
.search input::placeholder { color: #7a7062; }
.search kbd { font: 500 12px/1 var(--ui); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 6px; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 10px; max-height: min(70vh, 560px); overflow: auto;
}
.suggest h4 { font: 600 12px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 10px 10px 8px; }
.suggest__cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); font: 500 14.5px/1 var(--ui); text-decoration: none; color: var(--ink); white-space: nowrap;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.suggest__item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 10px; border-radius: var(--r); text-decoration: none; }
.suggest__item:hover, .suggest__item[aria-selected="true"] { background: var(--paper); }
.suggest__item img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.suggest__item span { flex: 1; font-size: 15px; line-height: 1.3; }
.suggest__item b { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.suggest mark { background: none; color: var(--green); font-weight: 700; }
.suggest__empty { padding: 14px 10px; color: var(--ink-2); }

/* category nav: product types, not occasions (common/menu.twig) */
.catnav { border-bottom: 1px solid var(--line); background: var(--paper); }
.catnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-right: 40px; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; white-space: nowrap;
  font: 500 15px/1 var(--ui); color: var(--ink-2); text-decoration: none; position: relative;
}
.catnav a:hover { color: var(--ink); }
.catnav a[aria-current] { color: var(--green); font-weight: 600; }
.catnav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--green); }
.catnav li:first-child a { padding-left: 0; }
.catnav li:first-child a[aria-current]::after { left: 0; }
.catnav a:focus-visible { outline-offset: -3px; } /* the row's overflow clips an outer ring */
/* sideways rows fade at the right edge while more is hidden there (site.js sets .is-more) */
.catnav ul.is-more, .subcats ul.is-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }

/* popovers (contact, account) */
.pop {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; width: 300px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 16px;
}
/* the popovers and the search suggestions open and close like the corner menu (a fade and a small drop); they're shown
   and hidden with [hidden], so display goes through the transition too (allow-discrete) and the first frame is
   @starting-style. A browser without those just shows and hides them at once. */
.pop, .suggest { transform-origin: 100% 0; opacity: 1; transform: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), display var(--t) allow-discrete; }
.pop[hidden], .suggest[hidden] { opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; }
@starting-style { .pop, .suggest { opacity: 0; transform: translateY(-6px) scale(.98); } }
.suggest { transform-origin: 50% 0; }
/* the number never breaks inside («068 559 97 / 00» at 115% text); when number and button don't fit side by side the button drops under it */
.pop__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; min-height: 44px; text-decoration: none; }
.pop__row strong { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pop__row:hover strong { color: var(--green); }
.pop__hours { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14.5px; }
.pop__hours dt { color: var(--ink-3); font-weight: 400; }
.pop__hours dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pop__hours .today { font-weight: 700; color: var(--ink); }
.pop__msg { display: flex; gap: 8px; margin-top: 14px; }
.pop__msg .btn { flex: 1; }
.pop__title { font: 600 15px/1.3 var(--ui); margin-bottom: 4px; }
/* a wholesale buyer's account menu: «Оптовий покупець» under the name */
.pop__note { margin: -2px 0 4px; font-size: 13.5px; color: var(--green); }
.pop__links { display: grid; margin-top: 6px; }
.pop__links a, .pop__links button { display: flex; align-items: center; min-height: 44px; padding: 0 8px; margin: 0 -8px; border-radius: var(--r-sm);
  text-decoration: none; border: 0; background: none; text-align: left; font-size: 15px; }
.pop__links a:hover, .pop__links button:hover { background: var(--paper); }
.pop__sep { height: 1px; background: var(--line); margin: 8px 0; }
.rel { position: relative; }

/* mobile header */
.hdr__m { display: none; }
@media (max-width: 1080px) {
  .hdr__status { display: none; }
}
@media (max-width: 860px) {
  .hdr__row { gap: 12px; }
  .hdr__search, .hdr__phone { display: none; }
  .hdr__m { display: inline-grid; }
  .hdr__row { position: relative; }
  .hdr .rel { position: static; }
  .hdr .pop { right: 0; width: min(340px, 100%); }
  .logo { font-size: 25px; }
  .msearch { display: block; padding: 2px 0 12px; }
  .catnav a { min-height: 46px; font-size: 14.5px; }
}
/* phones: «ОПТ» leaves the header's row (logo and three icons are enough there) and leads the category row instead,
   as a gold-outlined first item; from 861 px it's the pill by the phone and the row doesn't repeat it */
.catnav__opt { display: none; }
/* hidden there, it's still the row's first item: the first category keeps the edge the first item has */
.catnav li.catnav__opt + li a { padding-left: 0; }
.catnav li.catnav__opt + li a[aria-current]::after { left: 0; }
@media (max-width: 860px) {
  .hdr__opt { display: none; }
  .catnav__opt { display: flex; align-items: center; }
  /* the row's 48 px tap target, the pill drawn by its span */
  .catnav li.catnav__opt a { padding: 0 6px 0 0; color: var(--brown); font-weight: 700; letter-spacing: .04em; }
  .catnav__opt span { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border: 1.5px solid var(--brown-2); border-radius: 999px; }
  .catnav__opt a.is-on span { background: var(--brown); border-color: var(--brown); color: var(--card); }
  .catnav li.catnav__opt + li a { padding-left: 6px; }
  .catnav li.catnav__opt + li a[aria-current]::after { left: 6px; }
}
@media (min-width: 861px) { .msearch, .m-only { display: none; } }
.msearch .search { height: 46px; border-radius: 999px; background: var(--card); }

/* ── Footer (common/footer.twig) ──────────────────────────────── */
.ftr { position: relative; margin-top: 96px; padding: 0; border: 0; background: var(--green); color: #e9e3d6; }
.ftr::before { /* finger-joint top edge, like the side of one of their boxes */
  content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
  background: linear-gradient(90deg, var(--green) 50%, transparent 0) 0 0 / 28px 10px repeat-x;
}
.ftr .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr 1.1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
/* seasons (setting sezonhit_season → body.season-<name>): small accents only, the footer itself stays the same all year */
.season-winter .ftr { margin-top: 128px; }
.season-winter .ftr::before { /* a pine-forest edge instead of the finger joint */
  top: -46px; height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='46' viewBox='0 0 260 46' fill='%231e3a2b'%3E%3Cpath d='M0 46V40h260v6z'/%3E%3Cpath d='M22 8l9 13h-5l9 12h-6l9 13H4l9-13H7l9-12h-5z'/%3E%3Cpath d='M64 22l6 8h-3l6 8h-4l6 8H51l6-8h-4l6-8h-3z'/%3E%3Cpath d='M104 0l11 15h-6l11 15h-7l11 16H80l11-16h-7l11-15h-6z'/%3E%3Cpath d='M150 18l7 9h-4l7 9h-4l7 10h-26l7-10h-4l7-9h-4z'/%3E%3Cpath d='M196 6l9 12h-5l9 13h-5l9 15h-34l9-15h-5l9-13h-5z'/%3E%3Cpath d='M238 24l6 7h-3l6 8h-3l6 7h-24l6-7h-3l6-8h-3z'/%3E%3C/svg%3E") repeat-x 0 100% / 260px 46px;
}
.ftr .logo { color: #f6f1e8; }
.ftr .logo b { color: #e0c79a; }
.ftr h3 { font: 600 13px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #d9bf8b; margin: 12px 0 10px; }
.ftr p, .ftr li, .ftr dd, .ftr dt { font-size: 15px; }
.ftr a { color: #f3eee4; text-decoration: none; }
.ftr ul a, .ftr__links a { display: inline-flex; align-items: center; min-height: 44px; line-height: 1.25; padding-block: 6px; } /* two-line links keep their lines apart at every width */
.ftr a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ftr__addr { color: #cfc6b4; margin-top: 12px; line-height: 1.5; }
.ftr__social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ftr__social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .28); font-weight: 500; }
.ftr__social a:hover { background: rgb(255 255 255 / .08); text-decoration: none; }
.ftr__social svg { width: 18px; height: 18px; }
.ftr__phones a { display: inline-flex; align-items: center; min-height: 44px; font: 600 18px/1 var(--ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ftr__hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 8px 0 0; }
.ftr__hours dt { color: #cfc6b4; font-weight: 400; }
.ftr__hours dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ftr__bottom { border-top: 1px solid rgb(255 255 255 / .14); }
.ftr__bottom .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 22px; grid-template-columns: none; }
.ftr__bottom p { font-size: 14px; color: #cfc6b4; }
.ftr__bottom .wrap { align-items: center; }
.ftr__legal p + p { margin-top: 4px; }
.ftr__cards { display: flex; gap: 8px; flex: none; }
.ftr__cards img { display: block; width: 56px; height: 34px; }
@media (max-width: 960px) { .ftr .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  /* the two link lists side by side; brand and contacts full width */
  .ftr .wrap { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-top: 44px; }
  .ftr .wrap > div:first-child, .ftr .wrap > div:last-child { grid-column: 1 / -1; }
  .ftr ul a { font-size: 14.5px; }
  .ftr__bottom .wrap { flex-direction: column; align-items: flex-start; }
}

/* ── Section scaffolding ──────────────────────────────────────── */
.sec { padding-top: 72px; }
.sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 4px 16px; margin-bottom: 24px; }
.sec__head h2 { font-size: clamp(27px, 2.6vw, 36px); }
.sec__head p { color: var(--ink-2); margin-top: 6px; }
.sec__head .more { font-size: 17px; gap: 8px; }
.sec__head .more::after { color: var(--brown); font-size: 19px; }
@media (max-width: 760px) {
  .sec { padding-top: 52px; }
  .sec__head { margin-bottom: 18px; }
  .sec__head .more { font-size: 16px; }
}

/* ── Product card (product/thumb) ─────────────────────────────── */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
/* tablets get 3 a row: 2 stretched the phone layout to cards 360 px wide */
@media (max-width: 960px) { .grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; } }
@media (max-width: 560px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* <article class="card">: a light container with the photo full-bleed on top, then (padded) the name link with its
   facts, the price block, the owners' notes and the button. Nothing nests inside a link but text. */
.card { --card-pad: 12px; position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color var(--t), box-shadow var(--t); }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card__img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-2); position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-zoom) var(--ease); }
.card:hover .card__img img { transform: scale(1.035); }
.card__body { flex: 1; display: flex; flex-direction: column; }
/* name and facts: one link, at least a finger tall */
.card__info { display: grid; gap: 4px; align-content: start; min-height: 44px; padding: 10px var(--card-pad) 0; text-decoration: none; color: inherit; }
.card__info:focus-visible { outline-offset: -3px; border-radius: 12px; }
.card__name { font: 600 16px/1.3 var(--ui); }
.card:hover .card__name, .card__info:focus-visible .card__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card__meta { font-size: 14px; line-height: 1.35; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* the trees' heights */
.card__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.card__chip { padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2);
  font: 500 12.5px/1 var(--ui); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* price first and biggest; the quantity price is a reason to buy here: green, its price bold */
.card__buy { display: grid; gap: 2px; margin-top: auto; padding: 8px var(--card-pad) 0; }
.card__price { font: 700 19px/1.1 var(--ui); font-variant-numeric: tabular-nums; }
.card__price small { font: 500 14px/1 var(--ui); color: var(--ink-2); margin-right: 3px; }
.card__tier { font: 500 14px/1.3 var(--ui); color: var(--green); font-variant-numeric: tabular-nums; }
.card__tier b { font-weight: 700; }
.card__min { font-size: 13.5px; line-height: 1.3; color: var(--ink-2); }
.card__cta { padding: 10px var(--card-pad) var(--card-pad); }
.card__btn { width: 100%; }
/* «У кошик» looks like the other buttons (a calm grid), marked by the bag; filled for a moment once added */
.card__btn--cart svg { width: 18px; height: 18px; }
.card__btn[aria-busy="true"] { cursor: progress; opacity: .75; }
.card__btn.is-added, .card__btn.is-added:hover { background: var(--green); border-color: var(--green); color: var(--card); }
/* over the photo's top: «Під замовлення» on the left; on the right, one under another, «5+1» and the «Мітки» (at most two).
   Where the flag and the widest of them don't fit side by side, they go under the flag, still on the right */
.card__tags { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 5px 6px; pointer-events: none; }
.card__flag { flex: none; background: var(--card); color: var(--ink); font: 600 12.5px/1 var(--ui);
  padding: 7px 10px; border-radius: 999px; box-shadow: 0 2px 8px -2px rgb(0 0 0 / .3); }
/* «Своє фото»: the buyer's own photo on the lid can be had (model extension/sezonhit/card own_photo) */
.card__flag--photo { display: inline-flex; align-items: center; gap: 5px; background: var(--green); color: var(--card); }
.card__flag--photo svg { flex: none; }
.card__badges { display: flex; flex: 0 1 auto; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 0; max-width: 100%; margin-left: auto; }
.card__badges > * { max-width: 100%; box-shadow: 0 2px 8px -2px rgb(0 0 0 / .3); }
/* owners' review mode: one badge per card («Питання 6, 7, 14»), wrapping on narrow cards */
.card__notes { padding: 6px var(--card-pad) 0; }
.card__notes .note-badge { height: auto; min-height: 26px; padding: 5px 9px; line-height: 1.25; }
/* in a listing grid (.grid4.listing) the cards of a row share their tracks (subgrid): photo, name with facts, prices,
   notes and buttons each start on one line across the row, whatever the names' length or what a card lacks */
@supports (grid-template-rows: subgrid) {
  .listing > .card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .listing > .card > .card__body { display: contents; }
  .listing > .card > .card__img { grid-row: 1; }
  .listing > .card .card__info { grid-row: 2; }
  .listing > .card .card__buy { grid-row: 3; margin-top: 0; align-self: start; }
  .listing > .card .card__notes { grid-row: 4; align-self: start; }
  .listing > .card .card__cta { grid-row: 5; align-self: end; }
}
/* narrow cards: phones (2 a row) and small tablets (3 a row up to 680 px are as narrow) */
@media (max-width: 680px) {
  .card { --card-pad: 10px; border-radius: 14px; }
  .card__info { padding-top: 10px; }
  .card__name { font-size: 15px; }
  .card__meta { font-size: 13px; }
  .card__chip { padding: 4px 6px; font-size: 12px; }
  .card__buy { padding-top: 10px; }
  .card__price { font-size: 17.5px; }
  .card__tier { font-size: 13px; }
  .card__min { font-size: 12.5px; }
  .card__cta { padding-top: 12px; }
  .card__btn { padding: 0 6px; font-size: 14px; }
  .card__tags { top: 8px; left: 8px; right: 8px; }
}

/* ── Home: season opener ──────────────────────────────────────── */
.season { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding-top: 40px; }
.season__intro h1 { font-size: clamp(42px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.season__intro h1 em { font-style: italic; font-weight: 500; color: var(--brown); }
.season__lead { font-size: 18px; color: var(--ink-2); margin-top: 18px; max-width: 30em; }
.season__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.season__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 560px; }
.shot { position: relative; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; background: var(--paper-2); min-height: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-zoom) var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot--tall { grid-row: span 2; }
/* the price drops under the name when both don't fit on one line (rather than squeezing the name into three) */
.tag {
  position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px;
  background: rgb(255 252 246 / .95); border-radius: 12px; padding: 12px 14px; box-shadow: 0 6px 20px -10px rgb(0 0 0 / .5);
}
.tag b { font: 600 15px/1.25 var(--ui); }
.tag span { font: 700 16px/1 var(--ui); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag small { font-weight: 500; font-size: 13px; color: var(--ink-2); }
/* small desktops: the photo tiles are about 260 px wide, so the tag gets compact and covers less of the photo */
@media (min-width: 961px) and (max-width: 1200px) {
  .tag { left: 10px; right: 10px; bottom: 10px; padding: 9px 11px; border-radius: 10px; }
  .tag b { font-size: 13.5px; }
  .tag span { font-size: 15px; }
}
@media (max-width: 960px) {
  .season { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .season__grid { height: auto; grid-template-rows: none; }
  .shot--tall { grid-row: auto; grid-column: span 2; aspect-ratio: 4 / 3; }
  .shot:not(.shot--tall) { aspect-ratio: 4 / 5; }
}
@media (max-width: 560px) {
  .season__lead { font-size: 16.5px; }
  .season__grid { gap: 10px; }
  .tag { left: 8px; right: 8px; bottom: 8px; padding: 9px 10px; flex-direction: column; gap: 4px; }
  .tag b { font-size: 13.5px; }
  .tag span { font-size: 15px; }
  .shot--tall .tag { flex-direction: row; }
  /* small tiles: two lines of name at most, or the tag covers half the photo */
  .shot:not(.shot--tall) .tag b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ── Home: trees — price by height ────────────────────────────── */
/* height + row headers stay in the table for screen readers (.sr); each cell shows its own height */
.trees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
.trees__head { display: contents; }
.tree { display: grid; gap: 10px; padding-bottom: 14px; text-decoration: none; }
.tree__img { aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); }
.tree__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform var(--t-zoom) var(--ease); }
.tree:hover .tree__img img { transform: scale(1.03); }
.tree h3 { font: 600 17px/1.25 var(--ui); }
.tree p { font-size: 14px; color: var(--ink-3); }
.trees__row { display: contents; }
.trees__row > .trees__p { position: relative; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); text-decoration: none; isolation: isolate; }
/* hover fill bleeds into the gaps so the text keeps its column edges */
a.trees__p::before { content: ""; position: absolute; inset: 3px -12px 2px; z-index: -1; border-radius: 10px; }
a.trees__p:hover::before { background: var(--card); }
a.trees__p:hover b { color: var(--green); }
.trees__hv { font: 500 14px/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; }
.trees__p b { font: 600 16px/1 var(--ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trees__na b { font-weight: 500; color: var(--ink-3); }
@media (max-width: 760px) {
  .trees { column-gap: 14px; }
  .tree h3 { font-size: 14px; }
  .tree p { display: none; }
  .tree__img { border-radius: var(--r); }
  a.trees__p::before { inset: 3px -6px 2px; }
  .trees__row > .trees__p { gap: 4px; }
  .trees__hv { font-size: 12.5px; }
  .trees__p b { font-size: 14.5px; }
}

/* ── Home: catalog tiles ──────────────────────────────────────── */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat { position: relative; display: flex; align-items: end; min-height: 200px; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; background: var(--paper-2); isolation: isolate; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform var(--t-zoom) var(--ease); }
.cat:hover img { transform: scale(1.04); }
.cat::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(20 16 10 / .78)); z-index: -1; }
.cat span { padding: 16px 18px; font: 600 17px/1.25 var(--ui); color: #fffcf6; }
@media (max-width: 960px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .cat { min-height: 150px; } .cat span { font-size: 15px; padding: 12px 14px; } }

/* ── Home: reviews + social ───────────────────────────────────── */
.revs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 16px; }
.rev { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.rev q { quotes: none; font: italic 400 17px/1.5 var(--serif); }
.rev footer { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-3); }
.rev__mark { width: 28px; height: 20px; color: var(--gold); }
.social { background: var(--green); color: #f3eee4; border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.social h3 { font: 600 22px/1.2 var(--serif); }
.social p { color: #d6cfbf; font-size: 15px; }
.social__btns { display: grid; gap: 10px; margin-top: auto; }
.social__btns a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: var(--r); text-decoration: none; font-weight: 600; }
.social__btns svg { width: 22px; height: 22px; flex: none; }
.social__fb { background: #f6f1e8; color: var(--green); }
.social__ig { border: 1px solid rgb(255 255 255 / .35); color: #f6f1e8; }
.social__btns a:hover { filter: brightness(1.06); }
.social__btns a::after { content: "→"; margin-left: auto; }
.revs__count { font: 600 15px/1.3 var(--ui); color: var(--ink-2); }
@media (max-width: 1080px) { .revs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .revs { grid-template-columns: 1fr; } .rev:nth-child(n+3) { display: none; } }

/* ── Breadcrumbs ──────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; padding-top: 8px; font-size: 14px; color: var(--ink-3); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink-2); padding-right: 2px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* the slash belongs to the item after it (drawn in that item's left padding, outside a link's underline), so it wraps
   with the item and a line never ends on one */
.crumbs > * { position: relative; }
.crumbs > * + * { padding-left: 18px; }
.crumbs > * + *::before { content: "/"; content: "/" / ""; position: absolute; left: 6px; top: 0; bottom: 0; display: flex; align-items: center;
  color: var(--line-2); pointer-events: none; }
@media (max-width: 560px) { .crumbs > :last-child { display: none; } }

/* ── Category page (product/category.twig) ────────────────────── */
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 8px; }
.cat-head h1 { font-size: clamp(30px, 3.4vw, 44px); text-wrap: balance; text-wrap: pretty; }
.cat-head__count { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* subcategories (native "refine search") with the category image */
.subcats { margin-top: 20px; }
.subcats ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px 40px 3px 3px; margin: -3px; }
.subcats ul::-webkit-scrollbar { display: none; }
.subcat {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 5px 18px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); text-decoration: none; white-space: nowrap; font: 500 15.5px/1 var(--ui);
}
.subcat img { width: 42px; height: 42px; flex: none; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.subcat small { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.subcat--all { padding-left: 20px; }
.subcat:hover { border-color: var(--green); }
.subcat[aria-current] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); color: var(--green); font-weight: 600; }
.subcat[aria-current] small { color: var(--green); }

/* size filter (a native filter group) + sort */
.ctools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 22px 0 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.fseg { display: flex; align-items: center; gap: 6px; }
.fseg__lbl { margin-right: 6px; font: 600 14.5px/1 var(--ui); color: var(--ink-2); }
.fseg button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font: 500 14.5px/1 var(--ui); white-space: nowrap; }
.fseg button:hover { border-color: var(--green); color: var(--green); }
.fseg button[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: var(--card); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.sort select {
  min-height: 44px; padding: 0 40px 0 14px; border-radius: var(--r); border: 1px solid var(--line-2); font: 500 15px/1 var(--ui); color: var(--ink); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234e473d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
}
.sort select:hover { border-color: var(--ink-3); }
@media (max-width: 760px) {
  .ctools { margin: 16px 0 20px; padding-top: 14px; gap: 12px; }
  .fseg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  .fseg__lbl { grid-column: 1 / -1; margin: 0 0 2px; }
  .fseg button { padding: 0 6px; font-size: 14px; }
  .sort { width: 100%; }
  .sort select { flex: 1; }
}

/* card: the product's designs sit on its photo; hovering one shows it */
.cgrid { row-gap: 36px; }
.ds { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; }
.card__img .ds img { width: 36px; height: 36px; flex: none; margin-left: -12px; border: 2px solid var(--card); border-radius: 9px; object-fit: cover;
  background: var(--paper-2); box-shadow: 0 2px 8px -2px rgb(0 0 0 / .45); transition: transform var(--t-fast) var(--ease); }
.card__img .ds img:first-child { margin-left: 0; }
.card:hover .card__img .ds img { transform: none; }
.card:hover .card__img .ds img:hover { transform: translateY(-3px); }
.ds b { display: inline-flex; align-items: center; height: 28px; margin-left: 6px; padding: 0 10px; border-radius: 999px; background: rgb(255 252 246 / .95);
  font: 600 13px/1 var(--ui); white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px -2px rgb(0 0 0 / .35); }
/* a search hit by design: that design's name instead of the swatches («Дизайн №57») */
.ds--label { right: 10px; }
.ds--label b { display: block; margin-left: 0; max-width: 100%; line-height: 28px; overflow: hidden; text-overflow: ellipsis; }
.cempty { display: grid; justify-items: start; gap: 14px; padding: 32px 0 8px; font-size: 16px; color: var(--ink-2); }
/* nothing found (search, «not found», the empty cart): what to try, the categories, the phone */
.search-empty { gap: 12px; }
.search-empty > p { max-width: 62ch; }
.search-empty__lead { font: 600 22px/1.3 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.search-empty a:not(.subcat) { color: var(--green); font-weight: 600; text-underline-offset: 3px; }
.search-empty__title { margin-top: 14px; font: 600 13px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.search-empty__call { margin-top: 14px; }
.search-empty__call a { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .search-empty__lead { font-size: 20px; } }
@media (max-width: 960px) { .cgrid { row-gap: 28px; } }
/* narrow cards (as the card block above): two swatches, or «164 дизайни» ran off the photo */
@media (max-width: 680px) {
  .ds { left: 8px; bottom: 8px; }
  .ds--label { right: 8px; }
  .ds--label b { line-height: 26px; }
  .card__img .ds img { width: 30px; height: 30px; margin-left: -10px; border-radius: 8px; }
  .card__img .ds img:nth-child(n+3) { display: none; }
  .ds b { height: 26px; padding: 0 8px; font-size: 12px; }
}

/* sorting sits in the heading row: title and count on the left, the select on the right (no row of its own);
   on phones the title takes the line and the count and the select share the next one */
.cat-head__sort { margin-left: auto; }
/* card containers sit closer than bare photos did */
.listing { margin-top: 28px; gap: 24px 20px; }
/* category chips that wrap instead of scrolling (empty states) */
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
/* pagination (native ocStore markup: ul.pagination > li > a | li.active > span) */
.pager { margin-top: 44px; }
.pager .pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.pager .pagination a, .pager .pagination span {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); text-decoration: none; font: 500 15px/1 var(--ui); font-variant-numeric: tabular-nums;
}
.pager .pagination a:hover { border-color: var(--green); color: var(--green); }
.pager .pagination .active span { background: var(--green); border-color: var(--green); color: var(--card); }
@media (max-width: 760px) {
  .cat-head h1 { flex-basis: 100%; }
  .cat-head__sort { width: auto; }
  .cat-head__sort span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cat-head__sort select { flex: none; }
  .listing { margin-top: 20px; gap: 12px 10px; }
  .pager { margin-top: 32px; }
}

/* header search suggestions, the product part (site.js initSearch; the box itself is in the header section) */
.suggest__item span small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.suggest__item b small { font: 500 13px/1 var(--ui); color: var(--ink-2); }
.suggest .chip small { font-size: 12.5px; color: var(--ink-3); }
.suggest .chip[aria-selected="true"] { border-color: var(--green); color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
/* «Усі результати» stays in view at the box's bottom while the products scroll under it (on a phone the box ends
   above the keyboard, site.js fit()) */
.suggest:has(.suggest__all) { padding-bottom: 0; scroll-padding-bottom: 60px; }
.suggest__all { position: sticky; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 52px; margin: 6px -10px 0;
  border-top: 1px solid var(--line); background: var(--card); font: 600 15px/1.2 var(--ui); color: var(--green); text-decoration: none; }
.suggest__all::after { content: "→"; margin-left: 6px; }
.suggest__all:hover, .suggest__all[aria-selected="true"] { background: var(--paper); }
.suggest__empty + .suggest__cats { padding-top: 2px; }

/* ── Product page (product/product.twig) ──────────────────────── */
.pdp__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; margin-top: 8px; }
.pdp__media { position: sticky; top: calc(var(--hdr-stick) + 20px); }
.gallery { margin: 0; }
.gallery__main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); }
.gallery__main > img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
/* titles (and .cat-head h1, .strip__name): no lone word on the last line («Статуетка-серце з / іменем»). pretty where the
   browser has it: balance alone breaks a compound at its hyphen («Статуетка- / серце з іменем»), pretty moves only the
   last words («Статуетка-серце / з іменем»); balance is the fallback */
.pdp__title { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; text-wrap: balance; } /* compounds kept whole: product.php */
.stock { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.stock__ok { display: inline-flex; align-items: center; gap: 7px; color: #245c3c; font-weight: 600; }
.stock__ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2f7a4b; }
.pdp__price { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; }
.pdp__price strong { font: 700 34px/1 var(--ui); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pdp__price s { color: var(--ink-3); font-size: 18px; font-variant-numeric: tabular-nums; }
.pdp__price span { color: var(--ink-2); font-size: 15px; }
.field { margin-top: 26px; }
.field__label { display: flex; align-items: baseline; gap: 8px; font: 600 15px/1.3 var(--ui); margin-bottom: 10px; }
.field__label em { font-style: normal; font-weight: 500; color: var(--ink-2); }

/* segmented radio buttons (size, mode) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.seg button {
  min-height: 56px; padding: 8px 12px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--card);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; text-align: left;
}
.seg button b { font: 600 15.5px/1.2 var(--ui); }
.seg button small { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.seg button:hover { border-color: var(--ink-3); }
.seg button[aria-checked="true"] { border-color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); background: var(--card); }
.seg--sm button { min-height: 48px; align-items: center; text-align: center; }

/* design swatches */
.swatches { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .swatches { gap: 6px; } }
.swatch { position: relative; aspect-ratio: 3 / 4; padding: 0; border-radius: 10px; overflow: hidden; border: 0; background: var(--paper-2);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch[aria-checked="true"]::after { content: ""; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 5px var(--card); }

/* many designs (custom picker): theme chips, a number field, a dozen square swatches with numbers */
.dpick__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dpick__head .field__label { margin: 0; }
.dpick__num { display: inline-flex; align-items: center; gap: 2px; flex: none; height: 48px; padding: 0 4px 0 12px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--card); font: 600 15px/1 var(--ui); color: var(--ink-3); }
.dpick__num:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgb(30 58 43 / .1); }
.dpick__num input { width: 80px; height: 44px; border: 0; background: none; outline: none; font: 600 16px/1 var(--ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.dpick__num input::placeholder { color: #7a7062; font-weight: 400; }
.themes { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px -3px 7px; }
.themes::-webkit-scrollbar { display: none; }
/* a mouse can't swipe: wider screens wrap the chips (phones keep one row to swipe, with a fade) */
@media (min-width: 861px) { .themes { flex-wrap: wrap; overflow: visible; } }
.themes button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--card); font: 500 14.5px/1 var(--ui); white-space: nowrap; }
.themes button small { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.themes button:hover { border-color: var(--green); }
.themes button[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: var(--card); }
.themes button[aria-pressed="true"] small { color: #d3e3d8; }
.dtiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.swatch--sq { aspect-ratio: 1 / 1; }
.swatch span { position: absolute; left: 4px; top: 4px; min-width: 22px; padding: 3px 5px; border-radius: 6px; background: rgb(255 252 246 / .94);
  font: 700 11.5px/1 var(--ui); color: var(--ink); text-align: center; font-variant-numeric: tabular-nums; }
.swatch[aria-checked="true"] span { background: var(--green); color: var(--card); }
.dtiles__empty { grid-column: 1 / -1; padding: 14px 0; color: var(--ink-2); }
.dpick__all { margin-top: 6px; padding: 0; border: 0; background: none; }
.dpick__next { color: var(--brown); font-weight: 600; }
.modal__tools .themes { flex: 1 1 100%; margin: 0 -3px -3px; }
@media (max-width: 860px) {
  .themes { padding-right: 40px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
}
@media (max-width: 560px) { .dtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* buy row */
.buy { display: flex; gap: 10px; margin-top: 16px; }
.qty { display: inline-flex; align-items: center; height: 52px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--card); flex: none; }
.qty button { width: 46px; height: 100%; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink); border-radius: var(--r); }
.qty button:hover { background: var(--paper); }
.qty button[disabled] { color: var(--ink-3); font-weight: 300; cursor: default; background: none; }
.qty input { width: 52px; height: 100%; border: 0; background: none; text-align: center; font: 600 17px/1 var(--ui); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* «У кошик · 31 500 ₴» on one line where it fits. Where the button is too narrow for that (a narrow phone, a 5-digit sum,
   text at 120%) it stacks «У кошик» over the sum and drops the dot, judged by the button's own width (container query),
   so the sum never starts a line with «·» */
.buy .btn--primary { flex: 1; min-width: 0; min-height: 52px; padding: 0 14px; font-size: 16px; line-height: 1.15; text-align: center; container-type: inline-size; }
.buy__in { display: inline-flex; align-items: baseline; justify-content: center; gap: .3em; white-space: nowrap; }
/* 162 px: one line needs 125 px with «200 ₴», 150 px with «31 500 ₴», 161 px with «131 500 ₴» (16.5 px type) */
@container (max-width: 162px) {
  .buy__in { flex-direction: column; align-items: center; gap: 2px; }
  .buy__dot { display: none; }
}
.buy .btn--primary .num { font-weight: 700; opacity: .92; }
.under-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; }
.under-buy:not(:has(> :not([hidden]))) { display: none; }
.nudge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px dashed var(--brown);
  background: var(--brown-tint); color: var(--brown); font: 600 14.5px/1.2 var(--ui); text-align: left;
}
.nudge:hover { background: #ead9c4; }
.nudge svg { width: 18px; height: 18px; flex: none; }
.incart { font-size: 14px; color: var(--ink-2); }
.incart b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* «Купити в 1 клік» (product.twig, js/contact.js): a quiet button under the buy row that opens a phone form */
.oneclick { margin-top: 12px; container-type: inline-size; }
.oneclick > summary { list-style: none; cursor: pointer; }
.oneclick > summary::-webkit-details-marker { display: none; }
.oneclick[open] > summary { border-color: var(--green); color: var(--green); }
.oneclick__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 10px; padding: 16px; border-radius: var(--r); background: var(--card); border: 1.5px solid var(--green); }
.oneclick__form .full { grid-column: 1 / -1; }
.oneclick__form .ff { margin: 0; align-content: start; }
.oneclick__form .note { margin: 0; max-width: none; }
.oneclick__lead { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.oneclick__small { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.oneclick__small a, .cdlg__small a { color: var(--ink-2); text-underline-offset: 2px; }
.oneclick__ok { margin-top: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--green-tint); color: var(--green); font-weight: 600; line-height: 1.45; }
.oneclick__form[aria-busy="true"] .btn--primary { opacity: .75; cursor: progress; }
/* the phone and the name side by side only where both labels fit on one line (the buy column is narrow on tablets) */
@container (max-width: 440px) { .oneclick__form { grid-template-columns: minmax(0, 1fr); padding: 14px; } }
.inp { display: grid; gap: 6px; }
.inp span { font: 600 14px/1.2 var(--ui); }
.inp span em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.inp input, .inp textarea, .inp select { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--card); font-size: 16px; }
.inp input:focus, .inp textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgb(30 58 43 / .1); }
.inp input[aria-invalid="true"] { border-color: var(--warn); }
.inp .err { color: var(--warn); font-size: 13.5px; }

/* about: description, then specs (stacked, never side by side) */
.about { max-width: 780px; margin-top: 72px; }
.about h2 { font-size: clamp(25px, 2.4vw, 32px); margin-bottom: 14px; }
.about h2:not(:first-child) { margin-top: 44px; }
.about p + p { margin-top: 12px; }
.about p { color: var(--ink-2); font-size: 16.5px; }
.about ul.ticks { margin-top: 14px; display: grid; gap: 8px; }
.about ul.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.about ul.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 2px; background: var(--gold); }
.specs { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; margin: 0; border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-3); }
.specs dd { font-weight: 500; }

/* tablets: two columns, the photo beside the title, price and choices (one column put the title under a 768 px photo).
   The photo stays in view below the header, which holds the search row up to 860 px. */
@media (min-width: 721px) and (max-width: 960px) {
  .pdp__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
}
@media (min-width: 721px) and (max-width: 860px) { .pdp__media { top: calc(var(--hdr-stick) + 16px); } }
/* landscape phones: under a sticky header the photo had ~225 px and hid its thumbnails */
@media (min-width: 721px) and (max-width: 960px) and (max-height: 720px) { .pdp__media { position: static; } }
@media (max-width: 720px) {
  .pdp__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pdp__media { position: static; }
  .gallery__main { aspect-ratio: 1 / 1; margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
  .gallery figcaption { margin-top: 8px; }
}
@media (max-width: 560px) {
  .pdp__price strong { font-size: 30px; }
  .about { margin-top: 52px; }
  .specs { grid-template-columns: 1fr 1.3fr; }
  .oneclick__form { grid-template-columns: 1fr; }
}

/* ── Personalised products (the plate preview): product-product.css ── */

/* ── Modal & drawer shell ─────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgb(24 20 14 / .45); opacity: 0; transition: opacity var(--t) var(--ease); }
.scrim.is-on { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(460px, 100%); background: var(--paper);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--t) var(--ease); box-shadow: var(--shadow-lg);
}
.drawer.is-on { transform: none; }
.drawer__head, .modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); background: var(--card); }
.drawer__head h2, .modal__head h2 { font: 600 22px/1.2 var(--serif); }
.drawer__body { flex: 1; overflow: auto; padding: 8px 22px 22px; }
.drawer__foot { padding: 16px 22px 20px; border-top: 1px solid var(--line); background: var(--card); display: grid; gap: 12px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.drawer__total b { font: 700 24px/1 var(--ui); color: var(--ink); font-variant-numeric: tabular-nums; }
.empty { padding: 40px 0; text-align: center; color: var(--ink-2); display: grid; gap: 14px; justify-items: center; }

.modal {
  position: fixed; z-index: 90; left: 50%; top: 50%; width: min(1040px, calc(100% - 48px)); height: min(820px, calc(100% - 48px));
  transform: translate(-50%, -48%); opacity: 0; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); background: var(--paper); border-radius: var(--r-lg);
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg);
}
.modal.is-on { transform: translate(-50%, -50%); opacity: 1; }
.modal__head small { display: block; font: 400 14px/1.3 var(--ui); color: var(--ink-2); margin-top: 3px; }
.modal__tools { display: flex; gap: 10px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.modal__tools .search { flex: 1 1 260px; height: 46px; }
.modal__body { flex: 1; overflow: auto; padding: 18px 22px 22px; }
.modal__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--card); }
.modal__foot .sum { font-size: 15px; color: var(--ink-2); }
.modal__foot .sum b { color: var(--ink); font: 700 20px/1 var(--ui); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .modal { width: 100%; height: 100%; border-radius: 0; top: 0; left: 0; transform: translateY(24px); }
  .modal.is-on { transform: none; }
  .modal__tools, .modal__body, .modal__foot { padding-left: 16px; padding-right: 16px; }
  .drawer__body, .drawer__foot { padding-left: 16px; padding-right: 16px; }
}
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 500; font-size: 14.5px; }
.toggle[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: var(--card); }

/* design picker grid */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); gap: 12px; }
.dtile { position: relative; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1.5px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.dtile__pick { padding: 0; border: 0; background: none; display: block; position: relative; }
.dtile__pick img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--paper-2); }
.dtile__no { position: absolute; left: 6px; top: 6px; padding: 4px 7px; border-radius: 7px; background: rgb(255 252 246 / .94); font: 700 12.5px/1 var(--ui); font-variant-numeric: tabular-nums; }
.dtile__add { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--card); display: grid; place-items: center; font-size: 22px; line-height: 1; box-shadow: 0 4px 10px -4px rgb(0 0 0 / .5); }
.dtile .qty { height: 45px; border: 0; border-top: 1px solid var(--line); border-radius: 0; width: 100%; justify-content: space-between; }
.dtile .qty input { flex: 1; width: auto; min-width: 0; }
.dtile .qty button { width: 44px; }
.dtile.is-on { border-color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.dtile.is-on .dtile__no { background: var(--green); color: var(--card); }
.dtile__name { padding: 8px 10px 0; font-size: 13.5px; font-weight: 500; line-height: 1.25; }
.dgrid__empty { padding: 30px 0; color: var(--ink-2); }
@media (max-width: 560px) {
  /* 3 across on a phone: −/+ fill the row; the typed quantity becomes a badge on the photo once a design is picked */
  .dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dtile .qty button { flex: 1 1 0; width: auto; }
  .dtile .qty input { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; flex: none; border-radius: 12px;
    background: var(--green); color: var(--card); font-size: 15px; box-shadow: 0 4px 10px -4px rgb(0 0 0 / .5); }
  .dtile:not(.is-on) .qty input { display: none; }
  .dtile__add { display: none; }
  .dtile__no { font-size: 12px; padding: 4px 6px; }
}

/* cart groups (checkout/cart + mini cart) */
.cgroup { padding: 18px 0; border-bottom: 1px solid var(--line); }
.cgroup__top { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; }
.cgroup__top img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cgroup__name { display: inline-flex; align-items: center; min-height: 44px; font: 600 15.5px/1.3 var(--ui); text-decoration: none; }
a.cgroup__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cgroup__math { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cgroup__sum { font: 700 17px/1 var(--ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cgroup__sum s { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); text-align: right; margin-top: 4px; }
.tierstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 12px 0 4px 78px; }
.tierstrip span { padding: 7px 8px; border-radius: 8px; background: var(--paper-2); font: 500 12.5px/1.2 var(--ui); color: var(--ink-2); text-align: center; font-variant-numeric: tabular-nums; }
.tierstrip span.is-on { background: var(--green); color: var(--card); font-weight: 600; }
.clines { margin: 8px 0 0 78px; display: grid; }
.cline { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; min-height: 52px; border-top: 1px dashed var(--line); }
.cline img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.cline__t { font-size: 14px; line-height: 1.3; min-width: 0; }
.cline__t small { display: block; color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cline .qty { height: 46px; border-width: 1px; }
.cline .qty button { width: 44px; font-size: 18px; }
.cline .qty input { width: 44px; font-size: 15px; }
.cline__rm { border: 0; background: none; color: var(--ink-3); font-size: 13.5px; min-height: 44px; padding: 0 4px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .tierstrip, .clines { margin-left: 0; } }

/* ── Toast ────────────────────────────────────────────────────── */
.toast { --toast-lift: 0px; --toast-y: 20px; position: fixed; left: 50%; bottom: 24px; z-index: 120; width: max-content; opacity: 0; pointer-events: none;
  transform: translate(-50%, calc(var(--toast-y) - var(--toast-lift)));
  background: var(--ink); color: #fbf7ef; padding: 13px 18px; border-radius: 12px; font-size: 15px; max-width: min(520px, calc(100% - 32px)); text-align: center;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); box-shadow: var(--shadow-lg); }
/* the lift (--toast-lift) clears the product page's buy bar on phones: a transform, so the bar arriving moves it
   smoothly instead of jumping its `bottom` */
.toast.is-on { --toast-y: 0px; opacity: 1; }
/* with a link to the cart (after an add: product page, cards) */
.toast--link.is-on { pointer-events: auto; }
.toast--link { display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 18px; text-align: left; }
.toast__link { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 16px; border-radius: 9px;
  background: rgb(251 247 239 / .14); color: #fbf7ef; font-weight: 600; text-decoration: none; white-space: nowrap; }
.toast__link:hover, .toast__link:focus { background: rgb(251 247 239 / .24); color: #fbf7ef; text-decoration: none; }
.toast :focus-visible { outline-color: #fbf7ef; }
@media (max-width: 560px) {
  .toast--link { left: 16px; right: 16px; width: auto; max-width: none; transform: translate(0, calc(var(--toast-y) - var(--toast-lift))); }
}

/* ── Corner contact button (common/footer.twig, js/contact.js) ─────
   One round button in the corner; its menu opens above it. It moves up over the product page's buy bar (a transform,
   so nothing reflows); it steps aside (.is-away) while the checkout's or the cart's button, or the product page's buy
   row, passes under it, and on phones while a toast shows. Above the header and the buy bar, under dialogs and the
   toast. On wider screens it has the size and place of Tawk's own round button (60 px, 24 px from the right, 20 px
   up), which takes the corner while the chat is open, so the swap doesn't jump; on phones Tawk's chat is full screen. */
.fab { --fab: 60px; --fab-gap: 20px; --fab-side: 24px; --fab-lift: 0px; position: fixed; right: calc(var(--fab-side) + env(safe-area-inset-right));
  bottom: calc(var(--fab-gap) + env(safe-area-inset-bottom)); z-index: 50; width: var(--fab); height: var(--fab);
  transform: translateY(calc(-1 * var(--fab-lift))); transition: transform var(--t) var(--ease); pointer-events: none; }
.fab > * { pointer-events: auto; }
.fab__btn { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%;
  background: var(--green); color: var(--card); box-shadow: 0 2px 6px rgb(30 25 15 / .2), 0 12px 28px -12px rgb(30 25 15 / .6);
  transition: background-color var(--t-fast), transform var(--t) var(--ease), opacity var(--t) var(--ease); }
.fab__btn:hover { background: var(--green-2); }
.fab__btn:active { transform: scale(.96); }
/* a ring of the header's gold: the button belongs to the shop, not to a messenger */
.fab__btn::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(224 199 154 / .55); pointer-events: none; }
/* a paper-coloured gap inside the green ring, so the ring shows over the footer too */
.fab__btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 50%;
  box-shadow: 0 0 0 3px var(--paper), 0 2px 6px rgb(30 25 15 / .2), 0 12px 28px -12px rgb(30 25 15 / .6); }
.fab__ico { grid-area: 1 / 1; width: 26px; height: 26px; transition: opacity var(--t-fast) var(--ease), transform var(--t) var(--ease); }
.fab__ico--close { opacity: 0; transform: rotate(-45deg) scale(.8); }
.fab.is-open .fab__ico--open { opacity: 0; transform: rotate(45deg) scale(.8); }
.fab.is-open .fab__ico--close { opacity: 1; transform: none; }
.fab.is-away .fab__btn { opacity: 0; transform: translateY(calc(100% + var(--fab-gap))); pointer-events: none; }
/* the chat window is open: Tawk's own takes the corner */
.fab.is-chat { visibility: hidden; }

.fab__menu { position: absolute; right: 0; bottom: calc(100% + 12px); width: 300px; max-height: calc(100vh - var(--fab) - 2 * var(--fab-gap) - 24px - var(--fab-lift));
  overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-lg); transform-origin: calc(100% - var(--fab) / 2) 100%; opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.fab.is-open .fab__menu { opacity: 1; transform: none; }
.fab__head { padding: 8px 10px 6px; }
.fab__title { font: 600 16px/1.3 var(--ui); }
.fab__status { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13.5px; line-height: 1.3; color: var(--ink-3); }
.fab__status:empty { display: none; }
.fab__list { display: grid; gap: 2px; }
.fab__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 6px 10px; border: 0; border-radius: var(--r);
  background: none; color: var(--ink); text-align: left; text-decoration: none; }
.fab__item:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.fab__item:focus-visible { outline-offset: -3px; border-radius: var(--r); }
/* our own two (the chat, the callback) under the messengers, after a line */
.fab__list li:has(> a) + li:has(> button) { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.fab__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--green-tint); color: var(--green); }
.fab__icon svg { width: 22px; height: 22px; }
.fab__text { display: grid; gap: 1px; min-width: 0; }
.fab__text b { font: 600 15.5px/1.25 var(--ui); }
.fab__text small { font-size: 13.5px; line-height: 1.3; color: var(--ink-3); overflow-wrap: anywhere; }
.fab__item[aria-busy="true"] { cursor: progress; }
.fab__item[aria-disabled="true"] .fab__icon { background: var(--paper-2); color: var(--ink-3); }
.fab__item[aria-disabled="true"] small { color: var(--warn); }

/* the product page's buy bar (phones): the button rides above it. Where a toast spans the screen (phones), the button
   steps aside while it shows: a toast of two or three lines would cover any fixed lift. */
.pdp-has-bar .fab { --fab-lift: 72px; }
@media (max-width: 680px) {
  .fab { --fab: 56px; --fab-gap: 16px; --fab-side: 16px; }
  .fab__menu { width: min(320px, calc(100vw - 32px)); }
  body:has(.toast.is-on) .fab:not(.is-open) .fab__btn { opacity: 0; transform: translateY(calc(100% + var(--fab-gap) + var(--fab-lift))); pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fab, .fab__btn, .fab__ico, .fab__menu { transition: opacity .12s linear; }
  .fab__menu, .fab.is-away .fab__btn, body:has(.toast.is-on) .fab:not(.is-open) .fab__btn, .fab__ico--close, .fab.is-open .fab__ico--open { transform: none; }
}
@media print { .fab, .cdlg { display: none !important; } }

/* «Замовити дзвінок»: a small dialog (native <dialog>, so the page behind is out of reach while it's open) */
.cdlg { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--paper);
  color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; opacity: 0; transform: translateY(12px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.cdlg.is-on { opacity: 1; transform: none; }
.cdlg::backdrop { background: rgb(24 20 14 / .45); opacity: 0; transition: opacity var(--t) var(--ease); }
.cdlg.is-on::backdrop { opacity: 1; }
.cdlg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 10px 12px 22px; border-bottom: 1px solid var(--line); background: var(--card); }
.cdlg__head h2 { font: 600 22px/1.2 var(--serif); }
.cdlg__body { padding: 18px 22px 22px; }
.cdlg__body .note { margin: 0 0 16px; }
.cdlg__lead { margin-bottom: 18px; color: var(--ink-2); }
.cdlg__when { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.cdlg__when:empty { display: none; }
.cdlg__small { margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.cdlg__alt { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.cdlg__alt a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; font-weight: 600; color: var(--green); text-underline-offset: 3px; white-space: nowrap; }
.cdlg__body[aria-busy="true"] .btn--primary { opacity: .75; cursor: progress; }
.cdlg__done { display: grid; justify-items: center; gap: 14px; padding-top: 26px; text-align: center; }
.cdlg__done .done__mark { width: 52px; height: 52px; }
.cdlg__msg { font-size: 17px; line-height: 1.45; }
@media (max-width: 560px) {
  /* near the top on phones, so the keyboard doesn't cover the field */
  .cdlg { margin-top: max(16px, 6vh); }
  .cdlg__head { padding-left: 16px; }
  .cdlg__body { padding: 16px 16px 20px; }
}
@media (prefers-reduced-motion: reduce) { .cdlg { transform: none; transition: opacity .12s linear; } .cdlg::backdrop { opacity: 1; transition: none; } }

/* ── Short screens: a phone on its side (any window under 500 px tall) ─────────────────────────
   The buy bar (69 px) and a sticky gallery leave too little of a 360 px screen; the design picker kept 40–76 px for its
   grid between its head and its «Готово», which went off screen; the corner menu ran past the top and hid «Замовити
   дзвінок». So here: the gallery scrolls with the page; the picker is one scrolling sheet with its title and its «Готово»
   stuck to the edges; the corner menu opens beside its button in two columns. Portrait phones and desktops are over
   500 px tall and don't see any of this. */
@media (max-height: 500px) {
  .pdp__media { position: static; }
  .modal { overflow-y: auto; overscroll-behavior: contain; }
  .modal > * { flex-shrink: 0; }
  .modal__head { position: sticky; top: 0; z-index: 2; padding-top: 8px; padding-bottom: 8px; }
  .modal__head small { display: none; }
  .modal__body { flex: none; overflow: visible; }
  .modal__foot { position: sticky; bottom: 0; z-index: 2; padding-top: 8px; padding-bottom: 8px; }
  .fab__menu { right: calc(100% + 12px); bottom: 0; width: min(520px, calc(100vw - var(--fab-gap) - var(--fab-side) - var(--fab) - 28px));
    max-height: calc(100vh - var(--fab-gap) - var(--fab-lift) - 12px); transform-origin: 100% 100%; }
  .fab__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fab__list li:has(> a) + li:has(> button) { margin-top: 0; padding-top: 0; border-top: 0; }
  .fab__item { min-height: 48px; }
}

/* ── Reduced motion ───────────────────────────────────────────────
   Nothing slides, zooms or drifts: dialogs, menus and the toast only fade, quickly; photos don't zoom slowly; arrows
   don't nudge. The corner menu and the callback dialog have their own above (.fab, .cdlg); the home, category, product,
   checkout and account pages theirs in their files; smooth scrolling asks SH.smooth() (site.js). */
@media (prefers-reduced-motion: reduce) {
  .scrim, .modal, .toast { transition: opacity .12s linear; }
  .modal, .modal.is-on { transform: translate(-50%, -50%); }
  .toast { --toast-y: 0px; }
  .pop, .suggest { transition: opacity .12s linear, display .12s allow-discrete; }
  .pop[hidden], .suggest[hidden] { transform: none; }
  @starting-style { .pop, .suggest { transform: none; } }
  .card__img img, .card__img .ds img, .shot img, .tree__img img, .cat img, .more::after { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 760px) { .modal, .modal.is-on { transform: none; } }

/* a field only bots fill (the contact forms' honeypot) */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Review mode for the owners (setting sezonhit_review; off in production) ─────────────── */
/* yellow = the mock's placeholder colour: «something for you to confirm» */
/* above the sticky header (40), so the season dropdown opens over it */
.review-bar { position: relative; z-index: 45; background: var(--ph); color: var(--ph-ink); font-size: 14px; }
.review-bar .wrap { display: flex; align-items: center; gap: 4px 20px; min-height: 44px; }
.review-bar__mode { flex: 1 1 auto; min-width: 0; }
.review-bar__q { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ph-ink); white-space: nowrap; }
/* the season preview switcher: the season the page shows; the others in a dropdown */
.review-bar__season { position: relative; flex: none; }
.review-bar__season summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; list-style: none; cursor: pointer; white-space: nowrap; }
.review-bar__season summary::-webkit-details-marker { display: none; }
.review-bar__season summary::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.review-bar__season[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.review-bar__season ul { position: absolute; right: 0; top: 100%; min-width: 220px; padding: 6px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-lg); }
.review-bar__season li a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); font-weight: 600; color: var(--ink); text-decoration: none; }
.review-bar__season li a:hover { background: var(--paper-2); }
@media (max-width: 960px) { .review-bar__mode > span { display: none; } }
@media (max-width: 560px) {
  .review-bar .wrap { gap: 4px 14px; }
  .review-bar__season ul { right: auto; left: 0; }
}
/* small phones: the yellow bar says «review mode» on its own; the season and the questions get the row */
@media (max-width: 420px) { .review-bar__mode { display: none; } .review-bar__season { margin-right: auto; } }
.card__notes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.note-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--ph); color: var(--ph-ink);
  font: 700 12.5px/1 var(--ui); }

/* ── «Акція N+1» (model extension/sezonhit/promo) ─────────────── */
/* the badge: on a card's photo (variants a and b, beside the «Під замовлення» flag), after a strip's name, in the notes,
   the strip and the cart */
.promo-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; height: 26px; padding: 0 9px;
  border-radius: 999px; background: var(--brown); color: var(--card); font: 700 13px/1 var(--ui); letter-spacing: .02em; white-space: nowrap; }
.strip__name .promo-badge { margin-left: 6px; vertical-align: 3px; }
/* the product page's note over the buy row, and variant b's banner on a category page: the badge, then the rule */
.promo-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r);
  background: var(--brown-tint); color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.promo-note p { margin: 0; }
.promo-note b { display: block; }
.promo-note__more { display: block; margin-top: 4px; color: var(--ink-2); }
.promo-note--banner { margin-top: 20px; padding: 14px 18px; font-size: 15px; }
/* variant c: a strip above the header on every page; it scrolls away and the header sticks as usual */
.promo-bar { background: var(--brown); color: var(--card); font-size: 14px; line-height: 1.35; }
.promo-bar .wrap { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.promo-bar p { margin: 0; }
.promo-bar .promo-badge { height: 24px; background: var(--card); color: var(--brown); }
@media (max-width: 560px) { .promo-bar__more { display: none; } }

/* ── «Мітки» (model extension/sezonhit/flare): the owners' labels on cards (.card__badges), after a strip's name and by
   the product page's price. The colours the owners pick from (\Sezonhit\Flare::COLOURS), every text 4.5:1 at least on
   its ground. A long one wraps on a narrow card rather than running off it ── */
.flare { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 5px 9px; border-radius: 13px;
  font: 700 12.5px/1.15 var(--ui); letter-spacing: .01em; text-align: center; overflow-wrap: break-word; }
/* two classes: a place's own colour for its text (.pdp__price span) never wins over the label's */
.flare.flare--green { background: var(--green); color: var(--card); }
.flare.flare--brown { background: var(--brown); color: var(--card); }
.flare.flare--gold { background: var(--gold); color: var(--ink); }
.flare.flare--warn { background: var(--warn); color: var(--card); }
.flare.flare--green-tint { background: var(--green-tint); color: var(--green); }
.flare.flare--brown-tint { background: var(--brown-tint); color: var(--brown); }
/* narrow cards (two a row): smaller, so «Безкоштовна доставка» stays on one line on a 390 px phone */
@media (max-width: 680px) { .card__badges { gap: 4px; } .card__badges .flare { min-height: 24px; padding: 4px 7px; font-size: 11.5px; letter-spacing: 0; } }
/* a page's questions: <aside class="review-note"><h2>…</h2><ol><li id="…"><b>N</b><div><strong>title</strong><p>text</p></div></li></ol></aside> */
.review-note { margin: 24px 0 0; padding: 16px 18px; border-radius: var(--r-lg); background: #fff6c8; border: 1px solid #ecd77a; color: var(--ph-ink); }
.review-note h2 { font: 700 15px/1.3 var(--ui); margin: 0 0 8px; letter-spacing: 0; }
.review-note ol { display: grid; gap: 12px; }
.review-note li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.review-note li > b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ph); font-size: 14px; }
.review-note strong { display: block; font-size: 15px; }
.review-note p { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: #3d3410; }
.review-note a { color: inherit; font-weight: 600; }
