.product-grid
{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.product-card
{
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 20px;
}

.product-card,
.product-surface
{
    background-color: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.product-card__form
{
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.product-card__image
{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    margin-bottom: 14px;
}

.product-card__image img
{
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card__body
{
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.product-card__title
{
    min-height: 2.6em;
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.product-card__title a
{
    color: #1f3d5c;
    text-decoration: none;
}

.product-card__title a:hover
{
    color: #0068cb;
    text-decoration: underline;
}

.product-card__description
{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    min-height: 7.25em;
    max-height: 7.25em;
    margin: 0 0 14px;
    overflow: hidden;
    color: #5b6672;
    font-size: 14px;
    line-height: 1.45;
}

.product-card__pricing
{
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 12px;
}

.product-card__old-price
{
    color: #e53935;
    font-size: 14px;
    text-decoration: line-through;
}

.product-card__price
{
    color: #111;
    font-size: 20px;
    font-weight: 700;
}

.product-card__actions
{
    display: flex;
    gap: 8px;
}

.product-card__quantity
{
    flex: 0 0 64px;
    width: 64px;
    height: 40px;
    padding: 0 8px;
    color: #333;
    font-size: 14px;
    background-color: #fff;
    border: 1px solid #cfd6dd;
    border-radius: 4px;
}

.product-card__button
{
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.product-card__button .fa
{
    margin-right: 6px;
}

@media (max-width: 1199px)
{
    .product-grid
    {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px)
{
    .product-grid
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px)
{
    .product-grid
    {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-card
    {
        padding: 16px;
    }

    .product-card__description
    {
        min-height: 0;
    }
}

.product-card__email {
    display: none;
}

.product-grid.product-grid--cart {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.product-grid--cart .product-card {
    padding: 16px;
}

.product-grid--cart .product-card__title,
.product-grid--cart .product-card__description {
    min-height: 0;
}

@media (min-width: 640px) and (max-width: 991px) {
    .product-grid.product-grid--cart {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .product-grid--cart .product-card__actions {
        flex-direction: column;
    }

    .product-grid--cart .product-card__quantity {
        flex: 0 0 40px;
        width: 100%;
    }

    .product-grid--cart .product-card__button {
        flex: 0 0 40px;
    }
}
