/* ============================================
   PAROK777 - ПРЕМИУМ ТЕМНАЯ ТЕМА
   Современный дизайн с эффектом WOW
   ============================================ */

:root {
  /* Темная палитра */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: rgba(20, 20, 20, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
  
  /* Цвета */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.3);
  
  /* Тени */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.4);
  
  /* Радиусы */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Шрифты */
  --font-ui: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 87, 108, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 30%, rgba(102, 126, 234, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================
   HEADER (ШАПКА)
   ============================================ */

.header {
  position: relative;
  z-index: 100000;
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

/* Компактная шапка отключена - оставляем шапку всегда одинаковой */
/* Это убирает все проблемы с дерганием */

.header:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .brand img {
  width: 42px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 42px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-glow);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-glow);
}

.hairline {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 12px 0 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Поиск */
.header form {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-wrapper {
  flex: 1;
  position: relative;
}

.header form input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.3s ease;
}

.header form input[type="text"]::placeholder {
  color: var(--text-muted);
}

.header form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  background: rgba(139, 92, 246, 0.05);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-icon svg {
  display: block;
  flex-shrink: 0;
}

/* Выпадающий список поиска */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #14141a !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-height: 400px;
  overflow-y: auto;
  z-index: 99999 !important;
  display: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.search-dropdown.show {
  display: block;
  animation: slideIn 0.2s ease;
}

.search-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: rgba(139, 92, 246, 0.1);
  text-decoration: none !important;
}

.search-item-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-primary);
}

.search-item-info {
  flex: 1;
}

.search-item-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  text-decoration: none !important;
}

.search-item-category {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none !important;
}

.search-item-price {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none !important;
}

.search-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Навигация */
.header nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 100px;
  opacity: 1;
}

/* ============================================
   КНОПКИ
   ============================================ */

.btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn:hover::before {
  opacity: 1;
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Хлебные крошки / Навигация */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
    flex-wrap: wrap;
  margin-bottom: 24px;
}

.breadcrumb-sep {
  color: var(--text-muted);
  font-size: 14px;
  user-select: none;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  font-size: 15px;
  margin: 0;
}

.back:hover {
  color: var(--accent);
  background: var(--bg-glass);
  border-color: var(--border);
  transform: translateX(-4px);
}

/* ============================================
   СЕТКА КАТЕГОРИЙ
   ============================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.grid .btn {
  min-height: 140px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  align-items: center;
    justify-content: center;
    text-align: center;
  padding: 28px 32px;
  line-height: 1.3;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.grid .btn:hover::before {
  opacity: 1;
}

.grid .btn span {
  position: relative;
  z-index: 1;
}

.grid .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.grid .btn:hover::after {
  opacity: 1;
}

/* ============================================
   КАРТОЧКИ
   ============================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  position: relative;
  text-decoration: none !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.card:hover::before {
  opacity: 1;
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--bg-secondary);
  transition: transform 0.5s ease, filter 0.3s ease;
  display: block;
}

.card:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-primary);
  color: white;
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5),
              0 2px 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 10;
  transition: all 0.3s ease;
}

.card:hover .price-badge {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.7),
              0 2px 10px rgba(0, 0, 0, 0.4);
}

.flavors-count {
  display: inline-flex;
  align-items: center;
    gap: 6px;
  padding: 6px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 8px;
}

.card-body {
  padding: 24px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-card) 30%);
}

.card-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.3;
  text-decoration: none !important;
}

.card a,
.card-body a {
  text-decoration: none !important;
  color: inherit;
}

.muted {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none !important;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
    text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 72px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-text {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ============================================
   ЗАГОЛОВКИ
   ============================================ */

.title {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 32px 0 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  padding: 0 20px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  opacity: 0.6;
}

.title-no-line::after {
  display: none;
}

.subtitle-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin: 20px 0 32px;
  font-weight: 500;
  opacity: 0.9;
}

.subtitle {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 32px 0 16px;
  color: var(--text-primary);
}

