/* Stem & Story — бутік квітів, Вінніпег.
   Макет: кремове «полотно» з тонкими лініями, великий серифний заголовок з рукописними літерами,
   темні фото як вітрина. Палітра й шрифти взяті з референсу Flow&Go (Behance). */
:root {
  --cream: #F3F1EA;      /* основне тло */
  --paper: #FBFAF6;      /* поверхні: модалки, поля */
  --ink: #0C222C;        /* текст, кнопки */
  --ink-soft: #4E5F66;   /* другорядний текст */
  --coral: #E94D37;      /* акцент для великого тексту */
  --coral-ink: #C2371F;  /* акцент для дрібного тексту (контраст AA) */
  --blush: #F1D0C6;      /* смуги, підкладки */
  --teal: #0B7F72;       /* стара ціна, підказки */
  --line: rgba(12, 34, 44, .16);
  --line-coral: rgba(233, 77, 55, .55);
  --photo: #121314;      /* підкладка під темні фото */

  --f-display: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-script: 'Gwendolyn', 'Snell Roundhand', 'Segoe Script', cursive;
  --f-body: 'Gothic A1', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Типографіка ---------- */
.script { font-family: var(--f-script); font-weight: 400; font-style: normal; letter-spacing: 0; text-transform: none; }
.h-section {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -.01em;
}
.h-section .script { font-size: 1.12em; line-height: .8; }
.h-split { display: flex; align-items: baseline; gap: clamp(12px, 2vw, 28px); flex-wrap: wrap; }
.h-split .rule { flex: 0 1 140px; height: 1px; background: currentColor; align-self: center; min-width: 40px; }
.lead-caps {
  font-family: var(--f-body);
  text-transform: uppercase;
  color: var(--coral-ink);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: .02em;
  font-weight: 400;
  margin: 0;
  max-width: 34ch;
}
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.muted { color: var(--ink-soft); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 28px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--cream);
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--sm { min-height: 36px; padding: 0 18px; font-size: .74rem; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: .85rem; }

.arrows { display: flex; gap: 6px; }
.arrow {
  width: 64px; height: 36px; background: none; border: 0; padding: 0; color: var(--coral);
  display: grid; place-items: center;
}
.arrow svg { width: 64px; height: 36px; }
.arrow:hover { color: var(--ink); }
.arrow:disabled { opacity: .3; cursor: default; }

/* ---------- Смуга оголошення та шапка ---------- */
.notice {
  background: var(--ink); color: var(--cream);
  font-size: .78rem; letter-spacing: .04em; text-align: center;
  padding: 8px var(--gutter);
}
.notice b { font-weight: 500; color: var(--blush); }

.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-in {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.logo {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--ink); padding: 8px 16px;
  text-decoration: none;
  font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  white-space: nowrap;
}
.logo svg { width: 22px; height: 22px; color: var(--ink); }
.logo .amp { font-family: var(--f-script); font-size: 1.5em; letter-spacing: 0; text-transform: none; line-height: 0; color: var(--coral); margin: 0 1px; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav a { text-decoration: none; font-size: .85rem; position: relative; padding-block: 6px; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--coral); transition: right .25s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.tools { justify-self: end; display: flex; align-items: center; gap: 4px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 0; padding: 0; text-decoration: none;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .count {
  position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--coral); color: #fff; font-size: .65rem; line-height: 17px; text-align: center;
}
.tools .btn { margin-left: 10px; }
.burger { display: none; }

@media (max-width: 960px) {
  .header-in { grid-template-columns: auto 1fr auto; }
  .nav, .tools .btn { display: none; }
  .burger { display: grid; }
  .logo { justify-self: center; padding: 6px 12px; font-size: .9rem; }
}
@media (max-width: 420px) {
  .logo .word { letter-spacing: .1em; }
  .tools .icon-btn[data-open-fav] { display: none; }
}

/* мобільне меню */
.menu-dialog {
  margin: 0; border: 0; padding: 0; width: min(360px, 88vw); height: 100%; max-height: none;
  background: var(--cream); color: var(--ink);
}
.menu-dialog::backdrop { background: rgba(12, 34, 44, .45); }
.menu-in { padding: 64px 24px 24px; display: grid; gap: 28px; position: relative; }
.menu-in nav { display: grid; gap: 6px; }
.menu-in nav a { font-family: var(--f-display); font-size: 2rem; text-decoration: none; border-bottom: 1px solid var(--line); padding-block: 6px; }

/* ---------- Декор: лінійні троянди ---------- */
.lineart { position: absolute; pointer-events: none; color: var(--coral); opacity: .28; }
.lineart svg { width: 100%; height: 100%; }

/* ---------- HERO ---------- */
.hero { position: relative; padding-block: clamp(32px, 6vw, 72px) clamp(40px, 6vw, 80px); overflow: hidden; }
.hero .lineart { right: -40px; top: 40px; width: 260px; height: 520px; }
.hero-title {
  margin: 0;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.3rem, 9.4vw, 8.6rem);
  line-height: .98;
  text-transform: uppercase;
  color: var(--coral);
  letter-spacing: -.005em;
  position: relative;
}
.hero-title .line { display: flex; align-items: center; gap: .18em; }
.hero-title .line-1 { justify-content: space-between; }
.hero-title .line-3 { justify-content: center; padding-left: 1.4em; }
.hero-title .rule { flex: 1; height: 1px; background: var(--coral); margin-inline: .2em; }
.cap { font-family: var(--f-script); text-transform: none; font-size: 1.08em; line-height: .7; display: inline-block; margin-right: -.04em; }
.hero-pics { display: flex; gap: .08em; flex: 1; justify-content: flex-end; }
.hero-pics img {
  height: .78em; width: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--photo);
  flex: 0 1 auto; min-width: 0;
}
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px;
  margin-top: clamp(20px, 3vw, 36px);
}
.hero-foot p { margin: 0; max-width: 36ch; font-size: .9rem; color: var(--ink-soft); }
.hero-foot .btn { min-width: 200px; }

