:root {
  --bg: #fbf7f2;
  --card: #ffffff;
  --ink: #2a2320;
  --muted: #736a64; /* 4.95:1 на фоне — служебный текст читается и на солнце (было #8a807a, 3.6:1) */
  --accent: #e8562a;
  --accent-dark: #c8431d;
  --accent-soft: #fff0ea;
  --border: #eee3da;
  --shadow: 0 6px 24px rgba(60, 40, 30, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* --- Шапка: липкий блок (строка бренда/корзины + тонкая плашка категорий) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar {
  border-bottom: 1px solid var(--border);
}

/* Тонкая липкая плашка категорий */
.catnav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 7px 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;          /* тонкая: без полосы прокрутки */
  -webkit-overflow-scrolling: touch;
}
.catnav::-webkit-scrollbar { display: none; }
.catnav__chip {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.catnav__chip:hover { background: var(--accent-soft); }
.catnav__chip--active {
  background: var(--accent);
  color: #fff;
}
/* SEO H1 — скромная строка с ключевыми словами над каталогом */
.seo-h1 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 8px 0 4px;
  line-height: 1.45;
}

/* Промо-строка (владелец задаёт с страницы заказов) */
.promo-bar {
  background: #fff3c4;
  color: #6b5300;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-bottom: 1px solid #eadfa4;
}

/* Плашка «Сейчас закрыто» под шапкой (часы работы задаются в config.js) */
.closed-bar {
  background: #2a2320;
  color: #fff;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 14px;
}
/* «Принимаем заказы ещё 25 минут» — это подсказка, а не запрет:
   тёплый тон вместо чёрного, чтобы не выглядело как «закрыто» */
.closed-bar--soon { background: #f6a51a; color: #3a2a06; }
.topbar__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
/* min-width:0 обязателен: без него длинное название магазина распирало шапку,
   и на узких телефонах (320-360 px) вся страница уезжала вбок */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand__logo { font-size: 30px; flex-shrink: 0; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.brand__tag { font-size: 12.5px; color: var(--muted); }
.brand__phone { color: var(--muted); font-size: 14px; margin-left: 6px; text-decoration: none; }
.brand__phone:hover { color: var(--accent); }

/* Крупная, заметная корзина */
.topbar__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* «Мои заказы» в шапке — спокойная кнопка рядом с корзиной */
.account-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.account-btn:hover { background: var(--accent-soft); }
.account-btn__icon { font-size: 20px; }

/* Корзина в шапке — без фона, чистая иконка, заметно оживает при добавлении */
.cart-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.cart-btn:hover { background: var(--accent-soft); }
.cart-btn__ico {
  position: relative;
  width: 30px;
  height: 30px;
  color: var(--muted);          /* пустая — спокойная серая */
  transition: color 0.25s ease;
}
.cart-btn__ico svg { width: 30px; height: 30px; display: block; }
.cart-btn.has-items .cart-btn__ico { color: var(--accent); } /* есть товары — фирменная оранжевая */
.cart-btn.has-items .cart-btn__text { color: var(--ink); }

.cart-btn__count {
  position: absolute;
  top: -8px;
  right: -9px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 8px rgba(232, 86, 42, 0.5);
  font-variant-numeric: tabular-nums;
}
.cart-btn__count[hidden] { display: none; }

.cart-btn__sum {
  color: var(--accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cart-btn__sum:empty { display: none; } /* пусто — не показываем «0 ₽» */

/* Корзинка «подпрыгивает и качается», бейдж — пружинит: видно, что пополняется */
.cart-btn.bump .cart-btn__ico { animation: cart-jiggle 0.5s ease; }
.cart-btn.bump .cart-btn__count { animation: qty-pop 0.4s ease; }
@keyframes cart-jiggle {
  0%, 100% { transform: rotate(0) scale(1); }
  20% { transform: rotate(-13deg) scale(1.14); }
  50% { transform: rotate(10deg) scale(1.14); }
  78% { transform: rotate(-4deg) scale(1.06); }
}

/* Лёгкий «+1», взлетающий над корзиной при добавлении */
.fly-plus {
  position: absolute;
  left: 50%;
  top: -2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  pointer-events: none;
  animation: fly-up 0.7s ease forwards;
}
@keyframes fly-up {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(0.6); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -22px) scale(1); }
}

/* «Подскок» для mobile-bar (сам селектор — в мобильной секции ниже) */
@keyframes bump {
  0% { transform: scale(1); }
  30% { transform: scale(1.06); }
  60% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .cart-btn.bump .cart-btn__ico,
  .cart-btn.bump .cart-btn__count,
  .fly-plus { animation: none; }
  .fly-plus { display: none; }
}

/* --- Каталог --- */
.container { max-width: 1080px; margin: 0 auto; padding: 24px 20px 80px; }

/* Живой статус активного заказа на главной */
.orderbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  margin: 4px 0 20px;
  font-size: 15px;
  transition: border-color 0.15s, transform 0.15s;
}
.orderbar:hover { border-color: var(--accent); transform: translateY(-1px); }
.orderbar__icon { font-size: 24px; }
.orderbar__text { font-weight: 800; color: var(--ink); }
.orderbar__status { margin-left: auto; white-space: nowrap; }

/* Плашка «Повторить прошлый заказ» */
.repeat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 18px;
  margin: 4px 0 20px;
  flex-wrap: wrap;
}
.repeat__icon { font-size: 28px; }
.repeat__info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 180px; }
.repeat__items { color: var(--muted); font-size: 14px; }
.btn--repeat { border-radius: 999px; padding: 12px 20px; white-space: nowrap; }

