/* NOCTURNE — «Бордо + крем»: светлый кремовый каталог, бордовые шапка, главный кадр, бегущая строка и подвал;
   заголовки Yeseva One, текст Inter, кнопки-«таблетки», фото без скруглений; под курсором кнопки приподнимаются.
   Цвета и шрифты приходят из config.py через /api/shop (applyBrand в app.js); здесь — значения по умолчанию. */
:root {
  --bg: #eddcd1;
  --card: #ffffff;
  --line: #dbc5b9;
  --line-strong: #caafa2;
  --fg: #3d0a0f;
  --soft: #6e4b48;
  --muted: #9d7c77;
  --accent: #6b0f17;      /* кнопки и выбранное */
  --brand: #5c0a10;       /* бордовые блоки */
  --on-brand: #f7ece6;    /* текст на бордо */
  --danger: #b3261e;

  --display: "Yeseva One", Georgia, serif;
  --text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --photo-ratio: 4 / 5;

  --gutter: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 14px/1.5 var(--text);
  min-height: 100vh;
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
input, textarea { font: inherit; color: var(--fg); border-radius: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* метки: мелкие, заглавные, с разрядкой */
.label, .meta, .shelf-count, .eyebrow {
  font: 500 10.5px/1.3 var(--text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
/* подпись над заголовком раздела: «——— Найпопулярніші» */
.eyebrow { display: block; margin-bottom: 10px; }
.eyebrow::before { content: "———"; margin-right: 10px; letter-spacing: 0; }

/* ---------- Шапка (бордо) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--gutter);
  background: var(--brand);
  color: var(--on-brand);
}
.wordmark { font: 400 17px/1 var(--display); letter-spacing: 0.24em; color: var(--on-brand); }
.menu-link { justify-self: start; display: flex; padding: 2px; color: var(--on-brand); }
.menu-link svg { width: 20px; height: 20px; }
.menu-link .icon-close, .menu-link.open .icon-open { display: none; }
.menu-link.open .icon-close { display: block; }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 16px; }
.search-link { display: flex; padding: 2px; color: var(--on-brand); }
.search-link svg { width: 18px; height: 18px; }
.cart-link { display: flex; align-items: center; gap: 4px; color: var(--on-brand); }
.cart-link svg { width: 19px; height: 19px; }
.cart-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--on-brand); color: var(--brand);
  font-weight: 600; font-size: 10.5px; line-height: 18px; text-align: center;
}

/* ---------- Чипы-«таблетки»: поводы и соседние разделы ---------- */
.filters {
  display: flex; gap: 8px;
  padding: 0 var(--gutter) 14px;
  overflow-x: auto; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.occasions { padding-top: 18px; }
.chip {
  flex: none; padding: 9px 14px; white-space: nowrap; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--soft);
  font: 500 12.5px/1 var(--text);
}
.chip sup { font-size: 9px; margin-left: 3px; color: var(--muted); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-brand); }
.chip[aria-pressed="true"] sup { color: var(--on-brand); opacity: 0.7; }

/* ---------- Сетка и плитка букета ---------- */
.grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 10px;
  padding: 0 var(--gutter) 8px;
}
.list-grid { padding-bottom: calc(110px + var(--safe-bottom)); }   /* место под главную кнопку */
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* flex-колонка: иначе кнопка центрирует содержимое и фото съезжает в ряду с длинными названиями */
.tile { display: flex; flex-direction: column; min-width: 0; text-align: left; background: var(--bg); }
.tile-photo { aspect-ratio: var(--photo-ratio); background: var(--line); overflow: hidden; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; }
.tile-tag { padding: 10px 2px 4px; }
.tile-name {
  font: 400 16px/1.25 var(--display); color: var(--fg);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-price { margin-top: 5px; color: var(--soft); font-size: 12.5px; }
.tile.sold-out .tile-photo img { opacity: 0.4; }
.tile.sold-out .tile-price { color: var(--muted); }

/* ---------- Главная ---------- */
.hero { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - 110px); width: 100%; overflow: hidden; background: var(--brand); }
.hero-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after {   /* затемнение снизу: слоган читается на любом фото */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 2, 3, 0.78) 0%, rgba(12, 2, 3, 0.15) 55%, rgba(12, 2, 3, 0) 75%);
}
.hero-text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px; z-index: 1; color: #fff; }
.hero-eyebrow { margin-bottom: 14px; font: 500 10.5px/1 var(--text); letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.82); }
.hero-text h1 { font: 400 clamp(32px, 10vw, 47px)/1.06 var(--display); color: #fff; max-width: 11ch; }
.hero-btn {
  margin-top: 20px; padding: 13px 22px; border-radius: 999px;
  background: #fff; color: var(--brand);
  font: 500 13px/1 var(--text);
}
/* бегущая строка (бордо, курсив) */
.marquee {
  display: flex; overflow: hidden; white-space: nowrap;
  padding: 13px 0; background: var(--brand); color: var(--on-brand);
}
.marquee-track { flex: none; padding-right: 0.3em; font: italic 400 16px/1 var(--display); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 32s linear infinite; }
  @keyframes marquee { to { transform: translateX(-100%); } }
}
.shelf { padding-top: 38px; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 var(--gutter) 16px; }
.shelf-head h2 { font: 400 26px/1.1 var(--display); color: var(--fg); }
.shelf-link { text-align: left; font: inherit; }
.shelf-all {
  flex: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--fg); font-size: 12px; white-space: nowrap;
}
.shelf-row {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter);
}
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-row .tile { flex: none; width: min(44vw, 220px); scroll-snap-align: start; }
/* подвал главной — бордовый блок, как шапка */
.home-foot { margin-top: 40px; padding: 44px var(--gutter) calc(110px + var(--safe-bottom)); background: var(--brand); color: var(--on-brand); }
.home-foot .wordmark { font-size: 24px; }
.home-foot p { margin-top: 10px; max-width: 32ch; font: italic 400 16px/1.4 var(--display); }
.home-foot .demo-note { margin-top: 18px; font: 400 11px/1.4 var(--text); opacity: 0.6; }

