﻿.article-tiles {
    overflow: hidden;
    display: flow-root;
}

.article-list-wrap {
    display: flex;
    flex-direction: column;
}

.article-list-wrap > .pagination-top {
    order: 1;
}

.article-list-wrap > .article-tiles {
    order: 2;
}

.article-list-wrap > .pagination-bottom {
    order: 3;
}

.product {
    position: relative;
}

body #ctrl_articlelist div.product,
body #ctrl_articleoffer div.product,
body #ctrl_articlenews div.product {
    position: relative;
}

.badge-anchor {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.product-badges {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    z-index: 2;
    pointer-events: none;
}

.product-badge {
    display: inline-block;
    text-align: center;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid currentColor;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.badge-anchor .product-badge {
    margin-bottom: 4px;
    padding: 6px 12px;
    font-size: 12px;
}

.badge-new {
    float: left;
    color: #002554;
}

.badge-offer {
    float: right;
    color: #bb0000;
}

.product.onoffer .customerprice,
.product.onoffer .customergrossprice {
    height: auto;
}

.product.onoffer .customerprice span,
.product.onoffer .customergrossprice span {
    position: static;
    display: block;
    text-align: right;
}

.oldprice {
    color: #777;
    font-weight: normal;
    font-size: 12px;
}

.oldprice s {
    text-decoration: line-through;
}

.offerprice {
    color: #bb0000;
    font-weight: bold;
    font-size: 15px;
}

@media only screen and (min-width: 992px) {
    #ctrl_articleoffer div.sortcolumns,
    #ctrl_articlenews div.sortcolumns {
        padding-bottom: 10px;
        font-size: 13px;
    }

    #ctrl_articleoffer div.product,
    #ctrl_articlenews div.product {
        height: auto;
        border: 0px solid #FFF;
    }
    #ctrl_articleoffer div.product:hover,
    #ctrl_articlenews div.product:hover {
        box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.4);
        background-color: #f7f7f7;
    }
    #ctrl_articleoffer div.product > div,
    #ctrl_articlenews div.product > div {
        overflow: visible;
    }

    #ctrl_articleoffer div.product div.property > span,
    #ctrl_articlenews div.product div.property > span {
        font-size: 12px;
        white-space: normal;
    }

    #ctrl_articleoffer div.product div.addtocartbutton,
    #ctrl_articlenews div.product div.addtocartbutton {
        padding-bottom: 10px;
        padding-left: 0px;
    }
    #ctrl_articleoffer div.product div.addtocartbutton input.flowbutton,
    #ctrl_articlenews div.product div.addtocartbutton input.flowbutton {
        width: 75px;
    }

    #ctrl_articleoffer div.product div.availableinstock span,
    #ctrl_articlenews div.product div.availableinstock span {
        font-size: 14px;
    }
    #ctrl_articleoffer div.product div.availableinstock label,
    #ctrl_articlenews div.product div.availableinstock label {
        font-size: 14px;
    }

    #ctrl_articleoffer div.product i.fa,
    #ctrl_articlenews div.product i.fa {
        padding-right: 3px;
    }
    #ctrl_articleoffer div.product div.articlecompare,
    #ctrl_articlenews div.product div.articlecompare {
        font-size: 12px;
        margin: 10px 0px;
    }

    #ctrl_articleoffer div.pagination,
    #ctrl_articlenews div.pagination {
        display: inherit;
    }

}

.sortcolumns.offer-sort {
    margin: 10px 0 16px;
    padding: 0;
    white-space: normal;
}

.sortcolumns.offer-sort #sortlabel {
    float: none;
    display: inline-block;
    margin: 0 8px 4px 0;
    padding: 0;
    font-weight: bold;
    color: #333;
}