@media (max-width: 720px) {
  .hero-title .line-3 { justify-content: flex-start; padding-left: 0; }
  .hero-title .line-2 { flex-wrap: wrap; }
  .hero-pics { flex: 1 1 100%; justify-content: flex-start; gap: 8px; margin-block: 10px 6px; }
  .hero-pics img { height: auto; width: calc(50% - 4px); }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-foot .btn { justify-self: start; }
  .hero .lineart { display: none; }
}

/* ---------- Історія ---------- */
.story { position: relative; padding-block: clamp(48px, 8vw, 110px); }
.story .h-section { margin-bottom: clamp(28px, 4vw, 56px); }
.story-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px;
  position: relative;
}
.story-photo { grid-column: 1 / span 4; grid-row: 1 / span 3; background: var(--photo); }
.story-photo img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.story .lead-caps { grid-column: 4 / span 7; grid-row: 1; z-index: 1; padding-top: 48px; max-width: none; font-size: clamp(1.05rem, 1.9vw, 1.55rem); }
.story-text { grid-column: 5 / span 4; grid-row: 2; font-size: .92rem; }
.story-text p { margin: 0 0 12px; max-width: 46ch; }
.story-aside { grid-column: 9 / span 4; grid-row: 2 / span 2; display: grid; align-content: start; gap: 20px; }
.story-aside > p { margin: 0; font-size: .9rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { border-bottom: 1px solid var(--line-coral); padding: 12px 0 8px; font-size: .9rem; }
.story .lineart { left: 36%; bottom: -40px; width: 200px; height: 400px; opacity: .2; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr 1fr; }
  .story-photo { grid-column: 1; grid-row: 1 / span 2; }
  .story-photo img { min-height: 320px; }
  .story .lead-caps { grid-column: 2; grid-row: 1; padding-top: 0; }
  .story-text { grid-column: 2; grid-row: 2; }
  .story-aside { grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 560px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-photo, .story .lead-caps, .story-text, .story-aside { grid-column: 1; grid-row: auto; }
  .story-photo img { min-height: 0; aspect-ratio: 4 / 5; }
}

/* ---------- Картки товарів ---------- */
.card { position: relative; display: grid; gap: 8px; min-width: 0; }
.card-media {
  position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--photo);
  border: 0; padding: 0; width: 100%;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .quick {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px;
  background: rgba(12, 34, 44, .82); color: var(--cream); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  transform: translateY(100%); transition: transform .25s;
}
.card:hover .quick, .card-media:focus-visible .quick { transform: none; }
@media (hover: none) { .card-media .quick { display: none; } }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--cream); border: 1px solid var(--ink); padding: 2px 8px;
  font-size: .72rem; letter-spacing: .04em;
}
.badge--new { background: var(--blush); border-color: var(--blush); }
.fav {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 0; color: #fff;
}
.fav svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.fav[aria-pressed="true"] { --fill: currentColor; }
.fav[aria-pressed="true"] { color: var(--coral); }
.card-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.price { font-family: var(--f-display); font-size: 1.45rem; line-height: 1; margin: 0; font-weight: 500; font-variant-numeric: lining-nums; }
.price s { font-family: var(--f-body); font-size: .72rem; color: var(--teal); vertical-align: super; margin-left: 4px; font-weight: 400; }
.price .from { font-family: var(--f-body); font-size: .7rem; color: var(--ink-soft); margin-right: 3px; font-weight: 400; vertical-align: middle; }
.add {
  width: 34px; height: 34px; background: none; border: 0; padding: 0; display: grid; place-items: center;
  transition: transform .2s, color .2s;
}
.add svg { width: 18px; height: 18px; }
.add:hover { color: var(--coral); transform: rotate(90deg); }
.card-name { margin: 0; font-family: var(--f-body); font-size: .86rem; font-weight: 400; }
.card-meta { margin: -6px 0 0; font-size: .74rem; color: var(--ink-soft); }

