/* =========================================================================
 * Venedor-shortcodes: feature_box(_slider), content_box, posts_slider, block, button, mini_cart
 * ====================================================================== */

/* ---------- Feature box ---------- */
.feature-box {
    padding: 20px;
    border: 1px solid transparent;
    transition: background 0.3s ease 0s, border-color 0.2s ease 0s, color 0.3s ease 0s;
}
.feature-box:after {
    display: block;
    content: "";
    clear: both;
}
.feature-box:hover,
.feature-box.hover {
    background: #f7f7f7;
    border-color: #dcdcdc;
}

.feature-box h4 {
    margin: 20px 0;
    font-size: 18px;
    font-weight: bold;
    color: #737373;
    transition: color 0.3s ease 0s;
}
.feature-box a { text-decoration: none !important; }
.feature-box a:hover h4,
.feature-box a:focus h4 { color: #64ba43 !important; }

.feature-box .line {
    display: block;
    margin: 15px auto 0;
    width: 30px;
    height: 3px;
    background-color: #64ba43;
}
.feature-box p {
    font-size: 14px;
    margin-bottom: 10px;
}

.feature-box .feature-image {
    display: inline-block;
    box-sizing: border-box;
    width: 124px;
    height: 124px;
    border-radius: 62px;
    border: 2px solid #dcdcdc;
    background: #f7f7f7;
    text-align: center;
    overflow: hidden;
    transition: background 0.3s ease 0s, border-color 0.2s ease 0s;
}
.feature-box:hover .feature-image { border-color: #64ba43; }
.feature-box .feature-image img {
    display: block;
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 60px;
}

.feature-box .fa {
    font-size: 50px;
    line-height: 120px;
    transition: color 0.3s ease 0s;
}
.feature-box:hover .fa,
.feature-box.noborder .fa { color: #64ba43; }

/* Uitlijning */
.feature-box.text-center { text-align: center; }
.feature-box.text-left   { text-align: left; }
.feature-box.text-right  { text-align: right; }

.feature-box.text-left h4,
.feature-box.text-right h4 {
    display: inline-block;
    margin-top: 0;
    margin-bottom: 0;
}
.feature-box.text-left .line  { width: 75%; margin-left: 0; }
.feature-box.text-right .line { width: 75%; margin-left: 25%; }
.feature-box.text-left .feature-image  { float: left; }
.feature-box.text-right .feature-image { float: right; }

/* border="false" */
.feature-box.noborder {
    border-width: 0 !important;
    background: transparent !important;
}
.feature-box.noborder .feature-image {
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-width: 0 !important;
}
.feature-box.noborder .fa { line-height: 1 !important; }

/* Binnen [background] geen randen */
.shortcode-bg .feature-box,
.shortcode-bg .feature-box:hover,
.shortcode-bg .feature-box.hover { border: none; }


/* =========================================================================
 * Gedeelde carousel (feature_box_slider + posts_slider)
 * ====================================================================== */
.cm-carousel {
    --cm-items: 3;
    --cm-items-tablet: 3;
    --cm-current: 1;
    position: relative;
    padding: 0 40px;
}
@media (min-width: 750px) {
    .cm-carousel { --cm-current: var(--cm-items-tablet); }
}
@media (min-width: 992px) {
    .cm-carousel { --cm-current: var(--cm-items); }
}

.cm-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.cm-carousel-track::-webkit-scrollbar { display: none; }

.cm-carousel-item {
    flex: 0 0 calc(100% / var(--cm-current));
    box-sizing: border-box;
    padding: 0 15px 3px;
    scroll-snap-align: start;
}

/* Pijltjes */
.cm-carousel-nav button {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 35px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #444645;
    color: #fff;
    font-size: 26px;
    line-height: 26px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.cm-carousel-nav button:hover,
.cm-carousel-nav button:focus { background: #64ba43; }
.cm-carousel-prev { left: 0; }
.cm-carousel-next { right: 0; }

/* arrow_pos="arrow-top": pijltjes rechtsboven */
.arrow-top .cm-carousel,
.cm-carousel.arrow-top { padding: 40px 0 0; }
.arrow-top .cm-carousel-nav button { bottom: auto; }
.arrow-top .cm-carousel-prev { left: auto; right: 40px; }

/* arrow_pos="arrow-bottom": pijltjes gecentreerd onder */
.arrow-bottom .cm-carousel,
.cm-carousel.arrow-bottom { padding: 0 0 45px; }
.arrow-bottom .cm-carousel-nav button { top: auto; }
.arrow-bottom .cm-carousel-prev { left: calc(50% - 38px); }
.arrow-bottom .cm-carousel-next { right: calc(50% - 38px); }

/* Alles past in beeld: geen pijltjes */
.cm-carousel.is-static { padding: 0; }
.cm-carousel.is-static .cm-carousel-nav { display: none; }

/* ---------- Feature box slider ---------- */
.feature-slider { margin-bottom: 20px; }

/* ---------- Titels / omschrijving (content_box, sliders) ---------- */
.feature-slider .entry-title,
.related-slider .entry-title,
.shortcode-content .entry-title {
    margin-bottom: 25px;
}
.slider-desc {
    font-size: 17px;
    line-height: 1.2;
    margin-top: -15px;
    margin-bottom: 18px;
}
@media (max-width: 991px) {
    .slider-desc { font-size: 15px; }
}
@media (max-width: 767px) {
    .slider-desc { font-size: 14px; }
}

/* ---------- Content box ---------- */
.shortcode-content { margin-bottom: 20px; }
.shortcode-content:after {
    display: block;
    content: "";
    clear: both;
}

/* ---------- Posts slider (gelijk aan productie / Venedor) ---------- */
.related-slider {
    position: relative;
    margin-bottom: 30px;
}

/* Titel met groene streep, grijze lijn en ruimte voor de pijltjes rechts */
.related-slider h2.entry-title {
    display: flex;
    align-items: center;
    font-size: 42px;
    line-height: 50px;
    margin: 0 0 34px !important;
    padding: 0 105px 0 12px;
    white-space: nowrap;
    overflow: hidden;
}
.related-slider h2.entry-title .inline-title {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}
.related-slider h2.entry-title .line {
    flex: 1 1 auto;
    display: block;
    height: 1px;
    min-width: 20px;
    margin: 0 15px;
    background-color: #e0e0e0;
}

/* Carousel: zelfde 15px goot als de Bootstrap-row in Venedor */
.related-slider .cm-carousel {
    position: static;
    padding: 0;
}
.related-slider .cm-carousel-track {
    margin: 0 -15px;
}
.related-slider .post-item {
    margin-top: 15px;
    padding: 0 15px 3px;
    color: #8f9290;
    font-size: 15px;
    line-height: 1.4286;
}

/* Pijltjes rechtsboven naast de titel */
.related-slider .cm-carousel-nav {
    position: absolute;
    top: 5px;
    right: 0;
    display: flex;
    gap: 2px;
    z-index: 3;
}
.related-slider .cm-carousel-nav button {
    position: static;
    margin: 0;
    width: 50px;
    height: 40px;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    background: #fafafa;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #9f9f9f;
    font-size: 0;
    line-height: 38px;
    text-align: center;
    transition: background 0.3s ease 0s, border-color 0.2s ease 0s, color 0.3s ease 0s;
}
.related-slider .cm-carousel-nav button:before {
    font-family: "FontAwesome";
    font-size: 28px;
}
.related-slider .cm-carousel-prev:before { content: "\f104"; }
.related-slider .cm-carousel-next:before { content: "\f105"; }
.related-slider .cm-carousel-nav button:hover,
.related-slider .cm-carousel-nav button:focus {
    border-color: #64ba43;
    background: #64ba43;
    color: #fff;
    outline: none;
}
.related-slider .cm-carousel.is-static .cm-carousel-nav { display: none; }

/* Zonder titel: pijltjes boven (standaard) of onder (arrow_pos="arrow-bottom") */
.related-slider.notitle .cm-carousel { display: flex; flex-direction: column; }
.related-slider.notitle .cm-carousel-nav { position: static; order: -1; justify-content: flex-end; margin-bottom: 10px; }
.related-slider.notitle.arrow-bottom .cm-carousel-nav { order: 2; justify-content: center; margin: 15px 0 0; }

/* Afbeelding + hover-overlay */
.related-slider .post-item .post-image {
    display: block;
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}
.related-slider .post-item .post-image img {
    display: block;
    width: 100%;
    height: auto;
}
.related-slider .post-image .figcaption {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(68, 70, 69, 0.6);
    opacity: 0;
    transition: all 0.5s ease-in-out 0s;
}
.related-slider .post-image:hover .figcaption,
.related-slider .post-image:focus-within .figcaption { opacity: 1; }

.related-slider .post-image .figcaption .btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    padding: 0;
    border: 1px solid #64ba43;
    border-radius: 3px;
    background: #64ba43;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 34px;
    text-align: center;
    text-decoration: none;
    opacity: 0;
    transition: background 0.2s ease 0s, border 0.3s ease 0s, margin-left 0.4s ease-in-out 0.2s;
}
.related-slider .post-image .figcaption .btn .fa { line-height: 34px; }
.related-slider .post-image .figcaption .btn:hover,
.related-slider .post-image .figcaption .btn:focus {
    border-color: #444645;
    background: #444645;
    color: #e8e8e8;
}
.related-slider .post-image:hover .figcaption .btn,
.related-slider .post-image:focus-within .figcaption .btn { opacity: 1; }
.related-slider .post-image:hover .figcaption .link-button,
.related-slider .post-image:focus-within .figcaption .link-button { margin-left: -46px; }
.related-slider .post-image:hover .figcaption .zoom-button,
.related-slider .post-image:focus-within .figcaption .zoom-button { margin-left: 10px; }

/* Tekst */
.related-slider .post-item .post-title {
    font-family: "PT Sans", sans-serif;
    font-size: 20px;
    font-weight: bold;
    line-height: 25px;
    margin: 3px 0 15px;
}
.related-slider .post-item .post-title a {
    color: #737373;
    text-decoration: none;
    transition: color 0.3s ease 0s;
}
.related-slider .post-item .post-title a:hover,
.related-slider .post-item .post-title a:focus { color: #64ba43; }

.related-slider .post-item p {
    margin: 0 0 15px;
    color: #8f9290;
    font-size: 15px;
}

.related-slider .post-item .entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0;
}
/* Bootstrap .clearfix:after zou anders als derde flex-item meetellen */
.related-slider .post-item .entry-meta:after { content: none; }
.related-slider .post-item .read-more {
    color: #64ba43;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
}
.related-slider .post-item .meta-date {
    display: inline-block;
    padding-top: 2px;
    color: #bdbdbd;
    font-size: 14px;
    font-style: italic;
    line-height: 20px;
}

@media (max-width: 991px) {
    .related-slider h2.entry-title {
        font-size: 38px;
        line-height: 46px;
    }
    .related-slider .cm-carousel-nav button {
        width: 45px;
        height: 35px;
        line-height: 33px;
    }
    .related-slider .cm-carousel-nav button:before { font-size: 25px; }
}
@media (max-width: 767px) {
    .related-slider h2.entry-title {
        font-size: 30px;
        line-height: 36px;
        margin-bottom: 24px !important;
        padding-left: 10px;
        padding-right: 95px;
    }
    .related-slider h2.entry-title .line { display: none; }
    .related-slider .cm-carousel-nav { top: 3px; }
    .related-slider .cm-carousel-nav button {
        width: 40px;
        height: 30px;
        line-height: 28px;
    }
    .related-slider .cm-carousel-nav button:before { font-size: 20px; }
}

/* ---------- Slepen met de muis (alle carousels) ---------- */
.cm-carousel-track { cursor: grab; }
.cm-carousel-track.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
    cursor: grabbing;
    user-select: none;
}
.cm-carousel-track img { -webkit-user-drag: none; user-select: none; }

/* ---------- Lightbox (zoom-knop) ---------- */
.cm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
}
.cm-lightbox img {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
.cm-lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

/* ---------- [block] ---------- */
.shortcode-block:after {
    display: block;
    content: "";
    clear: both;
}

/* ---------- [button] (Venedor-kleuren) ---------- */
.btn-inverse,
.btn-special {
    display: inline-block;
    border: 1px solid #64ba43;
    border-radius: 0;
    background: #64ba43;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease 0s, border-color 0.2s ease 0s, color 0.3s ease 0s;
}
.btn-inverse:hover,
.btn-inverse:focus {
    border-color: #444645;
    background: #444645;
    color: #e8e8e8;
}
.btn-special.btn-inverse:hover,
.btn-special.btn-inverse:focus {
    border-color: #444645;
    background: #444645;
    color: #fff;
}
.btn-lg {
    padding: 10px 20px;
    font-size: 18px;
}

/* ---------- [mini_cart] (gelijk aan productie) ---------- */
.cm-mini-cart {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}
.cm-mini-cart .dropdown-toggle,
.ast-header-account-link.ast-account-action-link.ast-header-account-type-icon.ast-header-account-type-extend-text-profile-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 8px 10px;
    border: 1px solid #64ba43;
    border-radius: 0;
    background: #64ba43;
    box-shadow: none;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.3s ease 0s, border-color 0.2s ease 0s, color 0.3s ease 0s;
}
.cm-mini-cart .dropdown-toggle:after { content: none; } /* Bootstrap-dropdownpijltje uit */
.cm-mini-cart .dropdown-toggle:hover,
.cm-mini-cart .dropdown-toggle:focus,
a.ast-header-account-link.ast-account-action-link.ast-header-account-type-icon:hover,
a.ast-header-account-link.ast-account-action-link.ast-header-account-type-icon:focus {
    border-color: #333;
    background: #333;
    color: #fff;
    text-decoration: none;
}
.cm-mini-cart .cart-icon .fa {
    width: 14px;
    font-size: 14px;
    line-height: 1;
}
.cm-mini-cart .cart-details,
.cm-mini-cart .cart-details .amount {
    color: inherit;
}
.woocommerce-checkout .cm-mini-cart { display: none; }
