.products
{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nanika-product-card
{
    min-width: 0;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(32, 27, 21, 0);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

.nanika-product-card:hover
{
    transform: translate3d(0, -3px, 0);
    box-shadow: 0 12px 30px rgba(32, 27, 21, 0.08);
}

.product-card-image
{
    position: relative;
    aspect-ratio: 1.12 / 1;
    display: block;
    overflow: hidden;
    background: white;
}

.product-card-image__link
{
    width: 100%;
    height: 100%;
    display: block;
}

.product-card-image img
{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transform: translate3d(0, 0, 0) scale(1);
    backface-visibility: hidden;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.nanika-product-card:hover .product-card-image img
{
    transform: translate3d(0, 0, 0) scale(1.035);
}

.product-card-favourite
{
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
}

.product-card-favourite svg
{
    width: 18px;
    height: 18px;
}

.onsale
{
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 6px 8px;
    background: #ffffff;
    font-size: 9px;
    letter-spacing: 0.1em;
}

.product-card-body
{
    padding: 14px 14px 12px;
    display: grid;
    grid-row: span 4;
}

.product-card-brand
{
    display: block;
    margin-bottom: 7px;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card-title
{
    display: block;
}

.product-card-title h2
{
    min-height: 42px;
    margin: 0 0 7px;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.15;
}

.product-card-price
{
    min-height: 18px;
    margin-bottom: 11px;
    font-size: 12px;
    font-weight: 600;
    margin-top:auto;
}

.product-card-price del
{
    margin-right: 5px;
    color: var(--color-text2);
    font-weight: 400;
}

.product-card-actions
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 8px;
}

.product-card-actions .button
{
    min-height: 38px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid var(--color-line);
    border-radius: 3px;
    background: transparent;
    color: var(--color-text);
    text-align: center;
    font-size: 10px;
    line-height: 1.2;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.product-card-actions .button:hover
{
    border-color: var(--color-text);
    background: #f7f4ef;
}

.product-card-cart-icon
{
    min-height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--color-line);
    border-radius: 3px;
}

.product-card-cart-icon svg
{
    width: 17px;
    height: 17px;
}

.product-card-actions .added_to_cart
{
    display: none;
}

@media (max-width: 1200px)
{
    .products
    {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px)
{
    .products
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }
}

@media (max-width: 480px)
{
    .product-card-body
    {
        padding: 11px 10px 10px;
    }

    .product-card-title h2
    {
        min-height: 37px;
        font-size: 15px;
    }

    .product-card-actions
    {
        grid-template-columns: 1fr;
    }

    .product-card-actions .button:nth-child(3)
    {
        display: none;
    }
}