/* ---------- Раздел ---------- */
.list-head { padding: 26px var(--gutter) 16px; }
.list-head h1 { font: 400 clamp(28px, 8.4vw, 36px)/1.1 var(--display); color: var(--fg); }
.list-head p { margin-top: 6px; color: var(--muted); font-size: 12px; }

/* ---------- Карточка букета ---------- */
.gallery { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
  flex: none; width: 100%; aspect-ratio: var(--photo-ratio); object-fit: cover;
  scroll-snap-align: start; background: var(--line); cursor: zoom-in;
}
.gallery-wrap { position: relative; }
.gallery.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand); font-size: 26px; line-height: 38px; text-align: center;
}
.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }
.gallery-arrow[hidden] { display: none; }
@media (hover: hover) { .gallery { cursor: grab; } .gallery-arrow:hover { background: #fff; } }
.gallery-counter {
  position: absolute; right: var(--gutter); bottom: 12px; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); color: var(--brand); font-size: 11px;
}

.product { padding: 22px var(--gutter) calc(110px + var(--safe-bottom)); }
.product.has-related { padding-bottom: 0; }   /* отступ под главную кнопку — у полки ниже */
.related { padding-bottom: calc(110px + var(--safe-bottom)); }
.product h1 { font: 400 28px/1.15 var(--display); color: var(--fg); }
.product .meta { margin-top: 8px; }
.product .price { margin-top: 10px; font-size: 20px; color: var(--fg); }
.lead { margin-top: 12px; max-width: 60ch; color: var(--soft); }
.block { margin-top: 24px; }
.label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.size {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 18px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--soft); font-size: 12px; line-height: 1.3;
}
.size b { font-size: 14px; font-weight: 600; color: var(--fg); }
.size[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-brand); }
.size[aria-pressed="true"] b { color: var(--on-brand); }
.size:disabled { opacity: 0.45; text-decoration: line-through; }
.size-hint { margin-top: 10px; color: var(--muted); font-size: 12px; }
.addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.addon {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--soft); font-size: 12.5px; text-align: left;
}
.addon[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-brand); }
.addon:disabled { opacity: 0.55; }
.composition { margin-top: 18px; max-width: 60ch; color: var(--soft); font-size: 13px; line-height: 1.6; }

