/* ==========================================================================
   Domino Comercio — Related Products Carousel
   v1.3.440 — 2026-03-31
   PROD: diagonal-background.png repeating, navy title, FFDINWebProBlack captions
   ========================================================================== */

.dc-related-products {
  background: url('../images/diagonal-background.png') repeat;
  padding: 30px 20px;
}

.dc-related-title {
  font-family: "FFDINWebProBlack", Helvetica, Arial, sans-serif;
  font-size: 46px;
  font-weight: 400;
  color: var(--dc-heading);
  text-align: center;
  letter-spacing: -1px;
  text-transform: none;
  margin: 40px auto 40px;
  max-width: 1050px;
  padding: 0 15px;
}

.dc-related-carousel {
  position: relative;
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 15px;
}

.dc-carousel-viewport {
  overflow: hidden;
}

.dc-carousel-track {
  display: flex;
  justify-content: flex-start;
  gap: 0 !important;
}

.dc-carousel-slide {
  flex: 0 0 255px;
  min-width: 0; /* prevent long figcaption text from expanding slide beyond flex-basis */
  overflow: hidden; /* clip figcaption text that exceeds 255px (matches Slick behavior in PROD) */
  margin: 0;
  padding: 0;
}

.dc-carousel-slide a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.dc-carousel-slide a:hover {
  text-decoration: none;
}

.dc-carousel-slide a:hover figcaption {
  opacity: 0.8;
}

.dc-carousel-slide img {
  width: 96%;
  height: auto;
  aspect-ratio: auto; /* reset 3/4 forced by domino-comercio.css — natural ratio like PROD */
  object-fit: fill;   /* reset cover — keep natural proportions */
  display: block;
  margin: 0 auto;
  border-radius: 0;
}

.dc-carousel-placeholder {
  width: 96%;
  height: 288px;
  background: #f0f0f0;
  margin: 0 auto;
}

.dc-carousel-slide figcaption {
  font-family: "FFDINWebProBlack", Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  text-align: left;
  margin: 15px 0 0;
  padding: 0 5px;
}

/* Arrows — PROD: 55px round, #f0f0f0, positioned -60px outside */
.dc-carousel-prev,
.dc-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  z-index: 2;
  transition: background 0.2s;
  padding: 0;
}

.dc-carousel-prev:hover,
.dc-carousel-next:hover {
  background: #e0e0e0;
}

.dc-carousel-prev {
  left: -60px;
}

.dc-carousel-next {
  right: -60px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE — Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .dc-related-products {
    padding: 30px 0 40px;
  }

  .dc-related-title {
    font-size: 36px;
    margin-bottom: 40px;
  }

  .dc-carousel-slide {
    flex: 0 0 50%;
    min-width: 0;
    overflow: hidden;
  }

  .dc-carousel-slide img {
    width: 96%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: fill;
  }

  .dc-carousel-slide figcaption {
    font-size: 18px;
  }

  .dc-carousel-prev {
    left: 0;
  }

  .dc-carousel-next {
    right: 0;
  }

  .dc-carousel-prev,
  .dc-carousel-next {
    width: 44px;
    height: 44px;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  .dc-related-products {
    padding: 20px 0 30px;
  }

  .dc-related-title {
    font-size: 46px;
    padding: 0 32px;
    margin-bottom: 80px;
  }

  .dc-related-carousel {
    padding: 0 47px;
  }

  .dc-carousel-track {
    justify-content: flex-start;
  }

  .dc-carousel-slide {
    flex: 0 0 100%;
  }

  .dc-carousel-slide img {
    width: 96%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: fill;
  }

  .dc-carousel-slide figcaption {
    font-size: 24px;
  }

  .dc-carousel-prev,
  .dc-carousel-next {
    width: 40px;
    height: 40px;
  }

  .dc-carousel-prev {
    left: 0;
  }

  .dc-carousel-next {
    right: 0;
  }
}
