/* Estilos opcionales del carrusel */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 4px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  border: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  cursor: pointer;
}
.carousel-btn[data-prev]{ left: -8px; }
.carousel-btn[data-next]{ right: -8px; }
.carousel-infinite {
  max-width: 1340px;
  margin: 48px auto;
  position: relative;
  padding: 0 24px;
}
.ci-viewport {
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.ci-track {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: stretch;
  animation: ci-scroll 48s linear infinite;
  will-change: transform;
}
.carousel-infinite:hover .ci-track {
  animation-play-state: paused;
}
.ci-slide {
  min-width: 360px;
  max-width: 380px;
  padding: 8px;
  box-sizing: border-box;
}
@keyframes ci-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Nuevos estilos extraídos del componente para mantener consistencia */
.carousel-fav-btn[aria-pressed="true"] .carousel-like-icon path { fill:#cc0066; }
.carousel-fav-btn[aria-pressed="false"] .carousel-like-icon path { fill:#e2e8f0; }
.carousel-fav-btn { transition: transform .25s; }
.carousel-fav-btn:hover { transform: scale(1.12); }
.carousel-infinite .ci-slide > .carousel-card {
  transition:transform .32s cubic-bezier(.4,.2,.2,1), box-shadow .32s;
  will-change:transform;
  cursor:pointer;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 25px 60px rgba(16,15,20,0.18);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.carousel-infinite .ci-slide > .carousel-card:hover {
  transform:translateY(-12px);
  box-shadow:0 30px 70px -14px rgba(0,0,0,.3);
}

.carousel-card__media{
  position: relative;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg,#fce7ef,#f8cfe0);
}
.carousel-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
.carousel-card__body{
  padding: 18px 22px 22px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  min-height: 210px;
}
.carousel-card__eyebrow{
  margin:0;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: .12em;
  color:#9a97a7;
  font-weight:700;
}
.carousel-card__title{
  margin:0;
  font-size:1.05rem;
  font-weight:700;
  color:#1f1f29;
  line-height:1.28;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:3.9em;
}
.carousel-card__price{
  display:flex;
  flex-direction:column;
  gap:4px;
  color:#5c5a66;
}
.carousel-card__price strong{
  font-size:1.35rem;
  color:#5a1034;
}
.carousel-card__footer{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.carousel-card__favorites{
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:600;
  color:#5a556a;
  font-size:0.85rem;
}
.carousel-card__favorites svg path{
  fill:#f8b4d9;
}
.carousel-card__favorites-label{
  font-size:0.7rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#b3adbf;
}
.carousel-card__cta{
  font-weight:700;
  color:#cc0066;
  font-size:0.9rem;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.carousel-card__cta::after{
  content:"↗";
  font-size:1rem;
}

.carousel-fav-btn{
  position:absolute;
  top:14px;
  right:14px;
  border:none;
  border-radius:50%;
  width:44px;
  height:44px;
  background:rgba(255,255,255,0.85);
  box-shadow:0 10px 30px rgba(0,0,0,0.18);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.carousel-like-icon path{
  transition:fill .2s;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media (max-width: 768px){
  .carousel-infinite{
    padding: 0 12px;
  }
  .ci-slide{
    min-width: 300px;
    max-width: 320px;
  }
  .carousel-card__body{
    padding:16px;
  }
}
