/* Базовые стили */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }
body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: #2b2b2b;
  background-image: url('/wav.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  line-height: 1.45;
}

/* Максимально яркий белый цвет для всех текстов */
* {
  color: #fff !important;
}

/* Шапка */
.main-header {
  background: linear-gradient(to top, transparent, rgba(17, 17, 0.8));
  border-bottom: 1px solid rgba(255,0,0,0.25);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

/* Mobile footer для вкладок */
.mobile-tabs-footer {
  display: block; /* Показываем на всех устройствах */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, transparent, rgba(30, 46, 0.8));
  border-top: 1px solid rgba(255,0,0,0.25);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  padding: 8px 0;
}

.mobile-tabs-container {
  display: flex;
  gap: 2px;
  padding: 0 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.mobile-tab-button {
   flex: 1;
   padding: 12px 8px;
   border: none;
   background: transparent;
   color: #fff;
   cursor: pointer;
   font-size: 0.85rem;
   font-weight: 600;
   transition: all 0.2s ease;
   position: relative;
   text-align: center;
   border-radius: 10px;
   border: 2px solid transparent;
   box-shadow: 0 0 10px rgba(255, 0, 0, 0.35), 0 0 22px rgba(255, 0, 0, 0.2);
}

.mobile-tab-button:hover {
  color: #fff;
  background: rgba(255, 51, 51, 0.1);
}

.mobile-tab-button.active {
  color: #ff3333;
  background: rgba(255, 51, 51, 0.1);
}

.mobile-tab-button.active::after {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 2px;
   background: #ff3333;
   border-radius: 0 0 8px 8px;
}

/* Адаптивность: tablet (769px - 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .mobile-tabs-footer {
    display: block;
  }

  /* Контент не должен перекрываться header и footer */
  main {
    margin-top: 64px;
    margin-bottom: 64px;
    padding-bottom: 80px;
  }

  /* Секции для планшетов */
  .section {
    margin: 100px auto 120px auto;
    width: 95%;
  }
}

/* Адаптивность: desktop (≥1024px) */
@media (min-width: 1024px) {
  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .mobile-tabs-footer {
    display: block;
  }

  /* Контент не должен перекрываться header и footer */
  main {
    margin-top: 64px;
    margin-bottom: 64px;
    padding-bottom: 80px;
  }
}

/* Адаптивность: mobile (≤768px) */
@media (max-width: 768px) {
  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .mobile-tabs-footer {
    display: block;
  }

  /* Контент не должен перекрываться header и footer */
  main {
    margin-top: 64px;
    margin-bottom: 64px;
    padding-bottom: 80px;
  }

  /* Секции с отступами для мобильных - оптимизированные */
 .section {
    margin: 80px auto 100px auto; /* Уменьшенные отступы */
    width: 95%;
    padding: 30px 15px; /* Уменьшенный внутренний отступ */
  }

  /* Дополнительный отступ для последней секции на мобильных */
 .section:last-child {
    margin-bottom: 140px; /* Оптимизированный отступ */
  }
  
  /* Улучшаем выравнивание элементов в заголовке для мобильных */
  .header-top,
  .header-inner {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    min-height: auto;
    justify-content: space-between;
  }

  .header-left,
  .header-inner .header-left,
  .main-header .header-left {
    gap: 8px;
    flex: 0 0 auto;
  }

  .logo-img,
  .header-inner .logo-img {
    height: 28px;
    flex-shrink: 0;
  }

  .header-stats {
    display: none; /* Полностью скрываем счетчики на мобильных для экономии места */
  }

  .header-actions,
  .header-inner .header-actions,
  .main-header .header-actions {
    gap: 6px;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
  }

  .header-actions .btn,
  .header-inner .header-actions .btn {
    padding: 5px 8px;
    font-size: 11px;
    height: 28px;
  }
}

