/* ============================================================
   WOW.CSS — Визуальные максималки для Pool Market
   Подключается поверх styles.css, перекрывает нужное
   ============================================================ */

/* ── ШРИФТ ── Mediterranean Premium (2026-05-28) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Geist:wght@400;500;600;700&display=swap');

/* ── ПЕРЕМЕННЫЕ ── */
:root {
  /* Терракотовая + оливковая палитра */
  --sky: #B85638;          /* терракота (был голубой) */
  --sky-dark: #94402A;
  --sky-deep: #6B2F1E;
  --coral: #C5683E;
  --coral-dark: #94402A;
  --mint: #6B7C5C;         /* олива */
  --mint-dark: #4F5D43;
  --gold: #D49142;         /* шафран */

  --grad-sky: #B85638;     /* плоский цвет вместо градиента */
  --grad-sunset: #C5683E;
  --grad-mint: #6B7C5C;
  --grad-gold: #D49142;
  --grad-ocean: #2C2825;   /* тёмный кофе вместо синего океана */

  --surface: #fff;
  --bg: #FAF6F0;           /* кремовый */
  --text: #2C2825;         /* тёплый тёмно-кофейный */
  --text-2: #6B5F54;
  --text-3: #998A7A;
  --border: rgba(184, 86, 56, .14);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-full: 999px;

  --ease: cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

/* ── BODY ── */
body {
  background: #FAF6F0;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

.container {
  max-width: 430px;
  box-shadow: 0 0 60px rgba(44, 40, 37, .08);
}

/* ────────────────────────────────────────────────
   HEADER  — глубокий океанский градиент
──────────────────────────────────────────────── */
.header {
  background: var(--grad-ocean);
  padding: 56px 20px 40px;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

/* Декоративные пузыри */
.header::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 65%);
  border-radius: 50%;
  animation: headerBubble1 8s ease-in-out infinite;
}
.header::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -30px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(184,86,56,.25) 0%, transparent 65%);
  border-radius: 50%;
  animation: headerBubble1 11s ease-in-out infinite reverse;
}

/* SVG-волна снизу header */
.header-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 40px;
  overflow: hidden;
}
.header-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes headerBubble1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(8px,-12px) scale(1.08); }
}

/* LOGO */
.logo-icon {
  width: 50px; height: 50px;
  border-radius: 16px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.25);
  animation: logoFloat 4s ease-in-out infinite;
}
.logo-icon svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,.2)); }

@keyframes logoFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(2deg); }
}

.logo-title {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -.02em;
  color: #FAF6F0;
  line-height: 1;
}
.logo-subtitle {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(250, 246, 240, .65);
  margin-top: 5px;
}

.room-selector {
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.room-selector label { color: rgba(255,255,255,.9); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.room-selector input { color: #fff; font-size: 18px; font-weight: 800; }

.stat-badge {
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  padding: 9px 14px;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: all .2s var(--ease);
}
.stat-badge:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); }
.stat-badge-icon { color: rgba(255,255,255,.95); display: flex; align-items: center; }
.stat-badge-text { color: #fff; font-size: 12px; font-weight: 700; }

/* ────────────────────────────────────────────────
   HERO BANNER — закат с блёстками
──────────────────────────────────────────────── */
.hero-banner {
  margin: 20px 16px;
  background: var(--grad-sunset);
  border-radius: var(--r-xl);
  padding: 22px 20px;
  box-shadow: 0 12px 40px rgba(249,115,22,.35), 0 4px 12px rgba(0,0,0,.1);
  overflow: hidden;
  position: relative;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -30px; right: -20px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 65%);
  border-radius: 50%;
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -10px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 65%);
  border-radius: 50%;
}

.hero-icon { font-size: 52px; animation: heroFloat 3s ease-in-out infinite; }
@keyframes heroFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.05); }
}

