/* ================== Variables de marca ================== */
:root{
    --fa-black: #0D0D0D;      /* Negro Carbón */
    --fa-red:   #9E1B1B;      /* Rojo Óxido Deportivo */
    --fa-gray:  #2C2C2C;      /* Gris Acero Medio */
    --fa-white: #F3F3F3;      /* Blanco Titanio Claro */
    --fa-cta:   #FF6B00;      /* Naranja Deportivo (CTA) */
  }
  
  /* Tipografías de marca */
  .woocommerce ul.products li.product,
  .woocommerce ul.products li.product *{
    font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  }
  .woocommerce ul.products li.product .woocommerce-loop-product__title{
    font-family: Montserrat, Poppins, Arial, sans-serif;
    font-weight: 800;
    letter-spacing: .2px;
  }
  
  /* ================== Tarjeta base ================== */
  .woocommerce ul.products li.product{
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    padding: 14px 14px 16px;
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
  }
  .woocommerce ul.products li.product:hover{
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0,0,0,.10);
  }
  
  /* Imagen centrada con marco limpio */
  .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
  .woocommerce ul.products li.product .woocommerce-loop-product__link{
    display: block;
    position: relative;
    border-radius: 10px;
    background: linear-gradient(160deg, var(--fa-black), var(--fa-gray)); /* fondo oscuro premium */
  }
  .woocommerce ul.products li.product .attachment-woocommerce_thumbnail{
    display: block;
    margin: 18px auto;
    max-width: 88%;
    height: auto;
    transition: transform .25s ease;
  }
  .woocommerce ul.products li.product:hover .attachment-woocommerce_thumbnail{
    transform: scale(1.02);
  }
  
  /* Badge “Sale” compacto, arriba-izquierda */
  .woocommerce span.onsale{
    left: 10px !important; right: auto !important; top: 10px !important;
    background: var(--fa-cta) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    padding: 6px 8px !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    text-transform: none !important;
  }
  
  /* ================== Contenido inferior ================== */
  .woocommerce ul.products li.product .woocommerce-loop-product__title{
    margin: 10px 0 6px;
    font-size: 16px;
    color: var(--fa-black);
  }
  .woocommerce ul.products li.product .star-rating{
    float: none !important;
    margin: 4px 0 8px !important;
    opacity: .9;
  }
  
  /* Precio: nuevo fuerte / viejo gris claro */
  .woocommerce ul.products li.product .price{
    display: block;
    margin: 2px 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--fa-black);
  }
  .woocommerce ul.products li.product .price ins{
    text-decoration: none;
    margin-right: 8px;
  }
  .woocommerce ul.products li.product .price del{
    color: #868686;
    opacity: .9;
    font-weight: 500;
  }
  
  /* ================== Botón CTA ================== */
  .woocommerce ul.products li.product .button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    background: var(--fa-cta);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .2px;
    border: none;
    box-shadow: 0 10px 22px rgba(255,107,0,.25);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    text-decoration: none !important;
  }
  .woocommerce ul.products li.product .button:hover{
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(255,107,0,.32);
    filter: brightness(1.02);
  }
  
  /* ================== Iconografía flotante (si la usas) ================== */
  .vineta-actions{
    position: absolute !important;
    right: 10px;
    top: 50%;
    transform: translate(8px, -50%);
    display: flex; flex-direction: column; gap: 10px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .woocommerce ul.products li.product:hover .vineta-actions{
    opacity: 1; visibility: visible; transform: translate(0, -50%);
  }
  .vineta-actions .vineta-btn,
  .vineta-actions .vineta-btn > a,
  .vineta-actions .vineta-btn > button{
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
    display: grid; place-items: center;
    color: var(--fa-black) !important;
    pointer-events: auto;
  }
  .vineta-actions svg{ width: 18px; height: 18px; }
  
  /* FIX Wishlist centrado, apaga textos/elementos del plugin (TI o YITH) */
  .vineta-actions .vineta-btn--wishlist,
  .vineta-actions .vineta-btn--wishlist > *,
  .vineta-actions .vineta-btn--wishlist a,
  .vineta-actions .vineta-btn--wishlist button{
    display:flex !important; align-items:center !important; justify-content:center !important;
    width:40px !important; height:40px !important; padding:0 !important; margin:0 !important; border:none !important; border-radius:50% !important; background:#fff !important;
  }
  .vineta-actions .vineta-btn--wishlist a:before,
  .vineta-actions .vineta-btn--wishlist button:before,
  .vineta-actions .vineta-btn--wishlist .tinvwl_add_to_wishlist-text,
  .vineta-actions .vineta-btn--wishlist .feedback,
  .vineta-actions .vineta-btn--wishlist .tinvwl-tooltip,
  .vineta-actions .vineta-btn--wishlist .yith-wcwl-tooltip,
  .vineta-actions .vineta-btn--wishlist .yith-wcwl-add-to-wishlist a > *:not(svg){
    content:none !important; display:none !important; font-size:0 !important; line-height:0 !important;
  }
  .vineta-actions .vineta-btn--wishlist svg{ width:18px !important; height:18px !important; display:block !important; }
  
  /* ================== Micro-ajustes responsivos ================== */
  @media (max-width: 480px){
    .woocommerce ul.products li.product{ padding: 12px; border-radius: 12px; }
    .woocommerce ul.products li.product .woocommerce-loop-product__title{ font-size: 15px; }
    .woocommerce span.onsale{ font-size: 10px !important; padding: 5px 7px !important; }
    .vineta-actions{ right: 8px; gap: 8px; }
  }
  

  /* Restaurar fuente original de las estrellas */
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .star-rating::before,
.woocommerce ul.products li.product .star-rating span::before{
    font-family: 'star' !important;
}
