/* ============================================================
   Демо-доставка — приложение
   Цвета утверждены владельцем: фон #FFFFCC, акцент #F9B557
   ============================================================ */

:root {
  --bg: #FFFFCC;
  --surface: #FFFFFF;
  --surface-sunk: #FFF9D6;
  --ink: #3A2712;
  --ink-soft: #6B5138;
  --ink-faint: #9A8768;
  --accent: #F9B557;
  --accent-deep: #C97F1E;
  --accent-bg: #FFF0D6;
  --good: #2C6149;
  --good-bg: #E2EBE4;
  --warn: #B45F06;
  --warn-bg: #FBEFD8;
  --danger: #A23A2E;
  --danger-bg: #F6E1DE;
  --line: #EAD9A8;
  --line-strong: #DEC583;
  --nav-h: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1810;
    --surface: #262015;
    --surface-sunk: #211C13;
    --ink: #F2E8D0;
    --ink-soft: #C9B892;
    --ink-faint: #8C7C5C;
    --accent: #F9B557;
    --accent-deep: #FFC873;
    --accent-bg: #3A2A12;
    --good: #6FB394;
    --good-bg: #1B2C25;
    --warn: #E0AC5C;
    --warn-bg: #34260F;
    --danger: #E0917F;
    --danger-bg: #2E1E1A;
    --line: #3D3520;
    --line-strong: #52481F;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
h1, h2, h3 { font-family: Georgia, "Iowan Old Style", serif; margin: 0; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

#app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 10px); }

/* ---------- views ---------- */
.view { display: none; }
.view.active { display: block; }

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
}
header.top .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
header.top h1 { font-size: 19px; font-weight: 700; }
.zone-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  background: var(--good-bg); color: var(--good);
  border-radius: 20px; padding: 5px 10px;
  white-space: nowrap;
}
.zone-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.phone-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
}
.phone-link:active { opacity: 0.7; }

/* Вход в оптовый раздел. Не вкладка в нижнем меню: юрлиц единицы,
   а панель на четыре кнопки становится теснее для всех остальных. */
.org-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 11px;
}
.org-link:active { opacity: 0.7; }

