/**
 * AdvancedProductList by mtwb
 *
 * NOTICE OF LICENSE
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to info@mtwb.de so we can send you a copy immediately.
 *
 * @category    Mtwb
 * @package     Mtwb_AdvancedProductList
 * @author      Daniel Bachmann <info@mtwb.de>
 * @copyright   Copyright (c) 2021 mtwb
 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */

/* Bootstrap classes */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto
}

@media (min-width: 576px) {
    .container {
        max-width: 440px
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 712px
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 880px
    }
}

.row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px
}

.col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 30px;
}

@media (min-width: 576px) {
    .col {
        -ms-flex: 0 0 190px;
        flex: 0 0 190px;
        max-width: 190px
    }
}

@media (min-width: 768px) {
    .col {
        -ms-flex: 0 0 205px;
        flex: 0 0 205px;
        max-width: 205px;
    }
}

@media (min-width: 1200px) {
    .col {
        -ms-flex: 0 0 283px;
        flex: 0 0 283px;
        max-width: 283px;
    }
}

/* mtwb styles */

.advancedproductlist {
    margin: 0 0 15px;
}

.advancedproductlist .title,
.advancedproductlist .showall {
    display: block;
    text-align: center;
    margin: 0 0 10px;
}

.advancedproductlist .showall {
    background: #900000;
    color: #fff;
    display: block;
    font-size: 12px;
    width: 100px;
    margin: 0 auto 20px;
}

.advancedproductlist .product-image img {
    width: 100%;
    height: auto;
}

.advancedproductlist .old-price,
.advancedproductlist .special-price { display: inline-block; }

.advancedproductlist .old-price { margin: 0 6px 0 0; }
.advancedproductlist .old-price .price {
    text-decoration: line-through;
    font-size: small;
}
.advancedproductlist .special-price { margin: 0; }

/* Fix for core web vitals */
.products-carousel > .item:not(:nth-child(-n+3)) { display: none; }
.products-carousel > .item:not(:nth-child(-n+3) img ) { display: none; }
.products-carousel > .item:nth-child(-n+3) { width: 33%; }

.products-carousel .product-image,
.products-carousel .product-info,
.products-carousel .link-actions,
.products-carousel .button-actions {
    margin: 0 15px;
}

.products-carousel .item {
    display: inline-block;
    position: relative;
}

.products-carousel .product-image {
    display: block;
    position: relative;
}

.products-carousel .slick-prev,
.products-carousel .slick-next {
    z-index: 1;
    width: 37px;
    height: 37px;
}

.products-carousel .slick-prev:before,
.products-carousel .slick-next:before {
    font-size: 2.3rem;
    color: #000;
}

.products-carousel .slick-prev { left: -22px; }
.products-carousel .slick-next { right: -22px; }

/* new styles */
.bestseller .products-carousel .product-image {
    display: block;
    border: 5px solid #ff0000;
}

.bestseller .product-info {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    height: 100%;
    margin: 0;
}

.bestseller .product-name {
    display: block;
    background: #900000;
    color: #fff;
    border: 4px solid #fff;
    border-radius: 10px;
    padding: 0 5px;
    width: 65%;
    height: auto!important;
    margin: 10px 0 0 10px;
	text-transform: none;
}

.bestseller .price-box {
    bottom: 10px;
    right: 15px;
    position: absolute;
    background: #900000;
    color: #fff;
    border: 4px solid #fff;
    border-radius: 10px;
    padding: 0 16px;
}

.bestseller .special-price { margin: 0; }

.bestseller .price,
.bestseller .special-price .price {
    color: #fff!important;
    font-size: 1.5rem;
}

.bestseller .einheit { color: #fff!important; }

.sales .products-grid .product-name {
    font-size: 14px;
    height: 70px;
    font-weight: bold;
    text-transform: none;
}

.sales .price-box {
    border-top: 1px solid #000;
    margin: 0;
    padding: 5px 0;
    text-align: right;
}

.sales .delivery {
    color: #000;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 8px 0 8px 30px;
    background: url(../images/check.png) no-repeat 0;
}

.sales .pangv {
    display: inline;
}

.sales .amlabel-table2 {
    overflow: unset;
}

.sales .amlabel-txt2 {
    top: 3px;
    right: 6px;
}