.woocommerce ul.products li.product,
.card, .product-card {
    position: relative;
}

.card, .product-card {
    flex: 0 0 280px;
    aspect-ratio: 4/5;
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    border-radius: 8px;
    background: var(--card-bg);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover, .product-card:hover {
    transform: scale(1.045);
    border-color: var(--accent-color);
    box-shadow: 0 0 25px -5px #cc333380;
}

.product-image-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-btn {
    position: absolute;
    top: .6rem;
    right: .6rem;
    z-index: 10;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    color: #fff;
    background: #0006;
    backdrop-filter: blur(4px);
    font-size: 1.25rem;
    transition: all .2s ease;
}

.favorite-btn:hover {
    background: #c339;
    border-color: #fff6;
}

.favorite-btn.is-favorite {
    color: var(--accent-color);
    background: #000c;
    border-color: var(--accent-color);
}

.card-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 3rem 1.2rem 1.2rem;
    background: linear-gradient(to top, rgba(0,0,0,.96), transparent);
}

.product-title {
    opacity: 0;
    transition: opacity .2s ease;
    font-size: 1.2rem;
    margin-bottom: .35rem;
    color: #fff;
}

.product-card:hover .product-title {
    opacity: 1;
}

.card-overlay .badge {
    display: inline-flex;
    margin-bottom: .6rem;
    padding: .28rem .55rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.card-overlay .price {
    display: block;
    margin-top: .75rem;
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
}
