/* ═══════════════════════════════════════════════════════════════════════════
   app-additions.css  —  патчи поверх app.min.css
   ═══════════════════════════════════════════════════════════════════════════

   1. Скрол-навигация: свайп работает как обычный горизонтальный скрол
   2. Skeleton loader для изображений карточек
   3. Цвета текста в карточке товара (светлая + тёмная тема)
   4. Drag & drop пилюль (стили клона и индикатора)
   5. Кнопка принудительного обновления меню
   ═══════════════════════════════════════════════════════════════════════════ */


/* ─── 1. Скрол-навигация — свайп жестами ─────────────────────────────────── */
/*
   Проблема: scroll-behavior:smooth в app.min.css перехватывает touch-события
   и превращает любой свайп в «плавную прокрутку», из-за чего пальцем
   навигацию не прокрутить. Убираем его переопределением и явно разрешаем
   горизонтальный pan через touch-action.
*/
.v2-cat-nav {
  scroll-behavior: auto !important;   /* убираем smooth — он ломает свайп   */
  touch-action: pan-x !important;     /* разрешаем горизонтальный свайп     */
  -webkit-overflow-scrolling: touch;  /* momentum-scrolling на iOS           */
  cursor: grab;                       /* визуальный намёк на десктопе        */
}
.v2-cat-nav:active { cursor: grabbing; }

/* Активная пилюля НЕ скроллится в центр — убираем scale-transform,
   чтобы Bootstrap и Angular не считали её «не во viewport» */
.v2-cat-pill.active {
  transform: none !important;         /* было scale(1.08) — мешало позиции  */
}
.v2-cat-pill:active {
  transform: scale(.93) !important;
}


/* ─── 2. Skeleton loader для изображений карточек ────────────────────────── */

.v2-card-img--skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.v2-card-img--skeleton::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.45) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: v2-skeleton-shine 1.4s ease-in-out infinite;
  will-change: transform;
  z-index: 1;
  pointer-events: none;
}

.v2-card-img--skeleton img {
  opacity: 0;
  transition: opacity 0.22s ease;
}

.v2-card-img:not(.v2-card-img--skeleton) img {
  opacity: 1;
}

@keyframes v2-skeleton-shine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}




/* ─── 3. Карточка товара: цвета текста в обеих темах ─────────────────────── */
/*
   Проблема: часть элементов в offcanvas наследует цвет от Bootstrap или
   от старых классов и теряется на фоне панели в светлой / тёмной теме.
   Явно прописываем цвет для каждого текстового элемента.
*/

/* Общий контейнер — базовый цвет */
.v2-oc-panel,
.v2-oc-body {
  color: var(--text);
}

/* Название и цена */
.v2-oc-name {
  color: var(--text) !important;
}
.v2-oc-price-line {
  color: var(--text) !important;
}

/* Описание / вес */
.v2-oc-desc,
.v2-oc-weight {
  color: var(--muted) !important;
}

/* Блок состава */
.v2-oc-comp {
  background: var(--bg) !important;
}
.v2-oc-comp-title {
  color: var(--muted) !important;
}
.v2-oc-comp-text {
  color: var(--text) !important;
}

/* Топпинги */
.v2-topping-name {
  color: var(--text) !important;
}
.v2-topping-name.is-removed {
  color: var(--muted) !important;
}

/* Метка блока («Добавить» / «Убрать из состава») */
.v2-oc-block-label {
  color: var(--muted) !important;
}

/* Варианты */
.v2-variant-btn {
  color: var(--text) !important;
  border-color: var(--border) !important;
  background: transparent !important;
}
.v2-variant-btn.active {
  background: var(--text) !important;
  border-color: var(--text) !important;
  color: var(--surface) !important;   /* инверсия: текст → фон кнопки */
}

/* Кнопка закрытия панели */
.v2-oc-close {
  background: var(--surface) !important;
  color: var(--text) !important;
}

/* Счётчик в футере карточки */
.v2-oc-foot-ctr span {
  color: var(--text) !important;
}
.v2-oc-foot-ctr button {
  color: var(--text) !important;
  border-color: var(--border) !important;
  background: transparent !important;
}
.v2-oc-foot-ctr button.minus {
  color: var(--muted) !important;
}

/* Фон футера */
.v2-oc-foot {
  background: var(--surface) !important;
  border-top-color: var(--border) !important;
}

/* Кнопка «В корзину» — в светлой теме lime/text, в тёмной lime/surface */
.v2-btn-atc {
  background: var(--lime) !important;
  color: var(--text) !important;
}
.v2-btn-atc.added {
  background: var(--pink) !important;
  color: #fff !important;
}

.v2-oc-panel,
.v2-oc-body {
  background: var(--surface);
  color: var(--text);
}


/* ─── 4. Drag & drop пилюль ──────────────────────────────────────────────── */

.v2-cat-nav .v2-cat-pill.is-dragging {
  opacity: 0.3;
  transform: scale(0.9) !important;
  transition: opacity 0.1s, transform 0.1s;
}

.v2-cat-nav .v2-cat-pill.drag-over-left  { box-shadow: -3px 0 0 0 var(--accent); }
.v2-cat-nav .v2-cat-pill.drag-over-right { box-shadow:  3px 0 0 0 var(--accent); }

.v2-pill-drag-clone {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.92;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--accent);
}


/* ─── 5. Кнопка принудительного обновления меню ─────────────────────────── */

.v2-hbtn--refresh.is-spinning svg {
  animation: v2-spin 0.85s linear infinite;
}
.v2-hbtn--refresh:active svg { opacity: 0.55; }

@keyframes v2-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── 6. Кнопка обновления меню в блоке информации ─────────────────────── */

.v2-info-refresh {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 8px;
}

.v2-info-refresh-btn {
  width: 100%;
}

.v2-info-refresh-btn:disabled {
  opacity: 0.72;
}


/* ─── 7. Оптимизация производительности карточек и скролла ──────────────── */

/* content-visibility для секций убран: невидимые секции считались высотой 480px и после
   отрисовки «вырастали», из-за чего переходы к разделам/категориям промахивались,
   а подсветка раздела в нижнем меню путалась. */

/* Изоляция перерисовок отдельных карточек */
.v2-card {
  contain: layout paint;
}

.v2-card-img img {
  transform: translateZ(0);
}

