.carousel-seccion {
  padding: 40px 28px 0 56px;
}

/* CARRUSEL */
.carousel {
  overflow: scroll;
  width: 100%;
  position: relative;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

/* Zona del carrusel: contiene el track y las flechas de control */
.carousel-zona {
  position: relative;
}

.carousel__container {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: max-content;
  margin: 70px 0px;
  padding-bottom: 10px;
}

.carousel__flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #F8F4F1;
  color: #554A47;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease;
}

.carousel__flecha:hover {
  transform: translateY(-50%) scale(1.08);
}

.carousel__flecha--izquierda {
  left: 8px;
}

.carousel__flecha--derecha {
  right: 8px;
}

.carousel__container:hover .carousel-item {
  opacity: 0.8;
}

.carousel__container:hover .carousel-item:hover {
  -webkit-transform: scale(1.35);
  transform: scale(1.35);
  opacity: 1;
}

.carousel-item {
  flex: 0 0 auto;
  width: 270px;
  height: 395px;
  border-radius: 20px;
  overflow: hidden;
  margin-right: 24px;
  display: inline-block;
  cursor: pointer;
  transition: 450ms all;
  -webkit-transform-origin: center left;
  transform-origin: center left;
  position: relative;
}

.carousel-item:hover~.carousel-item {
  -webkit-transform: translate3d(95px, 0, 0);
  transform: translate3d(95px, 0, 0);
}

/* ELEMENTOS DEL CARRUSEL */

.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(25, 20, 20, 0.12) 50%,
    rgba(25, 20, 20, 0.82) 100%
  );
  pointer-events: none;
}

.carousel-item__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.carousel-item .candle-content > :not(.candle-purchase) {
  transition: opacity 300ms ease;
}

.carousel-item:hover .candle-content > :not(.candle-purchase) {
  opacity: 0;
}

.carousel .favorite-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #F8F4F1;
  color: #554A47;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.carousel .favorite-button:hover {
  transform: scale(1.05);
}

.carousel .favorite-button[aria-pressed="true"] {
  color: #D77C8D;
}

.carousel .candle-content {
  position: absolute;
  right: 16px;
  bottom: 18px;
  left: 16px;
  z-index: 2;
  width: auto;
  padding: 0;
  color: #FFFFFF;
  pointer-events: auto;
}

.carousel .candle-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.carousel .candle-heading h3 {
  margin: 0;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
}

.carousel .candle-category {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.carousel .category-navidad {
  background-color: #38535E;
}

.carousel .candle-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #FFFFFF;
  font-size: 11px;
}

.carousel .candle-scent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.carousel .candle-scent i {
  flex-shrink: 0;
  font-size: 13px;
}

.carousel .candle-weight {
  flex-shrink: 0;
  font-weight: 700;
}

.carousel .candle-description {
  margin: 0 0 8px;
  color: #FFFFFF;
  font-size: 12px;
  line-height: 1.4;
}

.carousel .candle-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.carousel .candle-price {
  margin: 0;
  color: #FFFFFF;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.carousel .add-to-cart {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid #FFFFFF;
  border-radius: 22px;
  background-color: #F7F6F4;
  color: #3B2C2C;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.carousel .add-to-cart:hover {
  background-color: #E9E6E1;
  color: #3B2C2C;
}

.carousel .add-to-cart:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .carousel-item {
    width: 240px;
    height: 350px;
  }
}