.card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bs-gray-300);
}

.card-title {
    width: 100%;
    min-height: 50px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    color: black !important;
}

.card-img-top {
    height: auto;
    width: 100%;
    object-fit: contain;
    max-height: 250px;
}

.card-img-container img {
    height: auto;
    max-height: 200px;
    width: 70%;
    margin: 0 auto 0 auto;
}

.row-cols-2 .col,
.row-cols-md-3 .col,
.row-cols-lg-4 .col {
    display: flex;
}

.card-img-container {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card .btn {
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
    /* Ensures the text stays on one line */
}

@media (max-width: 576px) {
    .card .btn {
        font-size: 0.8rem;
    }
}

#mainNav {
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#mainNav.scrolled {
    background-color: #1871a4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991.98px) {
    #mainNav.scrolled {
        margin-top: 18px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 768px) {
    #mainNav.scrolled {
        margin-top: 0;
        background-color: #1871a4;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
}

#stick-here {
    font-size: 2rem;
    position: sticky;
    top: 136px;
    border-top: 5px solid var(--bs-yellow);
    z-index: 999;
}

#stick-here-message {
    font-size: 2rem;
    position: sticky;
    top: 136px;
    border-top: 5px solid var(--bs-yellow);
    z-index: 999;
}

@media (max-width: 844px) {
    #stick-here {
        top: 103px;
    }

    #stick-here-message {
        top: 122px;
    }
}

@media (max-width: 576px) {
    #stick-here {
        top: 120px;
    }

    #stick-here-message {
        top: 122px;
    }
}

/* Tablet + mobiel: zelfde logo-grootte en grotere MENU + icoon */
@media (max-width: 991.98px) {

    /* Logo net zo groot op kleinste scherm als op de middelste breedte */
    #mainNav .navbar-brand img {
        max-width: 160px;
        height: auto;
    }

    /* Tekst "MENU" iets groter */
    #mainNav .navbar-toggler {
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        padding: 0.35rem 0.5rem;
        font-size: 1.05rem;
        /* vergroot de tekst MENU */
    }

    /* Hamburger-icoon groter */
    #mainNav .navbar-toggler .fa-bars {
        font-size: 1.4rem;
        margin-left: .25rem;
    }
}

.page_text_left {
    width: 25%;
    padding: 0 0 0 0;
    height: auto;
    overflow: hidden;
    margin: 0;
    float: left;
    background-color: yellow;
}

.page_text_right {
    width: 72%;
    padding: 0 0 0 2%;
    height: auto;
    overflow: hidden;
    margin: 1% 0 0 0;
    float: left;
    background-color: green;
}

.breadcrumb {
    font-size: 13px;
    height: auto;
    margin: 21px 0 8px 0;
    text-transform: capitalize;
}

.breadcrumb li {
    display: inline;
    margin-right: 3px;
}

.breadcrumb li+li:before {
    content: " ";
}

@media (max-width: 576px) {
    .breadcrumb {
        font-size: 10px;
        line-height: 10px;
        height: 48px;
    }
}

.smallPhotoBoxBox {
    width: auto;
    max-width: 75%;
    height: auto;
    max-height: 120px;
}

.link_box {
    text-decoration: none;
    color: black !important;
}

.link_box a {
    color: black;
}

.highlight_box:hover {
    border: 1px solid #1871a4;
    color: #1871a4;
}

.square {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: lightgray;
    text-align: center;
    font-weight: bold;
}

.input-container {
    display: flex;
    align-items: center;
}

.full-width-input {
    width: 100%;
}