/* Оптимизация нативной плавной прокрутки списков на мобильных */
.v2-home-list,
.v2-page-list,
.v2-oc-body {
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

/* Мгновенная реакция кнопок корзины без задержки 300ms на мобильных */
.v2-btn-plus,
.v2-ctr-btn {
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}


/* (Устаревший блок медиазапросов удалён в пользу консолидированного раздела 8 в конце файла) */

/* ─── Десктопные микроанимации при наведении (hover) ─────────────────────── */
@media (hover: hover) {
  .v2-card {
    transition: transform .22s cubic-bezier(.2,0,0,1),
                box-shadow .22s cubic-bezier(.2,0,0,1),
                border-color .22s;
  }
  .v2-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh2);
    border-color: rgba(255,45,141,0.28);
  }
  .v2-btn-plus:hover {
    background: var(--accent-hover);
    transform: scale(1.08);
  }
  .v2-cat-pill:hover:not(.active) {
    background: var(--bg);
    border-color: var(--muted);
    color: var(--text);
  }
  .v2-nav-item:hover .v2-nav-icon {
    color: var(--pink);
    transform: scale(1.1);
  }
  .v2-nav-item:hover .v2-nav-label {
    color: var(--pink);
  }
  .v2-header-btn:hover {
    background: var(--border);
  }
  .v2-hbtn:hover {
    background: var(--border);
  }
  .v2-page-back:hover {
    background: var(--border);
  }
}

/* ─── 6. Новая навигация: Хэдер и Нижний бар ────────────────────────────── */

:root {
  --menu-tabs-h: 0px !important;
}

.v2-header-logo img {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
  cursor: pointer;
}

.v2-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  left: 8px;
  bottom: 12px;
}

.v2-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  right: 8px;
  bottom: 12px;
}

.v2-header-left .v2-hbtn,
.v2-header-right .v2-hbtn,
.v2-page-header .v2-hbtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-header-left .v2-hbtn svg,
.v2-header-right .v2-hbtn svg,
.v2-page-header .v2-hbtn svg {
  width: 20px;
  height: 20px;
}

.v2-hbtn-cart {
  position: relative;
}

.v2-hbtn-cart .v2-cart-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  background: var(--pink);
  color: #fff;
  border-radius: 99px;
  padding: 1px 5px;
  font-size: 9.5px;
  font-weight: 800;
  min-width: 16px;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

.v2-page-header .v2-header-right {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
}

/* Кнопки в нижнем баре */
.v2-bottom-nav .v2-nav-item {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ─── 7. Swipe-to-dismiss на карточке товара (#menuMore) ─────────────────── */
.v2-oc-panel {
  touch-action: pan-y;
  will-change: transform;
}

.v2-oc-drag {
  cursor: grab;
  touch-action: none;
  padding: 4px 0;
}

/* ─── 8. Постоянная строка поиска и сквозной каталог ─────────────────────── */

:root {
  --search-bar-h: 48px;
}

.v2-search-bar.v2-search-bar--persistent {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--header-h) + var(--sat));
  height: var(--search-bar-h);
  z-index: 798;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: visible;
  transition: none;
}



.v2-search-input-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 6px 14px;
  transition: border-color .2s, box-shadow .2s;
}

.v2-search-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 45, 141, 0.15);
}

.v2-search-input-wrap .v2-search-ico {
  width: 17px;
  height: 17px;
  color: var(--muted);
  flex-shrink: 0;
}

.v2-search-input-wrap .v2-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  padding: 0;
}

.v2-search-input-wrap .v2-search-input::placeholder {
  color: var(--muted);
  font-size: 13.5px;
}

.v2-search-input-wrap .v2-search-clear {
  border: none;
  background: var(--surface);
  color: var(--muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color .15s, background .15s;
}

.v2-search-input-wrap .v2-search-clear:hover {
  color: var(--text);
}

/* Привязка вертикальных позиций навбара категорий и контента */
.v2-cat-nav {
  top: calc(var(--header-h) + var(--search-bar-h) + var(--sat)) !important;
}

.v2-home-list {
  position: relative !important;
  top: 0 !important;
}

/* Отступ внизу списка меню для свободного доскролливания последнего раздела */
.v2-list-end {
  height: max(320px, 60vh) !important;
}

/* ─── Разделитель между разделами меню в сквозном каталоге ──────────────── */
.v2-sec-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 16px;
  padding: 0 4px;
}

.v2-section-block:first-child .v2-sec-divider {
  margin-top: 6px;
}

.v2-sec-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.v2-sec-divider-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .3px;
  box-shadow: var(--sh);
}

.v2-sec-divider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* Заголовки разделов в боковой панели каталога */
.v2-cat-panel-section {
  margin-bottom: 12px;
}

.v2-cat-panel-section-title {
  padding: 8px 12px 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  cursor: pointer;
}

/* ─── Выбор города (кнопка в шапке и модалка) ───────────────────────────── */
.v2-city-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 4px;
}
.v2-city-selector-btn:hover {
  background: var(--bg);
  border-color: var(--accent);
}

.v2-city-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99990;
  animation: v2-fade-in 0.2s ease;
}

.v2-city-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  background: var(--surface, #ffffff);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  z-index: 99991;
  padding: 24px;
  animation: v2-scale-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes v2-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes v2-scale-in {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.v2-city-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.v2-city-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.v2-city-modal-close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}
.v2-city-modal-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 20px;
}
.v2-city-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v2-city-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.v2-city-item:hover {
  border-color: var(--accent);
  background: var(--surface);
}
.v2-city-item.active {
  border-color: var(--accent);
  background: rgba(234, 88, 12, 0.08);
  color: var(--accent);
}
.v2-city-check {
  font-weight: 900;
  font-size: 18px;
  color: var(--accent);
}

