/* Стили для секции ассортимента (luxury-assortment) */


.luxury-assortment {
  padding: 40px 0;
  position: relative;
}

.luxury-assortment::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  font-weight: 400;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.assortment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.luxury-category {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.luxury-category:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.category-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s ease;
  z-index: 0;
}

@media (max-width: 768px) {
  .category-image {
    background-size: contain;
    background-position: center;
  }
}

.luxury-category:hover .category-image {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 1;
}

.luxury-category:hover .category-overlay {
  background: rgba(0, 0, 0, 0.4);
  opacity: 1;
}

.category-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 35px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.category-icon {
  display: none !important; /* Скрываем иконки */
}

.category-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin: 0;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 1px 1px 3px rgba(0, 0, 0, 0.6);
  transition: all 0.4s ease;
  opacity: 1;
  transform: translateY(0);
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  z-index: 10;
  padding: 5px;
  box-sizing: border-box;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.luxury-category:hover .category-title {
  opacity: 0;
  transform: translate(-50%, -70%);
}

.category-description {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 25px;
  font-size: 1rem;
  line-height: 1.6;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.6);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}

.luxury-category:hover .category-description {
  opacity: 1;
  transform: translateY(0);
}

.category-features {
  list-style: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  padding: 0;
  margin: 0;
}

.luxury-category:hover .category-features {
  opacity: 1;
  transform: translateY(0);
}

.category-features li {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  font-size: 0.9rem;
  position: relative;
  padding-left: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.category-features li:before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

.luxury-animate {
  opacity: 1;
}

/* Фоновые изображения для категорий */
.luxury-category:nth-child(1) .category-image {
  background-image: url('https://static.insales-cdn.com/files/1/305/88998193/original/для_лица_2_.png');
}

.luxury-category:nth-child(2) .category-image {
  background-image: url('https://static.insales-cdn.com/files/1/681/88998569/original/для_тела_3_.png');
}

.luxury-category:nth-child(3) .category-image {
  background-image: url('https://static.insales-cdn.com/files/1/297/88998185/original/для_ног_2_.png');
}

.luxury-category:nth-child(4) .category-image {
  background-image: url('https://static.insales-cdn.com/files/1/313/88998201/original/коррекция_фигуры_2_.png');
}

.luxury-category:nth-child(5) .category-image {
  background-image: url('https://static.insales-cdn.com/files/1/289/88998177/original/по_сериям_2_.png');
}

.luxury-category:nth-child(6) .category-image {
  background-image: url('https://static.insales-cdn.com/files/1/281/88998169/original/SECRET_2_.png');
}

/* Адаптивность */
@media (max-width: 1200px) {
  .assortment-grid {
    max-width: 90vw;
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .luxury-assortment {
    padding: 30px 0;
  }
  
  .assortment-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .luxury-category {
    aspect-ratio: 1;
    height: auto;
  }
  
  .category-content {
    padding: 30px 15px;
  }
  
  .category-title {
    font-size: 1.2rem;
    width: 90%;
  }
  
  .category-features {
    font-size: 0.95rem;
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .luxury-assortment {
    padding: 30px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    white-space: normal;
  }
  
  .assortment-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    justify-items: center;
  }
  
  .luxury-category {
    aspect-ratio: 1;
    width: 90vw;
    max-width: 340px;
    height: auto;
  }
  
  .category-content {
    padding: 25px 10px;
  }
  
  .category-title {
    font-size: 1.1rem;
    width: 85%;
  }
  
  .category-features {
    font-size: 0.9rem;
    margin-top: 8px;
    margin-bottom: 8px;
  }
  
  .luxury-category .category-features {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(20px);
    display: block;
  }
  
  .luxury-category.active .category-features {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .luxury-assortment {
    padding: 25px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    white-space: normal;
  }
  
  .luxury-category {
    aspect-ratio: 1;
    height: auto;
    width: 90vw;
    max-width: 100%;
  }
  
  .category-image {
    background-size: contain;
    background-position: center;
  }
  
  .category-content {
    padding: 20px 8px;
  }
  
  .category-title {
    font-size: 1.0rem;
    width: 80%;
  }
  
  .category-features {
    font-size: 0.85rem;
    margin-top: 6px;
    margin-bottom: 6px;
  }
}

