/* ==================== ПУЛЬСЫ ==================== */
.bg-overlay {
  position: absolute; /* Изменил с fixed на absolute */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2; /* Поверх точек, позади контента */
  overflow: hidden;
}

/* Пульсы — абсолютные, позиционируются относительно .bg-overlay */
.pulse-1,
.pulse-2,
.pulse-3,
.pulse-4,
.pulse-5,
.pulse-6 {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
  animation: pulse 3s ease-in-out infinite;
}

.pulse-1 {
  top: 0vh;
  left: 70vw;
  background: rgba(0, 4, 172, 0.9);
}

.pulse-2 {
  top: 60vh;
  right: 80vw;
  background: rgba(0, 4, 172, 0.7);
}

.pulse-3 {
  top: 160vh;
  right: 10vw;
  background: rgba(0, 4, 172, 0.7);
}

.pulse-4 {
  top: 230vh;
  right: 80vw;
  background: rgba(0, 4, 172, 0.7);
}

.pulse-5 {
  top: 300vh;
  right: 0vw;
  background: rgba(0, 4, 172, 0.7);
}

.pulse-6 {
  top: 350vh;
  right: 80vw;
  background: rgba(0, 4, 172, 0.7);
}
/* ==================== КАТАЛОГ ==================== */
.catalog-main {
  max-width: 1400px ;
  margin: 0 auto ;
  padding: 7rem 1rem 5rem ;
  position: relative;
  z-index: 10;
  overflow: visible;
}

/* Контролы каталога (только для мобильных) */
.catalog-controls {
  margin-bottom: 1rem;
  position: relative;
  z-index: 100;
  width: 100%;
  display: block;
}

@media (min-width: 769px) {
  .catalog-controls {
    display: none;
  }
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.sort-wrapper-mobile {
  flex: 1;
  display: none;
  align-items: center;
}

@media (max-width: 768px) {
  .sort-wrapper-mobile {
    display: flex;
  }

  .sort-wrapper-mobile .sort-container {
    width: 200px;
    max-width: 100%;
    
  }

  .sort-wrapper-mobile .sort-select {
    min-width: 140px;
    font-size: 0.85rem;
    width: 100%;
    padding-right: 2rem;
    background-position: right 0.5rem center;
  }
}

/* Сортировка */
.sort-select {
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  background: transparent;
  border: none;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  min-width: 180px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}



.sort-select option {
  background: rgba(11, 11, 38, 0.95);
  color: white;
  padding: 0.5rem;
}

/* Кнопка открытия фильтров на мобильных */
.mobile-filters-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(11, 11, 38, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid rgba(43, 83, 193, 0.7);
  border-radius: 12px;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(43, 83, 193, 0.4);
}

.mobile-filters-toggle:hover {
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}

.mobile-filters-toggle svg {
  width: 20px;
  height: 20px;
}

/* Контейнер каталога */
.catalog-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
}

/* Боковая панель фильтров */
.filters-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: rgba(11, 11, 38, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid rgba(43, 83, 193, 0.7);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 
    0 0 10px rgba(43, 83, 193, 0.8),
    0 0 25px rgba(43, 83, 193, 0.6),
    0 0 50px rgba(43, 83, 193, 0.4);
  align-self: flex-start;
  transition: all 0.3s ease;
  z-index: 5;
  display: block;
  position: relative;
  left: auto;
  top: auto;
  height: auto;
  max-height: none;
}


.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
        margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filters-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.filters-close {
  display: none;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.filters-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.filters-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: visible;
}

/* Группа фильтров */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.filter-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filter-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
}

.filter-input:checked + .filter-checkbox {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.filter-input:checked + .filter-checkbox::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.filter-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  user-select: none;
}

/* Фильтр по цене */
.price-filter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-input {
  flex: 1;
  max-width: 100px;
  padding: 0.6rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  outline: none;
  width: 100%;
}

.price-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.price-input:focus {
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.price-separator {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  flex-shrink: 0;
}

/* Кнопка сброса фильтров */
.reset-filters-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid rgba(239, 68, 68, 0.7);
  border-radius: 12px;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.reset-filters-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 1);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
  transform: translateY(-2px);
}

/* Контейнер сортировки и товаров */
.catalog-content-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Обертка сортировки */
.sort-wrapper {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .sort-wrapper {
    display: none; /* Скрываем на мобильных, там используется sort-wrapper-mobile */
  }
}

.sort-container {
  display: inline-flex;
  align-items: center;
  
  background: rgba(11, 11, 38, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid rgba(43, 83, 193, 0.7);
  border-radius: 16px;
  box-shadow: 
    0 0 10px rgba(43, 83, 193, 0.4),
    0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Основная область с товарами */
.catalog-content {
  flex: 1;
  min-width: 0;
}

/* Overlay для мобильных фильтров */
.filters-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filters-overlay.active {
  display: block;
  opacity: 1;
}

/* Мобильная версия */
@media (max-width: 1024px) {
  .catalog-container {
    gap: 1.5rem;
  }

  .filters-sidebar {
    width: 260px;
  }
}

@media (max-width: 768px) {
  .catalog-main {
    padding: 0.1rem 1rem 3rem;
  }

  .catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(11, 11, 38, 0.4);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(43, 83, 193, 0.3);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .sort-wrapper {
    display: none; /* Скрываем сортировку из основного контента на мобильных */
  }

  .mobile-filters-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .catalog-container {
    flex-direction: column;
    gap: 1rem;
  }

  .filters-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    max-height: 100vh;
    z-index: 999;
    border-radius: 0;
    border-left: 2px solid rgba(43, 83, 193, 0.7);
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .filters-sidebar.active {
    left: 0;
  }

  .filters-header {
    position: sticky;
    top: 0;
    background: rgba(11, 11, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    padding: 1rem 0;
    margin-bottom: 1rem;
  }

  .filters-close {
    display: block;
  }

  .catalog-content {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .catalog-main {
    padding: 0.1rem 0.4rem 2rem;
  }

  .catalog-header {
    padding: 0.5rem;
  }

  .sort-select {
    min-width: 140px;
    font-size: 0.85rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    background-position: right 0.5rem center;
  }

  .mobile-filters-toggle {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .mobile-filters-toggle svg {
    width: 18px;
    height: 18px;
  }

  .filters-sidebar {
    width: 100%;
    max-width: 100vw;
  }
}

/* Стили для баннера cookie */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  max-width: calc(100% - 40px);
  background: rgba(11, 11, 38, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid rgba(43, 83, 193, 0.7);
  border-radius: 20px;
  box-shadow:
    0 0 10px rgba(43, 83, 193, 0.8),
    0 0 25px rgba(43, 83, 193, 0.6),
    0 0 50px rgba(43, 83, 193, 0.4);
  padding: 20px;
  z-index: 10000;
  font-family: 'Inter', sans-serif;
  color: #e2e8f0;
  font-size: 0.85rem;
  line-height: 1.5;
  transform: translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-consent-banner.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-consent-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-consent-text a {
  color: #59DEFA;
  text-decoration: none;
  font-weight: 500;
}

.cookie-consent-text a:hover {
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-primary,
.btn-secondary,
.btn-outline {
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid #3b82f6;
  
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: #60a5fa;
  transform: translateY(-3px);
}