/* Kiosk — Muller (Fontfabric) */
@font-face {
  font-family: "Muller";
  src: url("/fonts/Fontfabric - MullerLight.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Muller";
  src: url("/fonts/Fontfabric - MullerRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Muller";
  src: url("/fonts/Fontfabric - MullerMedium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

html {
  font-size: 120%;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: "Muller", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #fff5f0 0, transparent 32%),
    radial-gradient(circle at bottom right, #ffe8d9 0, transparent 32%),
    linear-gradient(180deg, #fbfbfb 0%, #f2f0ef 100%);
  min-height: 100vh;
  /* Без pinch-zoom двумя пальцами (скролл жестами сохраняем) */
  touch-action: pan-x pan-y;
  overscroll-behavior-x: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Киоск/WebView: без выделения текста и перетаскивания фрагментов */
html, body, #app, #app * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
}

/* Круглая «Назад» — единый вид (карточка товара, экран корзины, …)
   Figma 1000:584: border 2px white, rounded 60, padding 20, БЕЗ фона. */
.akno-back-btn {
  position: fixed;
  top: 98px;
  left: 100px;
  z-index: 1650;
  width: 88px;
  height: 68px;
  padding: 20px;
  gap: 10px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 60px;
  border: 2px solid #ffffff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: 1;
  font: inherit;
  line-height: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.akno-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.akno-back-btn:focus-visible {
  outline: 3px solid rgba(233, 99, 33, 0.45);
  outline-offset: 3px;
}

.akno-back-btn img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
a, .btn-link { color: var(--accent); }
/* .btn-* — см. css/akno-buttons.css */
.form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(229, 103, 42, 0.25);
}
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

.blazor-error-boundary {
  background: #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}
.blazor-error-boundary::after { content: "Произошла ошибка."; }

/* Order layout */
.order-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.order-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: var(--accent-gradient);
  color: #fff;
  padding: 1rem 24px;
  font-size: 28.8px;
  font-weight: 800;
}

.order-header-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.order-main {
  flex: 1;
  padding: 20px 28px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Catalog — single-page: categories left, products center, cart fixed bottom */
.catalog-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  margin: 0;
}

.menu-content-row {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 20px;
}

/* Category list — categories left, products right */
.category-list {
  display: flex;
  flex: 1;
  min-height: 0;
  min-width: 0;
  gap: 20px;
}

.category-list > p {
  padding: 24px;
}

/* Categories — LEFT panel, own scroll */
.categories-panel {
  width: 220px;
  flex-shrink: 0;
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: var(--shadow);
  padding: 16px 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

.categories-panel h3 {
  margin: 0 0 12px 8px;
  font-size: 18px;
  color: var(--muted);
}

/* Products — center, scroll only inside cards area */
.products-panel {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: var(--shadow);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Сообщение о стопе (EtlonConfirmDialog): поверх каталога, ниже карточки товара и предупреждения бездействия. */
.etlon-confirm-dialog.stop-notice-overlay {
  z-index: 2000;
}

/* Глобально: scoped-стили модалки могут проигрывать по каскаду — дублируем слой здесь. */
.etlon-inactivity-warning {
  z-index: 10000;
}

.product-detail-modal-stack .etlon-confirm-dialog.stop-notice-overlay--over-product {
  z-index: 2600;
}

/* КБЖУ: нижний лист (Designs/KBJUModal.txt).
   Выше .modal-overlay--product-detail (2500 в akno-screens.css), ниже стопа (2600). */
.modal-overlay.kbju-nutrition-overlay {
  z-index: 2550;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Nutrition sheet visuals owned by EtlonNutritionSheet
   (see Organisms/EtlonNutritionSheet). PDP only owns the modal-overlay. */
.kbju-nutrition-sheet-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Карточка товара: непрозрачный слой — меню под модалкой не видно (только подложка внутри sheet) */
.modal-overlay.modal-overlay--product-detail {
  z-index: 1500;
  align-items: flex-end;
  justify-content: stretch;
  padding: 0;
  background:
    linear-gradient(168deg, rgba(255, 255, 255, 0.07) 0%, transparent 42%),
    linear-gradient(0deg, #0c0a10 0%, #1c1a22 55%, #14121a 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Апселл-попап «Часто берут вместе» (макет Designs/ProductCardUpsell.txt):
   отдельный шаг после добавления позиции из карточки товара. Лежит выше
   product-detail (который в момент перехода как раз закрывается), но ниже
   stop-notice (2000). Нижний белый «лист» с высотой по контенту, не
   больше ~92vh (иначе внутренняя прокрутка). Карточки — фиксированной
   естественной высоты (align-items: start), без растягивания при
   1–2 товарах в ряду. */
/* Upsell popup styles now scoped to ProductUpsellPopup.razor.css. */

.modal-content.modal-content--product-detail {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0);
  background: transparent;
  color: #fff;
  border: none;
  box-shadow: none;
}

/* Жесты без double-tap zoom в карточке товара (WebView / Safari) */
.product-detail-modal-stack,
.modal-overlay.modal-overlay--product-detail,
.modal-content.modal-content--product-detail.product-detail-modal-touch {
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-x: none;
}

/* Скрытая картинка: только декод в кэш браузера (не в layout) */
.product-detail-hero-prefetch {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Полноэкранная «карточка»: блюр-фон + слой интерфейса (productCard.txt) */
.product-detail-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Вход: тяжёлый блюр на фоне, док справа — пока Blazor/браузер тянет картинку и reflow */
.product-detail-stage--entrance-prep .product-detail-card-texture--photo {
  filter: blur(22px) brightness(0.78);
  transform: scale(1.05);
  transition: none;
  will-change: filter, transform;
}

.product-detail-stage--entrance-revealed .product-detail-card-texture--photo {
  filter: none;
  transform: none;
  will-change: auto;
  transition: filter 0.55s ease, transform 0.55s ease;
}

/* Док и заголовок: въезд через transform */
.product-detail-stage--entrance-prep .product-detail-dock-panels-root,
.product-detail-stage--entrance-prep .product-detail-modifiers-heading--dock {
  transform: translate3d(28px, 0, 0);
  opacity: 0;
  transition: none;
  pointer-events: none;
}

.product-detail-stage--entrance-revealed .product-detail-dock-panels-root,
.product-detail-stage--entrance-revealed .product-detail-modifiers-heading--dock {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.05s, opacity 0.38s ease 0.06s;
}

/*
 * Футер: без transform (иначе ломается визуальная модель кнопки в ряду). Тот же «сдвиг» — margin-left + opacity.
 */
.product-detail-stage--entrance-prep .product-detail-bottom-dock {
  margin-left: 28px;
  opacity: 0;
  transition: none;
  pointer-events: none;
}

.product-detail-stage--entrance-revealed .product-detail-bottom-dock {
  margin-left: 0;
  opacity: 1;
  pointer-events: auto;
  transition:
    margin-left 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    opacity 0.38s ease 0.06s;
}

@media (prefers-reduced-motion: reduce) {
  .product-detail-stage--entrance-prep .product-detail-card-texture--photo,
  .product-detail-stage--entrance-prep .product-detail-dock-panels-root,
  .product-detail-stage--entrance-prep .product-detail-modifiers-heading--dock {
    filter: none;
    transform: none;
    opacity: 1;
    transition: none;
  }

  .product-detail-stage--entrance-prep .product-detail-bottom-dock {
    margin-left: 0;
    opacity: 1;
    transition: none;
  }

  .product-detail-stage--entrance-revealed .product-detail-card-texture--photo,
  .product-detail-stage--entrance-revealed .product-detail-dock-panels-root,
  .product-detail-stage--entrance-revealed .product-detail-bottom-dock,
  .product-detail-stage--entrance-revealed .product-detail-modifiers-heading--dock {
    transition: none;
  }

  .product-detail-bg {
    transition: none;
  }
}

/* Открыта панель опций по категории: размываем фон карточки, док и категории остаются чёткими */
.product-detail-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 0;
  /* Непрозрачная база под фото/текстурой — без просвета меню */
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06) 0%, transparent 48%),
    linear-gradient(315deg, rgba(110, 125, 150, 0.12) 0%, transparent 42%),
    #1e1c26;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: filter 0.38s ease;
}

.product-detail-stage--entrance-revealed.product-detail-stage--modifier-panel-open .product-detail-bg {
  filter: blur(20px) brightness(0.88);
}

/* Figma Etlon 2028:3648 «Карточка товара / Нет фото товара» — сплошной Fill/Secondary, без текстуры */
.product-detail-bg--no-photo {
  background: var(--etlon-fill-secondary);
}

/* Подложка макета: только при наличии фото товара (см. модификатор --photo в ProductDetailModal) */
.product-detail-card-texture {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.72;
  mix-blend-mode: normal;
  background-image: url("/designs/Card%20black%20and%20blure.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Реальная фотка товара вместо декоративной подложки: полная непрозрачность и убираем
   фолбэк-капучину, чтобы она не просвечивала сквозь прозрачные края PNG/JPG товара. */
.product-detail-card-texture--photo {
  opacity: 1;
  mix-blend-mode: normal;
  background-image: none;
  border-radius: 0;
}

.product-detail-chrome {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Сдвиг только контента вверх на 24px: transform не уменьшает flex-высоту карточки (в отличие от margin-top у chrome) */
.modal-content.modal-content--product-detail .product-detail-chrome-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  transform: translateY(-24px);
}

/*
 * Шапка карточки: «Назад» — Prod KSO (1087:834) Back instance ≈100×98 inset.
 */
.modal-content.modal-content--product-detail .product-detail-top-bar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 88px 1fr 100px;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 98px 100px 0;
  margin: 0;
  min-width: 0;
}

/* Figma «3 к 2» (3498:1175): Back / title inset 140, как у action bar */
@media (min-width: 1280px) and (min-aspect-ratio: 2/3) and (max-aspect-ratio: 1/1) {
  .modal-content.modal-content--product-detail .product-detail-top-bar {
    padding-left: 140px;
    padding-right: 140px;
  }
}

/* Back button visuals owned by EtlonBackButton; PDP top-bar only owns positioning. */

/* Зона заголовка: от top-bar (padding-top 98px) до кнопки КБЖУ (top 204px). */
.modal-content.modal-content--product-detail .product-detail-top-bar .product-detail-title-wrap {
  grid-column: 2;
  justify-self: stretch;
  min-width: 0;
  max-height: 98px;
  padding-inline: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
}

.product-detail-title {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  font-size: var(--etlon-type-heading1-size);
  font-weight: 500;
  line-height: 1.05;
  color: #fff;
  letter-spacing: 0;
  text-align: center;
  text-shadow: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* Figma ProductCard / Modifiers dock: у текста нет effects/shadow. */
.modal-overlay.modal-overlay--product-detail,
.modal-content.modal-content--product-detail,
.product-detail-dock-panels-root {
  text-shadow: none;
}

.modal-overlay.modal-overlay--product-detail *,
.modal-content.modal-content--product-detail *,
.product-detail-dock-panels-root * {
  text-shadow: none;
}

/* Frame «Состав и КБЖУ» — центрируем без transform (иначе :active translate ломает позицию). */
.modal-content.modal-content--product-detail .product-detail-kbju {
  position: absolute;
  z-index: 4;
  top: 204px;
  left: 0;
  right: 0;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  transform: none;
  translate: none;
}

/* PDP апселл — только отдельный ProductUpsellPopup (scoped CSS); inline-блок удалён из разметки. */

.product-detail-modifiers-heading {
  margin: 16px 0 10px;
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
}

/* Нижняя панель заказа: Figma 1032:968 — плавающая капсула 1000×96, R60 со всех сторон, отступ от низа 40px. */
.modal-content.modal-content--product-detail .product-detail-bottom-dock {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 0;
  padding-left: var(--cart-screen-pad-x, 40px);
  padding-right: var(--cart-screen-pad-x, 40px);
  padding-top: 0;
  padding-bottom: max(40px, env(safe-area-inset-bottom, 40px));
  box-sizing: border-box;
}

/* Без модификаторов flex-спейсер (бывший product-detail-scroll) отсутствует — прижимаем док к низу карточки. */
.product-detail-chrome-content:not(:has(.product-detail-modifiers-stack)) .product-detail-bottom-dock {
  margin-top: auto;
}

/* Блок модификаторов: растягиваем и прижимаем панель + категории к низу (над капсулой) */
.product-detail-modifiers-stack {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 20px;
}

/* Прозрачная зона над доком: тап снимает выбор категории модификаторов */
.product-detail-modifiers-stack-dismiss {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: default;
  display: block;
  -webkit-tap-highlight-color: transparent;
}

.product-detail-modifiers-stack-controls {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.product-detail-dock-panels-root {
  /* Карточка категории модификатора UIKIT — 235×245; строка модов — 186×247 (exclusive), 250×247 (multiple, степпер) */
  --dock-tile-w: 235px;
  --dock-tile-h: 245px;
  --dock-tile-r: 80px;
  --dock-mod-exclusive-w: 186px;
  --dock-mod-multi-w: 250px;
  --dock-mod-row-h: 247px;
  --dock-mod-tile-r: 40px;
  /* Numeric column (UIKit Vector 14): ~25.6% × 250px */
  --dock-mod-stepper-w: 64px;

  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Панели модификаторов / категорий / нижнего дока: боковые поля = --cart-screen-pad-x
   (40 Full HD / 140 на 3:2, Figma «3 к 2»). safe-area-inset для девайсов с «бровями». */
.product-detail-dock-bleed-x {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: max(var(--cart-screen-pad-x, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(var(--cart-screen-pad-x, 40px), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

/* Название активной категории: ×1.5 к базовому .product-detail-modifiers-heading (1.25rem) */
.product-detail-modifiers-heading.product-detail-modifiers-heading--dock {
  margin: 0 0 4px;
  padding: 0 6px;
  font-size: 1.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  letter-spacing: -0.02em;
}

/* Панель под модификаторами: Figma 1088:1246 — bg #424242/0.6, R80, padding 40 (item 247 + 40+40 ≈ 327 panel min-height). */
.product-detail-dock-modifiers-panel {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  /* Figma 1088:1246: горизонтальный паддинг 5.56% × 1080 ≈ 60px, вертикальный — оставляем 40px,
     т.к. наш chip 247px высокий: 40 + 247 + 40 = 327 (Figma UIKIT min-height). */
  padding: 40px 60px;
  border-radius: 80px;
  background: rgba(66, 66, 66, 0.6);
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-sizing: border-box;
}

/* Одна строка модификаторов — минимальная высота панели UIKIT 327px */
.product-detail-dock-modifiers-panel--rows-1 {
  min-height: 327px;
}

/* >10 опций — две строки в сетке, фиксированная высота панели */
.product-detail-dock-modifiers-panel--rows-2 {
  height: 604px;
  min-height: 604px;
  max-height: 604px;
}

.product-detail-dock-modifiers-panel-inner {
  flex: 0 0 auto;
  width: max-content;
}

.product-detail-dock-modifiers-panel.product-detail-dock-hscroll--center {
  justify-content: flex-start;
}

.product-detail-dock-modifiers-panel.product-detail-dock-hscroll--end {
  justify-content: flex-start;
}

.product-detail-dock-modifiers-panel,
.product-detail-dock-categories-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}

.product-detail-dock-modifiers-panel::-webkit-scrollbar,
.product-detail-dock-categories-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Короткое «подёргивание» при открытии: намёк на горизонтальный скролл */
@keyframes product-detail-dock-scroll-hint {
  0%,
  100% {
    transform: translateX(0);
  }
  18% {
    transform: translateX(-16px);
  }
  36% {
    transform: translateX(0);
  }
  52% {
    transform: translateX(-9px);
  }
  68% {
    transform: translateX(0);
  }
}

.product-detail-dock-options-grid--scroll-hint {
  animation: product-detail-dock-scroll-hint 1.35s cubic-bezier(0.33, 1, 0.68, 1) 0.2s both;
}

@media (prefers-reduced-motion: reduce) {
  .product-detail-dock-options-grid--scroll-hint {
    animation: none;
  }
}

.product-detail-dock-options-grid {
  display: grid;
  grid-auto-flow: column;
  gap: 20px;
  align-items: stretch;
  flex: 0 0 auto;
  width: max-content;
}

.product-detail-dock-options-grid--exclusive {
  grid-auto-columns: var(--dock-mod-exclusive-w);
}

.product-detail-dock-options-grid--multiple {
  grid-auto-columns: var(--dock-mod-multi-w);
}

/* ≤10 опций — одна строка; >10 — две (схема ModifierPanel) */
.product-detail-dock-options-grid--rows-1 {
  grid-template-rows: var(--dock-mod-row-h);
}

.product-detail-dock-options-grid--rows-2 {
  grid-template-rows: repeat(2, var(--dock-mod-row-h));
}

/* Общий размер тайла: категории модификаторов (235×245) и ячейки опций задаются ниже по модификаторам */
.product-detail-dock-tile {
  box-sizing: border-box;
  width: var(--dock-tile-w);
  height: var(--dock-tile-h);
  flex: 0 0 var(--dock-tile-w);
  border-radius: var(--dock-tile-r);
}

/* Exclusive: Modifier item UIKIT ~186×247; multiple со степпером — 250×247 */
.product-detail-dock-options-grid--exclusive .product-detail-dock-mod-chip.product-detail-dock-tile {
  width: var(--dock-mod-exclusive-w);
  min-width: var(--dock-mod-exclusive-w);
  max-width: var(--dock-mod-exclusive-w);
  flex: 0 0 var(--dock-mod-exclusive-w);
}

.product-detail-dock-options-grid--multiple .product-detail-dock-mod-chip.product-detail-dock-tile {
  width: var(--dock-mod-multi-w);
  min-width: var(--dock-mod-multi-w);
  max-width: var(--dock-mod-multi-w);
  flex: 0 0 var(--dock-mod-multi-w);
}

.product-detail-dock-mod-chip.product-detail-dock-tile {
  height: var(--dock-mod-row-h);
  min-height: var(--dock-mod-row-h);
  max-height: var(--dock-mod-row-h);
  border-radius: var(--dock-mod-tile-r);
}

/* Modifier dock chip visuals: scoped in Organisms/EtlonModifierDockChip.razor.css */

.product-detail-dock-categories-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 6px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-start;
}

.product-detail-dock-categories-scroll.product-detail-dock-hscroll--center {
  justify-content: flex-start;
}

.product-detail-dock-categories-scroll.product-detail-dock-hscroll--end {
  justify-content: flex-start;
}

.product-detail-dock-categories-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  /* Figma 1088:899/1088:910/1088:915/1088:1238 — карточки идут с шагом 255px (ширина 235 + gap 20). */
  gap: 20px;
  margin: 0;
  padding: 0;
  width: max-content;
}

/* Категории модификаторов: Rectangle 40, 235×245, R80; градиент 12%→60%, тень 0 4px 0 */
.product-detail-dock-category-pill.product-detail-dock-tile {
  width: 235px;
  min-width: 235px;
  max-width: 235px;
  height: 245px;
  min-height: 245px;
  max-height: 245px;
  flex: 0 0 235px;
  border-radius: 80px;
  border: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, rgba(66, 66, 66, 0.12) 0%, rgba(66, 66, 66, 0.6) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.product-detail-dock-category-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 20px 16px;
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  overflow: hidden;
  gap: 0;
  position: relative;
}

/*
 * Пустая категория (ничего не выбрано в группе):
 * — неактивная вкладка: область 80×80 и плюс;
 * — активная: оранжевый заливки только у кружка (карточка остаётся «стекло»).
 */
.product-detail-dock-category-empty-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  margin: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Пустая категория: инлайновый SVG, currentColor — без внешнего файла и без filter/mask в WebView */
.product-detail-dock-category-empty-slot__plus-svg {
  display: block;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: #fff;
  pointer-events: none;
  user-select: none;
}

.product-detail-dock-category-pill:hover:not(.product-detail-dock-category-pill--active) {
  background: linear-gradient(180deg, rgba(66, 66, 66, 0.2) 0%, rgba(66, 66, 66, 0.58) 100%);
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.45);
}

/* Активная вкладка — «стекло» без рамки; оранжевая заливка только у кружка пустой категории (ниже). */
.product-detail-dock-category-pill--active,
.product-detail-dock-category-pill--active:hover {
  background: linear-gradient(180deg, rgba(66, 66, 66, 0.2) 0%, rgba(66, 66, 66, 0.68) 100%);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.58);
  z-index: 1;
}

/*
 * Активная + пустая категория: оранжевая заливка только кружка с плюсом (не вся карточка).
 */
.product-detail-dock-category-pill--active .product-detail-dock-category-empty-slot {
  background: var(--etlon-fill-primary, #e96321);
  border: none;
  box-shadow: inset 0 -14px 18px rgba(255, 255, 255, 0.32);
}

.product-detail-dock-category-pill--active .product-detail-dock-category-empty-slot__plus-svg {
  color: #fff;
}

/*
 * Верх пилюли категории: фиксированная высота (превью 100px + сумма 26px + gap),
 * чтобы название группы не смещалось при появлении модификаторов.
 */
.product-detail-dock-category-leading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 28px 0 0;
  flex-shrink: 0;
  box-sizing: border-box;
  height: 132px;
  gap: 6px;
}

.product-detail-dock-category-leading-visual {
  flex: 0 0 100px;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Высота превью под сетку UIKIT Modifiers card (Selected 3/4/many — два ряда по 50 + gap) */
.product-detail-dock-category-leading-visual--matrix-sel3,
.product-detail-dock-category-leading-visual--matrix-sel4,
.product-detail-dock-category-leading-visual--matrix-many {
  flex: 0 0 118px;
  height: 118px;
}

.product-detail-dock-category-pill--matrix-tall-leading .product-detail-dock-category-leading {
  height: 150px;
}

.product-detail-dock-category-matrix-fallback-dot {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
}

/*
 * Modifiers card / Selected 1–4, Selected many (Figma 1031:2430–2433):
 * 1 → 100×100; 2 → 70×70 в ряд; 3 → два 50×50 сверху + один снизу по центру;
 * 4 → сетка 2×2 по 50; many → как 4, но ячейка TR — бейдж +N (N = число опций сверх трёх показанных).
 */
.product-detail-dock-category-matrix {
  display: grid;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  justify-content: center;
  align-content: center;
}

.product-detail-dock-category-matrix--sel1 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-dock-category-matrix--sel1 > .product-detail-dock-category-matrix-thumb {
  width: 100px;
  height: 100px;
  border-radius: 28px;
}

.product-detail-dock-category-matrix--sel2 {
  grid-template-columns: 70px 70px;
  column-gap: 10px;
  align-items: center;
}

.product-detail-dock-category-matrix--sel2 > .product-detail-dock-category-matrix-thumb {
  width: 70px;
  height: 70px;
}

.product-detail-dock-category-matrix--sel3 {
  grid-template-columns: 50px 50px;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 10px;
  justify-items: center;
}

.product-detail-dock-category-matrix--sel3 > .product-detail-dock-category-matrix-thumb:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.product-detail-dock-category-matrix--sel3 > .product-detail-dock-category-matrix-thumb:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.product-detail-dock-category-matrix--sel3 > .product-detail-dock-category-matrix-thumb:nth-child(3) {
  grid-column: 1 / span 2;
  grid-row: 2;
}

.product-detail-dock-category-matrix--sel3 > .product-detail-dock-category-matrix-thumb {
  width: 50px;
  height: 50px;
}

.product-detail-dock-category-matrix--sel4 {
  grid-template-columns: 50px 50px;
  grid-template-rows: 50px 50px;
  gap: 10px;
}

.product-detail-dock-category-matrix--sel4 > .product-detail-dock-category-matrix-thumb {
  width: 50px;
  height: 50px;
}

.product-detail-dock-category-matrix--many {
  grid-template-columns: 50px 50px;
  grid-template-rows: 50px 50px;
  column-gap: 10px;
  row-gap: 10px;
}

.product-detail-dock-category-matrix--many > .product-detail-dock-category-matrix-thumb:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.product-detail-dock-category-matrix--many > .product-detail-dock-category-overflow-badge {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: stretch;
}

.product-detail-dock-category-matrix--many > .product-detail-dock-category-matrix-thumb:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.product-detail-dock-category-matrix--many > .product-detail-dock-category-matrix-thumb:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.product-detail-dock-category-matrix--many > .product-detail-dock-category-matrix-thumb {
  width: 50px;
  height: 50px;
}

.product-detail-dock-category-overflow-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 50px;
  min-height: 50px;
  padding: 0 8px;
  border-radius: 40px;
  background: var(--etlon-fill-default, #ffffff);
  color: var(--etlon-text-secondary, #666666);
  font-size: 24px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.product-detail-dock-category-matrix-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.product-detail-dock-category-matrix-thumb--image {
  display: block;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.product-detail-dock-category-matrix-thumb--letter {
  border-radius: 50%;
}

.product-detail-dock-category-matrix-thumb--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: none;
  border-radius: inherit;
  background: transparent;
}

.product-detail-dock-category-matrix-thumb-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 300;
  color: #fff;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-sizing: border-box;
  font-size: 22px;
  line-height: 1;
}

.product-detail-dock-category-matrix--sel2 .product-detail-dock-category-matrix-thumb-initial {
  font-size: 18px;
}

.product-detail-dock-category-matrix--sel3 .product-detail-dock-category-matrix-thumb-initial,
.product-detail-dock-category-matrix--sel4 .product-detail-dock-category-matrix-thumb-initial,
.product-detail-dock-category-matrix--many .product-detail-dock-category-matrix-thumb-initial {
  font-size: 16px;
}

.product-detail-dock-category-leading-sum {
  flex: 0 0 26px;
  width: 100%;
  min-height: 26px;
  max-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.product-detail-dock-category-leading-sum--placeholder {
  visibility: hidden;
}

.product-detail-dock-category-pill-sum--under-icons {
  margin: 0;
  padding: 0;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.1;
  flex: 0 0 auto;
  align-self: center;
  color: rgba(255, 255, 255, 0.92);
}

.product-detail-dock-category-pill-sum--under-icons.product-detail-dock-category-pill-sum--free {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
}

.product-detail-dock-category-pill-name {
  width: 100%;
  max-width: 100%;
  margin: 10px 0 0;
  padding: 0;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.12;
  color: #fff;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  box-sizing: border-box;
  flex: 0 0 auto;
}

/* Product action bar (Figma 1031:2537) — visuals owned by
   EtlonProductActionBar (composes EtlonSizePillGroup + EtlonQuantityStepper
   + EtlonAddToCartTotalButton). PDP only owns the bleed-x footer wrap. */

.modal-content {
  background: var(--panel-strong);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 { margin: 0; font-size: 28.8px; }

.btn-close {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 28.8px;
  cursor: pointer;
  padding: 4px 12px;
  line-height: 1;
}

.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}


/* Checkout — сетка заменена на колонку по центру в akno-screens.css (kiosk); полный экран оплаты — .kiosk-terminal-page */
.checkout-page,
.payment-page:not(.kiosk-terminal-page) {
  gap: 24px;
  margin: 0 auto;
}



/* Print */
@media print {
  .order-header, .cart-float, nav, .blazor-error-boundary { display: none !important; }
  .order-main { padding: 0; }
}

@media (max-width: 1100px) {
  .catalog-page { grid-template-columns: 1fr; }
}