.transparent-button {
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.transparent-button:focus {
    outline: none;
}

.font_montserrat {
    font-family: "Bai Jamjuree", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}

.font_roboto_slab {
    font-family: "Bai Jamjuree", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}

.topliner {
    background-color: #003257;
    width: 100vw;
    height: auto;
    overflow: hidden;
    box-shadow: 0px 5px 7px 0px rgba(0, 0, 0, 0.3);
    z-index: 2020002;
    position: fixed;
}

.topliner a {
    color: white;
    text-decoration: none;
}

.topliner a:hover {
    color: white;
    text-decoration: underline;
}

@media (max-width: 576px) {
    .topliner {
        font-size: 0.7rem;
    }
}

@media (min-width: 576px) and (max-width: 900px) {
    .topliner {
        font-size: 0.6rem;
    }
}

.subliner {
    background-color: transparent;
    width: 100%;
    height: auto;
    overflow: hidden;
    position: absolute;
    z-index: 2020002;
    top: 32px;
    position: fixed;
}

@media (max-width: 576px) {
    .subliner {
        display: none;
    }
}

@media (min-width: 576px) and (max-width: 900px) {
    .subliner {
        display: none !important;
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.hidden {
    display: none !important;
}

.fade-slide {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-slide.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-slide.hide {
    opacity: 0;
    transform: translateY(-10px);
}

.hover_blue_line {
    border: 1px solid transparant;
}

.hover_blue_line:hover {
    border: 1px solid #1871a4 !important;
}

.blue_link a{
    color: #1871a4;
    text-decoration: underline;
}

div.c {
    position: fixed;
    top: 230px;
    right: -3px;
    width: 160px;
    padding: 5px 10px 20px 10px;
    height: auto;
    border: 2px solid var(--bs-darkblue);
    background-color: white;
    text-align: center;
    font-size: 0.8rem;
    border-radius: 5px 0 0 5px;
    box-sizing: border-box;
    z-index: 1000;
    box-shadow: -2px 3px 5px 0px rgba(0, 0, 0, 0.75);
}

.topclip {
    width: 250px;
    height: auto;
    padding: 5px;
    float: right;
    background-color: #003257;
    color: white;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.mobile_show {
    display: none !important;
}

.mobile_hide {
    display: block !important;
}

@media (max-width: 576px) {
    .mobile_show {
        display: block !important;
    }

    .mobile_hide {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .section-heading {
        font-size: 1.25rem;
    }

    .card-img-container {
        height: 180px !important;
    }

    .clearfix {
        padding-left: 15px;
        padding-right: 15px;
    }

    .c {
        display: none;
    }
}


/* Algemeen: logo in navbar */
#mainNav .navbar-brand img {
    max-width: 200px;
    height: auto;
}

/* 2. Remove hamburger border */
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Optional: adjust hamburger spacing */
.navbar-toggler {
    padding: 0.5rem;
}


/* Slide down animation */
@keyframes slideDown {
    0% {
        transform: translateY(-10%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Make table scrollable on small screens */
@media (max-width: 576px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .flags img {
        max-width: 64px;
        height: auto;
        margin: 0 4px;
    }

    .page-section h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .container .row>div[class^="col-"]:not(.navbar-logo) {
        padding-left: 10px;
        padding-right: 10px;
    }

    .form-select, .form-control {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .form-label-col {
        width: 100%;
        font-size: 0.85rem;
        font-weight: 500;
        margin-bottom: 2px;
    }

    .form-input-col {
        font-size: 0.85rem;
        width: 100%;
    }

    h3.small {
        font-size: 1.4rem;
    }
}

.input-group-text {
    white-space: nowrap;
}

.cart-container {
    margin-top: 20px;
    padding: 0 10px;
}

.cart-item-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 16px;
    display: block;
}

.cart-item-header {
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-item-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-product img {
    width: 60px;
    height: auto;
}

.cart-details {
    flex: 1;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-actions input {
    width: 40px;
    text-align: center;
}

.cart-actions button {
    border: 1px solid #ccc;
    background: #f8f8f8;
    padding: 4px 10px;
    cursor: pointer;
}

.cart-total {
    text-align: right;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

/* Desktop layout */
@media (min-width: 992px) {
    .cart-item-card {
        display: grid;
        grid-template-columns: 80px 1fr 100px 100px 120px 100px;
        align-items: center;
        background: none;
        box-shadow: none;
        border-bottom: 1px solid #eee;
        padding: 16px 0;
    }

    .cart-item-body {
        flex-direction: row;
        align-items: center;
    }

    .cart-details, .cart-actions, .cart-total {
        text-align: left;
        margin-top: 0;
    }

    .cart-total {
        text-align: right;
    }
}

.nav-item img {
    width: 30px !important;
    height: auto !important;
}

.nav-link {
    color: white;
}

.error-message {
    color: red;
    font-size: 0.9em;
    display: none;
}

.required_field {
    color: darkred;
}

#subOptions,
#subOption_with_vat,
#subOption_no_vat,
#zakelijkFields,
#afleveradresFields,
#akkoordCheckbox {
    display: none;
}

.cookie_wall_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie_wall_container {
    background: white;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.cookie_wall_container h4 {
    margin-bottom: 1rem;
}

.cookie_wall_container p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.cookie_wall_container form {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cookie_wall_container button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

.cookie_accept {
    background-color: #198754;
    color: white;
}

.cookie_decline {
    background-color: #6c757d;
    color: white;
}

.btn-secondary {
    background-color: darkgray;
    border: none;
}

@media (max-width: 576px) {
    .section-heading {
        font-size: 1.25rem;
    }
}

.scroll-container {
    overflow: hidden;
    /* hide text outside box */
    border: 1px solid #ccc;
    position: relative;
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    will-change: transform;
    animation: scroll-left 10s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(300%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 576px) {

    @keyframes scroll-left {
        0% {
            transform: translateX(100%);
        }

        100% {
            transform: translateX(-100%);
        }
    }

}

.badge-yt {
    background: #ff0033;
}

.yt-thumb-wrapper {
    position: relative;
}

.yt-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.yt-play .btn {
    border-radius: 999px;
    padding: .9rem 1.1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .35);
}

.modal-content {
    border-radius: 1rem;
    overflow: hidden;
    background: #0b1220;
}

.video-card {
    cursor: pointer;
}

.video-card:focus {
    outline: 3px solid rgba(72, 154, 212, .6);
    outline-offset: 2px;
    border-radius: .75rem;
}

#videos .yt-thumb-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
}

#videos .yt-thumb-wrapper img.card-img-top {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;

    #videos .video-card {
        cursor: pointer;
    }
}

/* Hide the left filter column on mobile */
@media (max-width: 767.98px) {
    #category_select {
        display: none !important;
    }
}

/* Overlay shell */
.filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 1060;
    /* above navbar & offcanvas, below Bootstrap modal (1050 is modal backdrop, 1060 ensures visibility) */
    display: none;
    opacity: 0;
    transition: opacity .2s ease;
}

/* Slide-in sheet */
.filters-sheet {
    position: absolute;
    inset: 0;
    margin: 0;
    background: #fff;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
    transform: translateY(10%);
    transition: transform .2s ease;
    padding: 16px;
    border-radius: 0;
}

/* Open state */
.filters-overlay.is-open {
    display: block;
    opacity: 1;
}

.filters-overlay.is-open .filters-sheet {
    transform: translateY(0);
}

/* Header spacing */
.filters-header {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* Prevent body scroll when overlay open */
.body-no-scroll {
    overflow: hidden;
}

/* Keep images tidy and consistent height */
.card-img-container img {
    width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
}

.product-item .row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0.5rem;
}

@media (min-width: 768px) {
    .product-item .row>[class*="col-"] {
        flex: 0 0 auto;
    }
}

/* iPad / tablet polish */
@media (min-width: 768px) and (max-width: 991.98px) {

    .btn-warning {
        font-size: 0.7rem;
    }

    .product-item {
        padding: 0.75rem 1rem;
    }

    .product-item h5 {
        font-size: 1.05rem;
        line-height: 1.25rem;
        margin-bottom: .25rem;
    }

    .product-item p {
        margin-bottom: .4rem;
    }

    /* Slightly smaller images so the description gets room */
    .card-img-container img {
        max-height: 120px;
    }

    /* Keep the quantity + input snug */
    .product-item form .form-control {
        max-width: 56px;
        padding-left: .25rem;
        padding-right: .25rem;
    }

    /* Navbar brand a bit smaller so it doesn’t wrap the toggler */
    #mainNav .navbar-brand img {
        max-width: 160px;
        height: auto;
    }

    /* Breadcrumbs: prevent overflow/bleed */
    .breadcrumbs-section .breadcrumb {
        flex-wrap: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {

    .btn-warning {
        font-size: 0.75rem;
    }

    #stick-here .input-group>.form-control {
        height: 40px;
    }

    #stick-here .btn {
        height: 40px;
        line-height: 38px;
    }

    .square {
        width: 35px;
        height: 35px;
        display: block;
        align-items: center;
        justify-content: none;
        text-align: center;
        font-weight: bold;
    }
}

#flash-toast.flash-toast {
    position: fixed;
    top: 200px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    padding: 12px 16px;
    border-radius: 8px;
    color: #ffffff;
    background: #198754;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    font-size: 1.7rem;
    z-index: 2147483647;
    opacity: 1 !important;
    transition: opacity .4s ease, transform .4s ease;
    text-align: center;
    max-width: min(90vw, 600px);
}

#flash-toast.flash-toast--error {
    background: #ef4444;
}

#flash-toast.flash-toast--fade {
    opacity: 0 !important;
    transform: translate(-50%, -8px) !important;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    #flash-toast.flash-toast {
        padding: 16px 20px;
        font-size: 1.2rem;
        width: 90vw;
    }

}

.logo_carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    background-color: #c9d0d7;
}

.logo_carousel_track {
    display: flex;
    gap: 50px;
    width: 200%;
    animation: winterScroll 40s linear infinite;
}

.logo_carousel img {
    flex: 0 0 calc(30% / 12);
    max-width: calc(30% / 6);
    height: auto;
    object-fit: contain;
    padding: 0 10px;
    box-sizing: border-box;
}

@keyframes winterScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .logo_carousel img {
        padding: 0 6px;
    }
}

