/*ESTE CSS ES PARA DEFINIR LA CARD DEL PRODUCTO EN LOOP
COMO SE VE EL PRODUCTO CUANDO SE MUESTRA EN EL LOOP DE PRODUCTOS EN:
- SHOP
- CAT
- TAX
-  BRAND*/
/* ===========================
   Card
=========================== */

.product-card{

    position:relative;
    list-style:none;
    background: #FFF;
    padding: 12px;
    border-radius: 6px;
    
}

/* Todo clickeable */
.product-card__link{

    display:block;
    text-decoration:none;
    color:inherit;

}

/* ===========================
   Imagen
=========================== */
.woocommerce-js ul.products li.product a img {

    margin: 0;
    box-shadow: none;
    height: unset;

}

.product-card__image {
    position: relative;
    overflow: hidden;
    background: var(--color-background);
    height: auto;
    border-radius: 8px;
}

.product-card .product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


.product-card:hover img{

    transform:scale(1.03);

}

/* ===========================
   Badge oferta
=========================== */

.product-card__sale{

    position:absolute;
    top:12px;
    left:12px;
    background:var(--color-red);
    color: var(--button-text);
    padding:5px 8px;
    font-size:12px;
    font-weight:700;
    border-radius:6px;

}

/* ===========================
   Contenido
=========================== */

.product-card__content{

    padding:15px;

}

h2.product-card__title{

    margin: 0px;
    font-size: 14px;
    font-weight:600;
    text-transform:uppercase;
    color: var(--color-text);
}

/* ===========================
DESCRIPCION CORTA DEL PRODUCTO | Entre el titulo y el precio, se muestra solo si tiene descripcion corta
=========================== */

div.product-card_short_description{
    color: var(--color-text-long);
    font-size: 12px;
}


/* ===========================
   Precio oficial - con la rebaja, si tiene
=========================== */
.product-card__price, div.product-card__price del{

    font-size:18px;
    font-weight:600;
    color: var(--color-sale-price);

}

/* Precio anterior sin la rebaja*/
div.product-card__price del{

    color: var(--color-regular-price);
    margin-right:8px;
    font-size:12px;

}

/* Precio oferta */
.product-card__price ins{

    text-decoration:none;

}

/* ===========================
   DIV DE TITULO Y CORAZON + TITULO
=========================== */

.product-card__header{

    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:6px;

}

.product-card__title{

    flex:1;

}

/*ACA EL CORAZON DE LA WISHLIST VA CON ESTILO PORQUE TIENE POSICION ABSOLUTA Y EN EL PRODUCTO INDIVIDUAL NO, TIENE SU ESTILO EN SU CSS*/
.product-card > .product-card__wishlist{

    position:absolute;
    top:12px;
    right:12px;
    z-index:20;

}    

/* ==========================
  ESTILO CORAZON DE Wishlist - Card
========================== */

.product-card__wishlist {

    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    border-radius: 50%;

}

.product-card__wishlist .yith-wcwl-add-to-wishlist-button {

    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;

}

.product-card__wishlist .yith-wcwl-icon {

    width: 20px;
    height: 20px;
    /* color del ocrazon*/
    filter: brightness(0) saturate(100%)
            invert(79%)
            sepia(13%)
            saturate(480%)
            hue-rotate(345deg)
            brightness(91%)
            contrast(88%);
}

.product-card__wishlist .yith-wcwl-add-to-wishlist-button__label {
    display: none;
}

/* ==========================================
RESULTADOS DE BÚSQUEDA
========================================== */

body.search ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Titulo: resultados de bsuqueda para ... */

h1.search-results-title{

    font-family: var(--font-family);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    margin: 20px 0;

}

body.search ul.products li.product {

    width: auto;
    max-width: 100%;
    margin: 10px 0;
    padding: 0;
    float: none;

}


/* ==========================================
MOBILE
========================================== */

@media (max-width: 921px) {

    body.search ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    h1.search-results-title{
        font-size: 16px;
    }

}