/* Поиск по меню */
.search { position: relative; margin: 4px 0 4px; }
.search input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 44px 13px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 16px; /* ≥16px — iPhone не зумит при вводе */
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search input::placeholder { color: #7d736c; }
.search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 86, 42, 0.14);
}
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 8px 10px;
}
.search__clear:hover { color: var(--accent-dark); }
.search-empty { color: var(--muted); margin: 14px 2px 20px; }

.page-title { font-size: 32px; margin: 8px 0 20px; letter-spacing: -0.5px; }
/* Раздел категории: отступ прокрутки, чтобы заголовок не прятался под липкой шапкой */
.cat-section { scroll-margin-top: calc(var(--header-h, 100px) + 8px); }
.cat-section:first-child .section-title { margin-top: 20px; }
.section-title { font-size: 24px; margin: 34px 0 18px; }
.cat-empty { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* десктоп: три товара в ряд — и пиццы, и напитки */
  gap: 36px 30px;
}
@media (max-width: 880px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr; }
  .grid--drinks { grid-template-columns: repeat(2, 1fr); } /* напитки компактнее — парой */
}

/* Карточка-эталон: фото-баннер сверху, текст и цена — под ним (стиль Яндекс.Еды) */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(60, 40, 30, 0.14);
}
.card__thumb {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 84px;
  position: relative;
  overflow: hidden;
  background: var(--accent-soft); /* в тон кремовому фону, запечённому в фото товаров */
}
.card--drink .card__thumb { font-size: 72px; }
.card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* фото заполняет прямоугольник целиком, аппетитный крупный кадр */
  transition: transform 0.3s ease;
}
.card:hover .card__thumb img { transform: scale(1.05); }
/* Фото загрузилось — эмодзи-заглушку прячем (если фото битое, onerror вернёт эмодзи) */
.card__thumb:has(img) .card__emoji { visibility: hidden; }
.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #ff4d9e;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 77, 158, 0.45);
}
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card__name { font-size: 19px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.2px; }
.card__meta { color: var(--accent-dark); font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.card__desc { color: var(--muted); font-size: 14px; line-height: 1.4; margin: 0 0 16px; flex: 1; }

.btn {
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 10px;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(0.97); }
/* Кнопка-пилюля «В корзину · 490 ₽» на всю ширину карточки */
.card__control {
  width: 100%;
  margin-top: auto;
  display: flex;
}
/* Главная конверсионная кнопка: градиент + «жидкое стекло» + мягкое переливание */
.btn--pill {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, #ff8a4d 0%, var(--accent) 55%, #d94a1f 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 8px 20px rgba(232, 86, 42, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 6px rgba(160, 45, 10, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
/* стеклянный блик в верхней половине */
.btn--pill::before {
  content: "";
  position: absolute;
  inset: 2px 10px auto 10px;
  height: 46%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  pointer-events: none;
}
/* мягкая искра, изредка пробегающая по кнопке */
.btn--pill::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 38%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: pill-shine 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pill-shine {
  0% { left: -60%; }
  55% { left: 135%; }
  100% { left: 135%; }
}
.btn--pill:hover {
  background: linear-gradient(135deg, #ff9a5f 0%, #ef5f2f 55%, #de5024 100%);
  transform: translateY(-2px);
  box-shadow:
    0 13px 30px rgba(232, 86, 42, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 6px rgba(160, 45, 10, 0.25);
}
.btn--pill:active { transform: translateY(0) scale(0.96); }
.pill-price { font-weight: 900; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .btn--pill::after,
  .btn--order::after,
  .mobile-bar::after { animation: none; opacity: 0; }
}

/* Счётчик «− N шт · сумма +» вместо пилюли, когда товар в корзине */
.qty--card {
  width: 100%;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 6px 16px rgba(60, 40, 30, 0.1);
}
.qty--card button {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 26px;
  font-weight: 700;
}
/* минус — скромный, вспомогательный */
.qty--card [data-dec] {
  background: var(--accent-soft);
  color: var(--accent);
}
.qty--card [data-dec]:hover:not(:disabled) {
  background: #ffdccc;
  color: var(--accent-dark);
  transform: scale(1.06);
}
/* плюсик — главная кнопка: сочный градиент и тёплое свечение, хочется нажать */
.qty--card [data-add] {
  background: linear-gradient(135deg, #ff8a4d, var(--accent));
  color: #fff;
  box-shadow: 0 6px 16px rgba(232, 86, 42, 0.45);
}
.qty--card [data-add]:hover {
  background: linear-gradient(135deg, #ff9a63, var(--accent));
  box-shadow: 0 9px 24px rgba(232, 86, 42, 0.55);
  transform: scale(1.12);
}
.qty--card [data-add]:active { transform: scale(0.9); }
.qty--card span {
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  animation: qty-pop 0.25s ease; /* число «подпрыгивает» при изменении */
}
@keyframes qty-pop {
  0% { transform: scale(0.8); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Товар из стоп-листа: серый, купить нельзя */
.card--stopped .card__thumb { filter: grayscale(1); opacity: 0.55; }
.card--stopped .card__name { color: var(--muted); }
.oos { color: var(--muted); font-weight: 700; font-size: 14px; }
.cart-item__oos { color: var(--accent-dark); font-size: 12px; font-weight: 600; margin-top: 2px; }
/* Пожелание к товару («без лука») */
.cart-item__note {
  width: 100%;
  margin-top: 7px;
  padding: 7px 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
}
.cart-item__note:focus {
  outline: none;
  border-style: solid;
  border-color: var(--accent);
}
.cart-item__note::placeholder { color: #7d736c; }
.qty button:disabled { opacity: 0.35; cursor: default; }

/* --- Корзина (панель) --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 15, 0.4);
  z-index: 30;
}
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  height: 100dvh; /* мобильные браузеры: не прячем низ панели под их нижним тулбаром */
  width: 560px; /* на телефоне max-width всё равно раскрывает панель на весь экран */
  max-width: 100%;
  background: var(--bg);
  z-index: 40;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  overflow-y: auto; /* одна общая прокрутка: товары и форма листаются вместе */
  animation: slideIn 0.22s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-panel__head {
  position: sticky; /* заголовок с крестиком не уезжает при прокрутке панели */
  top: 0;
  z-index: 6;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-panel__head h2 { margin: 0; font-size: 22px; }
.icon-btn {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 8px;
}
.icon-btn:hover { background: var(--border); }
.cart-panel__body { padding: 12px 20px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item__emoji {
  font-size: 30px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 12px;
  flex-shrink: 0;
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 700; font-size: 15px; }
.cart-item__price { color: var(--muted); font-size: 13px; }
/* Убрать позицию целиком одним нажатием (не тыкать минус пять раз) */
.cart-item__remove {
  align-self: flex-start;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  padding: 6px 7px;
  margin-left: 2px;
  border-radius: 8px;
  cursor: pointer;
}
.cart-item__remove:hover { color: var(--accent-dark); background: var(--accent-soft); }
.qty {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: var(--accent-soft);
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, background 0.15s, color 0.15s;
}
.qty button:hover:not(:disabled) { background: var(--accent); color: #fff; transform: scale(1.08); }
.qty button:active:not(:disabled) { transform: scale(0.9); }
.qty span { min-width: 20px; text-align: center; font-weight: 700; }

/* Блок «Добавить напиток?» в корзине */
.upsell { padding: 14px 0 6px; }
.upsell__title { font-weight: 800; font-size: 15px; margin-bottom: 10px; }
/* Подсказка «чем добрать до минималки»: выделена, потому что снимает тупик —
   без неё человек упирался в выключенную кнопку и уходил */
.minhelp {
  padding: 12px 14px;
  margin: 12px 0 4px;
  background: #fff6e8;
  border: 1px dashed #e6c169;
  border-radius: 14px;
}
.minhelp__title { font-weight: 800; font-size: 14.5px; margin-bottom: 10px; color: #7a5310; }
.upsell__row { display: flex; gap: 10px; flex-wrap: wrap; }
.upsell__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 6px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.upsell__item:hover { border-color: var(--accent); }
.upsell__item:active { transform: scale(0.96); }
.upsell__emoji { font-size: 28px; }
.upsell__name { font-size: 12px; color: var(--ink); line-height: 1.2; text-align: center; }
.upsell__price { font-size: 13px; font-weight: 800; color: var(--accent); }

.checkout {
  padding: 8px 20px 20px;
  border-top: 1px solid var(--border);
}
/* Кнопка заказа всегда под большим пальцем: форма на телефоне длиннее экрана,
   и без этого до «Заказать» надо было прокрутить ~600 px мимо семи полей.
   Пока форма влезает целиком — ведёт себя как обычная кнопка внизу. */
.checkout__go {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 6px -20px -20px;
  padding: 10px 20px 14px;
  background: var(--bg);
  box-shadow: 0 -10px 16px -8px rgba(30, 20, 15, 0.16);
}
.checkout__go .btn--order { margin-top: 0; }
.checkout__go .form-error { margin-bottom: 0; }
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 800;
  margin: 8px 0 6px;
}
.delivery-note { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.checkout label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.checkout input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 13px 14px;          /* поля крупнее — заполнять приятнее */
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 17px;             /* ≥16px — iPhone не «прыгает» зумом при вводе */
  font-weight: 500;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.checkout input::placeholder { color: #7d736c; font-weight: 400; }
.checkout input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 86, 42, 0.14); /* мягкое тёплое свечение */
}
.field-hint {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}

/* Способ оплаты при получении */
.pay { margin: 4px 0 14px; }
.pay__title { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.pay__opts { display: flex; gap: 8px; }
.pay__opt {
  flex: 1;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pay__opt:hover:not(:disabled) { border-color: var(--accent); }
.pay__opt:disabled { opacity: 0.45; cursor: not-allowed; } /* ночью «как можно скорее» недоступно */
.pay__opt--on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.pay__change { display: block; font-size: 13px; color: var(--muted); margin-top: 10px; }
.pay__change[hidden] { display: none; }
.pay__change input,
.pay__change select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
}
.pay__change input:focus,
.pay__change select:focus { outline: 2px solid var(--accent); border-color: transparent; }
/* Быстрые суммы для сдачи — чаще всего платят «с тысячи/двух/пяти» */
.change-chips { display: flex; gap: 8px; margin-top: 8px; }
.chip-sum {
  flex: 1;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 999px;
  cursor: pointer;
}
.chip-sum:hover { border-color: var(--accent); color: var(--accent-dark); }
/* «Заказать» — финальная кнопка: тот же премиум-характер, что у «В корзину» */
.btn--order {
  width: 100%;
  padding: 15px;
  font-size: 17px;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a4d 0%, var(--accent) 55%, #d94a1f 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 8px 20px rgba(232, 86, 42, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 6px rgba(160, 45, 10, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--order::before {
  content: "";
  position: absolute;
  inset: 2px 10px auto 10px;
  height: 46%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn--order::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 38%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: pill-shine 3.6s ease-in-out infinite;
  animation-delay: 1.8s; /* вразнобой с кнопками карточек */
  pointer-events: none;
}
.btn--order:hover {
  background: linear-gradient(135deg, #ff9a5f 0%, #ef5f2f 55%, #de5024 100%);
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px rgba(232, 86, 42, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 6px rgba(160, 45, 10, 0.25);
}
.btn--order:active { transform: scale(0.98); }
.btn--order:disabled { opacity: 0.7; transform: none; }
.form-error { color: var(--accent-dark); font-size: 14px; margin: 10px 0 0; }

/* Личный кабинет «Мои заказы» */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 15, 0.4);
  z-index: 45;
}
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 32px));
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--radius);
  z-index: 46;
  box-shadow: 0 24px 60px rgba(30, 20, 15, 0.3);
  padding: 0 20px 20px;
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 8px;
}
.modal__head h2 { margin: 0; font-size: 22px; }

.acc-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.acc-form input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 500;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.acc-form input::placeholder { color: #7d736c; font-weight: 400; }
.acc-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 86, 42, 0.14);
}
.acc-form .btn--order { margin-top: 4px; }
.acc-hint { font-size: 13px; margin: 12px 0 0; }

.acc-order {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.acc-order__head { display: flex; gap: 10px; align-items: baseline; }
.acc-order__total { margin-left: auto; color: var(--accent); }
.acc-order__status { margin: 6px 0 2px; }
.acc-status {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
}
.acc-status--active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid rgba(232, 86, 42, 0.35);
}
.acc-status--done {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.25);
}
.acc-order__lines { font-size: 14px; margin: 6px 0 0; color: var(--ink); }
/* Оценка выполненного заказа: звёзды + необязательный комментарий */
.acc-rate { margin-top: 10px; font-size: 14px; }
.acc-rate__hint { color: var(--muted); font-size: 13px; margin-right: 2px; }
.acc-star {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #d8c9be;
  padding: 0 3px;
}
.acc-star--on { color: #f5a623; }
.acc-rate--done { color: #f5a623; font-weight: 700; }
.acc-rate__form { display: flex; gap: 6px; margin-top: 8px; }
.acc-rate__form[hidden] { display: none; }
.acc-rate__text {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}
.acc-rate__send {
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.acc-order__repeat {
  margin-top: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.acc-order__repeat:hover { background: var(--accent-soft); border-color: var(--accent); }
.acc-logout {
  display: block;
  margin: 6px auto 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

/* ПИН-код на экране «Заказ принят» — крупно и понятно с первого взгляда */
.success-pin {
  background: var(--accent-soft);
  border: 2px dashed var(--accent);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 14px auto 8px;
  max-width: 320px;
  color: var(--ink);
}
.success-pin__title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
}
/* Логин и пароль — двумя явными строками: человек видит, ЧТО именно вводить.
   Раньше был только код, и оставалось гадать, куда его девать. */
.success-pin__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
  text-align: left;
}
.success-pin__row {
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
}
.success-pin__k {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.success-pin__login {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.success-pin__code {
  display: block;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 5px;
  color: var(--accent-dark);
}
.success-pin__hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Товар, летящий в корзину */
.fly-item {
  position: fixed;
  z-index: 100;
  font-size: 32px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 8px rgba(60, 40, 30, 0.3));
}

/* «Прислать ПИН на почту» на экране «Заказ принят» */
/* Поле почты: раньше было узкой щелью рядом с кнопкой — попасть пальцем и
   набрать адрес было неудобно, и его просто пропускали. Теперь поле во всю
   ширину, кнопка крупная под ним. */
.pin-email { max-width: 320px; margin: 10px auto 4px; text-align: center; }
.pin-email .muted { display: block; font-size: 13.5px; margin-bottom: 10px; }
.pin-email__row { display: flex; flex-direction: column; gap: 10px; }
.pin-email__row input {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 18px;
  border: 2px solid var(--border);
  border-radius: 16px;
  font-size: 16px; /* 16px и больше — иначе iOS зумит страницу при фокусе */
  background: #fff;
  color: var(--ink);
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  /* мягкий перелив, чтобы поле заметили; гаснет, как только в него встали */
  animation: pin-email-glow 2.6s ease-in-out infinite;
}
.pin-email__row input::placeholder { color: #7d736c; }
.pin-email__row input:focus,
.pin-email__row input:not(:placeholder-shown) {
  animation: none;
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.pin-email__row .btn { width: 100%; padding: 14px 18px; border-radius: 999px; font-size: 16px; }
@keyframes pin-email-glow {
  0%, 100% { border-color: var(--border); box-shadow: 0 0 0 0 rgba(232, 86, 42, 0); }
  50% { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(232, 86, 42, 0.13); }
}
@media (prefers-reduced-motion: reduce) {
  .pin-email__row input { animation: none; }
}
.pin-email__done { color: #2e7d32; font-weight: 700; font-size: 14px; }

/* «Забыли ПИН?» в окне «Мои заказы» */
.acc-forgot {
  display: block;
  margin: 10px auto 0;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.acc-ok { color: #2e7d32 !important; }

/* Салют после заказа */
.confetti {
  position: absolute;
  inset: 0;
  pointer-events: none; /* не мешает нажимать кнопки под ним */
  overflow: hidden;
  z-index: 5;
}
.confetti span {
  position: absolute;
  top: -36px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(105vh) rotate(560deg); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; } /* уважение к настройке «меньше анимаций» */
}

.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty .btn { margin-top: 16px; padding: 12px 26px; border-radius: 999px; }
.cart-success { text-align: center; padding: 44px 20px 20px; color: var(--muted); }
.cart-empty__emoji, .cart-success__emoji { font-size: 56px; margin-bottom: 10px; }
.cart-success h3 { color: var(--ink); font-size: 22px; margin: 6px 0; }
.cart-success .btn { margin-top: 16px; padding: 12px 28px; }
/* Вторая кнопка на экране успеха — спокойная, ведёт в «Мои заказы» */
.btn--success-ghost {
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--border);
  margin-left: 8px;
}
.btn--success-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }

/* Чек на экране «Заказ принят» */
.success-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 14px auto 10px;
  max-width: 320px;
  text-align: left;
}
.success-summary__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
  padding: 3px 0;
}
.success-summary__line--total {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 8px;
  font-weight: 800;
  font-size: 15px;
}
.muted { color: var(--muted); }

[hidden] { display: none !important; }

/* Плавающая корзина внизу экрана — только на телефоне */
.mobile-bar {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, #ff8a4d 0%, var(--accent) 55%, #d94a1f 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 999px;
  padding: 16px 22px;
  font-size: 17px;
  font-weight: 800;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow:
    0 10px 30px rgba(232, 86, 42, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 6px rgba(160, 45, 10, 0.25);
}
.mobile-bar::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 38%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: pill-shine 3.6s ease-in-out infinite;
  animation-delay: 0.9s;
  pointer-events: none;
}
.mobile-bar__count {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 2px 11px;
  font-variant-numeric: tabular-nums;
}
.mobile-bar__total { font-variant-numeric: tabular-nums; }
.mobile-bar.bump { animation: bump 0.4s ease; }

@media (max-width: 640px) {
  .mobile-bar:not([hidden]) { display: flex; }
  .container { padding-bottom: 120px; } /* нижние карточки не прячутся под панелью */
}

@media (max-width: 520px) {
  .cart-btn__text { display: none; }
  .account-btn__text { display: none; }
  .brand__phone { display: none; }
  .page-title { font-size: 26px; }
  /* Узкий телефон: шапке нужно место под кнопки, длинное название — в одну
     строку с многоточием, а не распирая страницу вбок */
  .topbar__inner { padding: 12px 14px; gap: 10px; }
  .brand__name { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand__tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand__logo { font-size: 26px; }
}
@media (max-width: 360px) {
  /* Совсем узкие экраны: сумма в шапке лишняя — она и так на нижней панели */
  .cart-btn__sum { display: none; }
}

/* ============ Конструктор пиццы: адаптивная modal side-sheet ============ */
/* Нативный <dialog> растянут на весь экран (прозрачный), панель прижата вправо;
   пустая область слева — это клик по backdrop (target === dialog). */
.cz {
  border: none;
  padding: 0;
  margin: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: transparent;
  overflow: hidden;
}
.cz::backdrop { background: rgba(30, 20, 15, 0.45); }
.cz__panel {
  position: absolute;
  top: 0;
  right: 0;
  /* Шире, чем было (560): три размера пиццы с ценами просили места.
     На телефоне панель и так во весь экран — см. медиазапрос ниже. */
  width: min(720px, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}
/* Три зоны: шапка/подвал не скроллятся (flex), скроллится только контент */
.cz__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cz__titles { flex: 1; min-width: 0; }
.cz__title { margin: 0; font-size: 20px; }
.cz__sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.cz__reset {
  align-self: center;
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 8px;
  white-space: nowrap;
}
.cz__reset:hover { text-decoration: underline; }
.cz__close {
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 8px;
}
.cz__close:hover { background: var(--border); }
.cz__content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  scroll-padding-top: 12px;
  scroll-padding-bottom: 28px;
}
.cz__foot {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 14px 20px;
}

/* Компактный блок товара сверху */
.cz-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.cz-hero__img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--accent-soft);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
}
.cz-hero__name { font-weight: 800; font-size: 17px; }
.cz-hero__price { color: var(--accent-dark); font-weight: 700; margin: 2px 0; }
.cz-hero__hint { color: var(--muted); font-size: 13px; }

/* Группа настроек */
.cz-group { border: none; padding: 0; margin: 0 0 28px; }
.cz-group__legend { padding: 0; font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.cz-group__meta { color: var(--muted); font-size: 13px; margin: -4px 0 10px; }
.cz-group__limit { color: var(--accent-dark); font-size: 13px; margin: 8px 0 0; }
.cz-group__err { color: var(--accent-dark); font-size: 13px; font-weight: 700; margin: 8px 0 0; }

/* Варианты «выбрать один» (размер, тесто, объём) — в строку, но с переносом:
   трёх размеров с ценами в узкой панели в один ряд не хватало, и строка
   уезжала за край горизонтальной прокруткой. flex-basis задаёт минимум,
   min-width:0 разрешает карточке сжиматься вместо распирания родителя. */
.cz-opts--seg { display: flex; flex-wrap: wrap; gap: 8px; }
.cz-opts--seg .cz-opt { flex: 1 1 140px; min-width: 0; }
.cz-opts--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 360px) { .cz-opts--grid { grid-template-columns: 1fr; } }

/* Карточка-вариант: визуально карточка, внутри нативный radio/checkbox */
.cz-opt { position: relative; display: block; cursor: pointer; }
.cz-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.cz-opt__box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.cz-opts--seg .cz-opt__box { justify-content: center; text-align: center; }
/* Длинные подписи («Комнатной температуры») переносятся внутри карточки,
   а не растягивают её за пределы панели */
.cz-opt__box { min-width: 0; }
.cz-opt__label { min-width: 0; overflow-wrap: anywhere; }
.cz-opt__price { color: var(--muted); font-weight: 700; margin-left: auto; white-space: nowrap; }
.cz-opts--seg .cz-opt__price { margin-left: 6px; }
.cz-opt__check { display: none; color: var(--accent); font-weight: 900; }
.cz-opt input:checked ~ .cz-opt__box {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.cz-opt input:checked ~ .cz-opt__box .cz-opt__check { display: inline; }
.cz-opt input:checked ~ .cz-opt__box .cz-opt__price { color: var(--accent-dark); }
.cz-opt input:focus-visible ~ .cz-opt__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.cz-opt input:disabled ~ .cz-opt__box { opacity: 0.45; cursor: not-allowed; }

/* Подвал: сводка + количество + главная кнопка */
/* «1.5 л · охлаждённый · с газом» — это подтверждение выбора перед оплатой,
   человек читает его последним. Поэтому крупно, тёмным, и с воздухом до кнопки,
   чтобы строка к ней не прилипала. */
.cz__summary {
  font-weight: 800;
  font-size: 16.5px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 12px;
}
.cz__err { color: var(--accent-dark); font-weight: 700; font-size: 14px; margin: 0 0 8px; }
.cz__footrow { display: flex; gap: 12px; align-items: center; }
.cz__qty { flex-shrink: 0; border: 1.5px solid var(--border); border-radius: 999px; padding: 4px; }
.cz__qty button { width: 40px; height: 40px; }
.cz__qty span { min-width: 24px; }
.cz__submit { flex: 1; margin: 0; }

/* Мобильный: полноэкранная панель снизу, safe-area */
@media (max-width: 767px) {
  .cz__panel {
    right: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .cz[open] .cz__panel { animation: cz-slide-up 0.2s ease; }
}
.cz[open] .cz__panel { animation: cz-slide-right 0.2s ease; }
.cz[open]::backdrop { animation: cz-fade 0.2s ease; }
@keyframes cz-slide-right { from { transform: translateX(100%); } to { transform: none; } }
@keyframes cz-slide-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes cz-fade { from { opacity: 0; } to { opacity: 1; } }

/* Строка настроенной пиццы в корзине */
.cart-item__cfg { color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.35; }
.cart-item__edit {
  margin-top: 6px;
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  padding: 2px 0;
  cursor: pointer;
  text-decoration: underline;
}
.cart-item--added { animation: cz-flash 1.6s ease; }
@keyframes cz-flash { from { background: var(--accent-soft); } to { background: transparent; } }

@media (prefers-reduced-motion: reduce) {
  .cz[open] .cz__panel,
  .cz[open]::backdrop,
  .cart-item--added { animation: none; }
}