/* Адаптивность: очень маленькие экраны (≤480px) */
@media (max-width: 480px) {
  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .mobile-tabs-footer {
    display: block;
  }

  /* Контент не должен перекрываться header и footer */
  main {
    margin-top: 60px; /* Минимальный отступ для очень маленьких экранов */
    margin-bottom: 60px;
    padding-bottom: 60px;
  }

  /* Секции для очень маленьких экранов */
 .section {
    margin: 60px auto 80px auto;
    width: 98%;
    padding: 20px 10px;
  }

 .section:last-child {
    margin-bottom: 120px;
  }

  /* Оптимизация кнопок навигации для маленьких экранов */
 .mobile-tab-button {
    padding: 10px 6px;
    font-size: 0.75rem;
  }
  
  /* Улучшаем выравнивание элементов в заголовке для очень маленьких экранов */
  .header-top,
  .header-inner {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    min-height: auto;
    justify-content: space-between;
  }

  .header-left,
  .header-inner .header-left,
  .main-header .header-left {
    gap: 6px;
    flex: 1;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .logo,
  .header-inner .logo,
  .main-header .logo {
    margin: 0 auto;
    text-align: center;
  }

  .logo-img,
  .header-inner .logo-img {
    height: 40px;
    flex-shrink: 0;
    max-width: 120px;
  }

  .header-actions,
  .header-inner .header-actions,
  .main-header .header-actions {
    gap: 4px;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
  }

  .header-actions .btn,
  .header-inner .header-actions .btn {
    padding: 4px 6px;
    font-size: 10px;
    height: 26px;
    min-width: 50px;
  }
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  flex-wrap: nowrap;
  max-width: 1400px;
  width: 96%;
  margin: 0 auto;
  padding: 15px 10px;
  z-index: 1001;
  transition: all 0.3s ease;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.header-inner .header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  min-width: 0;
}

.header-inner .logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  max-width: 120px;
}

.header-inner .header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.header-inner .header-actions .btn {
  flex-shrink: 1;
  min-width: 60px;
  font-size: 16px;
  padding: 8px 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* ВЕРХНИЙ ЭТАЖ - основные элементы */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  flex-wrap: nowrap;
  max-width: 1400px;
  width: 96%;
  margin: 0 auto;
  padding: 15px 10px;
  z-index: 1001;
  transition: all 0.3s ease;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.header-left,
.main-header .header-left,
.header-top .header-left,
.header-inner .header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 0 0 auto;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  max-width: 120px;
}

.header-stats {
  display: flex;
  gap: 20px;
  align-items: center;
  transition: opacity 0.3s ease;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #fff;
}

/* Скрываем счетчики при уменьшении окна для предотвращения переполнения */
@media (max-width: 1200px) {
  .header-stats {
    display: none;
  }
}