/* ---------- Каруселі ---------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23%, 290px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 560px) { .rail { grid-auto-columns: 72%; gap: 14px; } }

.featured { padding-block: clamp(40px, 6vw, 80px); }
.featured-head { display: grid; gap: 18px; margin-bottom: 28px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  background: none; border: 1px solid var(--line); padding: 6px 14px; font-size: .8rem;
}
.tab[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.featured-foot { display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 28px; }

/* ---------- Підписка ---------- */
.subs { padding-block: clamp(48px, 7vw, 96px); position: relative; }
.subs-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.subs-photo { background: var(--photo); position: sticky; top: calc(var(--header-h) + 24px); }
.subs-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.subs-body { display: grid; gap: 24px; }
.subs-body .h-split .rule { flex-basis: 100px; }
.subs-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.plans { border-top: 1px solid var(--ink); }
.plan { border-bottom: 1px solid var(--ink); }
.plan summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto 28px; align-items: baseline; gap: 16px;
  padding: 18px 0;
}
.plan summary::-webkit-details-marker { display: none; }
.plan-name { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; }
.plan-price { font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }
.plan-price b { font-family: var(--f-display); font-size: 1.35rem; color: var(--ink); font-weight: 500; }
.plan .plus { width: 22px; height: 22px; transition: transform .25s; align-self: center; }
.plan[open] .plus { transform: rotate(45deg); color: var(--coral); }
.plan-body { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 0 0 22px; align-items: start; }
.plan-body img { width: 140px; aspect-ratio: 1; object-fit: cover; background: var(--photo); }
.plan-body ul { margin: 8px 0 14px; padding-left: 18px; font-size: .88rem; }
.plan-body p { margin: 0; font-size: .9rem; max-width: 52ch; }
.subs-note { font-size: .82rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) {
  .subs-grid { grid-template-columns: 1fr; }
  .subs-photo { position: static; }
  .subs-photo img { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) {
  .plan-body { grid-template-columns: 1fr; }
  .plan-body img { width: 100%; aspect-ratio: 16 / 9; }
  .plan summary { grid-template-columns: 1fr 28px; }
  .plan-price { grid-column: 1; grid-row: 2; }
  .plan .plus { grid-column: 2; grid-row: 1; }
}

/* ---------- Доставка (темна смуга) ---------- */
.delivery { background: var(--ink); color: var(--cream); padding-block: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.delivery .lineart { color: var(--blush); opacity: .16; right: 4%; top: -30px; width: 220px; height: 440px; }
.delivery-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); position: relative; }
.delivery .h-section { color: var(--cream); }
.delivery .h-section .script { color: var(--blush); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.fact { border-top: 1px solid rgba(243, 241, 234, .3); padding-top: 14px; }
.fact dt { font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; color: var(--blush); }
.fact dd { margin: 10px 0 0; font-size: .88rem; color: rgba(243, 241, 234, .82); }
@media (max-width: 820px) {
  .delivery-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Відгуки ---------- */
.reviews { padding-block: clamp(48px, 7vw, 96px); position: relative; }
.reviews-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 48px); }
.reviews-side { display: grid; align-content: start; gap: 14px; }
.reviews-side .btn { justify-self: start; }
.review { display: grid; gap: 10px; align-content: start; }
.review img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--photo); }
.review h3 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; line-height: 1.1; }
.review .where { font-size: .74rem; color: var(--ink-soft); letter-spacing: .04em; margin: -6px 0 0; }
.review blockquote { margin: 0; font-size: .86rem; color: var(--ink); }
.stars { color: var(--coral); letter-spacing: 2px; font-size: .8rem; }
.reviews .rail { grid-auto-columns: clamp(210px, 31%, 280px); }
@media (max-width: 820px) { .reviews-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .reviews .rail { grid-auto-columns: 72%; } }

