.product-card {
    background: #fff;
    position: relative;
    box-shadow: 0 0 2px var(--border-color-dark)
}

.product-card img {
    display: block;
    max-width: 100%;
    height: auto;
    -o-object-fit: scale-down;
    object-fit: scale-down;
    -o-object-position: center;
    object-position: center
}

.product-card .budges, .product-card .user-actions-container {
    position: absolute;
    width: -moz-max-content;
    width: max-content;
    top: 10px;
    z-index: 2;
    display: grid
}

.product-card .discount {
    background: var(--red-color);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 10px
}

.product-card .budges {
    left: 10px;
    grid-row-gap: 8px
}

.product-card .budges > * {
    width: -moz-max-content;
    width: max-content
}

.product-card .user-actions-container {
    grid-row-gap: 5px;
    right: 10px
}

.product-card .user-actions-container button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color-dark);
    background: #ffffffbf
}

.product-card .user-actions-container button.active {
    background: var(--primary-color);
    border-color: var(--primary-color)
}

.product-card .availability-status {
    font-size: 13px;
    font-weight: 400
}

.product-card .availability-status.available {
    color: #4caf50
}

.product-card .availability-status.not-available:not(.to-order-available) {
    color: var(--red-color-light)
}

.product-card .availability-status.not-available.to-order-available {
    color: var(--text-color-light)
}

.product-card .title {
    display: block;
    max-width: 100%;
    line-height: 1.3;
    color: var(--text-color-dark);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.product-card .price {
    line-height: 1
}

.product-card .price .block-title {
    color: var(--text-color-dark);
    margin-bottom: 10px
}

.product-card .price .currency {
    font-size: .8em;
    margin-left: -.14em
}

.product-card .price.with-discount {
    display: grid;
    gap: 5px;
    width: -moz-max-content;
    width: max-content
}

.product-card .price.with-discount .actual {
    color: var(--red-color)
}

.product-card .price.with-discount .old {
    text-decoration: line-through;
    font-size: 14px
}

.product-card .add-to-cart-btn, .product-card .order-btn {
    width: 100%;
    max-width: 340px;
    font-size: 14px
}

.product-card.view-type-plate {
    position: relative;
    display: grid;
    grid-template-rows:max-content max-content 1fr max-content max-content;
    grid-row-gap: 12px
}

.product-card.view-type-plate .variants-select-container {
    gap: 15px
}

.product-card.view-type-plate .variants-select-container > div:first-child .variants {
    justify-content: flex-start
}

.product-card.view-type-plate .add-to-cart-btn {
    justify-self: center
}

.product-card.not-available:not(.to-order-available) img {
    filter: grayscale(1);
    opacity: .8
}

.product-card.not-available:not(.to-order-available) .title, .product-card.not-available:not(.to-order-available) .price {
    opacity: .7
}

.category-root-page .children-list .container {
    padding-top: 30px;
    padding-bottom: 30px;
    display: grid;
    grid-gap: 15px
}

.category-root-page .children-list .container .item {
    display: grid;
    grid-gap: 10px;
    justify-content: center;
    font-weight: 600;
    text-align: center;
    background: #fff;
    padding: 15px;
    box-shadow: 0 0 2px var(--border-color);
    transition: all var(--animation-time) ease;
    border-radius: var(--site-default-border-radius)
}

.category-root-page .children-list .container .item img {
    display: block;
    margin: auto;
    -o-object-fit: scale-down;
    object-fit: scale-down;
    -o-object-position: center;
    object-position: center
}

.category-root-page .products-group {
    display: grid
}

.category-root-page .products-group .group-title {
    grid-column: 1/-1;
    margin-bottom: 10px
}

.category-root-page .products-group .go-to-list-card {
    display: flex;
    align-items: center;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary-color)
}

.category-root-page .products-group .go-to-list-card.product-card {
    display: flex
}

@media (any-hover: hover) {
    .product-card .user-actions-container button:hover {
        background: var(--primary-color);
        border-color: var(--primary-color)
    }

    .product-card .add-to-cart-btn:hover {
        border-color: var(--primary-color-hover);
        background-color: var(--primary-color-hover)
    }

    .product-card.view-type-plate {
        transition: all var(--animation-time) ease;
        border: 1px solid var(--border-color)
    }

    .product-card.view-type-plate:hover {
        border-color: var(--border-color-dark);
        box-shadow: 0 0 3px var(--border-color-dark)
    }

    .category-root-page .children-list .container .item:hover {
        box-shadow: 0 0 4px var(--border-color-dark)
    }

    .category-root-page .products-group .group-title {
        transition: all var(--animation-time) ease
    }

    .category-root-page .products-group .group-title:hover {
        color: var(--secondary-color-hover);
        text-decoration: underline
    }
}

@media (max-width: 767px) {
    .product-card .title {
        font-size: 14px
    }

    .product-card .price .actual {
        font-size: calc(16px + 2.8 * ((100vw - 320px) / var(--container-max-width-without-unit)))
    }

    .product-card.view-type-plate {
        padding: 7px
    }

    .category-root-page .products-group {
        grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
        grid-gap: 10px
    }

    .category-root-page .products-group .go-to-list-card {
        font-size: 18px
    }
}

@media (min-width: 767px) {
    .product-card .price .actual {
        font-size: calc(16px + 2 * (100vw / var(--container-max-width-without-unit)))
    }
}

@media (min-width: 1330px) {
    .product-card .price .actual {
        font-size: 18px
    }
}

@media (min-width: 768px) {
    .product-card.view-type-plate {
        padding: 15px
    }

    .category-root-page .children-list .container {
        grid-template-columns:repeat(auto-fill, minmax(250px, 1fr))
    }

    .category-root-page .products-group {
        grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
        grid-gap: 15px
    }
}

@media (min-width: 400px) and (max-width: 767px) {
    .category-root-page .children-list .container {
        grid-template-columns:repeat(auto-fill, minmax(150px, 1fr))
    }
}

@media (max-width: 399px) {
    .category-root-page .children-list .container {
        grid-template-columns:repeat(auto-fill, minmax(120px, 1fr))
    }
}
