.gp-product-card{

    display:flex;

    flex-direction:column;

}

.gp-product-card:hover img{

    transform:scale(1.04);

}

.gp-product-card__info{

    padding-top:14px;

}

.gp-product-card__title{

    font-size:15px;

    margin-bottom:8px;

}

.gp-product-card__title a{

    color:#222;

    text-decoration:none;

}





.gp-product-card__image{
    position:relative;
    display:block;
    overflow:hidden;
    aspect-ratio:1/1;
}

.gp-product-card__image img{

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:100%;

    object-fit:cover;

    transition:opacity .35s ease,
               transform .35s ease;
}

.gp-product-card__image-main{

    opacity:1;
    z-index:2;

}

.gp-product-card__image-hover{

    opacity:0;
    z-index:1;

}

.gp-product-card:hover .gp-product-card__image-main{

    opacity:0;
   transform:scale(1.03);

}

.gp-product-card:hover .gp-product-card__image-hover{

    opacity:1;
    transform:scale(1.03);

}

.gp-product-card__info{
    transition:transform .3s ease;
}

.gp-product-card:hover .gp-product-card__info{
    transform:translateY(-4px);
}

.gp-product-card__price{
    transition:color .3s;
    font-weight:600;
}

.gp-product-card:hover .gp-product-card__price{
    color:var(--gp-accent);
}

.gp-product-card__badges{
    position:absolute;
    top:15px;
    left:15px;
    z-index:10;
}


.gp-product-card__media {
    position: relative;
    overflow: hidden;
}

.gp-product-card__actions {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 5;

    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;

    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.gp-product-card:hover .gp-product-card__actions,
.gp-product-card:focus-within .gp-product-card__actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.gp-product-action {
    min-height: 42px;
    padding: 10px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #111;
    background: rgba(255, 255, 255, .95);
    color: #111;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.gp-product-action:hover,
.gp-product-action:focus-visible {
    background: #111;
    color: #fff;
}

.gp-product-action--cart {
    min-width: 88px;
}

.gp-product-action.loading {
    opacity: .6;
    pointer-events: none;
}

.gp-product-action.added {
    background: #111;
    color: #fff;
}

/* Evita que el enlace "Ver carrito" que inserta WooCommerce
   descoloque la tarjeta. */
.gp-product-card a.added_to_cart {
    display: none;
}

@media (hover: none) {
    .gp-product-card__actions {
        position: static;
        margin-top: 10px;

        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}