/* ---------- Футер ---------- */
.footer { border-top: 1px solid var(--line-coral); position: relative; overflow: hidden; }
.footer .lineart { left: -30px; top: 10px; width: 180px; height: 360px; opacity: .18; }
.footer-top {
  display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap;
  padding-block: 40px 20px; position: relative;
}
.footer-top a:not(.logo) { font-family: var(--f-display); font-size: 1.15rem; text-decoration: none; }
.footer-top a:not(.logo):hover { color: var(--coral-ink); }
.footer-mid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 24px 36px; position: relative; }
.footer-mid h4 { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; margin: 0 0 10px; }
.footer-mid p, .footer-mid li { font-size: .86rem; margin: 0 0 6px; }
.footer-mid ul { list-style: none; margin: 0; padding: 0; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.socials svg { width: 16px; height: 16px; }
.subscribe { display: flex; border-bottom: 1px solid var(--ink); }
.subscribe input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 0; }
.subscribe input:focus { outline: none; }
.subscribe:focus-within { border-color: var(--coral); }
.subscribe button { border: 0; background: none; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; padding: 0 0 0 12px; }
.fine { font-size: .74rem; color: var(--ink-soft); margin-top: 8px !important; }
.footer-bottom {
  border-top: 1px solid var(--line-coral); padding-block: 16px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .74rem; color: var(--ink-soft);
}
@media (max-width: 760px) { .footer-mid { grid-template-columns: 1fr; } }

/* ---------- Модальне вікно товару ---------- */
dialog { color: var(--ink); }
.qv {
  border: 0; padding: 0; background: var(--paper);
  width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
}
.qv::backdrop, .drawer::backdrop { background: rgba(12, 34, 44, .5); }
.qv-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.qv-photo { background: var(--photo); position: relative; }
.qv-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.qv-body { padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; align-content: start; overflow-y: auto; max-height: calc(100dvh - 32px); }
.qv-body h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; padding-right: 32px; }
.qv-body .price { font-size: 1.8rem; color: var(--coral-ink); }
.close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; background: none; border: 0; display: grid; place-items: center; z-index: 3;
}
.close svg { width: 18px; height: 18px; }
.field-label { font-size: .8rem; margin: 0 0 8px; display: block; }
.field-label b { font-weight: 500; }

