
section.products {
    margin: 2em 0;
}

section.slider + section.products {
    margin-top: 2em;
}

.contenttabsdata > section.products:first-child {
    margin: 0;
}

section.products + footer {
    margin-top: 3em;
}

section.products .products-title {
    padding-top: 2px;
    padding-bottom: 0;
    max-width: 960px;
    margin: 0 auto 1em;
    text-align: center;
}

section.products .order-by-container {
    text-align: left;
}

section.products .cards {
    --gapX: 1em;
    --gapY: 1em;
    --cols: 4;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 1em 0;
    gap: var(--gapY) var(--gapX);
    flex-grow: 1;
    position: relative;
}

section.products .search-result .notFound {
    font-weight: bold;
    margin: 3em 0;
    color: brown;
}

.contenttabsdata section.products .cards {
    margin: 0;
}

section.products .cards.centered {
    justify-content: center;
}

section.products .card {
    width: calc(100% / var(--cols) - var(--gapX) / var(--cols) * (var(--cols) - 1));
    padding: 0;
    margin: 0;
    text-align: center;
    /*border: 1px solid #dedede;*/
    box-sizing: border-box;
    position: relative;
}

@media screen and (min-width: 1600px) {
    section.products .cards {
        --cols: 5;
    }
}

section.products .card .packing {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 0.1em 0.5em;
    right: 1em;
    z-index: 1;
    border: 1px solid #dedede;
}


section.products .img-wrapper {
    position: relative;
    display: block;
    height: 200px;
}

section.products .img-wrapper:before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

section.products .img {
    position: absolute;
    height: inherit;
    width: 100%;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    moz-transition: opacity ease 0.2s;
    webkit-transition: opacity ease 0.2s;
    transition: opacity ease 0.2s;
    background-color: #fff;
}

section.products .img:first-of-type {
    opacity: 1;
}

section.products .img-wrapper:hover .img:nth-of-type(2) {
    opacity: 1;
}

section.products .img[data-src] {
    opacity: 0;
    moz-transition: opacity ease 1s;
    webkit-transition: opacity ease 1s;
    transition: opacity ease 1s;
}

section.products .text-wrapper {
    margin-top: 0.5em;
}

section.products .btns-wrapper {
    /*margin-top: 1em;*/
}

section.products .card .artikul {
    font-size: 10pt;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
    max-width: 100%;
    overflow: hidden;
}

section.products .card .artikul span {
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.65);
    color: #808080;
    padding: 0 0.5em;
}

section.products .card .novinka {
    font-size: 8pt;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    text-transform: uppercase;
}

section.products .card .novinka span {
    color: #fff;
    background-color: forestgreen;
    padding: 0 0.5em;
}

section.products .card .rating {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 9pt;
    padding: 0.5em;
}

section.products .card .name {
    margin-top: 0.5em;
    font-size: 0.9em;
}

section.products .card .name a {
    /*font-weight: 400;*/
    white-space: normal;
    line-height: 1em;
    color: #333;
    text-decoration: none;
}

section.products .card .name a:hover {
    /*text-decoration: underline;*/
    /*color: #b10034;*/
}

section.products .card .descr {
}

section.products .card .price-wrapper {
    font-size: 1.2em;
    font-weight: 700;
    text-align: left;
}

section.products .card .price-wrapper s {
    text-align: left;
    font-size: 0.7em;
    line-height: 0.4em;
    color: #c0c0c0;
    display: none;
}

section.products .card .price-wrapper .discount-tag {
    display: inline-block;
    padding: 0 3px;
    font-size: 0.7em;
    font-weight: 400;
    border-radius: 3px;
    border: 1px solid red;
    color: red;
}

section.products .card .price-wrapper s ~ .price {
    color: red;
}

section.products .card .price-wrapper .sklad {
    font-size: 10pt;
    font-weight: 400;
    text-align: left;
    color: #3f7506;
    margin-top: -5px;
    margin-left: 2px;
}

section.products .card .price-wrapper .sklad.no {
    color: #b10034;
}

section.products .card .price,
section.products .card .price-currency {
    display: inline;
    /*vertical-align: middle;*/
}

section.products .card .button {
    min-width: auto;
    line-height: 2em;
    height: auto;
    padding: 0 0.5em;
    /*border-radius: 4px;*/
    /*background-color: #dedede;*/
    /*color: #333;*/
}

section.products .card .button .icon {
    margin: 0;
}

section.products .card .button.incart {
    /*background-color: #b10034;*/
    /*color: #fff;*/
}


section.products .collection-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-flow: row;
    flex-wrap: nowrap;
    margin: 0 auto;
    max-width: 1800px;
    padding: 0 2em;
}


section.products .collection-wrapper .products-wrapper {
    padding-left: 2em;
    width: 100%;
    position: relative;
}

section.products.noFilters .products-wrapper {
    padding-left: 0;
}

section.products.noFilters .collection-wrapper {
    padding: 0;
}

section.products .collection-wrapper > .products-wrapper:first-child {
    padding: 0;
    max-width: 1200px;
    margin: auto;
}

section.products .collection-wrapper .products-wrapper.loading:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 2;
}

@media screen and (max-width: 1200px) {
    section.products .cards {
        --cols: 3;
    }
}

@media screen and (max-width: 980px) {
    section.products .cards {
        --cols: 4;
    }

    section.products .collection-wrapper {
        display: block;
    }
}

@media screen and (max-width: 800px) {
    section.products .cards {
        --cols: 3;
    }
}

@media screen and (max-width: 600px) {
    section.products .img-wrapper {
        height: 180px;
    }

    section.products .cards {
        --cols: 2;
    }

    section.products .card .text-wrapper,
    section.products .card .btns-wrapper {
        text-align: center;
    }

}