/**
* Theme Name: Ekommart Child
* Description: This is a child theme of Ekommart, generated by Merlin WP.
* Author: <a href="https://www.wpopal.com/">Opal Team</a>
* Template: ekommart
* Version: 4.1.7
*/

/* ============================================
   LEGENDARY T-SHIRTS – LIMPIEZA DE CARDS
   - Oculta Wishlist (todos los plugins y theme)
   - Oculta Quick View
   - Oculta Compare
   - Oculta Select Options
   ============================================ */

/* Ocultar iconos flotantes del tema y plugins */
body .products .product .woosq-btn,                /* Quick View */
body .products .product .woosc-btn,               /* Compare */
body .products .product .opal-product-buttons,    /* Wrapper de botones Ekommart */
body .products .product .product-action,
body .products .product .product-buttons,
body .products .product .group-button,
body .products .product .group-buttons-wrapper,
body .products .product .tinvwl_add_to_wishlist_button,
body .products .product .tinvwl-loop-button-wrapper,
body .products .product .yith-wcwl-add-to-wishlist,
body .products .product .woosw-btn,
body .products .product .wcboost-wishlist-button,
body .products .product .wishlist-btn,
body .products .product .wishlist-button,
body .products .product .tinv-wishlist {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ocultar botón "Select Options" y cualquier botón de WooCommerce en la card */
body .products .product .button,
body .products .product .added_to_cart {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ajustar parte inferior de la tarjeta para que no quede hueco extra */
body .products .product .price {
    margin-bottom: 8px !important;   /* puedes bajar a 4px si quieres aún menos espacio */
    padding-bottom: 0 !important;
}

body .products .product .product-inner,
body .products .product .item-inner,
body .products .product {
    padding-bottom: 10px !important; /* aire mínimo bajo el precio */
}

/* (Opcional) Cursor de mano para indicar que la card es clicable */
body .products .product {
    cursor: pointer !important;
}

/* ============================================
   REACTIVAR CLICK EN TODA LA CARD DEL PRODUCTO
   ============================================ */

/* Asegurar que el enlace principal cubre toda la card */
body .products .product a.woocommerce-LoopProduct-link {
    position: absolute !important;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* por encima de imagen, por debajo de iconos (que ya no existen) */
}

/* Permitir clic aunque haya otros elementos superpuestos */
body .products .product .product-inner,
body .products .product .item-inner {
    position: relative !important;
}

/* Evitar que otros divs bloqueen el clic */
body .products .product * {
    pointer-events: none !important;
}

body .products .product a.woocommerce-LoopProduct-link {
    pointer-events: auto !important;
}

@media(max-width:640px){
  .quality-compare-min col:nth-child(1) { width:45%; }
  .quality-compare-min col:nth-child(2) { width:25%; }
  .quality-compare-min col:nth-child(3) { width:30%; }

  .quality-compare-min th,
  .quality-compare-min td {
    padding:7px 0;
    font-size:13.5px;
    line-height:1.45;
  }

  .quality-compare-min .high {
    font-weight:600;
  }
}

