/**
* Theme Name: Razox Child
* Description: This is a child theme of Razox, generated by Merlin WP.
* Author: <a href="http://pavothemes.com/">Pavothemes</a>
* Template: razox
* Version: 2.0.2
*/




/* Oculta el botón de scroll hacia arriba */
.scrollup {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}


/* Centrar el botón en las tarjetas del loop */
.woocommerce ul.products li.product .add_to_cart {
  display: flex;
  justify-content: center;
  margin-top: 8px;   /* separa del título */
  min-height: 0;     /* ajusta si antes había un badge de stock */
}

.woocommerce ul.products li.product .add_to_cart .button {
  display: inline-block;
  text-align: center;
}

/* ----- Desktop: forzar que el botón vaya debajo del título y centrado ----- */
@media (min-width: 768px){
  /* quita posiciones raras del contenedor del botón en el loop */
  .woocommerce ul.products li.product .add_to_cart{
    position: static !important;
    float: none !important;
    display: block;
    text-align: center;
    margin: 10px 0 0;
  }
  /* botón centrado */
  .woocommerce ul.products li.product .add_to_cart .button{
    display: inline-block;
    width: auto;       /* usa 100% si lo quieres a lo ancho */
    text-align: center;
  }
}

/* seguimos ocultando cualquier badge de stock residual */
.woocommerce ul.products li.product .inventory_status{display:none !important;}

@media (min-width: 768px){
  .woocommerce ul.products li.product .add_to_cart{justify-content:center;}
  .woocommerce ul.products li.product .product, 
  .woocommerce ul.products li.product .product-inner,
  .woocommerce ul.products li.product .product-content{display:block;}
}  
  
 /* TESTT 20 --- */
 /*--- CÓDIGO PARA Forzar que el botón esté siempre visible --- */
  /* --- Forzar que el botón esté siempre visible --- */
.woocommerce ul.products li.product .add_to_cart {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  position: static !important;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* Ajustar estilo del botón para que se vea bien */
.woocommerce ul.products li.product .add_to_cart .button {
  display: inline-block;
  opacity: 1 !important;
  visibility: visible !important;
  text-align: center;
  padding: 8px 16px;
  border-radius: 4px;
}

/* Desactivar cualquier animación que lo esconda */
.woocommerce ul.products li.product:hover .add_to_cart,
.woocommerce ul.products li.product .add_to_cart {
  transition: none !important;
}


.single-product .inventory_status {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}





