
/* =====================================================
   ALT PRODUCT SECTION
===================================================== */

.alt-product-section {
  padding: 50px 20px;
}

.alt-product-grid {
  max-width: auto;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.alt-product-card {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.alt-product-img {
  position: relative;
  overflow: hidden;
  height: 340px;
  width: 100%;
}

.alt-product-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-image), opacity var(--transition-slow);
}

.alt-img-hover {
  opacity: 0;
  transform: scale(1.06);
}

.alt-product-card:hover .alt-img-main {
  opacity: 0;
  transform: scale(1.08);
}

.alt-product-card:hover .alt-img-hover {
  opacity: 1;
  transform: scale(1);
}

.alt-product-card h4 {
  max-width: 100%;
  font-size: 14px;
  margin: 10px 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.alt-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  .alt-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .alt-product-img { height: 360px; }
}

@media (max-width: 600px) {
  .alt-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .alt-product-card:nth-child(3n + 1) {
    grid-column: 1 / -1;
  }
  .alt-product-card:nth-child(3n + 1) .alt-product-img {
    height: 500px;
  }
  .alt-product-card:not(:nth-child(3n + 1)) .alt-product-img {
    height: 260px;
  }
}