.products-section {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 4.8rem);
}

.products-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.8rem, 4vw, 2.6rem);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    150deg,
    rgba(12, 14, 26, 0.82) 0%,
    rgba(8, 9, 20, 0.9) 100%
  );
  border-radius: clamp(20px, 3vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 40px rgba(9, 10, 22, 0.48);
  overflow: hidden;
  padding-bottom: clamp(1.6rem, 4vw, 2.1rem);
  transition: transform 0.28s ease, box-shadow 0.28s ease,
    border-color 0.28s ease;
  /* ✅ iOS scroll fix - GPU acceleration */
  will-change: transform;
  transform: translateZ(0);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    140deg,
    rgba(247, 163, 55, 0.28),
    rgba(255, 205, 111, 0.12)
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: -1;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 26px 52px rgba(5, 5, 18, 0.55);
  border-color: rgba(247, 163, 55, 0.35);
}

.product-card:hover::after,
.product-card:focus-within::after {
  opacity: 1;
}

.product-card__media {
  position: relative;
  overflow: hidden;
  height: clamp(180px, 24vw, 240px);
}

.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 6, 16, 0.18) 0%,
    rgba(4, 6, 16, 0.52) 78%
  );
  pointer-events: none;
}

.product-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.04);
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__thumb,
.product-card:focus-within .product-card__thumb {
  transform: scale(1.08);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 2.4vw, 1.1rem);
  padding: clamp(1.6rem, 4vw, 2.3rem) clamp(1.5rem, 4vw, 2.2rem) 0;
}

.product-card__category {
  align-self: flex-start;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(247, 163, 55, 0.16);
  border: 1px solid rgba(247, 163, 55, 0.4);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 214, 155, 0.9);
}

.product-card__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.product-card__description {
  margin: 0;
  color: rgba(231, 233, 255, 0.74);
  line-height: 1.65;
  font-size: 0.98rem;
}

.product-card__specs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: rgba(212, 217, 244, 0.9);
  font-size: 0.92rem;
}

.product-card__specs li {
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.product-card__specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7a337, #ffcd6f);
  box-shadow: 0 0 12px rgba(247, 163, 55, 0.45);
}

.product-card__cta {
  align-self: flex-start;
  margin-top: 0.4rem;
}

@media (max-width: 960px) {
  .products-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .products-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    border-radius: 20px;
  }

  .product-card__media {
    height: 200px;
  }

  .product-card__body {
    padding: 1.4rem 1.6rem 0;
  }
}

@media (max-width: 480px) {
  .products-gallery {
    grid-template-columns: 1fr;
  }

  /* ✅ Mobile optimizations - iOS scroll fix */
  .product-card {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }

  .product-card__media {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}
