/* Layout y espaciado */
.product-slide {
    height: 100%;
  }

  .product-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    overflow: hidden; /* 🔑 */
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  @media(max-width:  992px){
      .product-image-wrapper {
        height: 380px !important;
      }
  }
  .main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

/* miniatura */
.product-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-top: 14px;
}

.product-thumbnails::-webkit-scrollbar {
  height: 6px;
}

/* .product-thumbnails */ .thumbnail-btn {
    max-width: 124px !important;
    max-height: 94px !important;
    background: none;
    cursor: pointer;
    flex: 0 0 auto;
    border-radius: 10px !important;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #f4f4f4;
  }
  .product-thumbnails .thumbnail-btn img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4/3;
    object-fit: contain;
    display: block;
    border: none !important;
    margin: 0 auto;

  }
  @media (max-width: 375px) {
    .product-thumbnails .thumbnail-btn img {
      height: 85px;
    }
  }

.product-row {
  padding-top: 10px;
}

/* Swiper Gallery */
.swiper-container.main-gallery {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.swiper-container.main-gallery .swiper-slide:not(.swiper-slide-active) {
  visibility: hidden;
  transition: all 0.6s ease-in;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.swiper-slide img,
.image-container > img.main-product-image {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  transition:
    transform 0.35s ease,
    opacity 0.25s ease;
  will-change: transform, opacity;
}

.swiper-button-next,
.swiper-button-prev {
  color: #111;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-pagination-bullet {
  background: #ddd;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #111;
}

/* Imágenes del producto */
.main-product-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}
.resumen-container p {
  font-size: 18px !important;
  font-weight: 400 !important;
}

/* Botones de color */
.product-option .color-buttons .color-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ff0b0b;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.product-option .color-buttons .color-button:hover {
  transform: scale(1.1);
}

.product-option .color-buttons .color-button.active {
  border: 2px solid #000;
  box-shadow: 0 0 4px rgba(0,0,0,.4);
}

/* Contenido HTML personalizado */
.custom-html-content {
  white-space: pre-wrap;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding-top: 15px;
}

.custom-html-content p {
  margin-bottom: 1rem;
  display: block;
}

.custom-html-content :global(table) {
  width: 100% !important;
  max-width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
  table-layout: auto;
}

.custom-html-content :global(td),
.custom-html-content :global(th) {
  padding: 12px;
  border: 1px solid #2b2b2b;
  word-break: normal;
  min-width: 100px;
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Responsive */
@media (max-width: 576px) {
  .swiper-container.main-gallery {
    max-width: 100%;
  }

  .swiper-slide img,
  .image-container > img.main-product-image {
    max-height: 360px;
  }
}