.header-actions,
.main-header .header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.header-actions .btn {
  flex-shrink: 1;
  min-width: 60px;
  font-size: 16px;
  padding: 8px 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Медиазапросы для уменьшения кнопок */
@media (max-width: 768px) {
  .header-actions .btn,
  .header-inner .header-actions .btn,
  .header-top .header-actions .btn,
  .main-header .header-actions .btn {
    font-size: 14px;
    padding: 6px 8px;
  }
}

@media (max-width: 480px) {
  .header-actions .btn,
  .header-inner .header-actions .btn,
  .header-top .header-actions .btn,
  .main-header .header-actions .btn {
    font-size: 12px;
    padding: 4px 6px;
    min-width: 50px;
  }
}
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo { font-size: 1.2rem; color: #ff3333; font-weight: 800; text-decoration: none; letter-spacing: 1px; display: flex; align-items: center; }
.logo-img { height: 40px; width: auto; max-width: 120px; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-link { color: #eee; text-decoration: none; font-size: 0.98rem; padding: 0 12px; height: 36px; display: inline-flex; align-items: center; border-radius: 8px; }
.nav-link:hover, .nav-link:focus-visible { color: #fff; background: rgba(255,0,0,0.12); }
.header-stats { 
  display: flex; 
  align-items: center; 
  gap: 15px;
}

.header-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-stats .stat-item strong {
  font-weight: 700;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .header-stats {
    display: none; /* Скрываем на мобильных для экономии места */
  }
}

/* Панель вкладок */
.tabs-panel {
  background: #1e1e1e;
  border-bottom: 1px solid rgba(255,0,0.25);
  position: relative;
  z-index: 999;
}

.tabs-container {
  display: flex;
  gap: 2px;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.tab-button {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #ccc;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
  border-radius: 8px 8px 0 0;
}

.tab-button:hover {
  color: #fff;
  background: rgba(255, 51, 51, 0.1);
}

.tab-button.active {
  color: #ff3333;
  background: #111;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #ff3333;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .tabs-container {
    padding: 0 8px;
  }
  
  .tab-button {
    padding: 10px 8px;
    font-size: 0.85rem;
  }
}
.btn {
  /* Внутри — тускло‑красный фон */
  background:
    linear-gradient(#3a0e0e, #3a0e0e) padding-box,
    /* Снаружи — градиентная обводка/свечение */
    linear-gradient(45deg, #ff0000, #ff4d4d) border-box;
  color: #fff;
  border: 2px solid transparent;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  line-height: 1;
  /* Мягкое внешнее свечение по контуру */
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.35), 0 0 22px rgba(255, 0, 0, 0.2);
  transition: box-shadow .2s ease, transform .15s ease, filter .2s ease, background .2s ease;
}
.btn:hover {
  box-shadow: 0 0 14px rgba(255, 0, 0, 0.55), 0 0 28px rgba(255, 0, 0, 0.28);
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.btn.primary {
  /* Тот же стиль — единый визуал для всех кнопок */
  background:
    linear-gradient(#3a0e0e, #3a0e0e) padding-box,
    linear-gradient(45deg, #ff0000, #ff4d4d) border-box;
}
.btn.outline {
  /* Outline теперь также имеет градиентный контур и тусклый красный внутри */
  background:
    linear-gradient(#2e0b0b, #2e0b0b) padding-box,
    linear-gradient(45deg, #ff0000, #ff4d4d) border-box;
  color: #fff;
}
.btn.small { padding: 6px 10px; font-size: 0.9rem; }
.btn.icon { padding: 6px 10px; font-size: 1.2rem; }
.like-btn {
  filter: brightness(1.2) saturate(1.1);
  color: #66bb6a;
  text-shadow: 0 0 5px rgba(76, 175, 80, 0.6), 0 0 8px rgba(76, 175, 80, 0.4), 0 0 12px rgba(76, 175, 80, 0.3);
  transition: all 0.3s ease;
  font-size: 1.4rem;
}
.dislike-btn {
  filter: brightness(1.2) saturate(1.1);
  color: #ef5350;
  text-shadow: 0 0 5px rgba(244, 67, 54, 0.6), 0 0 8px rgba(244, 67, 54, 0.4), 0 0 12px rgba(244, 67, 54, 0.3);
  transition: all 0.3s ease;
  font-size: 1.4rem;
}
.like-btn:hover:not(:disabled) {
  filter: brightness(1.4) saturate(1.2);
  text-shadow: 0 0 8px rgba(76, 175, 80, 0.7), 0 0 12px rgba(76, 175, 80, 0.5), 0 0 16px rgba(76, 175, 80, 0.4);
  transform: scale(1.1);
}
.dislike-btn:hover:not(:disabled) {
  filter: brightness(1.4) saturate(1.2);
  text-shadow: 0 0 8px rgba(244, 67, 54, 0.7), 0 0 12px rgba(244, 67, 54, 0.5), 0 0 16px rgba(244, 67, 54, 0.4);
  transform: scale(1.1);
}
.btn:disabled {
  opacity: .65;
  cursor: default;
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.22);
  filter: none;
  transform: none;
}
.user-chip { background: rgba(255,0,0,0.15); color: #ff9999; padding: 6px 10px; border-radius: 999px; font-size: .9rem; }

/* Секции */
.section {
  background: #1e1e1e;
  margin: 120px auto 160px auto;
  padding: 40px 20px;
  border-radius: 15px;
 max-width: 1400px;
  width: 96%;
  box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
}

/* Дополнительный отступ внизу секции для предотвращения перекрытия футером */
.section:last-child {
  margin-bottom: 200px; /* Увеличенный отступ для последней секции */
}
.section h2 { text-align: center; margin-bottom: 20px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-header h2 { margin: 0; }
.category-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #111;
  border: 1px solid rgba(255,0,0,0.25);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 12px rgba(255,0,0,0.2) inset;
  min-width: 220px;
  padding: 8px;
  display: none;
  z-index: 1500;
}
.dropdown-menu.open { display: block; }
.dropdown-item {
  width: 100%;
  text-align: left;
  background:
    linear-gradient(#2e0b0b, #2e0b0b) padding-box,
    linear-gradient(45deg, #ff0000, #ff4d4d) border-box;
  color: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
.dropdown-item + .dropdown-item { margin-top: 8px; }
.dropdown-item:hover { filter: brightness(1.05); }

/* Сетка каталога */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  align-items: start;
}

/* FIX: Обертка для карточки и блока описания */
.product-card-wrapper {
  display: flex;
  flex-direction: column;
}

/* Карточка товара */
.product-card {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 0 8px rgba(255,0,0,0.4);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  min-height: 380px;
  min-width: 0; /* важно для грид-детей, чтобы текст не распирал карточку */
  position: relative;
}
.product-card:hover {
  box-shadow: 0 0 16px rgba(255,0,0,0.7);
  transform: translateY(-2px);
}


/* Значок i для открытия модального окна описания */
.product-info-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 51, 51, 0.3);
  border: 2px solid rgba(255, 51, 51, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  font-size: 16px;
  font-weight: 700;
  color: #ff3333;
  font-style: italic;
  /* Анимация мигания (полный цикл 2 секунды) */
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  25% {
    opacity: 0.65;
    transform: scale(0.975);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.95);
  }
  75% {
    opacity: 0.65;
    transform: scale(0.975);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.product-info-icon:hover {
  background: rgba(255, 51, 51, 0.5);
  border-color: #ff3333;
  transform: scale(1.1);
  animation: none; /* Останавливаем мигание при наведении */
}

/* Кнопка ссылки для баннера (аналогично product-info-icon) */
.banner-link-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.85);
  border: 3px solid #007bff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.5);
  /* Анимация мигания (полный цикл 2 секунды) */
  animation: blink-banner 2s ease-in-out infinite;
}

@keyframes blink-banner {
  0% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.5);
  }
  25% {
    opacity: 0.85;
    transform: scale(0.98);
    box-shadow: 0 2px 12px rgba(0, 123, 255, 0.7);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.96);
    box-shadow: 0 2px 16px rgba(0, 123, 255, 0.9);
  }
  75% {
    opacity: 0.85;
    transform: scale(0.98);
    box-shadow: 0 2px 12px rgba(0, 123, 255, 0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.5);
  }
}

.banner-link-icon:hover {
  background: #007bff;
  border-color: #0056b3;
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.8);
  animation: none; /* Останавливаем мигание при наведении */
}

.banner-clickable {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.banner-clickable:hover {
  opacity: 0.9;
}

/* Название сверху */
.product-card .product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

/* FIX: Контейнер для слайдера изображений */
.product-images-slider {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.product-images-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
}

/* FIX: Изображения в слайдере */
.product-image-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  display: block;
}

.product-image-slide.active {
  opacity: 1;
  position: relative;
}

/* FIX: Стрелки навигации слайдера */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0;
}

.product-card:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: rgba(255, 51, 51, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
  left: 8px;
}

.slider-arrow-next {
  right: 8px;
}

/* FIX: Индикаторы слайдера */
.slider-indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.slider-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-indicator.active {
  background: #ff3333;
  width: 24px;
  border-radius: 4px;
}

/* FIX: Блок "Контакты продавца" */
.product-contacts {
  margin-bottom: 12px;
  text-align: left;
  padding: 10px;
  background: rgba(255, 51, 51, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 51, 51, 0.2);
}

.product-contacts-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff9999;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-link {
  color: #ff9999;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #ff3333;
  text-decoration: underline;
}

/* FIX: Стили для нового формата контактов */
.contacts-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ff3333;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #ff9999;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s ease;
}

.contact-item:hover {
  color: #ff3333;
  text-decoration: underline;
}

/* FIX: Стили для способа связи */
.contact-method {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 51, 51, 0.2);
}

.contact-method-label {
  font-weight: 600;
  color: #ff3333;
  font-size: 0.85rem;
  margin-right: 6px;
}

.contact-method-text {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Картинка под названием (fallback для старых карточек) */
.product-card img:not(.product-image-slide) {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  display: block;
}

/* FIX: Блок описания товара под карточкой (шире карточки) */
.product-description-block {
  width: 100%;
  margin-top: 15px;
  padding: 20px;
  background: #2a2a2a;
  border-radius: 12px;
  border: 1px solid rgba(255, 51, 51, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-description-content {
  max-width: 100%;
}

.product-description-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ff9999;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-description-text {
  font-size: 0.95rem;
  color: #ddd;
  line-height: 1.6;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* Универсальный overlay для видео (YouTube, VK, Instagram) */
.video-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  /* Предотвращаем overflow при смене ориентации */
  overflow: hidden;
}

/* Показываем overlay при активации */
.video-overlay.show {
  display: flex;
}

/* Контейнер для видео с кнопкой закрытия - адаптивный резиновый контейнер */
.video-overlay-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  /* Для YouTube обычных видео - 16:9, используем резиновый контейнер */
  padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
  height: 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  background: #000;
  overflow: hidden;
  /* Адаптивная минимальная высота */
  min-height: 0;
  /* Обеспечиваем адаптивность при смене ориентации */
  max-height: 90vh;
}

/* Для YouTube Shorts (вертикальные видео) - адаптивный контейнер */
.video-overlay-container.shorts-container {
  padding-bottom: 177.78%; /* 9:16 aspect ratio (16/9 = 1.7778) */
  max-width: 400px;
  max-height: 90vh;
}

/* Для Instagram контента - более гибкий адаптивный контейнер */
.video-overlay-container.instagram-container {
  padding-bottom: 0; /* Отключаем фиксированное соотношение */
  height: auto;
  min-height: 600px;
  max-height: 90vh;
}

/* Контейнер для iframe - абсолютное позиционирование для резинового контейнера */
.video-overlay-iframe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Для Instagram контейнера используем относительное позиционирование */
.video-overlay-container.instagram-container .video-overlay-iframe-container {
  position: relative;
  height: auto;
  min-height: 600px;
}

/* iframe для всех платформ - заполняет весь контейнер */
.video-overlay-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  /* Убеждаемся, что iframe видим и не перекрыт */
  z-index: 1;
}

/* Для Instagram iframe используем относительное позиционирование */
.video-overlay-container.instagram-container .video-overlay-iframe-container iframe {
  position: relative;
  height: auto;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
  .video-overlay {
    padding: 10px;
  }
  
  .video-overlay-container {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
  }
  
  .video-overlay-container.instagram-container {
    min-height: 500px;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .video-overlay {
    padding: 5px;
  }
  
  .video-overlay-container {
    border-radius: 6px;
  }
  
  .video-overlay-container.instagram-container {
    min-height: 400px;
  }
}

/* Медиа-запросы для ориентации экрана */

/* Портретная ориентация (вертикальная) */
@media (orientation: portrait) {
  .video-overlay {
    padding: 10px;
  }
  
  .video-overlay-container {
    width: 100%;
    max-width: 100%;
    /* Для обычных видео в портретной ориентации уменьшаем максимальную ширину */
    max-width: 100vw;
  }
  
  /* YouTube Shorts в портретной ориентации занимают больше места */
  .video-overlay-container.shorts-container {
    max-width: min(400px, 90vw);
    max-height: 90vh;
  }
  
  /* Instagram в портретной ориентации */
  .video-overlay-container.instagram-container {
    min-height: min(600px, 80vh);
    max-height: 90vh;
  }
}

/* Ландшафтная ориентация (горизонтальная) */
@media (orientation: landscape) {
  .video-overlay {
    padding: 15px;
  }
  
  .video-overlay-container {
    /* В ландшафтной ориентации используем больше вертикального пространства */
    max-width: min(960px, 95vw);
    max-height: 90vh;
  }
  
  /* YouTube Shorts в ландшафтной ориентации ограничены по высоте */
  .video-overlay-container.shorts-container {
    max-width: min(400px, 50vw);
    max-height: 85vh;
  }
  
  /* Instagram в ландшафтной ориентации */
  .video-overlay-container.instagram-container {
    min-height: min(500px, 80vh);
    max-height: 90vh;
  }
}

/* Комбинированные медиа-запросы: ландшафтная ориентация на мобильных */
@media (orientation: landscape) and (max-width: 768px) {
  .video-overlay {
    padding: 5px;
  }
  
  .video-overlay-container {
    max-width: 100%;
    max-height: 95vh;
  }
  
  /* YouTube Shorts в ландшафтной ориентации на мобильных */
  .video-overlay-container.shorts-container {
    max-width: min(300px, 40vw);
    max-height: 90vh;
  }
}

/* Комбинированные медиа-запросы: портретная ориентация на больших экранах */
@media (orientation: portrait) and (min-width: 769px) {
  .video-overlay-container {
    max-width: 600px;
  }
  
  .video-overlay-container.shorts-container {
    max-width: 400px;
  }
}

/* FIX: Кнопка закрытия overlay */
.video-overlay-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10000;
}

/* FIX: Overlay для просмотра изображений в полном размере */
.image-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
}

.image-overlay.show {
  display: flex;
}

.image-overlay-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-overlay-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.image-overlay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.image-overlay-close:hover {
  background: rgba(255, 51, 51, 0.8);
  transform: scale(1.1);
}

.image-overlay-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #fff;
  font-size: 48px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.image-overlay-nav:hover {
  background: rgba(255, 51, 51, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.image-overlay-prev {
  left: 20px;
}

.image-overlay-next {
  right: 20px;
}

/* Нижний блок прижат к низу */
.product-card .product-bottom {
  margin-top: auto; /* весь блок уходит вниз */
}

.product-card .price {
  color: #ff3333;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
}

/* Кнопка — прижата к низу карточки и визуально выразительная */
.product-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Пустое состояние */
.empty-state {
  text-align: center;
  color: #ccc;
  padding: 20px;
  font-size: 0.95rem;
}

/* Подвал */
.footer {
  text-align: center;
  padding: 20px;
  background: linear-gradient(to bottom, transparent, rgba(17, 17, 17, 0.8));
  color: #fff;
  box-shadow: 0 -2px 10px rgba(255,0,0,0.5); /* тень сверху, как у шапки */
  font-size: 2.25rem;
}

/* Скрыть footer в кабинете и админ-панели */
.cabinet-page .footer,
.admin-page .footer {
  display: none;
}

/* Медиа-запросы для footer */
@media (max-width: 768px) {
  .footer {
    font-size: 3.375rem; /* 2.25 * 1.5 */
  }
}

@media (max-width: 480px) {
  .footer {
    font-size: 3.375rem; /* 2.25 * 1.5 */
  }
}

/* Добавляем дополнительное пространство внизу страницы для предотвращения перекрытия контента футером */
body::after {
  content: '';
  display: block;
  height: 80px; /* Высота дополнительного пространства */
}

/* Адаптируем дополнительное пространство для мобильных устройств */
@media (max-width: 768px) {
  body::after {
    height: 100px; /* Увеличиваем высоту на мобильных устройствах */
  }
}

/* Доптекст */
.disclaimer {
  margin-top: 10px;
  color: #bbb;
  font-size: 0.95rem;
}

/* Модальное окно (для регистрации) */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
}

.modal-content {
  background: #111;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 0 20px #ff3333;
  position: relative;
}

/* Цвет текста в полях ввода в модальном окне регистрации */
.modal input[type="text"],
.modal input[type="email"],
.modal input[type="password"],
.modal textarea,
.modal select {
  color: #000 !important;
}

/* Улучшения для мобильных устройств */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 2% auto;
    padding: 15px;
  }


  /* FIX: Адаптация слайдера для мобильных */
  .slider-arrow {
    opacity: 1;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  /* FIX: Адаптация overlay изображений для мобильных */
  .image-overlay-container {
    max-width: 95%;
  }

  .image-overlay-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .image-overlay-nav {
    width: 44px;
    height: 44px;
    font-size: 36px;
  }

  .image-overlay-prev {
    left: 10px;
  }

  .image-overlay-next {
    right: 10px;
  }

  /* FIX: Адаптация блока описания для мобильных */
  .product-description-block {
    padding: 15px;
  }
}

.modal .close {
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  background: transparent;
  border: none;
  position: absolute;
  top: 10px;
  right: 14px;
}
.modal .close:hover {
  color: #ff3333;
}

/* Модальное окно описания товара - больший размер */
.description-modal-content {
  max-width: 800px;
  width: 85%;
  max-height: 90vh;
  padding: 30px;
  margin: 3% auto;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .description-modal-content {
    width: 95%;
    padding: 20px;
    margin: 2% auto;
  }
}

/* FIX: Стили для модального окна изображений */
.image-modal {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
}

.image-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background: transparent;
  padding: 0;
  margin: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-modal-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.image-modal-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.image-modal-image {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10;
}

.image-modal-title {
  margin-top: 15px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-nav-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 36px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  flex-shrink: 0;
}

.image-nav-btn:hover {
  background: rgba(255, 51, 51, 0.8);
  border-color: #ff3333;
  transform: scale(1.1);
}

.image-nav-btn:active {
  transform: scale(0.95);
}

.image-modal .close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.6);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.image-modal .close:hover {
  background: rgba(255, 51, 51, 0.8);
  border-color: #ff3333;
  transform: scale(1.1);
}

/* Адаптация модального окна изображений для мобильных */
@media (max-width: 768px) {
  .image-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .image-modal-image {
    max-height: 75vh;
  }

  .image-modal-container {
    gap: 10px;
  }

  .image-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .image-modal .close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .image-modal-counter {
    bottom: 10px;
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .image-modal-title {
    font-size: 0.9rem;
    margin-top: 10px;
  }
}

/* Рейтинг (лайки/дизлайки) */
.product-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.product-rating .rating-value {
  font-weight: 700;
  color: #ff3333;
  font-size: 1.1rem;
}

/* FIX: Стили для форм добавления/редактирования товаров */
.form-grid {
  display: grid;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="tel"],
.form-grid input[type="url"],
.form-grid input[type="number"],
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 12px;
  background: #2a2a2a;
  border: 1px solid rgba(255, 51, 51, 0.3);
  border-radius: 8px;
  color: #fff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 0.95rem;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: none;
  border-color: #ff3333;
  box-shadow: 0 0 8px rgba(255, 51, 51, 0.3);
}

.form-grid textarea {
  resize: vertical;
  min-height: 100px;
}

.form-section {
  padding: 16px;
  background: rgba(255, 51, 51, 0.05);
  border: 1px solid rgba(255, 51, 51, 0.2);
  border-radius: 8px;
  margin-bottom: 16px;
}

.form-section h3 {
  font-size: 1rem;
  color: #ff9999;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #999;
  line-height: 1.4;
}

/* FIX: Стили для предпросмотра изображений */
.image-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.image-preview-container img {
  border-radius: 8px;
  border: 2px solid rgba(255, 51, 51, 0.3);
  object-fit: cover;
}

/* FIX: Стили для текущих изображений в форме редактирования */
.current-images-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.current-image-item {
  position: relative;
  display: inline-block;
}

.current-image-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 51, 51, 0.3);
}

.remove-image-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 51, 51, 0.9);
  border: 2px solid #fff;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-image-btn:hover {
  background: #ff3333;
  transform: scale(1.1);
}

