/* ============================== SHOW / HIDDEN ============================== */
.vista-producto,
.vista-noCode,
.vp-input-talle,
.vp-input-color,
.vp-input-cant {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.vista-producto--show,
.vista-noCode--show {
  display: block;
  opacity: 1;
  visibility: visible;
}

.vp-input-talle--show,
.vp-input-color--show,
.vp-input-cant--show {
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 1;
  visibility: visible;
}


/* ============================== VISTA PRODUCTO ============================== */
.vista-producto {
  height: auto;
  margin: 15px;
  flex-direction: column;
}

.vp-producto {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ============================== PRESENTACION ============================== */

.vp-presentacion {
  text-align: center;
}

.vp-carrusel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-height: 250px;
  background: var(--carrusel-bg); /* color */
  border-radius: 10px;
}

.vp-cimg img {
  width: 100%;
  height: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 10px;
}

/* ============================== BOTONES CARRUSEL ============================== */
.vp-prev,
.vp-next,
.vs-carrusel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 2;
}

/* Vista producto */
.vp-prev,
.vp-next {
  padding: 6px 12px;
  font-size: 2rem;
  font-weight: bold;
  color: var(--carrusel-text); /* color */
  background: var(--carrusel-btn); /* color */
  box-shadow: 0 2px 3px rgba(0,0,0,0.5);
}

.vp-prev:hover,
.vp-next:hover {
  scale: 1.1;
  background: var(--carrusel-btn-hover); /* color */
}

.vp-prev { left: 10px; }
.vp-next { right: 10px; }

/* Sugerencia */
.vs-carrusel button {
  padding: 10px;
  font-size: 1.5rem;
  color: var(--carrusel-text);
  background: var(--carrusel-btn); /* color */
}

.vs-carrusel button:hover {
  background: var(--carrusel-btn-hover); /* color */
}

.vs-prev { left: 10px; }
.vs-next { right: 10px; }


/* ============================== DETALLES ============================== */

.vp-detalles {
  padding: 10px;
  background: var(--formulario-bg); /* color */
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.vp-detalles p {
  margin-bottom: 15px;
}

.vp-detalles form {
  display: grid;
  gap: 15px;
}

#vp-nombre{
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--formulario-text-1); /* color */
}

#vp-Descripcion {
  margin: 15px 0;
  font-size: 1.2rem;
  color: var(--formulario-text-2); /* color */
}

#vp-precio {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--formulario-text-3); /* color */
  -webkit-text-stroke: 0.5px #000;
}

/* ============================== FORMULARIO ============================== */

.vp-form-valores label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--formulario-text-1); /* color */
}

.vp-input-talle select,
.vp-input-color select,
.vp-cantidad-control input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}

.vp-cantidad-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vp-cantidad-control button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.7rem;
  color: var(--formulario-btn-1); /* color */
  transition: transform 0.2s; 
}

.vp-cantidad-control button:hover {
  scale: 0.9;
  color: var(--formulario-btn-2); /* color */
}

.vp-comprar {
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--formulario-text-4); /* color */
  background: var(--formulario-btn-3); /* color */
  transition: background 0.3s;
}

.vp-comprar:hover {
  background: var(--formulario-btn-hover); /* color */
  color: var(--formulario-text-2);
}


/* ============================== VISTA NO CODE ============================== */
.vista-noCode {
  text-align: center;
  padding: 60px 20px;
}

.vista-noCode .no-code {
  font-size: 2rem;
  font-weight: 600;
  color: var(--producto-text-2); /* color */
}


/* ============================== SUGERENCIA ============================== */
.vista-sugerencia {
  padding: 20px;
}

.vs-title {
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.7rem;
}

/* Carrusel */

.vs-carrusel {
  position: relative;
  overflow: hidden;
  background: var(--carrusel-bg); /* 123holor */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.vs-carrusel-items {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  user-select: none;
  touch-action: pan-y;
}

/* Producto */
.vs-c-producto {
  min-width: 100%;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
}

.vs-carrusel-items a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Presentacion */
.vs-Presentacion {
  position: relative;
  width: 120px;
  height: 180px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

.vs-Presentacion img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vs-Presentacion h3 {
  position: absolute;
  top: 15px;
  left: -35px;
  width: 140px;
  padding: 4px 0;
  transform: rotate(-45deg);
  text-align: center;
  font-size: 0.7rem;
  overflow: hidden;
}

/* Texto */
.vs-Texto {
  margin-top: 10px;
}
.vs-Texto h4 {
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: bold;
}
.vs-Texto p {
  font-size: 1.1rem;
  color: var(--producto-text-4); /* color */
}


/* ============================== RESPONSIVE ============================== */

@media (min-width: 425px) {
  .vp-cimg img {
    max-height: 200px;
  }
  .vp-titulo h1 {
    font-size: 1.8rem;
  }
  .vp-detalles {
    padding: 25px;
  }
  .vs-c-producto {
    min-width: 50%;
  }
}

@media (min-width: 768px) {
  .vp-producto {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .vp-cimg img {
    max-height: 400px;
  }
  .vp-comprar {
    padding: 14px;
  }
  .vs-c-producto {
    min-width: 33.33%;
  }
  .vs-title {
    margin-bottom: 18px;
  }
  .vs-carrusel button {
    padding: 12px;
  }
}

@media (min-width: 1024px) {
  .vp-producto {
    gap: 40px;
  }
  .vp-cimg img {
    max-height: 500px;
  }
  .vp-detalles {
    padding: 30px;
  }
  .vp-comprar {
    padding: 16px 20px;
  }
  .vs-c-producto {
    min-width: 25%;
  }
  .vs-carrusel button {
    padding: 14px;
  }
}