/* ─── Авторизация / Регистрация в Профиле ────────────────────────────────── */
.v2-auth-tabs {
  display: flex;
  background: var(--bg);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
  gap: 4px;
  border: 1px solid var(--border);
}
.v2-auth-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.v2-auth-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.v2-auth-error {
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.v2-auth-switch {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.v2-auth-switch a {
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.v2-btn-logout {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px 16px;
  background: none;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.v2-btn-logout:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* ─── Splash Animation Overlay ──────────────────────────────────────────── */
.v2-splash-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #000000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
  will-change: opacity, visibility;
}

.v2-splash-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.v2-splash-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v2-splash-skip {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 16px));
  right: max(16px, env(safe-area-inset-right, 16px));
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  z-index: 100000;
  transition: background 0.2s ease, transform 0.15s ease;
}

.v2-splash-skip:active {
  transform: scale(0.95);
  background: rgba(0, 0, 0, 0.7);
}

/* ─── 8. Плавающая корзина над нижним меню (Dodo / Яндекс стиль) ─────────── */
.v2-floating-cart-wrapper {
  position: fixed;
  bottom: calc(var(--bottom-nav-height, 62px) + 12px);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 95;
  padding: 0 16px;
  pointer-events: none;
  animation: slideUpFloatingCart 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-floating-cart-btn {
  pointer-events: auto;
  width: 100%;
  max-width: 508px;
  height: 52px;
  background: #FFE000 !important;
  color: #202124 !important;
  border: none;
  border-radius: 16px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(255, 224, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.v2-floating-cart-btn:active {
  transform: scale(0.97);
}

.v2-fc-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v2-fc-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.v2-fc-icon svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

.v2-fc-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #ffffff;
  color: #e63946;
  font-size: 11px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.v2-fc-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.v2-fc-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.v2-fc-sum {
  font-size: 16px;
  font-weight: 800;
}

.v2-fc-arrow {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.85);
}

@keyframes slideUpFloatingCart {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ─── 9. Промокоды в корзине ─────────────────────────────────────────────── */
.v2-cart-promo {
  margin: 16px 0;
  padding: 14px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
}

.v2-pf-input-wrap {
  display: flex;
  gap: 8px;
}

.v2-pf-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 10px;
  background: var(--bg, #f8fafc);
  color: var(--text, #1e293b);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.v2-pf-input:focus {
  outline: none;
  border-color: #e63946;
}

.v2-pf-btn {
  padding: 10px 18px;
  background: #e63946;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.v2-pf-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.v2-promo-error {
  margin-top: 8px;
  font-size: 13px;
  color: #ef4444;
  font-weight: 600;
}

.v2-promo-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 10px 14px;
  border-radius: 10px;
}

.v2-pa-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.v2-pa-badge {
  background: #22c55e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.v2-pa-code {
  font-weight: 800;
  font-family: monospace;
  font-size: 15px;
  color: #16a34a;
}

.v2-pa-discount {
  font-weight: 700;
  color: #16a34a;
}

.v2-pa-saving {
  font-size: 13px;
  color: #64748b;
}

.v2-pa-remove {
  background: none;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
}

.v2-pa-remove:hover {
  color: #ef4444;
}

.v2-cs-row.promo-discount {
  color: #16a34a;
  font-weight: 600;
}

.v2-discount-val {
  font-weight: 700;
}

/* ─── 10. Кнопка выбора города в шапке ──────────────────────────────────── */
.v2-header-city-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230, 57, 70, 0.08);
  color: #e63946;
  border: 1px solid rgba(230, 57, 70, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.v2-header-city-btn:hover {
  background: rgba(230, 57, 70, 0.15);
  border-color: #e63946;
  transform: translateY(-1px);
}

.v2-header-city-btn svg {
  stroke: currentColor;
  flex-shrink: 0;
}

/* ─── 11. Стилизация модального окна выбора города ───────────────────────── */
.v2-city-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* ─── 12. Город доставки в личном кабинете ───────────────────────────── */
.v2-profile-city-card {
  background: var(--card-bg, #ffffff);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.v2-profile-city-current {
  font-size: 13px;
  font-weight: 600;
  color: #e63946;
  background: rgba(230, 57, 70, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
}
.v2-profile-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.v2-profile-city-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  background: var(--bg, #f8f9fa);
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}
.v2-profile-city-btn:hover {
  border-color: #e63946;
  background: rgba(230, 57, 70, 0.04);
}
.v2-profile-city-btn.active {
  background: rgba(230, 57, 70, 0.1);
  border-color: #e63946;
  color: #e63946;
  font-weight: 600;
}
.v2-pc-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-pc-check {
  font-weight: 700;
  font-size: 14px;
  color: #e63946;
  margin-left: 6px;
  flex-shrink: 0;
}
/* ─── Стоп-лист (товары на стопе) ─────────────────────────────────────────── */
.v2-card.is-stopped {
  opacity: 0.72;
  filter: grayscale(0.25);
}
.v2-card.is-stopped .v2-card-img {
  position: relative;
}
.v2-card-stop-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.v2-card-stopped-badge {
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  background: #fee2e2;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}
.v2-oc-stop-banner {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   УТВЕРЖДЁННЫЙ ДИЗАЙН 2026: ЖЁЛТЫЙ СТИЛЬ (ВКУСНЯЦКИ REFERENCE)
   Токены: #FFE000 (акцент), #E6CA00 (нажатие), #FFF6BF (мягкий),
           #FFFCF3 (фон), #FFFFFF (карточки), #202124 (текст), #62666D (серый)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Базовый фон и текст */
body, .activity-view {
  background-color: #FFFCF3 !important;
  color: #202124 !important;
  font-family: Inter, -apple-system, system-ui, sans-serif !important;
}

/* ─── 0. КОНТЕЙНЕРЫ ЭКРАНОВ (FLEXBOX COLUMN — БЕЗ НАЛОЖЕНИЙ) ─────────────── */
.v2-screen-container,
.v2-page-screen {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  height: 100dvh !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  position: relative !important;
  background: #FFFCF3 !important;
  box-sizing: border-box !important;
}

.v2-top-fixed-bar {
  flex-shrink: 0 !important;
  width: 100% !important;
  background: #FFFCF3 !important;
  z-index: 50 !important;
  border-bottom: 1px solid rgba(0,0,0,0.04) !important;
}

.v2-home-list,
.v2-page-list {
  flex: 1 !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 10px 16px 140px !important;
}

/* ─── 1. ШАПКА КАТАЛОГА ──────────────────────────────────────────────────── */
.v2-header-ref {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 16px !important;
  background: #FFFCF3 !important;
  height: 60px !important;
  min-height: 60px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.v2-h-address {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  text-align: left !important;
  max-width: 55% !important;
}

.v2-h-pin-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  flex-shrink: 0 !important;
  color: #202124 !important;
  stroke: #202124 !important;
}

.v2-h-addr-label {
  font-size: 11px !important;
  color: #62666D !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.v2-h-addr-val {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #202124 !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.v2-h-logo-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 4px !important;
}

.v2-h-logo-wrap picture {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 46px !important;
}

.v2-h-logo-img {
  height: 46px !important;
  max-height: 50px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
  display: block !important;
}

.v2-h-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.v2-h-profile-btn,
.v2-circle-icon-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 50% !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E5E5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #202124 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
  padding: 0 !important;
  transition: transform 0.12s ease, background 0.12s ease !important;
}

.v2-h-profile-btn:hover,
.v2-circle-icon-btn:hover {
  background: #F9FAFB !important;
}

.v2-h-profile-btn:active,
.v2-circle-icon-btn:active {
  background: #F3F4F6 !important;
  transform: scale(0.96) !important;
}

/* ─── 2. ПЕРЕКЛЮЧАТЕЛЬ: ДОСТАВКА / САМОВЫВОЗ ─────────────────────────────── */
.v2-delivery-switcher {
  display: flex;
  gap: 8px;
  padding: 6px 16px 10px;
}

.v2-ds-btn {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: #F0EDE5;
  color: #202124;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.v2-ds-btn.active {
  background: #FFE000 !important;
  color: #202124 !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 224, 0, 0.4);
}

.v2-ds-btn:active {
  transform: scale(0.98);
}

/* ─── 3. ПОИСКОВАЯ СТРОКА ────────────────────────────────────────────────── */
.v2-search-box-ref {
  padding: 0 16px 10px;
}

.v2-search-input-ref {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #E5E5E5;
  background: #FFFFFF;
  padding: 0 14px 0 42px;
  font-size: 15px;
  color: #202124;
  outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: border-color 0.15s ease;
}

.v2-search-input-ref:focus {
  border-color: #FFE000;
  box-shadow: 0 0 0 3px rgba(255, 224, 0, 0.2);
}

.v2-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.v2-search-ico-left {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #62666D;
  pointer-events: none;
}

.v2-search-clear-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: #62666D;
  cursor: pointer;
}

/* ─── 4. ГОРИЗОНТАЛЬНЫЕ ПИЛЮЛИ КАТЕГОРИЙ ─────────────────────────────────── */
.v2-cat-nav-ref {
  display: flex;
  gap: 8px;
  padding: 4px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-x;
}
.v2-cat-nav-ref::-webkit-scrollbar { display: none; }

.v2-cat-pill-ref {
  flex-shrink: 0;
  height: 38px;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  background: #F0EDE5;
  color: #62666D;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.v2-cat-pill-ref.active {
  background: #FFE000 !important;
  color: #202124 !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(255, 224, 0, 0.35);
}

/* ─── 5. ЗАГОЛОВОК СЕКЦИИ КАТАЛОГА ───────────────────────────────────────── */
.v2-sec-heading-ref {
  font-size: 22px;
  font-weight: 800;
  color: #202124;
  margin: 12px 16px 10px;
  letter-spacing: -0.3px;
}

/* ─── 6. СЕТКА КАРТОЧЕК ТОВАРОВ ──────────────────────────────────────────── */
.v2-grid-ref {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 0 0 40px !important;
}

.v2-card-ref {
  background: #FFFFFF !important;
  border-radius: 16px !important;
  border: 1px solid #ECEAE4 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease !important;
}

.v2-card-ref:active {
  transform: scale(0.99) !important;
}

.v2-card-ref-img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  background: #FAFAFA !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.v2-card-ref-img img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  transition: transform 0.2s ease !important;
}

.v2-card-ref:hover .v2-card-ref-img img {
  transform: scale(1.03) !important;
}

.v2-card-ref-body {
  padding: 10px 12px 12px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.v2-card-ref-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #202124 !important;
  line-height: 1.25 !important;
  margin: 0 0 2px !important;
  min-height: 38px !important;
  cursor: pointer !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.v2-card-ref-sub {
  font-size: 12px !important;
  color: #62666D !important;
  margin-bottom: 8px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.v2-card-ref-bottom {
  margin-top: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.v2-card-ref-price {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #202124 !important;
}

.v2-card-btn-plus-ref {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 10px !important;
  background: #FFE000 !important;
  color: #202124 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(255, 224, 0, 0.35) !important;
}

.v2-card-btn-plus-ref:hover {
  background: #E6CA00 !important;
}

.v2-card-ctr-ref {
  display: flex !important;
  align-items: center !important;
  height: 36px !important;
  background: #FFE000 !important;
  border-radius: 10px !important;
  padding: 0 4px !important;
  box-shadow: 0 2px 6px rgba(255, 224, 0, 0.35) !important;
}

.v2-card-ctr-btn-ref {
  width: 26px !important;
  height: 26px !important;
  border-radius: 6px !important;
  border: none !important;
  background: transparent !important;
  color: #202124 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.v2-card-ctr-btn-ref:active {
  background: rgba(0,0,0,0.06) !important;
}

.v2-card-ctr-num-ref {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #202124 !important;
  min-width: 18px !important;
  text-align: center !important;
  padding: 0 2px !important;
}

/* ─── 7. ПЛАВАЮЩАЯ КНОПКА КОРЗИНЫ ────────────────────────────────────────── */
.v2-floating-cart-wrapper {
  position: fixed;
  bottom: calc(var(--bottom-h) + var(--sab) + 10px) !important;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 990;
  padding: 0 16px;
  pointer-events: none;
}

.v2-floating-cart-btn {
  pointer-events: auto;
  width: 100%;
  max-width: 540px;
  height: 52px;
  border-radius: 16px;
  background: #FFE000 !important;
  color: #202124 !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 6px 20px rgba(255, 224, 0, 0.45) !important;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.v2-floating-cart-btn:hover {
  background: #E6CA00 !important;
}

.v2-floating-cart-btn:active {
  transform: scale(0.98);
}

.v2-fc-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v2-fc-icon svg {
  width: 20px;
  height: 20px;
  stroke: #202124;
}

.v2-fc-badge {
  display: none;
}

.v2-fc-text {
  font-size: 16px;
  font-weight: 700;
  color: #202124;
}

.v2-fc-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
  color: #202124;
}

.v2-fc-arrow {
  width: 18px;
  height: 18px;
  stroke: #202124;
}

/* ─── 8. НИЖНЯЯ ПАНЕЛЬ НАВИГАЦИИ (3 ИКОНКИ) ──────────────────────────────── */
.v2-bottom-nav {
  height: 64px !important;
  background: #FFFFFF !important;
  border-top: 1px solid #E5E5E5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 995 !important;
  padding-bottom: var(--sab) !important;
}

.v2-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #62666D !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  transition: color 0.15s ease;
}

.v2-nav-item .v2-nav-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 28px !important;
  padding: 2px 10px !important;
  border-radius: 14px !important;
  transition: background 0.15s ease !important;
}

.v2-nav-item .v2-nav-icon svg {
  width: 24px !important;
  height: 24px !important;
  stroke: currentColor !important;
  fill: none !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.v2-nav-item .v2-nav-icon svg.ng-hide {
  display: none !important;
}

.v2-nav-item.active {
  color: #202124 !important;
}

.v2-nav-item.active .v2-nav-icon {
  background: #FFF6BF !important;
}

.v2-nav-item.active .v2-nav-icon svg {
  stroke: #202124 !important;
}

.v2-nav-label {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: inherit !important;
}

/* ─── 9. ЭКРАН КОРЗИНЫ / СТРАНИЦ ─────────────────────────────────────────── */
.v2-page-header-ref {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 16px !important;
  background: #FFFCF3 !important;
  height: 60px !important;
  min-height: 60px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

.v2-circle-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #202124;
  cursor: pointer;
}

.v2-ph-title-box {
  flex: 1;
  margin-left: 12px;
}

.v2-ph-main-title {
  font-size: 20px;
  font-weight: 800;
  color: #202124;
  line-height: 1.2;
}

.v2-ph-sub-title {
  font-size: 13px;
  color: #62666D;
}

.v2-cart-card-ref {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #ECEAE4;
  padding: 12px 14px;
  margin: 0 16px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.v2-cart-card-img {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  background: #FAFAFA;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.v2-cart-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.v2-cart-card-info {
  flex: 1;
  min-width: 0;
}

.v2-cart-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #202124;
  line-height: 1.25;
  margin-bottom: 2px;
}

.v2-cart-card-variant {
  font-size: 12px;
  color: #62666D;
  margin-bottom: 4px;
}

.v2-cart-card-price {
  font-size: 16px;
  font-weight: 800;
  color: #202124;
}

.v2-cart-action-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #ECEAE4;
  padding: 14px 16px;
  margin: 0 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.v2-cac-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v2-cac-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #F7F5F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #202124;
}

.v2-cac-title {
  font-size: 15px;
  font-weight: 700;
  color: #202124;
}

.v2-cac-sub {
  font-size: 12px;
  color: #62666D;
}

.v2-cac-arrow {
  color: #62666D;
  font-size: 18px;
}

.v2-summary-card-ref {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #ECEAE4;
  padding: 16px;
  margin: 0 16px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.v2-scr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
  color: #62666D;
}

.v2-scr-row.total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #E5E5E5;
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 800;
  color: #202124;
}

.v2-cart-bottom-checkout {
  width: 100% !important;
  max-width: 680px !important;
  margin: 16px auto 0 !important;
  padding: 0 16px 40px !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.v2-cb-hint {
  font-size: 13px !important;
  color: #62666D !important;
  margin-bottom: 10px !important;
  font-weight: 500 !important;
  text-align: center !important;
}

.v2-btn-checkout-big {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  background: #FFE000 !important;
  color: #202124 !important;
  border: none;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 224, 0, 0.4);
  transition: background 0.15s ease;
}

.v2-btn-checkout-big:hover {
  background: #E6CA00 !important;
}

/* ─── 10. ОФОРМЛЕНИЕ ЗАКАЗА (ОФФКАНВАС #cartOrder) ────────────────────────── */
.v2-co-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #202124;
  margin: 16px 0 8px;
}

.v2-co-tabs {
  display: flex;
  gap: 8px;
}

.v2-co-tab {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #E5E5E5;
  background: #F7F5F0;
  color: #62666D;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.v2-co-tab.active {
  background: #FFE000 !important;
  color: #202124 !important;
  border-color: #FFE000 !important;
  font-weight: 700;
}

.v2-co-input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #E5E5E5;
  background: #FFFFFF;
  padding: 0 14px;
  font-size: 15px;
  color: #202124;
  outline: none;
  margin-bottom: 10px;
}

.v2-co-input:focus {
  border-color: #FFE000;
  box-shadow: 0 0 0 3px rgba(255, 224, 0, 0.2);
}

.v2-co-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

/* Вкладки оплаты: ТОЛЬКО НАЛИЧНЫЕ И СБП */
.v2-payment-tabs-2 {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.v2-ptab-2 {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #E5E5E5;
  background: #F7F5F0;
  color: #62666D;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.v2-ptab-2.active {
  background: #FFE000 !important;
  color: #202124 !important;
  border-color: #FFE000 !important;
  box-shadow: 0 2px 8px rgba(255, 224, 0, 0.35);
}

/* ─── 11. ЛИЧНЫЙ КАБИНЕТ ─────────────────────────────────────────────────── */
.v2-profile-ref-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #ECEAE4;
  padding: 16px;
  margin: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.v2-pr-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFF6BF;
  color: #202124;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.v2-pr-info {
  flex: 1;
}

.v2-pr-name {
  font-size: 17px;
  font-weight: 800;
  color: #202124;
  margin: 0 0 2px;
}

.v2-pr-sub {
  font-size: 13px;
  color: #62666D;
}

.v2-pr-edit-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F7F5F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #202124;
  cursor: pointer;
}

/* Карточка данных */
.v2-data-ref-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #ECEAE4;
  padding: 8px 16px 16px;
  margin: 0 16px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.v2-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F0EDE5;
}