.marquee {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-inner {
    display: inline-block;
    padding-right: 10%;
    /* space before it re-enters */
    will-change: transform;
}

/* default animation (will be overridden by JS with a duration) */
@keyframes marquee-scroll {
    0% {
        transform: translateX(20%);
    }

    100% {
        transform: translateX(var(--marquee-distance, -100%));
    }
}

/* Wrapper for slider */
.team-slider {
    position: relative;
    margin-top: 2rem;
}

/* Scrollable area */
.team-scroller {
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 3rem;
    /* space for arrows */
}

/* Each card behaves like a responsive column */
.team-member-col {
    flex: 0 0 100%;
    max-width: 100%;
}

/* 2 per row on small screens, 4 per "row" on large */
@media (min-width: 576px) {
    .team-member-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .team-member-col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Arrow buttons */
.team-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: none;
    /* hidden by default; shown via JS when > 4 members */
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    z-index: 2;
}

.team-arrow--prev {
    left: 0.5rem;
}

.team-arrow--next {
    right: 0.5rem;
}

/* Show arrows only when JS adds this class */
.team-slider.has-arrows .team-arrow {
    display: flex;
}

/* Optional nicer scrollbar */
.team-scroller::-webkit-scrollbar {
    height: 6px;
}

.team-scroller::-webkit-scrollbar-thumb {
    border-radius: 3px;
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

@media (max-width: 576px) {
    .team-member img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        width: 40%;
    }
}

@media (min-width: 576px) and (max-width: 850px) {
    .navbar-logo {
        width: 23%;
    }
}

@media (max-width: 576px) {

    /* Bootstrap's mobile breakpoint */
    input.form-control {
        font-size: 0.875rem;
        /* or whatever size you want */
    }
}

/* default size (mobile) */
.flags img {
    height: 18px;
    width: auto;
}

/* larger on desktop */
@media (min-width: 768px) {
    .flags img {
        height: 28px;
    }
}

.h1_mobile {
    font-size: 2.5rem;
}

@media (max-width: 576px) {
    .h1_mobile {
        font-size: 1.15rem;
    }
}

.cart_text_mobile {
    font-size: inherit;
}

@media (max-width: 576px) {
    .cart_text_mobile {
        font-size: 0.85rem;
    }
}

.font_euro {
    font-family: "Montserrat", sans-serif !important;
}

.new_blue {
    display: none !important;
}

.algemeen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.toon-meer-btn {
    background: transparent;
    border: 0;
    color: #0d6efd;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
}

.toon-meer-btn:hover {
    text-decoration: underline;
}

/* --- Collapsed preview: 3 lines --- */
.algemeen-content.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    position: relative;
}

.algemeen-content.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.8em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

/* --- Animated state (we'll toggle this class in JS) --- */
.algemeen-content.is-animating {
    display: block;
    /* disable line-clamp mode */
    overflow: hidden;
    max-height: 0;
    opacity: 0.98;
    transition: max-height 450ms ease, opacity 250ms ease;
    will-change: max-height;
}

/* Fully open */
.algemeen-content.is-open {
    display: block;
    overflow: hidden;
    /* keep hidden while animating; JS will set to visible after */
    opacity: 1;
}

.fotorama__wrap {
    margin: 0 auto;
}

.fotorama__img img {
    transform: scale(0.5) !important;
}

.is-invalid {
    border: 2px solid #dc3545;
}

#zakelijkFields {
    background-color: transparant;
}