.sortcolumns.offer-sort a.sortorder {
    display: inline-block;
    margin: 0 5px 5px 0;
    padding: 5px 10px;
    border: 1px solid #c9c9c9;
    border-radius: 3px;
    background: #fff;
    background-image: none;
    color: #333;
    font-size: 11px;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

.sortcolumns.offer-sort a.sortorder:hover {
    border-color: #428ed7;
    background: #eef4fb;
    color: #428ed7;
    text-decoration: none;
}

.sortcolumns.offer-sort a.sortorder i {
    margin-left: 6px;
    opacity: 0.45;
}

.sortcolumns.offer-sort a.sortorder:hover i {
    opacity: 1;
}

.sortcolumns.offer-sort a.sortorder.asc,
.sortcolumns.offer-sort a.sortorder.desc {
    padding-right: 10px;
    border-color: #428ed7;
    background: #428ed7;
    background-image: none;
    color: #fff;
    font-weight: bold;
}

.sortcolumns.offer-sort a.sortorder.asc i,
.sortcolumns.offer-sort a.sortorder.desc i {
    opacity: 1;
}

@media only screen and (min-width: 992px) {
    body #ctrl_articlelist div.product,
    body #ctrl_articleoffer div.product,
    body #ctrl_articlenews div.product {
        width: 159px;
        margin: 8px;
        padding: 8px;
    }

    body #ctrl_articlelist div.product div.property > label,
    body #ctrl_articleoffer div.product div.property > label,
    body #ctrl_articlenews div.product div.property > label {
        font-size: 12px;
        white-space: normal;
        max-width: 90px;
        padding-right: 5px;
    }

    body #ctrl_articlelist div.product div.customerprice,
    body #ctrl_articlelist div.product div.customergrossprice,
    body #ctrl_articleoffer div.product div.customerprice,
    body #ctrl_articlenews div.product div.customerprice,
    body #ctrl_articleoffer div.product div.customergrossprice,
    body #ctrl_articlenews div.product div.customergrossprice {
        width: 100%;
    }

}

@media only screen and (min-width: 992px) {
    body #ctrl_articlelist div.product div.pictureexists,
    body #ctrl_articleoffer div.product div.pictureexists,
    body #ctrl_articlenews div.product div.pictureexists {
        height: 155px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body #ctrl_articlelist div.product div.pictureexists img,
    body #ctrl_articleoffer div.product div.pictureexists img,
    body #ctrl_articlenews div.product div.pictureexists img {
        max-height: 125px;
        max-width: 100%;
        height: auto;
        margin: 0;
    }

    body #ctrl_articlelist div.product div.property.name,
    body #ctrl_articleoffer div.product div.property.name,
    body #ctrl_articlenews div.product div.property.name {
        height: 72px;
        min-height: 0;
        overflow: hidden;
    }

}

@media only screen and (min-width: 992px) {

    body #ctrl_article div.body td.properties div.priceline .amountlabel {
        float: left;
        width: 360px;
        margin-right: 20px;
        font-size: 14px;
        font-weight: bold;
        line-height: 28px;
    }

    body #ctrl_article div.body td.properties div.priceline input#amount {
        left: 0;
        width: 46px;
        margin: 0;
    }

}

body #ctrl_article .properties input#amount:focus {
    border-color: #428ed7;
    box-shadow: 0 0 4px rgba(66, 142, 215, 0.6);
    outline: none;
}

body #ctrl_article div.body td.properties div.priceline input.flowbutton,
body #ctrl_article div.body td.properties div.priceline input.button {
    float: right;
    clear: right;
    min-width: 0;
    max-width: none;
    width: 160px;
    height: auto;
    margin: 0 0 10px 0;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.35;
    cursor: pointer;
}

body #ctrl_article div.body td.properties div.priceline input.flowbutton {
    background-color: #002554 !important;
    border: 1px solid #002554 !important;
    color: #fff;
    font-weight: bold;
}

body #ctrl_article div.body td.properties div.priceline input.flowbutton:hover {
    background-color: #01356f !important;
    border-color: #01356f !important;
}

body #ctrl_article div.body td.properties div.priceline input.button {
    background-color: #fff !important;
    border: 1px solid #c0c0c0 !important;
    color: #333;
    font-weight: normal;
}

body #ctrl_article div.body td.properties div.priceline input.button:hover {
    border-color: #002554 !important;
    color: #002554;
}

.nopurchase {
    display: inline-block;
    font-size: 13px;
    font-style: italic;
    color: #555;
    vertical-align: middle;
}

body .product .grossprice label,
body .product .grossprice span,
body .product .price label,
body .product .price span {
    text-decoration: none;
}

@media only screen and (min-width: 992px) {

    body #ctrl_articlelist div.article-tiles,
    body #ctrl_articleoffer div.article-tiles,
    body #ctrl_articlenews div.article-tiles {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    body #ctrl_articlelist div.article-tiles > div.product,
    body #ctrl_articleoffer div.article-tiles > div.product,
    body #ctrl_articlenews div.article-tiles > div.product {
        float: none;
        width: auto;
        margin: 0;
    }

}