.v2-data-row:last-of-type {
  border-bottom: none;
}

.v2-data-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #202124;
  font-size: 14px;
  font-weight: 600;
}

.v2-data-val {
  color: #62666D;
  font-size: 14px;
  font-weight: 500;
  max-width: 55%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v2-btn-edit-data-ref {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: #FFE000 !important;
  color: #202124 !important;
  border: none;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(255, 224, 0, 0.35);
}

/* Карточка: Заказать по телефону */
.v2-phone-order-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #ECEAE4;
  padding: 16px;
  margin: 0 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.v2-po-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v2-po-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFF6BF;
  color: #202124;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v2-po-title {
  font-size: 12px;
  color: #62666D;
  margin-bottom: 2px;
}

.v2-po-number {
  font-size: 17px;
  font-weight: 800;
  color: #202124;
  text-decoration: none;
}

.v2-btn-call {
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  background: #FFE000;
  color: #202124;
  border: none;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 224, 0, 0.35);
}

/* Карточка: Информация о заведении в профиле */
.v2-profile-info-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #ECEAE4;
  padding: 14px 16px;
  margin: 0 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.v2-profile-info-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.v2-profile-info-card:active {
  transform: scale(0.98);
}
.v2-pi-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.v2-pi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFF6BF;
  color: #202124;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.v2-pi-title {
  font-size: 15px;
  font-weight: 800;
  color: #202124;
  margin-bottom: 2px;
}
.v2-pi-sub {
  font-size: 12px;
  color: #62666D;
  line-height: 1.3;
}
.v2-pi-arrow {
  color: #8E9299;
  flex-shrink: 0;
}

