/* SD: B2C (Uptown) promo carousel "In de kijker" (Components/PromotionSlider).
   Mirrors the theme jCarousel (SevenSpikes JCarousel, Uptown):
   - title = Uptown section title (.product-grid .title) with the jCarousel arrows on the bottom border
   - 1 / 2 / 3 / 4 cards per view (owl responsive in promo-carousel.js), 25px gutter, cards flush with the section edges */

/* ---------- Title ---------- */
.home-page .promo-container .products-wrapper-promotion > .title {
    position: relative;
    width: 80%;                          /* Uptown section width < 481px */
    margin: 0 auto 50px;
    padding: 10px;
    font-size: 22px;
    font-weight: normal;
    line-height: normal;
    text-align: center;
    border-bottom: 1px solid #f1f1f1;
    color: #454545;
    box-sizing: border-box;
}
@media all and (min-width: 481px)  { .home-page .promo-container .products-wrapper-promotion > .title { width: 90%; } }
@media all and (min-width: 1025px) { .home-page .promo-container .products-wrapper-promotion > .title { width: 1000px; } }
@media all and (min-width: 1281px) { .home-page .promo-container .products-wrapper-promotion > .title { width: 1200px; } }

.promo-container .products-wrapper-promotion > .title strong {
    display: inline-block;
    padding: 0 0 15px;                   /* jCarousel: room for the arrows on the border */
    font-size: 22px;
    font-weight: normal;
    color: #4d4d4d;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* the theme jCarousel title gets the same box (it is 5px off by default: margin 55px / padding 10px 0) */
.home-page .nop-jcarousel .carousel-title {
    margin: 0 0 50px;
    padding: 10px;
}

/* ---------- Arrows (copy of .nop-jcarousel .slick-prev/.slick-next) ---------- */
.promo-container .products-wrapper-promotion > .title .slick-arrow {
    display: none;                       /* shown by promo-carousel.js only when there is something to slide */
    position: absolute;
    bottom: -15.5px;
    width: 31px;
    height: 31px;
    padding: 0;
    font-size: 0;
    outline: 1px solid #f1f1f1;
    border: 2px solid transparent;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 2;
    transition: all .2s ease;
}
.promo-container .products-wrapper-promotion > .title.has-navigation .slick-arrow { display: block; }
.promo-container .products-wrapper-promotion > .title .slick-prev {
    left: 50%;
    margin-left: -33.5px;
    background-image: url('/Plugins/SevenSpikes.Nop.Plugins.JCarousel/Themes/Uptown/Content/images/prev-horizontal.png');
    box-shadow: -6px 0 0 10px #fff;
}
.promo-container .products-wrapper-promotion > .title .slick-next {
    right: 50%;
    margin-right: -33.5px;
    background-image: url('/Plugins/SevenSpikes.Nop.Plugins.JCarousel/Themes/Uptown/Content/images/next-horizontal.png');
    box-shadow: 6px 0 0 10px #fff;
}
.promo-container .products-wrapper-promotion > .title .slick-prev:hover {
    background-color: #e56363;
    background-image: url('/Plugins/SevenSpikes.Nop.Plugins.JCarousel/Themes/Uptown/Content/images/prev-horizontal-hover.png');
    border-color: #fff;
}
.promo-container .products-wrapper-promotion > .title .slick-next:hover {
    background-color: #e56363;
    background-image: url('/Plugins/SevenSpikes.Nop.Plugins.JCarousel/Themes/Uptown/Content/images/next-horizontal-hover.png');
    border-color: #fff;
}

/* ---------- Owl carousel ----------
   slick-style gutter: the carousel is 25px wider than the section and every item has 12.5px padding,
   so the first/last card line up with the section edges exactly like the jCarousel. */
.promo-container .promo-slider.owl-carousel {   /* also before init: owl measures this width */
    width: calc(100% + 25px);
    margin-left: -12.5px;
}
.promo-container .promo-slider.owl-carousel .owl-item {
    padding: 0 12.5px;
    box-sizing: border-box;
}
.promo-container .promo-slider.owl-carousel .item-box {
    float: none;
    width: 100%;
    margin: 0;
}
.promo-container .promo-slider.owl-carousel .owl-item img {
    width: auto;                         /* undo owl.carousel.css width:100% -> theme picture styles */
}
.promo-container .promo-slider.owl-carousel .product-item-picture-wrapper {
    position: relative;                  /* keeps the "x in je winkelwagen" overlay and the button inside the picture */
}
.promo-container .promo-slider .owl-dots,
.promo-container .promo-slider .owl-nav {
    display: none;
}