/* FIX: Стили для сообщений формы */
.note {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
}

.error {
  color: #b00020;
  background: rgba(176, 0, 32, 0.1);
  border: 1px solid rgba(176, 0, 32, 0.3);
}

/* FIX: Адаптация форм для мобильных */
@media (max-width: 768px) {
  .form-grid {
    max-width: 100%;
  }

  .current-image-preview {
    width: 100px;
    height: 100px;
  }
}

/* ======= Чат комментариев ======= */

/* Модальное окно чата */
.chat-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.chat-modal-content {
  position: relative;
  background: #1a1a1a;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 51, 51, 0.3);
}

.chat-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 51, 51, 0.2);
  background: rgba(255, 51, 51, 0.05);
}

.chat-modal-header h3 {
  margin: 0;
  color: #ff9999;
  font-size: 1.1rem;
  font-weight: 600;
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.chat-close-btn:hover {
  background: rgba(255, 51, 51, 0.2);
  color: #ff3333;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  max-height: 400px;
  background: #111;
}

.chat-message {
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid rgba(255, 51, 51, 0.5);
}

.chat-message:last-child {
  margin-bottom: 0;
}

.chat-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: #ccc;
}

.chat-message-header strong {
  color: #ff9999;
  font-weight: 600;
}

.chat-message-time {
  color: #888;
  font-size: 0.8rem;
}

