/* ============================================================
   ТАБАЧКА 777 — СТИЛИ
   Палитра: премиальный тёмный + золото (по референсам клиента)
   ============================================================ */

:root {
  --bg:          #0B0908;   /* фон приложения, почти чёрный тёплый */
  --bg-header:   #0B0908;
  --card:        #16120D;   /* фон карточек */
  --card-2:      #1D1812;   /* фон полей / чипов */
  --gold:        #D4A44C;   /* основное золото */
  --gold-bright: #E9C377;   /* светлое золото (градиенты) */
  --gold-deep:   #A97B2C;   /* тёмное золото (градиенты) */
  --gold-line:   rgba(212, 164, 76, 0.22); /* золотые рамки */
  --gold-line-2: rgba(212, 164, 76, 0.38);
  --text:        #F4EDE0;   /* основной текст */
  --muted:       #A2977F;   /* вторичный текст */
  --on-gold:     #241906;   /* текст на золотых кнопках */
  --danger:      #E05B4C;
  --radius:      16px;
  --nav-h:       64px;
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overscroll-behavior: none;       /* без «резинки» и pull-to-refresh */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Режим «приложение, не сайт»: запрет выделения и зум-жестов */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
  min-height: 100vh;
  min-height: var(--tg-viewport-stable-height, 100dvh);
}

img { pointer-events: none; -webkit-user-drag: none; }

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: var(--text);
  touch-action: manipulation;
}

.serif { font-family: 'Playfair Display', Georgia, serif; }

/* ---------- Экраны (SPA) ---------- */

.screen {
  display: none;
  padding: 16px 16px calc(var(--nav-h) + 28px);
  max-width: 640px;
  margin: 0 auto;
  animation: screenIn 240ms ease-out;
}
.screen.active { display: block; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Шапка главного экрана ---------- */

.hero {
  position: relative;
  padding: 18px 4px 6px;
  margin-bottom: 14px;
  overflow: hidden;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-text .brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.05;
}

.brand-text .brand-777 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.brand-text .brand-city {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.52em;
  color: var(--muted);
}

.hero-tower { flex-shrink: 0; opacity: 0.95; }

/* компактная шапка внутренних экранов */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px 14px;
}

.topbar .brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: var(--card);
  color: var(--gold);
  transition: transform 150ms ease, background 150ms ease;
}
.icon-btn:active { transform: scale(0.93); background: var(--card-2); }

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  color: var(--on-gold);
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.badge:empty { display: none; }

/* ---------- Поиск ---------- */

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--gold-line);
  background: var(--card);
  margin-bottom: 18px;
}
.search svg { flex-shrink: 0; color: var(--gold); }
.search input { flex: 1; font-size: 1rem; height: 100%; }
.search input::placeholder { color: var(--muted); }

/* ---------- Плитка категорий ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cat-tile {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, var(--card) 0%, #100D09 100%);
  overflow: hidden;
  aspect-ratio: 0.86;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease;
}
.cat-tile:active { transform: scale(0.97); border-color: var(--gold-line-2); }

.cat-tile .cat-name {
  padding: 14px 14px 4px;
  font-size: 1.02rem;
  font-weight: 700;
  z-index: 1;
}

.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.cat-tile .cat-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,9,8,0.88) 0%, rgba(11,9,8,0.25) 42%, rgba(11,9,8,0.1) 100%);
}

.cat-tile.soon .cat-icon {
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--gold);
  opacity: 0.85;
}

.cat-tile .soon-tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(11, 9, 8, 0.72);
}

.age-note {
  margin-top: 22px;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.7;
}

/* ---------- Чипы фильтров ---------- */

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--gold-line);
  background: var(--card);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}
.chip:active { transform: scale(0.95); }
.chip.active {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  border-color: transparent;
  color: var(--on-gold);
  font-weight: 800;
}

/* ---------- Сортировка ---------- */

.sort-box {
  position: relative;
  margin-bottom: 16px;
}

.sort-btn {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--gold-line);
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.sort-btn svg:first-child { color: var(--gold); }
.sort-btn .sort-label { flex: 1; text-align: left; }
.sort-btn .chev { transition: transform 200ms ease; color: var(--muted); }
.sort-box.open .chev { transform: rotate(180deg); }

.sort-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  border-radius: 14px;
  border: 1px solid var(--gold-line-2);
  background: var(--card-2);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.sort-box.open .sort-menu { display: block; }