.hero-title { font-size: 21px; font-weight: 900; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.15); letter-spacing: -.3px; }
.hero-subtitle { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); margin-bottom: 12px; }
.hero-timer {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  padding: 7px 14px;
  border-radius: 50px;
  color: #fff;
  font-size: 13px; font-weight: 700;
}
.hero-code {
  background: rgba(255,255,255,.95);
  color: #EA580C;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 14px; font-weight: 900;
  letter-spacing: 3px;
  margin-top: 12px;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  cursor: pointer;
  transition: all .2s var(--spring);
  border: 2px solid rgba(255,255,255,.5);
}
.hero-code:hover { transform: scale(1.06); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.hero-code:active { transform: scale(.97); }

/* ────────────────────────────────────────────────
   COMBO SECTION
──────────────────────────────────────────────── */
.combo-section {
  margin: 0 16px 20px;
  padding: 20px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border-radius: var(--r-xl);
  border: 1.5px solid rgba(249,115,22,.15);
  box-shadow: 0 4px 20px rgba(249,115,22,.07);
}
.combo-title { font-size: 17px; font-weight: 800; color: var(--text); }
.combo-title-icon { font-size: 20px; }

.combo-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  border: 1.5px solid rgba(249,115,22,.12);
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: transform .22s var(--spring), box-shadow .22s var(--ease);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.combo-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary);
}
.combo-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(249,115,22,.18); border-color: rgba(249,115,22,.35); }
.combo-card:active { transform: scale(.97); }
.combo-save {
  position: absolute; top: 10px; right: 10px;
  background: var(--grad-sunset);
  color: #fff; padding: 3px 9px; border-radius: 50px;
  font-size: 10px; font-weight: 800;
}
.combo-items { font-size: 28px; margin-bottom: 8px; }
.combo-name { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.combo-price-new { font-size: 17px; font-weight: 900; color: #F97316; }
.combo-price-old { font-size: 12px; color: var(--text-3); text-decoration: line-through; }

/* ────────────────────────────────────────────────
   SEARCH BAR
──────────────────────────────────────────────── */
.search-bar {
  margin: 0 16px 14px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 2px 12px rgba(184,86,56,.06);
  transition: all .2s var(--ease);
}
.search-bar:focus-within {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(184,86,56,.1), 0 2px 12px rgba(184,86,56,.1);
}
.search-icon { color: var(--text-3); font-size: 18px; }
.search-input { font-size: 15px; font-weight: 500; color: var(--text); background: transparent; border: none; outline: none; width: 100%; }
.search-input::placeholder { color: var(--text-3); }

/* ────────────────────────────────────────────────
   SHIPPING BAR
──────────────────────────────────────────────── */
.shipping-bar {
  margin: 0 16px 14px;
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  border: 1.5px solid rgba(16,185,129,.2);
  border-radius: 18px;
  padding: 12px 16px;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(16,185,129,.08);
  transition: all .2s var(--ease);
  cursor: pointer;
}
.shipping-bar:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,185,129,.14); }
.shipping-bar-icon { font-size: 20px; }
.shipping-bar-text { font-size: 13px; font-weight: 700; color: #065F46; }
.shipping-bar-progress { height: 6px; background: rgba(16,185,129,.2); border-radius: 50px; margin-top: 6px; overflow: hidden; }
.shipping-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #34D399);
  border-radius: 50px;
  transition: width .5s var(--ease);
  box-shadow: 0 0 8px rgba(16,185,129,.5);
}

/* ────────────────────────────────────────────────
   CATEGORIES
──────────────────────────────────────────────── */
.categories {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }

.category-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  border-radius: 50px;
  border: 2px solid rgba(184,86,56,.15);
  background: #fff;
  color: var(--text-2);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: all .2s var(--ease);
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.category-chip:hover { border-color: var(--sky); color: var(--sky); background: rgba(184,86,56,.05); }
.category-chip.active {
  background: var(--grad-sky);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(184,86,56,.35);
  transform: scale(1.03);
}
.chip-icon { font-size: 17px; }

