/* Products Section Redesign - LoopHub */

/* 0) Палитра цветов */
:root {
  --bg-top: #0B2239;
  --bg-bottom: #0A3B51;
  --card: #13293D;
  --card-2: #0F2031;
  --text: #EAF2F7;
  --muted: #B9C7D3;
  --cyan: #00E0FF;
  --violet: #9A4DFF;
}

/* 1) Фон секции и контейнер */
.products-section, .section-products, .products, #produse {
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom)) !important;
  padding: 80px 0;
  position: relative;
}

.products__wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 2) Заголовок и подчеркивание */
.products__title {
  color: var(--text);
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.products__underline {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 10px rgba(0, 224, 255, .6);
  margin: 12px 0 32px;
}

.products__subtitle {
  color: var(--muted);
  margin-bottom: 24px;
}

/* 3) Фильтры (чипы) */
.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  background: transparent;
  border: 1px solid rgba(0, 224, 255, .35);
  box-shadow: 0 0 10px rgba(0, 224, 255, .15) inset;
  transition: background .2s, box-shadow .2s, border-color .2s, color .2s;
  cursor: pointer;
}

.filter-chip:hover {
  border-color: rgba(0, 224, 255, .65);
  box-shadow: 0 0 14px rgba(0, 224, 255, .25) inset;
}

.filter-chip.is-active {
  background: linear-gradient(90deg, rgba(0, 224, 255, .18), rgba(154, 77, 255, .18));
  border-color: rgba(0, 224, 255, .75);
  box-shadow: 0 0 18px rgba(0, 224, 255, .35);
}

/* 4) Сетка карточек */
.products-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 5) Карточка продукта */
.products-section .product-card, #produse .product-card, .section-products .product-card {
  position: relative;
  background: var(--card);
  color: var(--text);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 224, 255, .12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .25s, box-shadow .25s, border-color .2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 224, 255, .35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

/* image */
.products-section .product-card__media, #produse .product-card__media, .section-products .product-card__media {
  position: relative;
  aspect-ratio: 16/9;
  background: #0a1623;
}

.products-section .product-card__media img, #produse .product-card__media img, .section-products .product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.products-section .product-card__media::after, #produse .product-card__media::after, .section-products .product-card__media::after {
  /* верхний градиент для читаемости бейджа */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent);
}

/* контент */
.product-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.product-card__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  min-height: 2.4em; /* 2 строки */
  margin: 0;
}

.product-card__desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

/* бейдж категории */
.products-section .product-card__badge, #produse .product-card__badge, .section-products .product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, .35);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  border: 1px solid rgba(0, 224, 255, .45);
  box-shadow: 0 0 10px rgba(0, 224, 255, .25);
}

/* CTA */
.products-section .product-card__cta, #produse .product-card__cta, .section-products .product-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 224, 255, .25);
  transition: background .2s, border-color .2s;
  width: fit-content;
}

.products-section .product-card__cta:hover, #produse .product-card__cta:hover, .section-products .product-card__cta:hover {
  background: linear-gradient(90deg, rgba(0, 224, 255, .18), rgba(154, 77, 255, .18));
  border-color: rgba(0, 224, 255, .65);
}

/* слабый внутренний неон при hover */
.products-section .product-card:hover::after, #produse .product-card:hover::after, .section-products .product-card:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
  box-shadow: 0 0 18px rgba(0, 224, 255, .18) inset;
}

.products-section .product-card:hover::after, #produse .product-card:hover::after, .section-products .product-card:hover::after {
  opacity: 1;
}

/* 6) Удалить светлые фоны и «карточки-плашки» */
.products-section .bg-light,
.products-section .card-light,
.products-section .shadow-soft,
#produse .bg-light,
#produse .card-light,
#produse .shadow-soft {
  background: transparent !important;
  box-shadow: none !important;
}

/* 7) Неоновый разделитель над/под секцией */
.products-section::before,
.products-section::after,
#produse::before,
#produse::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(0, 224, 255, .6);
}

.products-section::before,
#produse::before {
  top: 0;
}

.products-section::after,
#produse::after {
  bottom: 0;
}

/* Адаптивные стили */
@media (min-width: 1200px) {
  .products-grid {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .products-section,
  #produse {
    padding: 48px 0;
  }
  
  .products__wrap {
    padding: 0 16px;
  }
  
  .products__title {
    font-size: 28px;
  }
  
  .product-card__body {
    padding: 18px;
  }
  
  .product-card__title {
    font-size: 20px;
    min-height: unset;
  }
  
  .product-card__desc {
    font-size: 15px;
  }
}

/* Доступность */
@media (prefers-reduced-motion: reduce) {
  .product-card {
    transition: none;
  }
  
  .product-card:hover {
    transform: none;
  }
}

.filter-chip:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.product-card__cta:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Стили пагинации удалены */