/* ============================================
   СПИСОК ВКУСОВ
   ============================================ */

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.list-item {
    display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.list-item:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.flavors-list .flavor-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flavors-list .list-name {
  flex: 1 1 auto;
    min-width: 0;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.flavors-list .list-price {
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
  color: var(--accent-hover);
}

.flavors-list .list-stock {
  font-weight: 700;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.flavors-list .list-stock.stock-yes {
  color: #4ade80 !important;
  background: rgba(74, 222, 128, 0.1);
}

.flavors-list .list-stock.stock-no {
  color: var(--text-muted) !important;
  background: rgba(113, 113, 122, 0.1);
}

/* ============================================
   РЕЗУЛЬТАТЫ ПОИСКА
   ============================================ */

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.result-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.result-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.result-card .rc-top,
.result-card .rc-mid,
.result-card .rc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.result-card .rc-bottom {
  margin-bottom: 0;
  margin-top: 16px;
}

.rc-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.rc-flavor {
  font-weight: 600;
  color: var(--text-secondary);
}

.rc-price {
  font-weight: 800;
  font-size: 20px;
  color: var(--accent-hover);
  white-space: nowrap;
}

.rc-cat {
  color: var(--text-muted);
  font-size: 14px;
}

.rc-stock {
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.rc-stock.yes {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.rc-stock.no {
  color: var(--text-muted);
  background: rgba(113, 113, 122, 0.1);
}

/* ============================================
   ФУТЕР
   ============================================ */

.footer {
  margin-top: 100px;
  padding: 48px 32px 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--gradient-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 24px;
}

.footer-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
    justify-content: center;
  background: #dc2626;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
  padding: 12px 20px;
  border: 2px solid #991b1b;
}

.footer-badge-18 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: white;
  letter-spacing: 0.02em;
  font-family: Arial, sans-serif;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-warning {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.footer-info {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-dev {
    text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  opacity: 0.6;
}

.footer b {
  color: var(--text-primary);
  font-weight: 800;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО (ВОЗРАСТ)
   ============================================ */

#ageGate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  display: none;
    align-items: center;
  justify-content: center;
  z-index: 9999;
}

#ageGate > div {
  width: min(500px, 90vw);
  background: var(--gradient-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

#ageGate > div > div:first-child {
  font-weight: 800;
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#ageGate p {
  margin: 16px 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

#ageGate > div > div:last-child {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

#ageYes {
  background: var(--gradient-success) !important;
  border: none !important;
}

/* ============================================
   ФОРМЫ (для админки)
   ============================================ */

.form {
  display: grid;
  gap: 16px;
  max-width: 600px;
}

input,
select,
button,
textarea {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 15px;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

button {
  cursor: pointer;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}

.table th {
  font-weight: 700;
  background: var(--bg-secondary);
}

.table tr:last-child td {
  border-bottom: 0;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* Специальные стили для категорий */
.category-grid {
  max-width: 950px;
}

.category-btn {
  display: flex;
    flex-direction: column;
  gap: 12px;
    align-items: center;
  justify-content: center;
  position: relative;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.category-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: 22px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.category-btn:hover::before {
  opacity: 0.3;
}

.cat-icon {
  font-size: 56px;
  line-height: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  display: block;
  margin-bottom: 12px;
}

/* Капля - обычная (синяя) */
.icon-drop {
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.5));
}

/* Капля - красная (крепкие) */
.icon-drop-red {
  filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.6)) 
          drop-shadow(0 0 20px rgba(239, 68, 68, 0.4));
}

/* Пар - обычный */
.icon-vapor {
  filter: drop-shadow(0 4px 12px rgba(165, 180, 252, 0.5));
}

/* Пар - красный (крепкие) */
.icon-vapor-red {
  filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.6)) 
          drop-shadow(0 0 20px rgba(239, 68, 68, 0.4));
}

.category-btn:hover .cat-icon {
  transform: scale(1.2) rotate(-5deg);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}

.category-btn:hover .icon-drop {
  filter: drop-shadow(0 8px 20px rgba(59, 130, 246, 0.7));
}

.category-btn:hover .icon-drop-red {
  filter: drop-shadow(0 8px 24px rgba(239, 68, 68, 0.8)) 
          drop-shadow(0 0 30px rgba(239, 68, 68, 0.6));
}

.category-btn:hover .icon-vapor {
  filter: drop-shadow(0 8px 20px rgba(165, 180, 252, 0.7));
}

.category-btn:hover .icon-vapor-red {
  filter: drop-shadow(0 8px 24px rgba(239, 68, 68, 0.8)) 
          drop-shadow(0 0 30px rgba(239, 68, 68, 0.6));
}

.cat-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: transform 0.3s ease;
}

.category-btn:hover .cat-name {
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  /* Оптимизация для планшетов - отключаем тяжелые эффекты */
  .header {
    backdrop-filter: none;
    background: rgba(15, 15, 20, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .search-dropdown {
    backdrop-filter: none;
  }
  
  .card, .btn, .category-btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  
  .card:hover, .btn:hover, .category-btn:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  }
  
  /* Отключаем тяжелые hover трансформации */
  .category-btn:hover .cat-icon {
    transform: scale(1.05);
  }
  
  .grid {
    max-width: 700px;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .grid .btn {
    min-height: 130px;
    font-size: 18px;
  }
  
  .cat-icon {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .header {
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .header .brand {
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
  }

  .header form {
    margin-bottom: 12px;
  }

  .search-wrapper {
    flex: 1;
  }

  .header form input[type="text"] {
    width: 100%;
  }
  
  .btn-icon {
    width: 48px;
    height: 48px;
  }
  
  /* Выпадающий поиск на мобильных */
  .search-dropdown {
    max-height: 300px;
    left: -16px;
    right: -16px;
    width: calc(100vw - 32px);
  }
  
  .search-item {
    padding: 10px 12px;
  }
  
  .search-item-image {
    width: 40px;
    height: 40px;
  }

  .header nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header .btn-outline {
    flex: 1;
    min-width: 140px;
  }

  .title {
    font-size: 32px;
  }

  .subtitle {
    font-size: 24px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  max-width: 100%;
  }
  
  /* Категории на планшетах - 2 в ряд */
  .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }
  
  .grid .btn {
    min-height: 110px;
    font-size: 18px;
    padding: 24px;
  }
  
  .cat-icon {
    font-size: 40px;
  }
  
  .cat-name {
    font-size: 18px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .results {
    grid-template-columns: 1fr;
  }

  .flavors-list .flavor-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .flavors-list .list-name {
    flex: 1 1 100%;
    margin-bottom: 4px;
  }

  .flavors-list .list-price {
    order: 2;
  }

  .flavors-list .list-stock {
    order: 3;
    margin-left: auto;
  }

.result-card .rc-top,
  .result-card .rc-mid {
    flex-wrap: wrap;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .footer-badge {
    margin: 0 auto;
  }
  
  .footer-warning {
    font-size: 18px;
  }
  
  .footer-info {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .back {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .breadcrumb-sep {
    font-size: 12px;
  }
  
  .title {
    font-size: 23px;
  }
  
  .price-badge {
    font-size: 18px;
    padding: 8px 16px;
  }

  .grid .btn {
    min-height: 100px;
    font-size: 17px;
    padding: 20px;
  }
  
  /* Категории на телефонах - 1 в ряд */
  .category-grid {
    grid-template-columns: 1fr !important;
  }
  
  .cat-icon {
    font-size: 36px;
  }
  
  .cat-name {
    font-size: 17px;
  }

  .card-title {
    font-size: 18px;
  }
  
  .footer {
    padding: 32px 20px 24px;
  }
  
  .footer-badge {
    padding: 10px 18px;
  }
  
  .footer-badge-18 {
    font-size: 36px;
  }
  
  .footer-warning {
    font-size: 16px;
  }
}

/* Очень узкие экраны */
@media (max-width: 380px) {
  .title {
    font-size: 21px;
  }
  
  .subtitle-desc {
    font-size: 14px;
  }
}

/* ============================================
   АНИМАЦИИ
   ============================================ */

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.card,
.result-card {
  animation: fadeIn 0.5s ease-out backwards;
}

.list-item {
  animation: slideIn 0.4s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }

.list-item:nth-child(1) { animation-delay: 0.05s; }
.list-item:nth-child(2) { animation-delay: 0.1s; }
.list-item:nth-child(3) { animation-delay: 0.15s; }
.list-item:nth-child(4) { animation-delay: 0.2s; }
.list-item:nth-child(5) { animation-delay: 0.25s; }
.list-item:nth-child(6) { animation-delay: 0.3s; }

/* ============================================
   СКРОЛЛБАР
   ============================================ */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-glow);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ
   ============================================ */

.glass {
  backdrop-filter: blur(20px) saturate(180%);
  background: var(--bg-glass);
  border: 1px solid var(--border);
}

/* Фото модели на странице детали */
.cards .card .card-body > img {
  height: auto !important;
  max-width: 100%;
  object-fit: contain !important;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  padding: 20px;
  border: 1px solid var(--border);
}

/* Админ-панель */
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

details summary {
  cursor: pointer;
  margin: 12px 0;
  padding: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: all 0.3s ease;
}

details summary:hover {
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
}

.form-block {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scroll {
  max-height: 400px;
  overflow: auto;
  padding-right: 8px;
}

.models-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.models-list li {
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.models-list li:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ
   ============================================ */

/* Анимированный градиент для заголовков */
.title {
  position: relative;
  display: inline-block;
}

/* Плавное появление страницы */
body {
  animation: fadeIn 0.3s ease-out;
}

/* Эффект ripple для кнопок - уже есть overflow:hidden в основных стилях */

.btn::after, .btn-outline::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after, .btn-outline:active::after {
  width: 300px;
  height: 300px;
}

/* Улучшенный фокус для доступности */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Подсветка текущего элемента при наведении */
.grid .btn {
  position: relative;
  z-index: 1;
}

.grid .btn:hover {
  z-index: 2;
}

/* Заголовки и контент НЕ должны перекрывать поиск */
.title, .subtitle, .grid, .category-grid, .category-btn {
  position: relative;
  z-index: 1;
}

/* Улучшенные shadows для карточек с градиентом */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

/* Анимация для иконок */
.brand img {
  transition: transform 0.3s ease;
}

.brand:hover img {
  transform: rotate(10deg) scale(1.1);
}

/* Smooth scroll */
html {
  scroll-padding-top: 100px;
}

/* Красивый selection */
::selection {
  background: var(--accent);
  color: white;
}

::-moz-selection {
  background: var(--accent);
  color: white;
}

/* Загрузка изображений с blur эффектом */
img {
  transition: filter 0.3s ease;
}

img[loading="lazy"] {
  filter: blur(10px);
}

img.loaded {
  filter: blur(0);
}

/* Hover эффект для цен */
.list-price, .rc-price {
  transition: all 0.3s ease;
}

.list-item:hover .list-price,
.result-card:hover .rc-price {
  color: var(--accent);
  transform: scale(1.1);
}

/* Индикатор наличия с пульсацией */
.stock-yes, .rc-stock.yes {
  position: relative;
}

.stock-yes::before, .rc-stock.yes::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}