/* ────────────────────────────────────────────────
   PRODUCT GRID + CARDS
──────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 4px 16px 16px;
}

.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(184,86,56,.1);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .22s var(--spring), box-shadow .22s var(--ease), border-color .22s var(--ease);
  box-shadow: 0 2px 12px rgba(184,86,56,.07);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(184,86,56,.18);
  border-color: rgba(184,86,56,.3);
}
.product-card:active { transform: scale(.97); }

.product-card.out-of-stock { opacity: .6; filter: grayscale(.35); }

.product-image-wrapper {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}

.product-image-emoji {
  font-size: 54px; line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.12));
  transition: transform .3s var(--spring);
  user-select: none;
}
.product-card:hover .product-image-emoji { transform: scale(1.12) rotate(-4deg); }

.product-image-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.product-card:hover .product-image-photo { transform: scale(1.07); }

.product-info { padding: 11px 12px 4px; flex: 1; }
.product-name {
  font-size: 13.5px; font-weight: 700; color: var(--text);
  margin-bottom: 3px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-desc {
  font-size: 11.5px; color: var(--text-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.product-footer {
  padding: 8px 12px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.product-price { display: flex; flex-direction: column; gap: 1px; }
.product-price-current { font-size: 18px; font-weight: 900; color: var(--text); line-height: 1; }
.product-price-old { font-size: 11px; color: var(--text-3); text-decoration: line-through; }

.add-btn {
  width: 44px; height: 44px;
  border-radius: 14px; border: none;
  background: var(--grad-sky);
  color: #fff;
  font-size: 26px; font-weight: 300;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 4px 14px rgba(184,86,56,.4);
  transition: all .18s var(--spring);
  flex-shrink: 0;
}
.add-btn:hover { transform: scale(1.12); box-shadow: 0 6px 20px rgba(184,86,56,.52); }
.add-btn:active { transform: scale(.93); }
.add-btn:disabled { background: #E2E8F0; color: #94A3B8; box-shadow: none; cursor: default; transform: none; }

/* Badges */
.product-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 50px;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; z-index: 2; color: #fff;
}
.badge-хит, .badge-hit, .badge-ХИТ { background: var(--grad-sunset); box-shadow: 0 2px 8px rgba(249,115,22,.4); }
.badge-new, .badge-новинка { background: var(--grad-mint); }
.badge-sale, .badge-скидка { background: var(--grad-gold); color: #7C2D12; }
.badge-premium { background: var(--secondary); }

.stock-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 10px; border-radius: 50px;
  font-size: 10px; font-weight: 700; z-index: 2;
}
.stock-badge.out-of-stock { background: rgba(239,68,68,.1); color: #DC2626; border: 1px solid rgba(239,68,68,.2); }
.stock-badge.low-stock    { background: rgba(251,191,36,.15); color: #B45309; border: 1px solid rgba(251,191,36,.3); }
.scarcity-badge {
  position: absolute; bottom: 58px; left: 50%;
  transform: translateX(-50%);
  background: rgba(239,68,68,.88); color: #fff;
  padding: 3px 10px; border-radius: 10px;
  font-size: 9.5px; font-weight: 700; white-space: nowrap; z-index: 2;
}

/* Skeleton */
.product-skeleton {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid rgba(184,86,56,.08);
}
.product-skeleton .skel-img { width: 100%; aspect-ratio: 1; background: #F1F5F9; }
.product-skeleton .skel-line { height: 12px; background: #F1F5F9; border-radius: 6px; margin: 12px 12px 6px; }
.product-skeleton .skel-line-sm { width: 60%; }
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skel-img, .skel-line {
  background-image: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}

/* Empty state */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 48px 24px;
}
.empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-text  { font-size: 14px; color: var(--text-2); }

/* ────────────────────────────────────────────────
   CART
──────────────────────────────────────────────── */
.cart-content { padding: 16px; }

.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(184,86,56,.05);
  transition: all .2s var(--ease);
}
.cart-item:hover { border-color: rgba(184,86,56,.25); box-shadow: 0 6px 20px rgba(184,86,56,.1); }
.cart-item-image {
  font-size: 32px;
  width: 52px; height: 52px;
  background: linear-gradient(135deg,#F0F9FF,#E0F2FE);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 32px; height: 32px;
  border-radius: 10px; border: 1.5px solid rgba(184,86,56,.2);
  background: #fff; color: var(--text);
  font-size: 17px; font-weight: 400;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: all .18s var(--ease);
}
.qty-btn:hover { border-color: var(--sky); color: var(--sky); background: rgba(184,86,56,.06); transform: scale(1.08); }
.qty-value { font-size: 15px; font-weight: 800; min-width: 20px; text-align: center; color: var(--text); }
.cart-item-total { font-size: 15px; font-weight: 800; color: var(--text); min-width: 48px; text-align: right; }
.remove-btn {
  background: none; border: none;
  font-size: 17px; cursor: pointer;
  padding: 6px; border-radius: 10px;
  opacity: .45; transition: all .18s var(--ease);
  color: var(--text-2);
}
.remove-btn:hover { opacity: 1; background: rgba(239,68,68,.1); }

/* Cart empty */
.empty-cart { text-align: center; padding: 60px 24px; }
.empty-cart-icon { font-size: 64px; margin-bottom: 16px; display: block; }
.empty-cart-text { font-size: 16px; font-weight: 600; color: var(--text-2); margin-bottom: 20px; }
.start-shopping-btn {
  background: var(--grad-sky); color: #fff;
  border: none; border-radius: 50px; padding: 14px 28px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 16px rgba(184,86,56,.35);
  transition: all .2s var(--spring);
}
.start-shopping-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,86,56,.45); }

/* Summary */
.cart-summary, .order-summary {
  background: linear-gradient(135deg,#F0F9FF,#E0F2FE);
  border-radius: 20px;
  padding: 20px;
  margin: 16px 0;
  border: 1.5px solid rgba(184,86,56,.15);
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(184,86,56,.1);
}
.summary-row:last-child { border-bottom: none; }
.summary-row.total { margin-top: 4px; padding-top: 12px; border-top: 2px solid rgba(184,86,56,.15); border-bottom: none; }
.summary-row.total .summary-label { font-size: 15px; font-weight: 800; color: var(--text); }
.summary-row.total .summary-value { font-size: 20px; font-weight: 900; color: var(--sky); }
.summary-label { font-size: 14px; color: var(--text-2); font-weight: 500; }
.summary-value { font-size: 14px; font-weight: 700; color: var(--text); }

.checkout-btn {
  width: 100%; padding: 18px 24px;
  border-radius: var(--r-xl); border: none;
  background: var(--grad-sky); color: #fff;
  font-size: 16px; font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 28px rgba(184,86,56,.4);
  transition: all .22s var(--spring);
  letter-spacing: .2px; margin-top: 16px;
}
.checkout-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(184,86,56,.52); }
.checkout-btn:active { transform: translateY(0); }
.checkout-btn:disabled { background: #E2E8F0; color: #94A3B8; box-shadow: none; transform: none; cursor: default; }

/* ────────────────────────────────────────────────
   CHECKOUT FORM
──────────────────────────────────────────────── */
.checkout-content { padding: 16px; }
.form-group { margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.required { color: #EF4444; font-size: 14px; }
.form-input {
  width: 100%; padding: 14px 16px;
  border: 2px solid rgba(184,86,56,.15); border-radius: var(--r);
  font-size: 15px; font-weight: 500; color: var(--text);
  background: #fff; outline: none;
  transition: all .2s var(--ease);
  font-family: inherit;
}
.form-input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(184,86,56,.1); }
.form-error { font-size: 12px; color: #EF4444; margin-top: 6px; display: none; font-weight: 500; }

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 2px solid rgba(184,86,56,.12); border-radius: var(--r);
  cursor: pointer; transition: all .2s var(--ease); background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.03);
}
.payment-card.active {
  border-color: var(--sky);
  background: rgba(184,86,56,.05);
  box-shadow: 0 0 0 3px rgba(184,86,56,.1);
}
.payment-card-icon { font-size: 26px; }
.payment-card-text { font-size: 14px; font-weight: 600; color: var(--text); }

/* ────────────────────────────────────────────────
   BOTTOM NAV — glassmorphism
──────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 1px solid rgba(184,86,56,.1);
  padding: 10px 0 max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -4px 24px rgba(0,0,0,.07);
}

.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 24px;
  border-radius: 16px; border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-3);
  transition: all .2s var(--ease);
  min-width: 72px;
}
.nav-item.active { background: rgba(184,86,56,.1); color: var(--sky); }
.nav-item:hover:not(.active) { background: rgba(0,0,0,.04); color: var(--text-2); }
.nav-icon { display: flex; align-items: center; justify-content: center; transition: transform .2s var(--spring); }
.nav-item.active .nav-icon { transform: scale(1.15); }
.nav-label { font-size: 11px; font-weight: 600; }

/* ────────────────────────────────────────────────
   FLOATING CART
──────────────────────────────────────────────── */
.floating-cart {
  position: fixed;
  bottom: 84px; right: calc(50% - 207px);
  width: 56px; height: 56px;
  border-radius: 18px; border: none;
  background: var(--grad-sky);
  color: #fff;
  cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(184,86,56,.45);
  z-index: 99;
  transition: all .2s var(--spring);
}
.floating-cart:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 14px 36px rgba(184,86,56,.55); }
.floating-cart:active { transform: scale(.94); }

.cart-badge {
  position: absolute; top: -7px; right: -7px;
  background: var(--grad-sunset);
  color: #fff; border: 2.5px solid #fff;
  border-radius: 12px; min-width: 22px; height: 22px;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
  box-shadow: 0 2px 8px rgba(239,68,68,.4);
  animation: cartBump .3s var(--spring);
}
@keyframes cartBump { 0% { transform: scale(.5); } 100% { transform: scale(1); } }

/* ────────────────────────────────────────────────
   MODALS
──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.55);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 1000; padding: 0;
  backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; animation: fadeIn .2s var(--ease); }

.modal {
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 32px 24px max(28px, env(safe-area-inset-bottom));
  width: 100%; max-width: 430px;
  box-shadow: 0 -20px 60px rgba(0,0,0,.15);
  animation: slideUpModal .3s var(--spring);
  text-align: center;
}
@keyframes slideUpModal {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.modal-icon { font-size: 56px; margin-bottom: 14px; display: block; }
.modal-title { font-size: 22px; font-weight: 900; color: var(--text); margin-bottom: 10px; }
.modal-text  { font-size: 15px; color: var(--text-2); margin-bottom: 8px; line-height: 1.5; }

.modal-btn {
  width: 100%; padding: 16px;
  border-radius: var(--r-lg); border: none;
  background: var(--grad-sky); color: #fff;
  font-size: 16px; font-weight: 700;
  cursor: pointer; margin-top: 12px;
  box-shadow: 0 4px 16px rgba(184,86,56,.3);
  transition: all .2s var(--spring);
  font-family: inherit;
}
.modal-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,86,56,.4); }
.modal-btn:active { transform: scale(.98); }
.modal-btn-secondary {
  background: var(--bg); color: var(--text-2);
  box-shadow: none; border: 1.5px solid var(--border);
}
.modal-btn-secondary:hover { background: #E0F2FE; box-shadow: none; }

/* ────────────────────────────────────────────────
   NOTIFICATION — тёмная пилюля
──────────────────────────────────────────────── */
.notification {
  position: fixed; top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: rgba(15,23,42,.9);
  backdrop-filter: blur(20px);
  color: #fff;
  padding: 12px 22px; border-radius: 50px;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  z-index: 9999;
  transition: transform .35s var(--spring);
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  white-space: nowrap; pointer-events: none;
}
.notification.show { transform: translateX(-50%) translateY(0); }
.notification-text { color: #fff; }

/* ────────────────────────────────────────────────
   MISC
──────────────────────────────────────────────── */
.loyalty-badge {
  position: fixed; top: 16px; left: 16px;
  background: var(--grad-gold); color: #7C2D12;
  padding: 8px 14px; border-radius: 50px;
  font-size: 13px; font-weight: 700;
  z-index: 200; display: none; align-items: center; gap: 6px;
  cursor: pointer; box-shadow: 0 4px 16px rgba(251,191,36,.4);
  transition: all .2s var(--spring);
}
.loyalty-badge:hover { transform: scale(1.05); }

.install-pwa {
  position: fixed !important;
  bottom: 78px !important; right: 12px !important;
  top: auto !important; left: auto !important;
  transform: none !important;
  width: auto !important; height: auto !important;
  max-width: 200px;
  background: rgba(15,23,42,.85); color: #fff;
  backdrop-filter: blur(16px);
  padding: 8px 14px; border-radius: 50px;
  display: none; align-items: center; gap: 8px;
  cursor: pointer; font-size: 12px; font-weight: 600;
  z-index: 98; box-shadow: 0 4px 18px rgba(0,0,0,.18);
  white-space: nowrap;
  animation: slideUp .4s var(--spring);
}
.install-pwa.visible { display: inline-flex !important; }
.install-pwa .install-pwa-text {
  overflow: hidden; text-overflow: ellipsis; max-width: 130px;
}

/* Page headers */
.page-header {
  background: linear-gradient(135deg,#F0F9FF,#E0F2FE);
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(184,86,56,.1);
}
.page-title { font-size: 22px; font-weight: 900; color: var(--text); }
.page-subtitle { font-size: 14px; color: var(--text-2); margin-top: 4px; font-weight: 500; }

/* Delivery info */
.delivery-info {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg,#ECFDF5,#D1FAE5);
  border-radius: var(--r); padding: 12px 16px;
  margin-top: 16px;
  font-size: 14px; font-weight: 600; color: #065F46;
  border: 1px solid rgba(16,185,129,.2);
}
.delivery-info-icon { font-size: 20px; }

/* Bonus badge */
.bonus-badge {
  background: var(--grad-gold);
  color: #7C2D12;
  padding: 4px 10px; border-radius: 50px;
  font-size: 12px; font-weight: 700;
}

/* FadeIn animation for pages */
.page { display: none; animation: fadeIn .25s var(--ease); }
.page.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateX(-50%) translateY(30px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ============================================================
   HEADER LIVE — живая шапка (видео + Ken Burns)
   ============================================================ */
.header--live { position: relative; isolation: isolate; overflow: hidden; }

/* Контейнер фона — видео или картинка с анимацией */
.header--live .header-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

/* Видео — на весь фон, обрезается по контейнеру */
.header--live .header-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 1;
}

/* Фолбэк-картинка (под видео) — с эффектом Ken Burns:
   медленный наезд + лёгкое движение даёт ощущение «живого» кадра */
.header--live .header-media-fallback {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center bottom;
  z-index: 0;
  animation: kenBurns 24s ease-in-out infinite alternate;
  transform-origin: 60% 40%;
}

/* Затемнение убрано — видео играет чистым */
.header--live::before { display: none !important; }

/* Контент шапки — поверх всего */
.header--live > *:not(.header-media) {
  position: relative;
  z-index: 2;
}

/* Убираем декоративные «свечения» из styles.css — они на фото лишние */
.header--live::after { display: none !important; }

/* Анимация дыхания кадра */
@keyframes kenBurns {
  0%   { transform: scale(1.00) translate(0, 0); }
  50%  { transform: scale(1.08) translate(-1.2%, 0.6%); }
  100% { transform: scale(1.04) translate(0.8%, -0.4%); }
}

/* Уважение к настройкам ОС: если гость попросил «уменьшить движение» —
   фото замирает, видео не играет */
@media (prefers-reduced-motion: reduce) {
  .header--live .header-media-fallback { animation: none !important; }
  .header--live .header-video { display: none !important; }
}
