/* ============================================================
   BASE CARD PRODUCTO
============================================================ */
.ne-card-producto{
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
}

/* ============================================================
   IMAGEN PRODUCTO (NORMALIZADA)
============================================================ */
.ne-card-producto .ne-card-image{
  height: 260px;                 /* altura uniforme */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* Imagen */
.ne-card-producto img{
  display: block;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Link de imagen */
.ne-card-producto .ne-card-image a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  height: 100%;
  margin: 0 auto;
}

/* Slider wrap */
.ne-slider-wrap{
  position: relative;
  overflow: hidden;
  background: #fff;
}

/* ============================================================
   BODY
============================================================ */
.ne-card-body{
  background: #fff;
}

/* ============================================================
   TÍTULO
============================================================ */
.ne-card-producto .ne-card-title,
.ne-card-producto .md-card-titulo{
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px;
}

/* ============================================================
   PRECIO
============================================================ */
.ne-card-producto .ne-card-price,
.ne-card-producto .md-card-precio{
  font-size: 16px;
  font-weight: 700;
}

/* Precio en columna (oferta abajo) */
.ne-card-producto .ne-card-price{
  display: flex;
  flex-direction: column-reverse;
  margin-bottom: 8px;
}

.ne-card-price span{
  color: #000;
}

/* Precio regular (tachado) */
.ne-price-regular{
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
}

/* Precio oferta */
.ne-price-sale{
  color: #e30613;
  font-weight: 700;
  font-size: 18px;
}

/* Precio normal */
.ne-price-normal{
  color: #e30613;
  font-weight: 700;
  font-size: 18px;
}

/* ============================================================
   FORM CARRITO (INPUT + BOTÓN EN FILA)
============================================================ */
.ne-card-producto form.cart,
form.cart {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Contenedor quantity */
.ne-card-producto .quantity{
  margin: 0;
}

/* Input cantidad */
.ne-card-producto .quantity input.qty{
  width: 50px;
  height: 40px;
  text-align: center;
  padding: 0;
  padding-right: 4px;
}

/* Botón */
.ne-card-producto button.add_to_cart_button,
button.add_to_cart_button {
  height: 40px;
  padding: 0 16px;
  background: #ff7b1b !important;
  color: #fff !important;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

/* ============================================================
   REVEAL / INTERACCIÓN
============================================================ */
.ne-card-producto--interactive .ne-card-reveal{
  margin-top: 12px;
}

/* Info extra */
.ne-card-producto .ne-card-extra{
  background: #ffffff;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 0 0 8px 8px;
  border-top: 0;
}

/* Botón full ancho (si se usa wrapper) */
.ne-card-producto .ne-card-actions .button{
  width: 100%;
  background: #e30613;
  color: #fff;
  text-align: center;
}

/* Hover actions */
.ne-card-producto--interactive .ne-card-hover-actions{
  background: rgba(0,0,0,0.05);
}

/* ============================================================
   LOGO DE MARCA
============================================================ */
.ne-card-logo-wrapper{
  margin: 6px 0 8px;
  text-align: center;
}

.ne-card-logo-wrapper img{
  width: 80px;
  height: auto;
}

/* ============================================================
   GRID RESULTADOS MD
============================================================ */
.ne-grid-md{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Tablet */
@media (max-width: 1024px){
  .ne-grid-md{
    grid-template-columns: repeat(2, 1fr);
  }

  .ne-card-producto .ne-card-image{
    height: 220px;
  }
}

/* Mobile */
@media (max-width: 600px){
  .ne-grid-md{
    grid-template-columns: 1fr;
  }

  .ne-card-producto .ne-card-image{
    height: 200px;
  }

  /* En mobile apilamos input + botón */
  .ne-card-producto form.cart{
    flex-direction: column;
    align-items: stretch;
  }

  .ne-card-producto button.add_to_cart_button{
    width: 100%;
  }
  .ne-slider-wrap .ne-swiper-prev, .ne-slider-wrap .ne-swiper-next {
    top: 30% !important;
  }
}

@media (min-width: 601px) {
  .ne-slider-wrap {
    padding: 0px 40px;
  }
}


/* ============================================================
   BADGE PROMOCIÓN (TU VERSIÓN ORIGINAL - NO LA TOCO)
============================================================ */

.ribbon-producto.promocion {
  position: absolute;
  top: 10px;
  right: 10px;
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  z-index: 1000;
  pointer-events: none;
  display: flex !important;
  align-items: center !important;
}

.ribbon-producto.promocion .ribbon-producto_descuento {
  background: #ffcc00 !important;
  color: #000;
  font-weight: 700 !important;
  font-size: 14px;
  line-height: 1;
  padding: 10px 6px;
  border-radius: 6px;
}

.ribbon-producto_img {
  width: 60px !important;
}

/* ============================================================
   BADGE PORCENTAJE FUERA DE PROMOCIONES
============================================================ */

.wu-ribbon-descuento {
    position: absolute;
    top: 20px;
    right: 10px;
    background: #d63638;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 4px;
    z-index: 10;
    line-height: 1;
}