/* ---------- category chips ---------- */
.cats-wrap { position: relative; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 4px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  font-size: 13.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cat-chip[aria-pressed="true"] {
  background: var(--accent); color: #2b1a06; border-color: var(--accent);
}

/* ---------- morning banner ---------- */
.morning-banner {
  margin: 12px 16px 4px;
  background: linear-gradient(120deg, var(--accent-bg), var(--surface));
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.morning-banner .icon { font-size: 26px; flex-shrink: 0; }
.morning-banner .txt b { display: block; font-size: 14px; margin-bottom: 2px; }
.morning-banner .txt span { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- product list ---------- */
.products { padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.product-card {
  display: flex; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  align-items: center;
}
.product-card__photo {
  width: 68px; height: 68px; border-radius: 9px; flex-shrink: 0;
  background: var(--surface-sunk);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--ink-faint);
  overflow: hidden;
}
.product-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { flex: 1; min-width: 0; }
.product-card__name { font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }
.product-card__desc { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__meta { font-size: 11px; color: var(--ink-faint); }
.product-card__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.product-card__price { font-family: ui-monospace, "SF Mono", monospace; font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; }

.qty-add {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #2b1a06;
  font-size: 18px; font-weight: 700;
}
.qty-stepper {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-bg); border-radius: 20px; padding: 3px 4px;
}
.qty-stepper button {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #2b1a06;
  font-size: 15px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.qty-stepper span { font-size: 13.5px; font-weight: 700; min-width: 14px; text-align: center; font-variant-numeric: tabular-nums; }

.product-card--unavailable { opacity: 0.5; }
.product-card--unavailable .qty-add, .product-card--unavailable .qty-stepper { display: none; }
.unavailable-tag { font-size: 11px; color: var(--danger); font-weight: 600; }

/* ---------- zone gate modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(30, 20, 6, 0.55);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-overlay.hidden { display: none; }
.modal-sheet {
  width: 100%; max-width: 480px;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 22px 20px calc(22px + var(--safe-bottom));
  max-height: 86vh; overflow-y: auto;
}
.modal-sheet h2 { font-size: 18px; margin-bottom: 6px; }
.modal-sheet p.lede { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 16px; }
.district-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.district-btn {
  text-align: left;
  padding: 13px 14px; border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-sunk);
  font-size: 14px; font-weight: 600;
}
.district-btn:active { background: var(--accent-bg); }
.district-group-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin: 14px 0 6px; }
.district-btn--other {
  width: 100%;
  text-align: center;
  padding: 12px 14px; border-radius: 10px;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 13.5px; font-weight: 500;
  margin-top: 10px;
}
.district-btn--other:active { background: var(--surface-sunk); }
.zone-reject {
  margin-top: 14px; padding: 14px; border-radius: 10px;
  background: var(--danger-bg); color: var(--danger);
  font-size: 13.5px; line-height: 1.5;
}
.zone-reject.hidden { display: none; }
.zone-reject b { display: block; margin-bottom: 4px; }

/* ---------- cart view ---------- */
.cart-empty { padding: 60px 24px; text-align: center; color: var(--ink-soft); }
.cart-empty .icon { font-size: 40px; margin-bottom: 10px; }

.progress-block { margin: 14px 16px; }
.progress-track { height: 8px; border-radius: 5px; background: var(--surface-sunk); overflow: hidden; border: 1px solid var(--line); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); border-radius: 5px; transition: width 0.25s ease; }
.progress-label { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.progress-label b { color: var(--accent-deep); }

.cart-list { padding: 4px 16px; display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px;
}
.cart-item__photo { width: 52px; height: 52px; border-radius: 8px; background: var(--surface-sunk); flex-shrink: 0; overflow: hidden; display:flex; align-items:center; justify-content:center; font-size:20px; color: var(--ink-faint); }
.cart-item__photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { flex: 1; min-width: 0; }
.cart-item__name { font-size: 13.5px; font-weight: 700; }
.cart-item__unit { font-size: 11.5px; color: var(--ink-faint); }
.cart-item__price { font-family: ui-monospace, monospace; font-size: 13.5px; font-weight: 700; white-space: nowrap; }

.cart-summary { margin: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 6px 0; color: var(--ink-soft); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.summary-row .val { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.summary-row--vat { font-size: 11.5px; color: var(--ink-faint); padding-top: 0; margin-top: -2px; }

.checkout-block { margin: 0 16px 16px; }
.btn-primary {
  display: block; width: 100%;
  background: var(--accent); color: #2b1a06;
  font-size: 15.5px; font-weight: 700;
  padding: 15px; border-radius: 12px;
  text-align: center;
}
.btn-primary:disabled { background: var(--surface-sunk); color: var(--ink-faint); }
.min-order-note { text-align: center; font-size: 12.5px; color: var(--warn); margin-top: 8px; }
.min-order-note.hidden { display: none; }

/* ---------- checkout form ---------- */
.form-block { padding: 4px 16px 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; font: inherit; font-size: 15px;
  padding: 12px 13px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.form-group input:focus-visible, .form-group textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot-card {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: var(--surface); text-align: left;
}
.slot-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-bg); }
.slot-card .slot-label { font-size: 13.5px; font-weight: 700; }
.slot-card .slot-time { font-size: 12px; color: var(--ink-soft); margin-top: 1px; }
.slot-card .slot-note { font-size: 10.5px; color: var(--ink-faint); margin-top: 3px; line-height: 1.35; }
.slot-card--locked { opacity: 0.45; }

/* Способ оплаты один — по СБП. Это уже не выбор, а сообщение, поэтому не кнопка. */
.pay-single {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1.5px solid var(--accent); border-radius: 10px; padding: 12px 14px;
  background: var(--accent-bg); text-align: left;
}
.pay-single .pay-qr { width: 22px; height: 22px; flex: 0 0 22px; color: var(--accent); margin-top: 1px; }
.pay-single .pay-label { font-size: 14px; font-weight: 600; }
.pay-single .pay-note { font-size: 11.5px; color: var(--ink-faint); line-height: 1.4; }

.field-note { font-size: 11.5px; color: var(--ink-faint); margin: 5px 2px 0; line-height: 1.4; }

/* ---------- orders view ---------- */
.orders-empty { padding: 60px 24px; text-align: center; color: var(--ink-soft); }
.order-card { margin: 0 16px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.order-card .order-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.order-card .order-id { font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink-faint); }
.order-card .order-status { font-size: 12px; font-weight: 700; color: var(--good); }
.order-card .order-sum { font-family: ui-monospace, monospace; font-weight: 700; }

/* ---------- confirmation ---------- */
/* 16px по бокам — та же линия, что у карточек, полей и заголовков на остальных экранах */
.confirm-view { padding: 60px 16px 20px; text-align: center; }
.confirm-view .icon { font-size: 48px; margin-bottom: 14px; }
.confirm-view h2 { font-size: 19px; margin-bottom: 8px; }
.confirm-view p { font-size: 14px; color: var(--ink-soft); margin: 0 0 22px; }

/* ---------- bottom nav ---------- */
nav.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 480px;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex; z-index: 30;
}
nav.bottom-nav .nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ink-faint); font-size: 10.5px; font-weight: 600;
  position: relative;
}
nav.bottom-nav .nav-btn .nav-icon { font-size: 20px; }
nav.bottom-nav .nav-btn[aria-current="true"] { color: var(--accent-deep); }
.nav-badge {
  position: absolute; top: 2px; right: calc(50% - 20px);
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
/* display:flex перебивает атрибут hidden — иначе цифра висит после заказа */
.nav-badge[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .progress-fill, .cat-chip { transition: none; }
}

/* ---------- product detail sheet ---------- */
.product-card { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.product-card:active { background: var(--surface-sunk); }
/* карточка открывается и для позиций «нет в наличии» — состав и КБЖУ смотреть можно всегда */

.product-sheet {
  position: relative;
  padding-top: 10px;
  max-height: 92vh;
  overflow-x: hidden;
  transition: transform 0.18s ease-out;
}
.product-sheet.dragging { transition: none; }

.sheet-grip {
  width: 38px; height: 4px; border-radius: 3px;
  background: var(--line-strong);
  margin: 0 auto 12px;
}
.sheet-close {
  position: absolute; top: 10px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-sunk); color: var(--ink-soft);
  font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.sheet-close:active { background: var(--accent-bg); }

/* Фото товаров квадратные (900×900). Окно тоже делаем квадратным, а снимок
   вписываем целиком — иначе прямоугольная рамка срезала верх и низ, и на
   каждом товаре по-разному. */
.pd-photo {
  width: 100%; aspect-ratio: 1 / 1; max-height: 42vh;
  border-radius: 14px;
  /* фон совпадает с фоном листа: у снимков он белый, и поля по бокам
     (когда рамка шире квадрата) не читаются как рамка вокруг фото */
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; color: var(--ink-faint);
  overflow: hidden; margin-bottom: 14px;
}
.pd-photo img { width: 100%; height: 100%; object-fit: contain; }

/* Несколько снимков в карточке: горизонтальная лента со «щелчком» по слайдам
   и точками-индикаторами. Стрелок нет — жест смахивания на телефоне понятнее. */
.pd-photo--gallery { display: block; position: relative; }
.pd-slides {
  display: flex; width: 100%; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pd-slides::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.pd-slide img { width: 100%; height: 100%; object-fit: contain; }
.pd-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.pd-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-faint); opacity: .35; transition: opacity .15s;
}
.pd-dots span.on { opacity: .9; }

.product-sheet h2 { font-size: 19px; line-height: 1.25; margin-bottom: 4px; }
.pd-sub { font-size: 13px; color: var(--ink-faint); margin-bottom: 16px; }
.pd-sub .pd-morning {
  display: inline-block; margin-left: 6px;
  background: var(--accent-bg); color: var(--accent-deep);
  border-radius: 20px; padding: 2px 9px;
  font-size: 11.5px; font-weight: 600;
}

.pd-section { margin-bottom: 16px; }
.pd-section.hidden { display: none; }
.pd-label {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 6px;
}
.pd-desc { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* table-layout: fixed обязателен: у обычной таблицы колонки раздвигаются
   по содержимому и лист карточки уезжает вбок — на iPhone моноширинный
   шрифт шире, чем на десктопе, и «302,7 ккал» переставало помещаться */
.pd-nutri { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13.5px; }
.pd-nutri tr { border-bottom: 1px solid var(--line); }
.pd-nutri tr:last-child { border-bottom: none; }
.pd-nutri td { padding: 7px 0; }
.pd-nutri td:first-child { color: var(--ink-soft); overflow-wrap: anywhere; }
.pd-nutri td:last-child {
  text-align: right; font-weight: 700; white-space: nowrap;
  font-family: ui-monospace, "SF Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.pd-legal {
  font-size: 11.5px; line-height: 1.5; color: var(--ink-faint);
  padding: 10px 12px; border-radius: 10px;
  background: var(--surface-sunk);
  margin-bottom: 16px;
}

.pd-foot {
  position: sticky; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0 2px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.pd-price {
  font-family: ui-monospace, "SF Mono", monospace;
  font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums;
}
.pd-controls { flex-shrink: 0; }
.pd-controls .btn-primary { margin: 0; padding: 12px 22px; font-size: 14.5px; }
.pd-controls .qty-stepper { padding: 5px 6px; }
.pd-controls .qty-stepper button { width: 30px; height: 30px; font-size: 18px; }
.pd-controls .qty-stepper span { font-size: 15px; min-width: 20px; }
.pd-unavailable { font-size: 13px; color: var(--danger); font-weight: 600; }

/* дальние края правого берега — визуально приглушены, но кликабельны */
.district-btn--far {
  background: transparent;
  border-style: dashed;
  color: var(--ink-faint);
  font-weight: 500;
}
.district-btn--far:active { background: var(--surface-sunk); }

/* ---------- зона по адресу ---------- */
.addr-search { position: relative; margin-bottom: 12px; }
.addr-search input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-sunk);
  font-size: 15px; color: var(--ink);
}
.addr-search input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.addr-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(30,20,6,0.16);
  max-height: 240px; overflow-y: auto;
}
.addr-suggest.hidden { display: none; }
.addr-suggest__item {
  display: block; width: 100%; text-align: left;
  padding: 11px 14px; font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.addr-suggest__item:last-child { border-bottom: none; }
.addr-suggest__item:active { background: var(--accent-bg); }

.zone-ok {
  margin-top: 4px; padding: 14px; border-radius: 10px;
  background: var(--good-bg); color: var(--good);
  font-size: 13.5px; line-height: 1.5;
}
.zone-ok.hidden { display: none; }
.zone-ok b { display: block; margin-bottom: 4px; }

.zone-fallback.hidden { display: none; }
.zone-fallback-link {
  display: block; width: 100%; text-align: center;
  margin-top: 14px; padding: 10px;
  font-size: 13px; color: var(--ink-faint);
  text-decoration: underline;
}
.zone-fallback-link.hidden { display: none; }

/* ---------- полоска-подсказка про зону (вместо блокирующего окна) ---------- */
.zone-hint {
  display: flex; align-items: center; gap: 8px;
  margin: 0 16px 10px; padding: 9px 10px 9px 12px;
  background: var(--surface); border: 1px solid var(--accent-line, #f0d9a8);
  border-radius: 12px; font-size: 12.5px; color: var(--ink-soft);
}
.zone-hint__txt { flex: 1 1 auto; min-width: 0; }
.zone-hint button {
  flex: 0 0 auto; border: none; background: none; cursor: pointer;
  font: inherit; color: var(--accent-ink, #9a6512); font-weight: 700;
  padding: 2px 4px; border-radius: 8px;
}
.zone-hint button:active { background: var(--accent-bg); }
.zone-hint__x { font-size: 17px; line-height: 1; color: var(--ink-faint) !important; font-weight: 400 !important; }

/* ---------- два равноправных пути в зональном окне ---------- */
.zone-choice { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.zone-choice-btn {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  width: 100%; padding: 13px 16px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px;
  font: inherit; color: var(--ink);
}
.zone-choice-btn:active { background: var(--accent-bg); border-color: var(--accent); }
.zone-choice-btn b { font-size: 15.5px; }
.zone-choice-btn span { font-size: 12.5px; color: var(--ink-faint); }

.zone-fallback-note {
  margin-top: 10px; font-size: 12.5px; color: var(--ink-faint); text-align: center;
}

/* Общее правило: в проекте исторически у каждого блока было своё
   «.что-то.hidden { display: none }», и новые элементы про это не знали. */
.hidden { display: none !important; }

.zone-pickup-btn {
  display: block; width: 100%; margin-top: 10px; padding: 11px 14px;
  border: 1.5px solid var(--accent); border-radius: 12px; background: var(--surface);
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
}
.zone-pickup-btn:active { background: var(--accent-bg); }


/* ---------- Видео в карточке товара ----------
   Кнопка «play» лежит поверх фотографии. Пока её не нажали, видео не
   загружается вообще. После нажатия квадратная рамка превращается в
   вертикальный кадр 9:16 — ролики снимаются на телефон, и в квадрате
   они шли бы с широкими полями по бокам. */
.pd-photo--hasvideo { position: relative; }

.pd-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(28, 26, 23, 0.62);
  backdrop-filter: blur(2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}
.pd-play::before {
  content: ''; display: block;
  width: 0; height: 0; margin: 0 auto;
  transform: translateX(3px);
  border-left: 20px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
.pd-play:active { background: rgba(28, 26, 23, 0.78); }

.pd-photo--video {
  /* Размер задаёт само видео, а не рамка. Рамка в обычном состоянии квадратная
     (aspect-ratio: 1/1 у .pd-photo) — если оставить квадрат, вертикальный ролик
     ляжет с чёрными полями по бокам. Поэтому здесь пропорции снимаем, а высоту
     ограничиваем у самого видео. */
  aspect-ratio: auto;
  height: auto; max-height: none;
  background: transparent;
}

.pd-video {
  width: auto; height: 62vh; max-height: 62vh; max-width: 100%;
  object-fit: contain; display: block;
  border-radius: 14px; background: #000;
}

/* ---------- Предупреждение по утреннему окну ---------- */
.slot-warn {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--warn-bg);
  border: 1px solid var(--accent);
  color: var(--warn);
  font-size: 13px;
  line-height: 1.45;
}
.slot-warn b { color: var(--warn); }

/* ---------- Отправка заказа в мессенджер ---------- */
.send-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 18px 0 10px;
}
.btn-wa { background: #25D366; border-color: #25D366; color: #06331A; }
.btn-tg { background: #35A7DE; border-color: #35A7DE; color: #04283A; }
.btn-ghost {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.btn-ghost:active { background: var(--surface-sunk); }
.send-note {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-faint);
}
.send-fallback {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.send-fallback a { color: var(--accent-deep); font-weight: 600; }

/* Метка «Сегодня/Завтра» на плашке окна доставки */
.slot-day {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 8px;
  background: var(--accent-bg);
  color: var(--accent-deep);
  font-size: 10.5px;
  font-weight: 700;
  vertical-align: middle;
}


/* ---- подвал магазина: реквизиты и документы (нужны для ЮKassa) ---- */
.shop-legal{
  margin:26px 0 10px; padding:18px 4px 4px;
  border-top:1px solid var(--line);
  font-size:12.5px; line-height:1.55; color:var(--ink-faint);
}
.shop-legal__seller a{color:var(--ink-faint);text-decoration:underline}
.shop-legal__links{
  display:flex; flex-wrap:wrap; gap:10px 16px; margin-top:10px;
}
.shop-legal__links a{
  color:var(--accent-deep); text-decoration:none; font-weight:700;
}
.shop-legal__links a:active{opacity:.6}
