
.cera-cleaner-carousel {
  /* width: 100vw; */
  display: flex;
  height: 50vh;
  position: relative;
  padding-bottom: 50px;
}

.banner-heading {
  color: white;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding-left: 50px; */
}

.banner-heading h1 {
  font-size: 5rem;
}

.cera-cleaner-carousel::before {
  content: "";
  position: absolute;
  background: url("../assets/productstopimage.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

.cera-cleaner-carousel::after {
  content: "";
  position: absolute;
  background: black;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.5;
}

.hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: whitesmoke;
  padding: 5rem 0;
  width: 100%;
}

.details {
  width: 90%;
  max-width: 1000px;
  margin-bottom: 2rem;
}

.details p {
  font-size: 1.5rem;
  text-align: center;
  color: rgb(89, 89, 89);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.grid-item {
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item img {
  width: 100%;
  height: 75%;
  object-fit: cover;
  border-bottom: 1px solid #ccc;
  transition: transform 0.3s ease;
}

.grid-item p {
  margin: 0;
  padding: 15px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Hover effect */
.grid-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.grid-item:hover img {
  transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .cera-cleaner-carousel {
    height: 25vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .banner-heading {
    color: white;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0;
  }

  .banner-heading h1 {
    font-size: 3rem;
  }
}

@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .details p {
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .details p {
    font-size: 1rem;
  }

  .grid-item img {
    height: 300px;
  }
}
