body {
  margin: 0;
  padding: 0;
  background: #fafafa;
  font-family: "Poppins", Arial, sans-serif;
  color: #333;
}

/* --- SLIDER CONTAINER --- */
.slider {
  max-width: 1300px;
  margin: 40px auto;
  padding: 20px 0;
  overflow: hidden;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* --- TRACK FOR AUTO SCROLL --- */
.slider-track {
  display: flex;
  align-items: center;
  animation: scroll 40s linear infinite;
  width: max-content;
  gap: 20px;
}

/* --- PRODUCT TILE --- */
.product-tile {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  background: #f2f2f2;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.product-tile:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* --- IMAGE STYLING --- */
.product-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-tile:hover img {
  transform: scale(1.05);
}

/* --- DESCRIPTION OVERLAY --- */
.description {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-tile:hover .description,
.product-tile.active .description {
  opacity: 1;
  pointer-events: auto;
}

/* --- SCROLL ANIMATION --- */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
  .product-tile {
    width: 170px;
    height: 170px;
  }
}

@media (max-width: 768px) {
  .product-tile {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  .slider {
    margin: 20px auto;
    padding: 15px 0;
  }

  .product-tile {
    width: 110px;
    height: 110px;
  }

  .description {
    font-size: 12px;
    padding: 6px;
  }
}
