#producto {
  background: var(--color-blanco, #fff);
  padding: 20px 0 0px;
}
#producto .container {
  max-width: 1120px;
}

.pdp-gallery {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "main" "thumbs";
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 12px;
  align-items: start;
}
.pdp-main {
  grid-area: main;
}
.pdp-thumbs {
  grid-area: thumbs;
}

.pdp-main {
  margin: 0;
  position: static;
  z-index: 0;
  border: 1px solid var(--color-gris-borde, #eaeaea);
  border-radius: 12px;
  padding: 8px;
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  background: #fff;
  overflow: visible;
}
#mainImage {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.pdp-thumbs {
  position: static;
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding: 4px 2px 6px;
}
.pdp-thumbs .thumb {
  appearance: none;
  cursor: pointer;
  width: 72px;
  height: 72px;
  border: 1px solid var(--color-gris-borde, #eaeaea);
  border-radius: 8px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.pdp-thumbs .thumb:is(:hover, :focus) {
  transform: translateY(-2px);
}
.pdp-thumbs .thumb.is-active {
  border-color: var(--color-primario, #6e56cf);
}
.pdp-thumbs .img-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 8px;
  background: #f3f3f3;
}

.pdp-info {
  color: var(--color-negro);
  font-size: 0.9rem;
  margin: 0 0 6px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.pdp-info .title-productos {
  font-family: var(--fuente-primaria);
  font-size: var(--extra-large);
  font-weight: 600;
  margin: 8px 0 8px;
}
.pdp-price {
  margin: 12px 0 8px;
}
.pdp-price .old {
  color: var(--color-gris, #666);
  text-decoration: line-through;
  margin-bottom: 2px;
}
.pdp-price .current {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
  font-weight: 700;
}
.pdp-price .off {
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: 8px;
  color: var(--color-primario, #6e56cf);
}
.pdp-price .installments {
  color: var(--color-gris, #666);
  font-size: 0.95rem;
}
.price-iva {
  font-size: 16px;
  color: var(--color-gris-claro);
}
.pdp-specs-block,
.pdp-description-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pdp-specs-block {
  order: 2;
}
.pdp-description-block {
  order: 3;
}
.pdp-info .producto-contenedor_boton__ventas {
  order: 4;
}
.pdp-table th {
  width: 42%;
  font-weight: 600;
  color: #222;
}
.pdp-table td {
  color: #555;
}

#producto .mybtn {
  display: inline-block;
  min-width: auto;
  margin-top: 18px;
}

.catalogo--sugeridos .catalogo-productos_contenedor_cards {
  display: grid;
  gap: 20px;
  justify-content: center;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: auto;
}
.catalogo--sugeridos .catalogo-productos_contenedor_cards .card {
  width: 100%;
  max-width: 300px;
  margin: 0;
}

.catalogo--sugeridos .catalogo-productos_contenedor_cards .card .card-image {
  position: relative;
  display: block;
  overflow: hidden;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  background: #f6f6f6;
}
.catalogo--sugeridos .catalogo-productos_contenedor_cards .card .card-image::before {
  content: "";
  display: block;
  padding-top: 125%;
}
@supports (aspect-ratio: 4 / 5) {
  .catalogo--sugeridos .catalogo-productos_contenedor_cards .card .card-image {
    aspect-ratio: 4/5;
  }
  .catalogo--sugeridos .catalogo-productos_contenedor_cards .card .card-image::before {
    display: none;
  }
}
.catalogo--sugeridos .catalogo-productos_contenedor_cards .card .card-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block;
}

#producto .current-price {
  font-family: var(--fuente-primaria);
  font-size: var(--extra-large-4);
  font-weight: 300;
  color: var(--color-negro);
}

/* ------------MEDIA QUERIES ------------- */
@media (max-width: 991.98px) {
  .pdp-info .producto-contenedor_boton__ventas {
    order: 1;
  }
  .pdp-specs-block {
    order: 3;
  }
  .pdp-description-block {
    order: 4;
  }
}

@media (max-width: 767.98px) {
  .catalogo--sugeridos .catalogo-productos_contenedor_cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  #producto .pdp-info .producto-contenedor_boton__ventas {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
  }
  .pdp-description-block {
    order: 3;
  }
  .pdp-specs-block {
    order: 4;
  }
}


@media (min-width: 576px) {
  .catalogo--sugeridos .catalogo-productos_contenedor_cards .card {
    max-width: none;
  }

  #producto .pdp-info .producto-contenedor_boton__ventas {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
  }

  .pdp-gallery {
    
    grid-template-areas: "thumbs main";
    align-items: start;
    gap: 16px;
  }
  .pdp-thumbs {
    flex-direction: column;
    width: 96px;
    max-height: calc(100vh - 180px);
    overflow: auto;
    padding-right: 2px;
  }
  .pdp-main {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    overflow: hidden;
  }
  #mainImage {
    max-height: 100%;
    width: auto;
    height: auto;
  }
}


@media (min-width: 992px) {
  .pdp-gallery {
    position: sticky;
    top: 96px;
  }
  .pdp-main {
    max-height: calc(100vh - 220px);
  }

    #producto .pdp-info .producto-contenedor_boton__ventas{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
  }

}