.chat-message-text {
  color: #ddd;
  line-height: 1.4;
  word-wrap: break-word;
}

.no-comments {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 20px;
}

.chat-input-container {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 51, 51, 0.2);
  background: rgba(255, 51, 51, 0.05);
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  padding: 12px;
  background: #2a2a2a;
  border: 1px solid rgba(255, 51, 51, 0.3);
  border-radius: 8px;
  color: #fff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 0.9rem;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  overflow-y: auto;
}

.chat-input:focus {
  outline: none;
  border-color: #ff3333;
  box-shadow: 0 0 8px rgba(255, 51, 51, 0.3);
}

.chat-send-btn {
  padding: 12px 16px;
  background:
    linear-gradient(#3a0e0e, #3a0e0e) padding-box,
    linear-gradient(45deg, #ff0000, #ff4d4d) border-box;
  color: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chat-send-btn:hover:not(:disabled) {
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
  transform: translateY(-1px);
}

.chat-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Адаптация чата для мобильных */
@media (max-width: 768px) {
  .chat-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .chat-messages {
    max-height: 300px;
  }

  .chat-input-container {
    padding: 12px 16px;
    flex-direction: column;
    gap: 8px;
  }

  .chat-input {
    width: 100%;
  }

  .chat-send-btn {
    width: 100%;
    padding: 12px;
  }
}
