/* Сушка-фишка — общие стили нового фронта (поверх Tailwind CDN).
   Всё, что нельзя (или неудобно) выразить утилитами: тосты, эмодзи-плитки,
   ползунок цены, кастомные инпуты. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../vendor/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../vendor/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../vendor/fonts/material-symbols-outlined.woff2') format('woff2');
}

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background-color: #fbf9f9;
  color: #1b1c1c;
}

.tracking-tight,
.tracking-wider {
  letter-spacing: 0 !important;
}

.vt-page-leaving {
  pointer-events: none;
  cursor: progress;
}

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

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

.ambient-shadow { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.hover-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); }

/* ---------- подложки под фото товаров (видны, пока нет картинки) ---------- */
.vt-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f3f3, #e9e8e7);
  overflow: hidden;
}

.vt-tile--combo    { background: linear-gradient(135deg, #fff1f1, #ffdad6); }
.vt-tile--rolls    { background: linear-gradient(135deg, #ffece8, #ffd9d2); }
.vt-tile--pizza    { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.vt-tile--wok      { background: linear-gradient(135deg, #f1f8e9, #dcedc8); }
.vt-tile--fastfood { background: linear-gradient(135deg, #fff8e1, #ffecb3); }
.vt-tile--salads   { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.vt-tile--drinks   { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.vt-tile--deserts  { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.vt-tile--sauces   { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }

/* ---------- кнопка «в корзину» на карточке ---------- */
.vt-add.is-in {
  background-color: #e31e24 !important;
  color: #ffffff !important;
}

/* ---------- поля форм ---------- */
.input-field {
  border-radius: 16px;
  border: 1px solid #ece4e2;
  background: #ffffff;
  padding: 12px 16px;
  width: 100%;
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  color: #1b1c1c;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field::placeholder { color: #a99c99; }
.input-field:focus {
  outline: none;
  border-color: #e31e24;
  box-shadow: 0 0 0 1px #e31e24;
}
.input-field.is-invalid {
  border-color: #ba1a1a;
  box-shadow: 0 0 0 1px #ba1a1a;
}
.input-field--sm {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 20px;
}

.radio-custom {
  accent-color: #e31e24;
  width: 20px;
  height: 20px;
  flex: none;
}

.custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 9999px;
  background: #e9e8e7;
  cursor: pointer;
}
.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e31e24;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.custom-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e31e24;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* ---------- тосты (использует VT.toast из js/store.js) ---------- */
.vt-toasts {
  position: fixed;
  z-index: 400;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.vt-toast {
  background: #303031;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: min(92vw, 560px);
  text-align: center;
}
.vt-toast.is-shown { opacity: 1; transform: none; }
.vt-toast--success { background: #2e7d32; }
.vt-toast--error { background: #e31e24; }

/* ---------- карта на странице контактов (Leaflet) ---------- */
.vt-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.vt-pin { background: none; border: none; }
.vt-pin__dot {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e31e24;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.leaflet-container {
  font-family: 'Manrope', system-ui, sans-serif;
}
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* кнопки зума: белые круглые, без обводок */
.leaflet-bar,
.leaflet-touch .leaflet-bar {
  border: none;
  box-shadow: none;
  background: transparent;
}
.leaflet-control-zoom a,
.leaflet-touch .leaflet-control-zoom a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: #ffffff;
  color: #1b1c1c;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-size: 18px;
  font-weight: 700;
  transition: color 0.2s, transform 0.2s;
}
.leaflet-bar a:first-child,
.leaflet-bar a:last-child,
.leaflet-touch .leaflet-bar a:first-child,
.leaflet-touch .leaflet-bar a:last-child {
  border-radius: 50%;
}
.leaflet-control-zoom a + a {
  margin-top: 8px;
}
.leaflet-control-zoom a:hover {
  background: #ffffff;
  color: #e31e24;
  transform: scale(1.06);
}
.leaflet-control-zoom a.leaflet-disabled {
  opacity: 0.4;
}
.leaflet-bottom.leaflet-right .leaflet-control-zoom {
  margin: 0 16px 16px 0;
}

/* ---------- плавающая тарелка (хиро/404) ---------- */
.floating-plate { animation: vt-float 6s ease-in-out infinite; }
@keyframes vt-float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
