#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: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 320px;
  background: #fff;
  overflow: visible;
}
#mainImage {
  width: 100%;
  height: auto;
  max-height: 100%;
  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-unit-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.pdp-unit-qty {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 280px;
}
.pdp-unit-qty .form-label {
  font-weight: 600;
  margin-bottom: 0;
  color: #4f4062;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #dcd2ea;
  border-radius: 999px;
  background-color: #fff;
  overflow: hidden;
  margin: 0;
  width: fit-content;
}
.qty-control input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  padding: 0;
  -moz-appearance: textfield;
  -webkit-appearance: none;
  appearance: none;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-control input:focus {
  outline: none;
}
.qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  font-weight: 600;
  color: #4f4062;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.qty-btn:hover {
  background-color: #f4ecfb;
}
.qty-hint {
  font-size: 0.85rem;
  color: #8c8199;
  margin: 0;
}
.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;
}

.pdp-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.pdp-packs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pack-options {
  display: grid;
  gap: 12px;
}
.pack-option {
  position: relative;
  border: 1px solid var(--color-gris-borde, #eaeaea);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.pack-option input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.pack-option__title {
  font-weight: 600;
  font-size: 1rem;
}
.pack-option__subtitle {
  color: #6b6b6b;
  font-size: 0.9rem;
}
.pack-option__price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primario, #6e56cf);
}
.pack-option.is-active {
  border-color: var(--color-primario, #6e56cf);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.pack-selection-hint {
  font-size: 0.9rem;
}

.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 {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }
}


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

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

}