.sort-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--text);
}
.sort-menu button.active { color: var(--gold); font-weight: 700; }
.sort-menu button:active { background: rgba(212, 164, 76, 0.08); }

/* ---------- Сетка товаров ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.p-card {
  border-radius: var(--radius);
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, var(--card) 0%, #110E0A 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: cardIn 300ms ease-out both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.p-media {
  position: relative;
  aspect-ratio: 3 / 3.4;
  overflow: hidden;
  cursor: pointer;
}
.p-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stock-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11, 9, 8, 0.72);
  border: 1px solid var(--gold-line);
  font-size: 0.7rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.stock-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 6px var(--gold);
}
.stock-pill.out .dot { background: var(--danger); box-shadow: none; }

/* Имитация прозрачного стекла (Glassmorphism) для остатка товара в верхнем правом углу */
.glass-stock {
  display: none; /* скрыто по запросу */
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  align-items: center;
  justify-content: center;
  padding: 5px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.06) 100%), rgba(20, 18, 16, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  line-height: 1.2;
}

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px; /* возвращено в правый угол */
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(11, 9, 8, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gold);
  transition: transform 150ms ease;
  z-index: 2;
}
.fav-btn:active { transform: scale(1.2); }
.fav-btn .heart-fill { display: none; }
.fav-btn.faved .heart-fill { display: block; }
.fav-btn.faved .heart-line { display: none; }

.p-info {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.p-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  min-height: 2.4em;
  cursor: pointer;
}
.p-name small { display: block; color: var(--muted); font-weight: 500; font-size: 0.78rem; margin-top: 2px; }

.p-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
}

/* Кнопка «Добавить» и степпер */

.add-btn {
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  color: var(--on-gold);
  font-size: 0.92rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 150ms ease, filter 150ms ease;
}
.add-btn:active { transform: scale(0.96); filter: brightness(1.08); }

.stepper {
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  color: var(--on-gold);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.stepper button {
  width: 46px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--on-gold);
  display: grid;
  place-items: center;
}
.stepper button:active { background: rgba(0, 0, 0, 0.12); }
.stepper .qty {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------- Страница товара ---------- */

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 2px 14px;
}

.pd-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  margin-bottom: 18px;
}
.pd-media img { width: 100%; display: block; }

.pd-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.pd-specs {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.pd-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
}

.pd-label {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.pd-label .req { color: var(--danger); }

.variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.variant {
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--gold-line);
  background: var(--card);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 150ms ease, color 150ms ease;
}
.variant.active {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  border-color: transparent;
  color: var(--on-gold);
  font-weight: 800;
}

.pd-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.pd-actions .stepper {
  background: var(--card);
  border: 1px solid var(--gold-line);
  color: var(--text);
  width: 132px;
  flex-shrink: 0;
  height: 54px;
}
.pd-actions .stepper button { color: var(--gold); }
.pd-actions .add-btn { flex: 1; height: 54px; font-size: 1rem; }

/* ---------- Корзина ---------- */

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--gold-line);
  background: var(--card);
  margin-bottom: 12px;
  animation: cardIn 250ms ease-out both;
}

.cart-item img {
  width: 74px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.ci-info { flex: 1; display: flex; flex-direction: column; }
.ci-name { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.ci-variant { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.ci-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ci-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.ci-bottom .stepper {
  height: 38px;
  background: var(--card-2);
  border: 1px solid var(--gold-line);
  color: var(--text);
  width: 112px;
}
.ci-bottom .stepper button { color: var(--gold); width: 36px; font-size: 1.2rem; }

.ci-remove {
  align-self: flex-start;
  color: var(--muted);
  padding: 4px;
  flex-shrink: 0;
}

.cart-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}
.cart-empty svg { color: var(--gold); opacity: 0.5; margin-bottom: 16px; }
.cart-empty p { margin-bottom: 20px; font-size: 1rem; }
.cart-empty .add-btn { display: inline-flex; padding: 0 26px; }

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px;
  font-size: 1.05rem;
  font-weight: 700;
}
.cart-total .sum {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.checkout-btn {
  width: 100%;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  color: var(--on-gold);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 150ms ease;
}
.checkout-btn:active { transform: scale(0.97); }

/* ---------- Экран «Оформление» ---------- */

.ck-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 1.8rem;
  font-weight: 800;
  padding: 12px 0 24px;
}
.ck-title svg { color: var(--gold); }

.ck-card {
  position: relative;
  border: 1px solid var(--gold-line-2);
  border-radius: 20px;
  padding: 20px 16px;
  margin-bottom: 20px;
  background: rgba(22, 18, 13, 0.35);
}

/* «искры» на рамке, как на макете */
.ck-card .spark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  background: var(--bg);
  padding: 0 6px;
  line-height: 0;
}
.ck-card .spark.top { top: -7px; }
.ck-card .spark.bottom { bottom: -7px; }