/* розмір: лінія з листочками, як у референсі */
.sizes { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border: 0; margin: 0; padding: 0; }
.sizes::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: var(--ink); }
.sizes label { position: relative; display: grid; justify-items: center; gap: 4px; cursor: pointer; font-size: .78rem; text-align: center; }
.sizes input { position: absolute; opacity: 0; pointer-events: none; }
.leaf { width: 14px; height: 26px; color: var(--ink); fill: var(--paper); stroke: currentColor; stroke-width: 1.2; position: relative; }
.sizes input:checked + .leaf { color: var(--coral); fill: var(--coral); }
.sizes input:focus-visible + .leaf { outline: 2px solid var(--coral); outline-offset: 2px; }
.sizes .s-name { font-weight: 500; }
.sizes .s-stems { color: var(--ink-soft); font-size: .72rem; }

.checks { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .86rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.check .p { margin-left: auto; color: var(--teal); font-family: var(--f-display); font-size: 1.05rem; }
textarea.note {
  width: 100%; border: 1px solid var(--line); background: var(--cream); padding: 10px; font-size: .86rem; resize: vertical; min-height: 70px;
}
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 36px; height: 36px; background: none; border: 0; }
.qty output { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.qv-actions { display: flex; gap: 12px; align-items: center; }
.qv-actions .btn { flex: 1; }
.qv-note { font-size: .78rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 720px) {
  .qv-in { grid-template-columns: 1fr; }
  .qv-photo img { aspect-ratio: 16 / 10; }
  .qv { max-height: calc(100dvh - 16px); overflow-y: auto; }
  .qv-body { max-height: none; overflow: visible; }
}

/* ---------- Кошик (бічна панель) ---------- */
.drawer {
  margin: 0 0 0 auto; border: 0; padding: 0; height: 100%; max-height: none;
  width: min(440px, 100vw); background: var(--paper);
}
.drawer-in { display: grid; grid-template-rows: auto auto 1fr auto; height: 100%; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--f-script); font-weight: 400; font-size: 2.6rem; line-height: 1; }
.drawer-head .close { position: static; }
.ship-bar { padding: 14px 24px; font-size: .8rem; border-bottom: 1px solid var(--line); }
.ship-bar .track { height: 3px; background: var(--blush); margin-top: 8px; }
.ship-bar .track i { display: block; height: 100%; background: var(--coral); transition: width .3s; }
.lines { overflow-y: auto; padding: 0 24px; }
.line-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 84px; height: 84px; object-fit: cover; background: var(--photo); }
.line-item h3 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; line-height: 1.1; }
.line-item .opts { margin: 4px 0 8px; font-size: .74rem; color: var(--ink-soft); }
.line-item .lp { font-family: var(--f-display); font-size: 1.2rem; color: var(--teal); white-space: nowrap; }
.line-item .remove { background: none; border: 0; padding: 0; font-size: .74rem; text-decoration: underline; color: var(--ink-soft); margin-top: 6px; }
.line-item .qty button { width: 30px; height: 30px; }
.empty { padding: 48px 24px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.empty p { margin: 0; }
.empty .script { font-size: 2.4rem; color: var(--coral); line-height: 1; }
.drawer-foot { padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.subtotal b { font-family: var(--f-display); font-size: 1.7rem; font-weight: 500; color: var(--teal); }
.pay { font-size: .72rem; color: var(--ink-soft); text-align: center; margin: 0; }

/* ---------- Сповіщення ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--cream); padding: 12px 16px 12px 20px;
  display: flex; gap: 16px; align-items: center; font-size: .86rem; max-width: calc(100vw - 32px);
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: 0; color: var(--blush); text-decoration: underline; font-size: .8rem; }

/* =========================================================
   КАТАЛОГ
   ========================================================= */
.crumbs { font-size: .78rem; color: var(--ink-soft); padding-top: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs li + li::before { content: '/'; margin-right: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.cat-hero { position: relative; margin-top: 14px; overflow: hidden; }
.cat-band { background: var(--blush); }
.cat-band-in { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 18px 14px; position: relative; }
.cat-title {
  margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.4rem, 12vw, 10rem); line-height: .82; letter-spacing: -.01em;
}
.cat-title .cap { color: var(--coral); }
.cat-intro { max-width: 34ch; font-size: .88rem; margin: 0 0 8px; }
.cat-intro b { font-family: var(--f-display); font-size: 1.3rem; font-weight: 500; }
.cat-band .lineart { right: 26%; top: -20px; width: 120px; height: 240px; opacity: .35; }

.cat-tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; margin-top: 20px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 18px; white-space: nowrap;
  font-family: var(--f-display); font-size: 1.2rem;
}
.cat-tab[aria-pressed="true"] { border-color: var(--coral); color: var(--coral-ink); }
.cat-tab .n { font-family: var(--f-body); font-size: .7rem; color: var(--ink-soft); vertical-align: super; margin-left: 2px; }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-block: 18px 12px; }
.dd { position: relative; }
.dd > button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px;
  border: 1px solid var(--ink); background: transparent; font-size: .82rem;
}
.dd > button svg { width: 12px; height: 12px; transition: transform .2s; }
.dd > button[aria-expanded="true"] { background: var(--blush); }
.dd > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd > button .on { min-width: 18px; height: 18px; border-radius: 9px; background: var(--coral); color: #fff; font-size: .66rem; line-height: 18px; padding: 0 5px; }
.dd-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 220px;
  background: var(--paper); border: 1px solid var(--ink); padding: 12px 14px; display: grid; gap: 6px;
  box-shadow: 0 12px 30px rgba(12, 34, 44, .12);
}
.dd-panel .check { padding: 4px 0; }
.dd-panel .sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); flex: none; }
.dd-panel .n { margin-left: auto; font-size: .72rem; color: var(--ink-soft); }
.filters .search { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--ink); min-height: 38px; flex: 1 1 180px; max-width: 280px; margin-left: auto; }
.filters .search svg { width: 16px; height: 16px; flex: none; }
.filters .search input { border: 0; background: none; padding: 6px 0; width: 100%; min-width: 0; }
.filters .search input:focus { outline: none; }
.filters .search:focus-within { border-color: var(--coral); }
.sort { display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.sort select { border: 1px solid var(--ink); background: transparent; min-height: 38px; padding: 0 10px; }

.chips-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 36px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.result-count { font-size: .8rem; color: var(--ink-soft); margin-right: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--blush); border: 0; padding: 4px 10px; font-size: .78rem; }
.chip svg { width: 10px; height: 10px; }

.grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px;
  padding-block: 28px 12px;
}
.promo {
  grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: end;
  border-bottom: 1px solid var(--ink); padding-bottom: 16px;
}
.promo img { width: 100%; height: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; background: var(--photo); }
.promo h3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1; }
.promo h3 .script { color: var(--coral); }
.promo p { margin: 0 0 14px; font-size: .86rem; color: var(--ink-soft); }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .promo { grid-column: 1 / -1; }
  .filters .search { order: -1; max-width: none; flex-basis: 100%; margin-left: 0; }
  .sort { margin-left: auto; }
}
@media (max-width: 440px) {
  .promo { grid-template-columns: 1fr; }
  .price { font-size: 1.25rem; }
}

.no-results { text-align: center; padding: 64px 16px; display: grid; justify-items: center; gap: 12px; }
.no-results .script { font-size: 3rem; color: var(--coral); line-height: 1; }
.no-results p { margin: 0; max-width: 40ch; }

.more { display: grid; justify-items: center; gap: 16px; padding-block: 24px 64px; }
.pager { display: flex; gap: 4px; align-items: center; font-size: .82rem; }
.pager button { min-width: 32px; height: 32px; background: none; border: 0; }
.pager button[aria-current="page"] { background: var(--blush); }
.pager .dots { padding: 0 4px; }
.progress { font-size: .78rem; color: var(--ink-soft); }