/* Шапка и кнопка закрытия боковой панели информации */
.v2-info-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E5E5E5;
}
.v2-info-panel-title {
  font-size: 17px;
  font-weight: 800;
  color: #202124;
}
.v2-info-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #E5E5E5;
  background: #FFFFFF;
  color: #202124;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease;
}
.v2-info-close:hover {
  background: #F3F4F6;
}

/* Пустое состояние заказов */
.v2-empty-orders-ref {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #ECEAE4;
  padding: 32px 16px;
  margin: 0 16px 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.v2-eo-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FFF6BF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.v2-eo-title {
  font-size: 17px;
  font-weight: 800;
  color: #202124;
  margin-bottom: 4px;
}

.v2-eo-sub {
  font-size: 13px;
  color: #62666D;
  margin-bottom: 16px;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

.v2-btn-to-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 12px;
  background: #FFE000;
  color: #202124;
  border: none;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 224, 0, 0.35);
}

/* ─── АДАПТИВНАЯ СИСТЕМА ДЛЯ ПЛАНШЕТОВ, НОУТБУКОВ И ДЕСКТОПОВ ───────────── */

/* Красивый скроллбар для десктопа */
.v2-home-list::-webkit-scrollbar,
.v2-page-list::-webkit-scrollbar {
  width: 6px;
}
.v2-home-list::-webkit-scrollbar-track,
.v2-page-list::-webkit-scrollbar-track {
  background: transparent;
}
.v2-home-list::-webkit-scrollbar-thumb,
.v2-page-list::-webkit-scrollbar-thumb {
  background: #E5E5E5;
  border-radius: 4px;
}
.v2-home-list::-webkit-scrollbar-thumb:hover,
.v2-page-list::-webkit-scrollbar-thumb:hover {
  background: #D1D5DB;
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. АДАПТИВНАЯ ВЁРСТКА ДЛЯ ПЛАНШЕТОВ, НОУТБУКОВ И ДЕСКТОПОВ (ОТ 768px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
  /* Разрешаем естественный скроллинг окна браузера для десктопа и ноутбуков */
  html, body {
    height: auto !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background-color: #FFFCF3 !important;
  }

  .activity-view {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }

  /* Снимаем блокировку 100vh overflow:hidden, убираем псевдо-рамки телефона */
  .v2-screen-container {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    display: block !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  .v2-page-screen {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    display: block !important;
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  /* Липкая аккуратная шапка каталога */
  .v2-top-fixed-bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 900 !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    background: rgba(255, 252, 243, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-sizing: border-box !important;
  }

  /* Каталог и списки страниц скроллятся естественным образом на всю ширину */
  .v2-home-list,
  .v2-page-list {
    height: auto !important;
    overflow: visible !important;
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    padding: 16px 20px 140px !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  .v2-all-sections,
  .v2-section-block,
  .v2-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Симметричный разделитель разделов меню */
  .v2-sec-divider {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    margin: 28px 0 18px !important;
  }

  .v2-sec-divider-line {
    flex: 1 1 auto !important;
    height: 1px !important;
    background: #E5E5E5 !important;
    min-width: 20px !important;
  }

  .v2-sec-divider-badge {
    flex: 0 0 auto !important;
  }

  /* Шапка бренда */
  .v2-header-ref {
    height: 72px !important;
    min-height: 72px !important;
    padding: 8px 16px !important;
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  .v2-page-header-ref {
    height: 72px !important;
    min-height: 72px !important;
    padding: 8px 16px !important;
    max-width: 720px !important;
    width: 100% !important;
    margin: 0 auto !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  .v2-h-logo-wrap picture {
    height: 52px !important;
  }

  .v2-h-logo-img {
    height: 52px !important;
    max-height: 56px !important;
    max-width: 180px !important;
  }

  .v2-h-profile-btn,
  .v2-circle-icon-btn,
  .v2-circle-back-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }

  /* Центрированные контролы шапки на десктопе */
  .v2-delivery-switcher {
    max-width: 380px !important;
    margin: 6px auto 10px !important;
  }

  .v2-search-box-ref {
    max-width: 520px !important;
    margin: 0 auto 10px !important;
  }

  .v2-cat-nav-ref {
    max-width: 1200px !important;
    margin: 0 auto !important;
    justify-content: center !important;
    padding: 4px 16px 12px !important;
    gap: 8px !important;
  }

  /* Сетка товаров для планшетов (3 колонки) */
  .v2-grid-ref {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    padding: 0 0 50px !important;
    box-sizing: border-box !important;
  }

  /* Квадратные аппетитные пропорции карточек товаров */
  .v2-card-ref-img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    max-height: 250px !important;
  }

  .v2-card-ref-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* Плавающий аккуратный док нижней навигации */
  .v2-bottom-nav {
    position: fixed !important;
    width: 420px !important;
    max-width: calc(100% - 32px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: 16px !important;
    height: 56px !important;
    border-radius: 28px !important;
    border: 1px solid #E5E5E5 !important;
    background: #FFFFFF !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 0 16px !important;
    z-index: 950 !important;
    box-sizing: border-box !important;
  }

  .v2-bottom-nav .v2-nav-item {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .v2-bottom-nav .v2-nav-item .v2-nav-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  /* Плавающая кнопка корзины */
  .v2-floating-cart-wrapper {
    position: fixed !important;
    width: 420px !important;
    max-width: calc(100% - 32px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: 82px !important;
    z-index: 960 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .v2-floating-cart-btn {
    width: 100% !important;
    max-width: 420px !important;
    height: 50px !important;
    border-radius: 16px !important;
    background: #FFE000 !important;
    color: #202124 !important;
    box-shadow: 0 6px 20px rgba(255, 224, 0, 0.45) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-sizing: border-box !important;
  }

  /* Центрирование блоков корзины и профиля на планшетах/десктопах */
  .v2-cart-card-ref,
  .v2-cart-action-card,
  .v2-cart-promo,
  .v2-summary-card-ref,
  .v2-data-ref-card,
  .v2-order-details-card,
  .v2-profile-card,
  .v2-profile-ref-card,
  .v2-profile-info-card,
  .v2-phone-order-card,
  .v2-ph-box,
  .v2-po-box,
  .v2-empty-orders-ref {
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .v2-cart-bottom-checkout {
    max-width: 680px !important;
    width: 100% !important;
    margin: 16px auto 0 !important;
    padding: 0 16px 40px !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  /* Оффканвасы оформления заказа и деталей товара по центру экрана */
  #cartOrder.offcanvas-bottom,
  #menuMore.offcanvas-bottom,
  #orderDetailsModal.offcanvas-bottom {
    width: 560px !important;
    max-width: calc(100% - 32px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(100%) !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.2) !important;
    border: 1px solid #ECEAE4 !important;
  }
  #cartOrder.offcanvas-bottom.show,
  #menuMore.offcanvas-bottom.show,
  #orderDetailsModal.offcanvas-bottom.show {
    transform: translateX(-50%) translateY(0) !important;
  }
}

/* ─── Ноутбуки и десктопы (от 1024px) ────────────────────────────────────── */
@media (min-width: 1024px) {
  .v2-screen-container,
  .v2-top-fixed-bar {
    max-width: 1200px !important;
  }

  .v2-page-screen,
  .v2-page-header-ref {
    max-width: 720px !important;
  }

  .v2-header-ref {
    height: 76px !important;
    min-height: 76px !important;
    padding: 10px 20px !important;
    max-width: 1200px !important;
  }

  .v2-page-header-ref {
    height: 76px !important;
    min-height: 76px !important;
    padding: 10px 20px !important;
  }

  .v2-h-logo-wrap picture {
    height: 56px !important;
  }

  .v2-h-logo-img {
    height: 56px !important;
    max-height: 60px !important;
    max-width: 195px !important;
  }

  .v2-h-profile-btn,
  .v2-circle-icon-btn,
  .v2-circle-back-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* Сетка товаров на ноутбуках: 4 колонки во всю ширину 1200px */
  .v2-grid-ref {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    padding: 0 0 60px !important;
  }

  .v2-card-ref-title {
    font-size: 15px !important;
    min-height: 42px !important;
  }

  .v2-card-ref-price {
    font-size: 17px !important;
  }

  .v2-delivery-switcher {
    max-width: 380px !important;
    margin: 6px auto 12px !important;
  }

  .v2-search-box-ref {
    max-width: 520px !important;
    margin: 0 auto 12px !important;
  }

  .v2-cat-nav-ref {
    justify-content: center !important;
    padding: 6px 20px 12px !important;
  }

  .v2-home-list,
  .v2-page-list {
    padding: 16px 20px 150px !important;
  }

  .v2-bottom-nav {
    width: 440px !important;
    max-width: calc(100% - 32px) !important;
    bottom: 20px !important;
    box-shadow: 0 10px 36px rgba(0,0,0,0.14) !important;
  }

  .v2-floating-cart-wrapper {
    width: 440px !important;
    max-width: calc(100% - 32px) !important;
    bottom: 86px !important;
  }

  .v2-floating-cart-btn {
    width: 100% !important;
    max-width: 440px !important;
  }

  .v2-cart-card-ref,
  .v2-cart-action-card,
  .v2-cart-promo,
  .v2-data-ref-card,
  .v2-order-details-card,
  .v2-profile-card,
  .v2-profile-ref-card,
  .v2-profile-info-card,
  .v2-phone-order-card,
  .v2-ph-box,
  .v2-po-box,
  .v2-empty-orders-ref {
    max-width: 680px !important;
  }

  .v2-cart-bottom-checkout {
    max-width: 680px !important;
  }
}

/* ─── Широкие мониторы (от 1440px) ───────────────────────────────────────── */
@media (min-width: 1440px) {
  .v2-screen-container,
  .v2-top-fixed-bar {
    max-width: 1320px !important;
  }

  .v2-page-screen,
  .v2-page-header-ref {
    max-width: 760px !important;
  }

  /* Сетка товаров: 4 роскошные колонки с красивыми квадратными фото */
  .v2-grid-ref {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  .v2-card-ref-img {
    max-height: 280px !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   v2-dam — Delivery Address Modal («Куда доставить?»)
   ───────────────────────────────────────────────────────────────────────────── */
body.v2-dam-opened {
  overflow: hidden !important;
}

.v2-dam-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1070;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.v2-dam-backdrop.on {
  opacity: 1;
  pointer-events: auto;
}

.v2-dam-modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: #FFFDF9;
  border-radius: 0;
  z-index: 1075;
  box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.16);
  padding: calc(16px + var(--sat, 0px)) 20px calc(24px + var(--sab, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(105%);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.4, 1), visibility 0.32s;
  box-sizing: border-box;
  visibility: hidden;
  pointer-events: none;
}
.v2-dam-modal.on {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.v2-dam-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.v2-dam-logo {
  display: flex;
  align-items: center;
}
.v2-dam-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.v2-dam-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #EAE8E0;
  background: #FFFFFF;
  color: #202124;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.v2-dam-close-btn:active {
  transform: scale(0.92);
  background: #F3F4F6;
}

.v2-dam-title-block {
  margin-bottom: 18px;
}
.v2-dam-title {
  font-size: 24px;
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.v2-dam-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: #7A7A7A;
  margin-top: 4px;
}

/* Карточки полей формы */
.v2-dam-card {
  background: #FFFFFF;
  border: 1.5px solid #EDEBE4;
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}
.v2-dam-card:focus-within {
  border-color: #FFD800;
  box-shadow: 0 0 0 3px rgba(255, 216, 0, 0.22);
}

.v2-dam-icon-box {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555555;
  flex-shrink: 0;
}
.v2-dam-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.v2-dam-card-label {
  font-size: 11px;
  font-weight: 600;
  color: #8C8C8C;
  line-height: 1.2;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}
.v2-dam-card-value {
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-dam-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
  padding: 0;
  width: 100%;
  font-family: inherit;
  line-height: 1.25;
}
.v2-dam-input::placeholder {
  color: #B0AEA7;
  font-weight: 400;
}

/* Выбор города */
.v2-dam-city-wrap {
  position: relative;
}
.v2-dam-city-card {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.v2-dam-chevron {
  color: #8C8C8C;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
.v2-dam-chevron.rotated {
  transform: rotate(180deg);
}

.v2-dam-city-dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1.5px solid #EDEBE4;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  z-index: 1080;
  overflow: hidden;
  padding: 6px;
  animation: v2DamFadeIn 0.18s ease-out;
}
@keyframes v2DamFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.v2-dam-city-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #202124;
  cursor: pointer;
  transition: background-color 0.12s ease;
}
.v2-dam-city-option:hover,
.v2-dam-city-option:active {
  background: #F8F7F2;
}
.v2-dam-city-option.active {
  background: #FFF9E6;
  color: #1A1A1A;
}
.v2-dam-city-badge {
  font-size: 11px;
  font-weight: 600;
  background: #F2F1EC;
  color: #7A7870;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: auto;
  margin-right: 8px;
}
.v2-dam-check-icon {
  color: #1A1A1A;
  flex-shrink: 0;
}

/* Блок самовывоза / отсутствие доставки */
.v2-dam-no-delivery-box {
  background: #FFFDF5;
  border: 1.5px solid #FEE58A;
  border-radius: 20px;
  padding: 24px 18px;
  text-align: center;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
.v2-dam-nd-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #FFEAA6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #B45309;
}
.v2-dam-nd-title {
  font-size: 17px;
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 6px;
}
.v2-dam-nd-desc {
  font-size: 13.5px;
  line-height: 1.45;
  color: #666666;
  margin-bottom: 14px;
  max-width: 320px;
}
.v2-dam-nd-addr {
  font-size: 13px;
  line-height: 1.4;
  color: #1A1A1A;
  background: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}
.v2-dam-nd-btn {
  width: 100%;
  height: 50px;
  background: #FFD800;
  border: none;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 750;
  color: #1A1A1A;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 216, 0, 0.4);
  transition: transform 0.12s ease, filter 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-dam-nd-btn:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

.v2-dam-delivery-fields {
  display: block;
}

/* Сетка 2x2 */
.v2-dam-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.v2-dam-grid-cell {
  margin-bottom: 0;
}

/* Плашка доставки */
.v2-dam-delivery-badge {
  background: #FFF9E6;
  border: 1.5px solid #FFE799;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 16px;
  box-sizing: border-box;
}
.v2-dam-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FFEAA6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A1A1A;
  flex-shrink: 0;
}
.v2-dam-badge-text {
  flex: 1;
  min-width: 0;
}
.v2-dam-badge-title {
  font-size: 16px;
  font-weight: 800;
  color: #1A1A1A;
  line-height: 1.25;
}
.v2-dam-badge-sub {
  font-size: 12px;
  font-weight: 500;
  color: #6E6855;
  margin-top: 3px;
}

/* Кнопка подтверждения */
.v2-dam-submit-btn {
  width: 100%;
  height: 52px;
  background: #FFD800;
  border: none;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 800;
  color: #1A1A1A;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 216, 0, 0.4);
  transition: transform 0.12s ease, filter 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v2-dam-submit-btn:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

/* Футер */
.v2-dam-footer-phone {
  text-align: center;
  font-size: 13px;
  color: #737373;
  margin-top: 14px;
  font-weight: 500;
}
.v2-dam-footer-phone a {
  color: #1A1A1A;
  font-weight: 800;
  text-decoration: none;
}
.v2-dam-footer-phone a:hover {
  text-decoration: underline;
}

/* Десктопная адаптация (от 640px) */
@media (min-width: 640px) {
  .v2-dam-modal {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 460px;
    height: auto;
    max-height: 94vh;
    border-radius: 28px;
    padding: 24px;
    transform: translate(-50%, -46%) scale(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1), opacity 0.25s ease, visibility 0.25s;
  }
  .v2-dam-modal.on {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}




/* ─── Согласие на обработку ПДн и просмотр юридических документов ─────────── */

/* Чекбокс согласия (152-ФЗ): по умолчанию не отмечен */
.v2-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #62666D;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.v2-consent input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.v2-consent-box {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid #C9C6BD;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.v2-consent-box svg { opacity: 0; transition: opacity .15s ease; }
.v2-consent input:checked + .v2-consent-box {
  background: #FFE000;
  border-color: #E6CA00;
}
.v2-consent input:checked + .v2-consent-box svg { opacity: 1; }
.v2-consent input:focus-visible + .v2-consent-box {
  box-shadow: 0 0 0 3px rgba(255, 224, 0, 0.35);
}
.v2-consent a {
  color: #202124;
  text-decoration: underline;
}
.v2-consent--error .v2-consent-box { border-color: #E5484D; }
.v2-consent--error .v2-consent-text { color: #C6282D; }

.v2-legal-note {
  font-size: 12px;
  line-height: 1.4;
  color: #62666D;
  margin: 0 0 14px 32px;
}
.v2-legal-note a { color: #62666D; text-decoration: underline; }

/* Полноэкранный просмотр документа (выше оформления заказа, ниже выбора города) */
.v2-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  background: #FFFCF3;
  padding-top: var(--sat, 0px);
  padding-bottom: var(--sab, 0px);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1), visibility 0.3s;
}
.v2-legal-modal.on {
  transform: translateY(0);
  visibility: visible;
}
.v2-legal-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #EDEBE4;
  background: #FFFCF3;
}
.v2-legal-modal-title {
  flex: 1;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
  color: #202124;
}
.v2-legal-modal-close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  font-size: 24px;
  line-height: 1;
  color: #202124;
}
.v2-legal-modal iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #FFFCF3;
}
@media (min-width: 640px) {
  .v2-legal-modal {
    inset: 4vh auto 4vh 50%;
    width: 720px;
    max-width: calc(100vw - 32px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, 24px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .v2-legal-modal.on {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* Пункты «Документы» в панели «О заведении» */
.v2-info-docs a {
  display: block;
  color: #202124;
  text-decoration: underline;
  margin-top: 2px;
}


/* ─── Оплата по СБП ──────────────────────────────────────────────────────── */

.v2-sbp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1085;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.v2-sbp-backdrop.on { opacity: 1; pointer-events: auto; }

.v2-sbp-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1088;
  max-height: 92dvh;
  overflow-y: auto;
  background: #FFFCF3;
  border-radius: 24px 24px 0 0;
  padding: 16px 20px calc(24px + var(--sab, 0px));
  box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.16);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1), visibility 0.3s;
  text-align: center;
}
.v2-sbp-sheet.on { transform: translateY(0); visibility: visible; }

.v2-sbp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.v2-sbp-title { font-weight: 800; font-size: 18px; color: #202124; }
.v2-sbp-amount { font-weight: 800; font-size: 32px; color: #202124; line-height: 1.1; }
.v2-sbp-muted { font-size: 13px; color: #62666D; margin: 6px 0 14px; }
.v2-sbp-center { padding: 16px 0 4px; }
.v2-sbp-bank-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-bottom: 10px; }
.v2-sbp-qr img {
  display: block;
  margin: 4px auto 0;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 16px;
  padding: 10px;
}
.v2-sbp-link {
  border: 0;
  background: none;
  color: #202124;
  text-decoration: underline;
  font-size: 14px;
  margin-bottom: 8px;
}
.v2-sbp-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #62666D;
  margin-top: 8px;
}
.v2-sbp-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}
.v2-sbp-icon--ok { background: #FFE000; color: #202124; }
.v2-sbp-icon--fail { background: #FDECEC; color: #C6282D; }
.v2-sbp-result { font-weight: 800; font-size: 18px; color: #202124; }

@media (min-width: 640px) {
  .v2-sbp-sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: 420px;
    border-radius: 24px;
    transform: translate(-50%, -46%) scale(0.96);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .v2-sbp-sheet.on { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Заказ ждёт оплаты — строка в истории заказов */
.v2-order-pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 14px 12px;
  padding: 8px 10px 8px 12px;
  background: #FFF6BF;
  border-radius: 12px;
  font-size: 13px;
  color: #202124;
}
.v2-order-pay-btn {
  border: 0;
  border-radius: 10px;
  background: #FFE000;
  color: #202124;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
}
.v2-pay-chip { background: #E8F5E9; color: #1B5E20; }
