/* Calzados Sonia V37: cinco modelos, carrusel centrado en todas las pantallas.
   La Zorzal Negro ocupa la tercera posición e inicia como protagonista. */
.featured-carousel {
  --featured-gap: 18px;
  --featured-card-width: clamp(252px, 30.5%, 366px);
  position: relative;
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
  min-width: 0;
}
.featured-carousel .product-grid {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--featured-gap);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 0 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 50%;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-y pinch-zoom;
}
.featured-carousel .product-grid::-webkit-scrollbar { display: none; }
.featured-carousel .product-grid::before,
.featured-carousel .product-grid::after {
  content: '';
  flex: 0 0 max(0px, calc((100% - var(--featured-card-width)) / 2 - var(--featured-gap)));
  pointer-events: none;
}
.featured-carousel .product-card {
  flex: 0 0 var(--featured-card-width);
  min-width: 0;
  height: auto;
  scroll-snap-align: center;
  border-color: #eee6ea;
  opacity: .77;
  transition: opacity .27s ease, transform .27s ease, box-shadow .27s ease, border-color .27s ease;
}
.featured-carousel .product-card.is-featured-active {
  z-index: 2;
  opacity: 1;
  border-color: #e8a3c1;
  box-shadow: 0 12px 28px #8a24501f;
  transform: translateY(-2px) scale(1.015);
}
.featured-carousel .product-card:not(.is-featured-active):hover,
.featured-carousel .product-card:not(.is-featured-active):focus-within { opacity: 1; }
.featured-carousel .product-grid.is-dragging {
  cursor: grabbing;
  user-select: none;
  scroll-snap-type: none;
}
.featured-carousel-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
  max-width: 1290px;
  margin: 7px auto 0;
  padding: 0 6px;
}
.featured-carousel-navigation[hidden] { display: none !important; }
.featured-carousel-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #e7b4ca;
  border-radius: 50%;
  background: #fff;
  color: #a91b57;
  box-shadow: 0 2px 7px #0c1b370d;
  cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s, transform .16s;
}
.featured-carousel-arrow svg { width: 20px; height: 20px; transform: rotate(180deg); }
.featured-carousel-arrow-next svg { transform: none; }
.featured-carousel-arrow:not(:disabled):hover { background: #fff2f7; border-color: var(--pink); transform: translateY(-1px); }
.featured-carousel-arrow-next:not(:disabled) { background: var(--pink); color: #fff; border-color: var(--pink); }
.featured-carousel-arrow-next:not(:disabled):hover { background: var(--pink-dark); }
.featured-carousel-arrow:disabled {
  background: #f5f2f4;
  border-color: #ebe6e9;
  color: #a9a1a7;
  box-shadow: none;
  cursor: default;
}
.featured-carousel-position {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 125px;
}
.featured-carousel-position output {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.featured-carousel-dots { display: flex; align-items: center; justify-content: center; gap: 6px; }
.featured-carousel-dots span {
  width: 8px;
  height: 6px;
  border-radius: 10px;
  background: #ead5dd;
  transition: width .2s, background-color .2s;
}
.featured-carousel-dots span.is-current { width: 28px; background: var(--pink); }
@media (max-width: 1023px) {
  .featured-carousel { --featured-gap: 14px; --featured-card-width: 46%; }
}
@media (max-width: 700px) {
  .collection { overflow-x: clip; padding: 13px 13px 30px; }
  .featured-carousel {
    --featured-gap: 12px;
    --featured-card-width: 76%;
    margin-inline: -13px;
    width: calc(100% + 26px);
  }
  .featured-carousel .product-grid {
    padding: 9px 0 18px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }
  .featured-carousel .product-card {
    border-radius: 16px;
    box-shadow: 0 5px 18px #0c1b3710;
  }
  .featured-carousel .product-card .product-media { aspect-ratio: 1.30 / 1; padding: 11px 10px 1px; }
  .featured-carousel .product-card-content { padding: 9px 17px 17px; }
  .featured-carousel .product-maker { font-size: 11px; }
  .featured-carousel .product-name { font-size: 19px; line-height: 1.22; min-height: 0; }
  .featured-carousel .product-card-meta { font-size: 12px; }
  .featured-carousel .product-card-price { margin-bottom: 13px; padding-top: 14px; gap: 10px; }
  .featured-carousel .product-card-price strong { font-size: 20px; }
  .featured-carousel .product-card .add-to-cart { min-height: 44px; height: 44px; font-size: 14px; }
  .featured-carousel .product-card .favorite-button { top: 12px; right: 12px; width: 40px; height: 40px; }
  .featured-carousel .product-tag { top: 13px; left: 13px; padding: 5px 9px; font-size: 10px; }
  .featured-carousel-navigation { justify-content: space-between; gap: 10px; padding: 4px 22px 0; }
  .featured-carousel-arrow { flex-basis: 46px; width: 46px; height: 46px; }
}
@media (max-width: 360px) {
  .featured-carousel .product-name { font-size: 18px; }
  .featured-carousel .product-card-content { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-carousel .product-card,
  .featured-carousel-arrow,
  .featured-carousel-dots span { transition: none; }
}