/* ---------- Полноэкранный просмотр ---------- */
html.viewer-open, html.viewer-open body { overflow: hidden; }
.viewer {
  --fade: 1;
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, var(--fade));
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.viewer[hidden] { display: none; }
.viewer-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.viewer-img {
  width: 100%; height: 100%; object-fit: contain;   /* картинка вписана, рамка = весь экран */
  transform-origin: center center; will-change: transform;
  cursor: zoom-in; -webkit-user-drag: none;
}
.viewer.zoomed .viewer-img { cursor: grab; }
.viewer.zoomed .viewer-img:active { cursor: grabbing; }
.viewer-close, .viewer-nav {
  position: absolute; z-index: 1; width: 44px; height: 44px; border-radius: 999px;
  background: rgba(20, 4, 6, 0.6); color: #fff;
}
.viewer-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; font-size: 18px; }
.viewer-nav { top: 50%; transform: translateY(-50%); font-size: 28px; line-height: 42px; }
.viewer-nav.prev { left: 12px; }
.viewer-nav.next { right: 12px; }
.viewer-nav[hidden], .viewer.zoomed .viewer-nav { display: none; }
@media (hover: none) { .viewer-nav { display: none; } }   /* на телефоне листаем свайпом */
.viewer-counter {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(18px + var(--safe-bottom)); color: #fff; font-size: 12px;
}
.viewer-hint {
  position: absolute; left: 50%; top: calc(20px + env(safe-area-inset-top, 0px)); transform: translateX(-50%);
  padding: 8px 12px; border-radius: 999px; background: rgba(20, 4, 6, 0.8); color: #fff; font-size: 12px; white-space: nowrap;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.viewer.show-hint .viewer-hint { opacity: 1; }

/* ---------- Страницы, корзина ---------- */
.page { padding: 26px var(--gutter) calc(110px + var(--safe-bottom)); }
.page-title { margin-bottom: 20px; font: 400 28px/1.1 var(--display); color: var(--fg); }
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-of-type { border-top: 1px solid var(--line); }
.cart-line img { width: 72px; aspect-ratio: var(--photo-ratio); object-fit: cover; background: var(--line); }
.cart-line-name { font: 400 18px/1.2 var(--display); color: var(--fg); }
.cart-line-meta { margin-top: 3px; color: var(--muted); font-size: 12px; }
.cart-line-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); }
.stepper button { width: 32px; height: 30px; font-size: 16px; color: var(--fg); }
.stepper button:disabled { opacity: 0.3; }
.stepper span { min-width: 24px; text-align: center; color: var(--fg); }
.remove { margin-top: 8px; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.cart-addon {
  display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.cart-addon-free { color: var(--muted); font-size: 12px; }
.cart-addon-remove { padding: 4px; color: var(--muted); }
.summary { display: flex; justify-content: space-between; padding: 18px 0; font-size: 15px; color: var(--fg); }
.note { max-width: 46ch; color: var(--muted); font-size: 12px; }
.empty { padding: 60px 0 20px; }
.empty p { margin-bottom: 20px; color: var(--muted); }
.ghost-btn {
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent);
  font: 500 13px/1 var(--text);
}

/* ---------- Пошук ---------- */
.search { padding-top: 16px; }
.search-box { position: relative; margin: 0 var(--gutter); }
.search-input {
  width: 100%; padding: 12px 36px 12px 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  font-size: 15px; -webkit-appearance: none; appearance: none;
}
.search-input:focus { outline: none; border-bottom-color: var(--accent); }
.search-input::placeholder { color: var(--muted); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: 0; top: 50%; transform: translateY(-50%); padding: 8px 0 8px 12px; color: var(--muted); }
.search-count { padding: 14px var(--gutter); color: var(--muted); font-size: 12px; }
.search-hints { padding: 22px var(--gutter); }
.search-hints p { margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.search-hint-list { display: flex; flex-wrap: wrap; gap: 8px; }
.search-empty { padding: 48px var(--gutter); color: var(--muted); }
.search-empty button { margin-top: 16px; padding: 4px 0; color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ---------- Меню ---------- */
.menu { padding: 8px var(--gutter) calc(110px + var(--safe-bottom)); }
.menu-item, .menu-subitem { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: left; }
.menu-item { padding: 15px 0; border-bottom: 1px solid var(--line); font: 400 23px/1.15 var(--display); color: var(--fg); }
.menu-item small, .menu-subitem small { font: 400 11px/1 var(--text); color: var(--muted); }
.menu-sub { padding: 4px 0 10px 16px; border-bottom: 1px solid var(--line); }
.menu-sub[hidden] { display: none; }
.menu-subitem { padding: 9px 0; font: 500 13px/1.2 var(--text); color: var(--soft); }
.menu-info { margin-top: 28px; display: grid; gap: 14px; justify-items: start; }
.menu-info-link { font: 500 11px/1.3 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: left; }
.info p { margin-top: 14px; max-width: 60ch; white-space: pre-line; color: var(--soft); }

/* ---------- Оформлення: «гармошка» з трьох кроків ---------- */
.checkout .page-title { margin-bottom: 12px; }
.progress { display: flex; gap: 4px; margin-bottom: 14px; }
.progress span { flex: 1; height: 3px; border-radius: 999px; background: var(--line-strong); }
.progress span.on { background: var(--accent); }
.step { padding: 14px 0; border-top: 1px solid var(--line); }
.step-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.step-head b { font: 600 11.5px/1.3 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg); }
.step-head small { font-size: 11px; color: var(--muted); }
.step.is-done .step-head b { color: var(--accent); }
.step-sum { margin-top: 6px; color: var(--soft); font-size: 13px; line-height: 1.5; }
.edit { color: var(--accent); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.step .label { margin: 16px 0 8px; }
.seg { display: flex; gap: 8px; margin-top: 12px; }
.seg > * {
  flex: 1; padding: 10px 4px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--soft); font-size: 12.5px; text-align: center;
}
.seg > [aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-brand); }
.seg > :disabled { opacity: 0.4; }
.seg-date { position: relative; cursor: pointer; }
.seg-date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slots button {
  padding: 9px 0; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--soft); font-size: 12.5px;
}
.slots button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-brand); }
.slots button:disabled { opacity: 0.35; text-decoration: line-through; }
.hint { margin-top: 10px; color: var(--muted); font-size: 12px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--soft); font-size: 13px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.add-card { margin-top: 16px; padding: 10px 16px; border-radius: 999px; border: 1px dashed var(--accent); color: var(--accent); font-size: 13px; }
.next {
  margin-top: 16px; padding: 10px 20px; border-radius: 999px;
  background: var(--accent); color: var(--on-brand);
  font: 500 13px/1 var(--text);
}
.form { display: grid; }
.field { margin-top: 14px; }
.field label { display: block; margin-bottom: 4px; font: 500 10.5px/1.3 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 8px 0; background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); font-size: 15px;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field textarea { min-height: 64px; resize: none; }
/* автозаполнение браузера красит поле в голубой — фон у него не перебить, поэтому закрываем тенью */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg);
  caret-color: var(--fg);
  box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 9999s ease-out;
}
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--danger); }
.error { margin-top: 6px; color: var(--danger); font-size: 12px; }
.checkout-total { display: grid; gap: 6px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.checkout-total div { display: flex; justify-content: space-between; color: var(--soft); font-size: 13px; }
.checkout-total .sum { margin-top: 4px; color: var(--fg); font-size: 17px; font-weight: 500; }

/* ---------- Готово ---------- */
.done { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter) calc(80px + var(--safe-bottom)); }
.done-number { font: 400 clamp(56px, 20vw, 88px)/0.9 var(--display); color: var(--accent); }
.done h1 { margin-top: 16px; font: 400 28px/1.2 var(--display); color: var(--fg); }
.done p { margin-top: 10px; max-width: 40ch; color: var(--soft); }
.done .done-when { color: var(--fg); }
.done .ghost-btn { margin-top: 28px; align-self: flex-start; }

