/* БАНЕР */
.main-banner {
    display: flex;
    width: 100%;
    height: 500px;
    margin: 0;
    padding: 0;
}

/* Общие стили #ff69d594 */
.left, .right {
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Левая секция */
.left {
    flex-direction: column;
    text-align: center;
    background-color: #fc40c7a1;
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInLeft 0.5s ease forwards;
    border-right: 1px solid rgba(0, 0, 0, 0.05); /* визуальное отделение */
    text-decoration: none;
}

.left h1 {
    font-family: "Rampart One", sans-serif;
    font-weight: 2000;
    font-style: normal;
    font-size: 68px;
    margin: 0 0 20px;
    color: white;
}

.left p {
    font-size: 20px;
    margin-bottom: 20px;
    max-width: 600px;
    color: rgb(255, 255, 255);
}

.left button {
    padding: 10px 24px;
    font-size: 20px;
    border: 2px solid white;
    color: white;
    background: none;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    width: fit-content;
    min-width: 150px;
    max-width: 220px;
}

.left button:hover {
    background-color: white;
    color: #fc40c7a1;
}

/* Анимации текста */
.left h1, .left p, .left button {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease forwards;
}

.left h1 { animation-delay: 0.5s; }
.left p { animation-delay: 0.7s; }
.left button { animation-delay: 0.9s; }

.right {
    flex-direction: column;
    background-image: url('/static/img/logo.png'); /* путь к твоему логотипу */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 0.5s ease forwards;
    animation-delay: 0.2s;
}


/* Ключевые кадры */
@keyframes fadeInLeft {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Адаптивность */
@media (max-width: 768px) {
  .main-banner {
    flex-direction: column;
    height: auto; /* Убираем фиксированную высоту */
  }

  .left, .right {
    width: 100%;
    border-right: none;
    padding: 20px;
  }

  .left {
    text-align: center;
    height: 100%; /* Делаем левую секцию растягивающейся по высоте */
  }

  .right {
    min-height: 300px; /* или сколько нужно */
  }
        
  /* Убираем минимальную высоту у баннера, чтобы он стал пропорциональным */
  .main-banner {
    height: 100%; /* Теперь баннер займет всю доступную высоту, как и левая секция */
  }

  /* Изменяем размеры кнопки */
  .left button {
    font-size: 16px;
    padding: 10px 20px;
    min-width: 130px;
    max-width: 200px;
  }
}

@media (max-width: 320px) {
  .left h1 {
    font-size: 58px;
  }
}


/* HERO СЕКЦИЯ */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-image: url('/static/img/hero_section/about_banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* Полупрозрачный тёмный слой поверх фона */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Декоративные круги */
.bg-decoration {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
}

.circle-1 {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  top: 10%;
  left: 5%;
  animation: float 6s ease-in-out infinite;
}

.circle-2 {
  width: 300px;
  height: 300px;
  background: rgba(138, 43, 226, 0.2);
  bottom: 10%;
  right: 5%;
  animation: float 8s ease-in-out infinite reverse;
}

.circle-3 {
  width: 400px;
  height: 400px;
  background: rgba(30, 144, 255, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 10s ease-in-out infinite;
}

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

/* HERO Swiper Секция */
.hero-swiper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-swiper-wrapper {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-swiper-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-swiper-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.hero-swiper-slide.prev {
  transform: translateX(-100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  padding: 40px;
  color: white;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: bold;
  margin-bottom: 2rem;
  padding-top: 55px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: heroSlideInUp 0.8s ease-out;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: heroSlideInUp 0.8s ease-out 0.2s both;
}

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

/* Стрелки hero-слайдера */
.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.hero-nav-arrow.prev { left: 20px; }
.hero-nav-arrow.next { right: 20px; }

/* Пагинация hero-слайдера */
.hero-pagination {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.hero-dot.active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Прогресс-бар */
.hero-progress-bar {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  z-index: 3;
}

.hero-progress-fill {
  height: 100%;
  background: white;
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 50%;
}

.hero-slide-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  z-index: 3;
}

.hero-slider-nav {
  transform: translateY(10px);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .hero-content {
    padding: 20px;
  }

  .hero-content h1 {
    padding-top: 30px;
    margin-bottom: 1.5rem;
  }

  .hero-nav-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-nav-arrow.prev { left: 10px; }
  .hero-nav-arrow.next { right: 10px; }

  .hero-progress-bar {
    width: 150px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 15px;
  }

  .hero-pagination {
    bottom: 80px;
  }

  .hero-progress-bar {
    bottom: 23px;
    width: 120px;
  }
}




/* НОВЫЕ ТОВАРЫ */

/* === Блок "Новинки" — не изменяем === */
.new-products-section {
  background: #fff;
  padding: 40px 0;
  max-width: 1200px;  /* Добавлено ограничение по ширине для контейнера */
  margin: 0 auto;  /* Центрируем секцию */
}

.section-header {
  text-align: center;
  position: relative;
  margin-bottom: 40px;
}

.title-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-header .title {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}

.simple-badge {
  font-size: 14px;
  color: #ff69d5;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.title-underline {
  height: 3px;
  width: 90px;
  background-color: #ff69d59f;
  margin: 10px auto 0;
  border-radius: 2px;
  
}

/* === Карусель товаров === */
.new-products-carousel {
  display: flex;
  justify-content: space-between; /* Расстояние между карточками */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  padding: 0 20px;
  margin: 0 auto;  /* Центрируем карусель */
  padding-top: 20px;
  max-width: 1200px;  /* Ограничиваем ширину */
  height: 500px;
}

/* === Карточка товара === */
.product-card {
  flex: 0 0 auto;
  width: 240px;
  height: 420px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  flex: 1;
  width: 100%;
  height: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Бейдж ХІТ === */
.label-hit {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #fc40c7a1;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

/* === Статус наличия — справа снизу в блоке с фото === */
.stock-status {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

/* === Статус наличия — в наличии === */
.availability {
  background-color: rgba(93, 179, 96, 0.8);
  padding: 3px 6px;
  border-radius: 4px;
}

/* === Статус наличия — нет в наличии === */
.noneavailabile {
  background-color: rgba(229, 57, 53, 0.8);
  padding: 3px 6px;
  border-radius: 4px;
}

/* === Блок с инфой: название, цена === */
.product-info {
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  height: 40%;
  justify-content: space-between;
  text-align: left;
}

.product-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
}

.product-info .name {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  line-height: 1.2;
  height: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
}

.product-info .price {
  font-size: 16px;
  font-weight: bold;
  color: #fc40c7a1;
}

.action-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.view-btn, .buy-btn {
  text-decoration: none;
  background-color: #fc40c7a1;
  color: white;
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: none;
}

.view-btn:hover, .buy-btn:hover {
  background-color: #d136c4;
}

@media (hover: none) and (pointer: coarse) {
  .product-card:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* базовая тень */
  }
}

/* === Адаптив === */
@media (max-width: 1024px) {
  .product-card {
    width: 200px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .new-products-carousel {
    height: 400px;
  }

  .product-card {
    width: 180px;
    height: 380px;
  }

  .product-info .name {
    font-size: 13px;
  }

  .product-info .price {
    font-size: 15px;
  }

  .buy-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  .title {
    font-size: 18px;
  }
  .icon-size {
    font-size: 20px;
  }

  .stock-status {
    bottom: 8px;
    right: 8px;
  }

  .availability,
  .noneavailabile {
    font-size: 10px;
    padding: 2px 5px;
  }
}

@media (max-width: 480px) {
  .new-products-section {
    padding: 20px 0;
  }

  .new-products-carousel {
    gap: 16px;
    padding: 0 10px;
  }

  .product-card {
    width: 160px;
    height: 360px;
  }

  .product-info .name {
    -webkit-line-clamp: 3;
  }

  .buy-btn {
    padding: 5px 10px;
  }

  .title-wrapper {
    flex-direction: row;
    gap: 6px;
  }

  .title-wrapper .title {
    font-size: 24px;
  }

  .title-underline {
    width: 60px;
  }

  .simple-badge {
    font-size: 12px;
  }
}


/* ОТЗЫВЫ */

/* ====== СЕКЦІЯ ВІДГУКІВ ====== */
.reviews-section {
  background: #fff;
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* ====== ЗАГОЛОВОК СЕКЦІЇ ====== */
.section-header {
  text-align: center;
  position: relative;
  margin-bottom: 40px;
}

.section-header .title {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
}

/* ====== КОНТЕЙНЕР І КАРТКИ ВІДГУКІВ ====== */
.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Создаём сетку с гибкими карточками */
  gap: 20px;
  padding: 0 20px;
}

/* ====== КАРТКА ВІДГУКУ ====== */
.review-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 15px; /* Уменьшаем отступы */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 200px; /* Уменьшаем высоту карточки */
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* ====== ВЕРХНІЙ БЛОК КАРТКИ ====== */
.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.review-author {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.review-date {
  font-size: 14px;
  color: #999;
}

/* ====== ТЕКСТ ВІДГУКУ ====== */
.review-text {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 10px;
  flex-grow: 1;
}

/* ====== РЕЙТИНГ У ЗІРКАХ ====== */
.review-rating {
  margin-top: auto;
}

.review-rating h1 {
  color: #fc40c7a1;
}

.star-filled {
  color: #fbc02d;
}

.star-empty {
  color: #ccc;
}

/* ====== ТЕКСТ, ЯКЩО ВІДГУКІВ НЕМАЄ ====== */
.no-reviews {
  text-align: center;
  font-style: italic;
  color: #777;
  margin-top: 20px;
}

.all-reviews-link, .all-products-link {
  text-align: center;
  margin-top: 40px;
}

.all-reviews-link a, .all-products-link a {
  display: inline-block;
  color: #fc40c7a1;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  transition: color 0.3s;
}

.all-reviews-link a:hover, .all-products-link a:hover{
  color: #bb029c;
}


/* ГАЛЕРЕЯ */
.gallery-section {
  max-width: 1200px;   
  margin: 60px auto;
  padding: 0 10px;
}

.gallerySwiper {
  padding: 10px 0;
  width: 100%;
  box-sizing: border-box;
}

.swiper-slide {
  width: auto;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
}

.swiper-button-next, .swiper-button-prev {
  color: #fc40c7e3;
  font-size: 24px;
}