.ck-step {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.d-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--gold-line);
  background: rgba(22, 18, 13, 0.6);
  margin-bottom: 12px;
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.d-opt:last-child { margin-bottom: 0; }
.d-opt:active { transform: scale(0.98); }
.d-opt.active {
  border-color: var(--gold-line-2);
  box-shadow: 0 0 16px rgba(212, 164, 76, 0.16), inset 0 0 24px rgba(212, 164, 76, 0.05);
}

.radio {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.radio::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transition: opacity 150ms ease;
}
.d-opt.active .radio::after { opacity: 1; }

.d-info { flex: 1; }
.d-name { display: block; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.d-note { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 3px; }

.d-fee {
  flex-shrink: 0;
  border: 1px solid var(--gold-line-2);
  color: var(--gold);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- карточка «Данные для курьера» --- */

.ck-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 2px 2px 14px;
  font-size: 1.02rem;
}
.ck-row .ck-row-label { color: var(--gold); font-weight: 700; flex-shrink: 0; }
.ck-row .ck-row-val { font-weight: 600; }

.ck-row .inline-input {
  flex: 1;
  min-width: 0;
  font-size: 1.02rem;
  font-weight: 600;
  -webkit-user-select: text;
  user-select: text;
}
.ck-row .inline-input::placeholder { color: var(--muted); font-weight: 400; }

.ck-div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  margin-bottom: 16px;
}
.ck-div::before,
.ck-div::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-line);
}

.f-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 10px;
}
.f-label svg { color: var(--gold); flex-shrink: 0; }

.f-input {
  display: block;
  width: 100%;
  border: 1px solid var(--gold-line-2);
  border-radius: 12px;
  background: rgba(22, 18, 13, 0.6);
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  margin-bottom: 18px;
  -webkit-user-select: text;
  user-select: text;
  transition: border-color 150ms ease;
}
.f-input:focus { border-color: var(--gold); }
.f-input::placeholder { color: var(--muted); }
.f-input:last-child { margin-bottom: 4px; }

textarea.f-input { min-height: 110px; resize: none; }

.ck-back {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 62px;
  border-radius: 16px;
  border: 1px solid var(--gold-line-2);
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  transition: transform 150ms ease;
}
.ck-back:active { transform: scale(0.98); background: rgba(212, 164, 76, 0.08); }
.ck-back .sq {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--gold-line-2);
  display: grid;
  place-items: center;
}

.ck-skyline {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.order-list { margin-bottom: 4px; }

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(212, 164, 76, 0.1);
  font-size: 0.92rem;
}
.order-row .r-name { flex: 1; }
.order-row .r-name small { color: var(--muted); display: block; }
.order-row .r-sum { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.order-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 12px 0 18px;
}
.order-total span:last-child { color: var(--gold); }

.ck-card .checkout-btn { margin: 14px 0 10px; }

.ghost-btn {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 1px solid var(--gold-line-2);
  color: var(--gold);
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ghost-btn:active { background: rgba(212, 164, 76, 0.08); }

.ck-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
  line-height: 1.5;
}

/* ---------- Пустые состояния ---------- */

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state svg { color: var(--gold); opacity: 0.5; margin-bottom: 14px; }

/* ---------- Тосты ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 20px);
  transform: translate(-50%, 20px);
  z-index: 120;
  background: var(--card-2);
  border: 1px solid var(--gold-line-2);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { color: var(--gold); flex-shrink: 0; }

/* ---------- Нижняя навигация ---------- */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(11, 9, 8, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--gold-line);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  width: 84px;
  height: 100%;
  justify-content: center;
  transition: color 150ms ease;
}
.nav-item.active { color: var(--gold); }
.nav-item .badge { top: 4px; right: 18px; position: absolute; }