/* ---------- Нижняя кнопка (браузер; в Telegram — родная) и сообщения ---------- */
.fallback-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px var(--gutter) calc(10px + var(--safe-bottom));
  background: linear-gradient(to top, var(--bg) 60%, transparent);
}
.fallback-btn {
  width: 100%; height: 50px; border-radius: 10px; background: var(--accent); color: var(--on-brand);
  font: 500 14px/1 var(--text);
}
.fallback-btn:disabled { background: var(--line); color: var(--muted); }
.toast {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(80px + var(--safe-bottom)); z-index: 30;
  padding: 12px 16px; border-radius: 12px; background: var(--fg); color: var(--bg);
}
.loading { padding: 80px var(--gutter); color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .view-enter { animation: enter 0.18s ease-out; }
  @keyframes enter { from { opacity: 0; transform: translateY(6px); } }
}

/* ---------- Наведение мышью ----------
   Только там, где есть мышь (Telegram Desktop, браузер): на телефоне после тапа подсветка «залипала» бы. */
@media (hover: hover) {
  .tile { transition: transform 0.3s ease, box-shadow 0.3s ease; }
  .tile:hover { z-index: 2; transform: translateY(-6px); box-shadow: 0 18px 34px rgba(61, 10, 15, 0.18); }
  /* запас в лентах под приподнятую плитку */
  .shelf-row { padding-top: 14px; padding-bottom: 14px; margin-top: -14px; margin-bottom: -14px; }
  .chip, .size, .addon, .slots button, .seg > *, .hero-btn, .next, .ghost-btn, .edit, .add-card,
  .shelf-link, .shelf-all, .tile-name, .menu-info-link, .menu-item span, .menu-subitem span {
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
  }
  /* «Подъём»: кнопка приподнимается с мягкой тенью; невыбранная — ещё и бордовая рамка и текст */
  .chip:hover, .shelf-all:hover, .size:not(:disabled):hover, .addon:not(:disabled):hover,
  .slots button:not(:disabled):hover, .seg > :not(:disabled):hover, .next:hover, .ghost-btn:hover, .add-card:hover {
    transform: translateY(-3px); box-shadow: 0 10px 20px rgba(61, 10, 15, 0.16);
  }
  .hero-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35); }
  .chip:not([aria-pressed="true"]):hover, .size:not(:disabled):not([aria-pressed="true"]):hover,
  .addon:not(:disabled):not([aria-pressed="true"]):hover, .slots button:not(:disabled):not([aria-pressed="true"]):hover,
  .seg > :not(:disabled):not([aria-pressed="true"]):hover, .shelf-all:hover { border-color: var(--accent); color: var(--accent); }
  .size:not(:disabled):not([aria-pressed="true"]):hover b { color: var(--accent); }
  .tile:hover .tile-name, .shelf-link:hover, .menu-info-link:hover,
  .menu-item:hover span, .menu-subitem:hover span { color: var(--accent); }
  .menu-item span, .menu-subitem span { display: inline-block; transform-origin: left center; }
  .menu-item:hover span, .menu-subitem:hover span { transform: scale(1.05); }
}
/* С мышью ленты листает edge-scroll.js (курсор у края) — без примагничивания к плиткам */
@media (hover: hover) and (pointer: fine) {
  .shelf-row { scroll-snap-type: none; }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .tile:hover, .menu-item:hover span, .menu-subitem:hover span, .chip:hover, .shelf-all:hover, .size:hover, .addon:hover,
  .slots button:hover, .seg > :hover, .hero-btn:hover, .next:hover, .ghost-btn:hover, .add-card:hover { transform: none; }
}
