*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#cCarousel {
  position: relative;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

#cCarousel .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  width: 45px;
  height: 45px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  z-index: 10;
  font-size: 22px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#cCarousel #prev {
  left: 10px;
}

#cCarousel #next {
  right: 10px;
}

#carousel-vp {
  width: 810px;
  height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin: auto;
}

/* Desktop view - 3 products */
@media (min-width: 992px) {
  #carousel-vp {
    width: 810px; /* Fits 3 items of 250px + gaps */
  }
}

/* Tablet view - 2 products */
@media (max-width: 991px) and (min-width: 576px) {
  #carousel-vp {
    width: 530px; /* Fits 2 items of 250px + gaps */
  }
}

/* Mobile view - 1 product */
@media (max-width: 575px) {
  #carousel-vp {
    width: 280px; /* Fits 1 item of 250px + padding */
    height: 380px;
  }
  
  #cCarousel {
    padding: 0 15px;
  }
  
  #cCarousel .arrow {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

#cCarousel #cCarousel-inner {
  display: flex;
  position: absolute;
  transition: 0.2s ease-in-out;
  gap: 20px;
  left: 0px;
}

.cCarousel-item {
  width: 250px;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: white;
}

.cCarousel-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.cCarousel-item .infos {
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  background: white;
  color: black;
  padding: 10px 0;
}

.cCarousel-item .infos button,
.cCarousel-item .infos a.btn {
  background: #ffffff;
  padding: 8px 20px;
  border-radius: 15px;
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin-top: 5px;
}
