.products {
  background: var(--bg-secondary);
  position: relative;
}

.products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
  z-index: 1;
}

.products__container {
  position: relative;
  z-index: 2;
}

.products__container .swiper {
  padding: var(--space-4) 0 var(--space-8) 0;
  overflow: visible;
}

.products__container .swiper-slide {
  height: auto;
}

.products__container .swiper-pagination {
  bottom: 0;
}

.products__container .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--border-light);
  opacity: 1;
  transition: var(--transition-normal);
}

.products__container .swiper-pagination-bullet-active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.products__container .swiper-button-prev,
.products__container .swiper-button-next {
  width: 50px;
  height: 50px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.products__container .swiper-button-prev:hover,
.products__container .swiper-button-next:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.products__container .swiper-button-prev::after,
.products__container .swiper-button-next::after {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}

.product__card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product__card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
}

.product__image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product__card:hover .product__image img {
  transform: scale(1.1);
}

.product__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--primary-color);
  color: var(--text-primary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  z-index: 2;
}

.product__badge:nth-child(2) {
  background: var(--secondary-color);
}

.product__content {
  padding: var(--space-6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: var(--lh-tight);
}

.product__description {
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.product__actions {
  margin-top: auto;
}

.product__actions .btn {
  width: 100%;
  justify-content: center;
}

@media screen and (min-width: 1200px) {
  .products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-8);
  }

  .products__grid .product__card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
  }

  .products__grid .product__card.animate {
    opacity: 1;
    transform: translateY(0);
  }

  .products__grid .product__card:nth-child(1).animate {
    transition-delay: 0.1s;
  }

  .products__grid .product__card:nth-child(2).animate {
    transition-delay: 0.2s;
  }

  .products__grid .product__card:nth-child(3).animate {
    transition-delay: 0.3s;
  }

  .products__grid .product__card:nth-child(4).animate {
    transition-delay: 0.4s;
  }

  .products__grid .product__card:nth-child(5).animate {
    transition-delay: 0.5s;
  }
}

@media screen and (max-width: 768px) {

  .products__container .swiper-button-prev,
  .products__container .swiper-button-next {
    display: none;
  }

  .product__image {
    height: 200px;
  }

  .product__content {
    padding: var(--space-4);
  }

  .product__title {
    font-size: var(--fs-lg);
  }

  .product__description {
    font-size: var(--fs-sm);
  }
}

@media screen and (max-width: 480px) {
  .product__image {
    height: 180px;
  }

  .product__badge {
    top: var(--space-2);
    left: var(--space-2);
    padding: var(--space-1) var(--space-2);
    font-size: 0.625rem;
  }
}