/* ========== ГЕРОЙ СЕКЦИЯ ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  margin-top: 80px;
}

.hero__slider {
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-top: 10rem;
  color: var(--light-color);
}

.hero__title {
  font-size: 4.5rem;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.hero__subtitle {
  font-size: 1.8rem;
  margin-bottom: var(--space-xl);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.2s;
}

.hero__btn {
  font-size: 1.6rem;
  padding: var(--space-sm) var(--space-xl);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.4s;
}

.swiper-slide-active .hero__title,
.swiper-slide-active .hero__subtitle,
.swiper-slide-active .hero__btn {
  opacity: 1;
  transform: translateY(0);
}

/* Пагинация */
.hero__pagination {
  position: absolute;
  bottom: 5rem !important;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.hero__pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  margin: 0 var(--space-xs) !important;
  transition: all 0.3s ease;
}

.hero__pagination .swiper-pagination-bullet-active {
  background-color: var(--light-color);
  transform: scale(1.3);
}

/* Навигация */
.hero__prev,
.hero__next {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-color);
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.hero__prev:hover,
.hero__next:hover {
  background-color: var(--primary-color);
}

.hero__prev {
  left: var(--space-xl);
}

.hero__next {
  right: var(--space-xl);
}

.hero__prev::after,
.hero__next::after {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.6rem;
}

.hero__prev::after {
  content: '\f053';
}

.hero__next::after {
  content: '\f054';
}

/* Scroll down */
.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--light-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.4rem;
  opacity: 0.7;
  animation: bounce 2s infinite;
  align-content: center;
}

.hero__scroll svg {
  margin-top: var(--space-sm);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}




/* AI Search Form */
.ai-search-container {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    z-index: 2000;
	 pointer-events: auto; /* Разрешаем взаимодействие */
}

.ai-search-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
	 pointer-events: auto; /* Разрешаем взаимодействие */
}

.search-input-group {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ai-search-input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 1.1rem;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    pointer-events: auto; /* Разрешаем взаимодействие */
}

.ai-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.search-controls {
    display: flex;
    margin-left: 10px;
    pointer-events: auto; /* Разрешаем взаимодействие */
}

.search-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent; /* Прозрачный фон */
    color: var(--primary-color); /* Красные иконки */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Тонкая граница */
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto; /* Разрешаем взаимодействие */
}

.search-btn:hover {
     background: rgba(220, 53, 69, 0.1); /* Легкий красный фон при наведении */
    transform: translateY(-2px);
}

.search-btn i {
    font-size: 1.2rem;
}

/* Отключаем pointer-events только для скрытого input файла */
.image-search-input {
    display: none;
    pointer-events: none;
}

/* Search Results */
.search-results {
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

.search-results.active {
    max-height: 400px;
    padding: 15px;
}

.search-result-item {
    display: flex;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-result-item:hover {
    background: #f5f5f5;
    transform: translateX(5px);
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.search-result-description {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.search-result-price {
    font-weight: 700;
    color: var(--primary-color);
}

.search-result-action {
    display: flex;
    align-items: center;
}

.search-result-action .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Order Form */
.order-form {
    padding: 20px;
    background: white;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-header h3 {
    margin: 0;
    color: var(--dark-color);
}

.back-to-search {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
}

/* Voice Search Animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.voice-search.active {
    animation: pulse 1.5s infinite;
    background: #dc3545;
}

/* AI Suggestions */
.ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 15px;
    background: rgba(245, 245, 245, 0.7);
}

.ai-suggestion {
    background: white;
    border-radius: 20px;
    padding: 8px 15px;
    margin: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.ai-suggestion:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.ai-search-input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input-group {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    border-radius: 12px 12px 0 0;
}
/* Исходная кнопка микрофона (неактивная) */
.search-btn.voice-search {
    color: var(--primary-color); /* Красный микрофон по умолчанию */
    background: transparent;
}

/* Активное состояние (когда микрофон пульсирует) */
.voice-search.active {
    color: white !important; /* Микрофон становится белым */
    position: relative;
}

/* Пульсирующий круг (внешний) */
.voice-search.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--primary-color);
    z-index: -1; /* Отправляем под иконку */
    animation: pulse 1.5s infinite;
    opacity: 0.7;
}

/* Анимация пульсации */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.3); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.7; }
}