/* overrides for colors */
:root {
    --bs-primary: #2891E1;
}

.badge {
    --bs-badge-border-radius: 6px;
}

body {
    background-color: #f4f7fb;
}

/* header */
#header .header-bottom {
    padding: 10px 0;
}

#header .main-menu #_desktop_search {
    flex-grow: 1;
    padding-left: 20px;
    padding-right: 20px;
}

#header .main-menu #_desktop_search #search_widget {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#header .main-menu #_desktop_search #search_widget input {
    border-radius: 10px;
}

#header .main-menu #_desktop_user_info {
    order: 3;
}

#header .main-menu #_desktop_cart {
    order: 4;
}

#header .main-menu #_desktop_cart .header-block__badge {
    background-color: #364350 !important;
    color: white;
    font-size: 0.7rem;
    font-weight: 100;
    position: absolute;
    top: -3px;
    right: 8px;
}

.main-menu__tree > li > a {
    padding: 0.5rem 1rem;
}

.main-menu__tree > li:nth-child(1) > a {
    padding: 0.5rem 1rem 0.5rem 0;
}

.usp-bar {
    font-size: 14px;
}

.usp-items {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    height: 52px;
    position: relative;
    overflow-x: hidden;
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    color: #374151;
}

.usp-item i {
    color: #0071ce;
    font-size: 18px;
}

/* on mobile, these usp items should scroll while being 100% width, centering the text. they should scroll automatically. */
@media (max-width: 768px) {
    .usp-item {
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -ms-transform: translateX(100%);
        transform: translateX(100%);
        min-width: 100vw;
        width: 100vw;
        text-align: center;
        -webkit-animation: scrollIn 20s ease-in-out infinite;
        animation: scrollIn 20s ease-in-out infinite;
        -webkit-animation-delay: 0s;
        animation-delay: 0s;
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .usp-item:nth-child(2) {
        -webkit-animation-delay: 5s;
        animation-delay: 5s;
    }

    .usp-item:nth-child(3) {
        -webkit-animation-delay: 10s;
        animation-delay: 10s;
    }

    .usp-item:nth-child(4) {
        -webkit-animation-delay: 15s;
        animation-delay: 15s;
    }

    @keyframes scrollIn {
        0% {
            -webkit-transform: translateX(100vw);
            transform: translateX(100vw);
        }
        5% {
            -webkit-transform: translateX(0);
            transform: translateX(0);
        }
        20% {
            -webkit-transform: translateX(0);
            transform: translateX(0);
        }
        30% {
            -webkit-transform: translateX(-100vw);
            transform: translateX(-100vw);
        }
        100% {
            -webkit-transform: translateX(-100vw);
            transform: translateX(-100vw);
        }
    }
}

/* footer */
.footer {
    --footer-background-color: #364350;
}

.breadcrumb__wrapper {
    background-color: transparent;
}

/* home page hero */
#hero-home .banner,
#hero-home .banner img {
    width: 100%;
    border-radius: 10px; /* or 10px.. */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

#hero-home .content-block {
    border-radius: 10px; /* or 10px.. */
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

#hero-home .content-block__media {
    position: relative;
    flex-grow: 1;
}

#hero-home .content-block__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

#hero-home .content-block__media:after {
    position: absolute;
    border-radius: 10px 10px 0 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: '';
    background: linear-gradient(0deg, rgb(54, 67, 80) 0%, rgba(0, 0, 0, 0) 50%);
}

#hero-home .content-block__body {
    padding: 0 20px 20px 20px;
    color: white;
    background-color: #364350;
    border-radius: 0 0 10px 10px;
    z-index: 1;
    width: 100%;
}

#hero-home .content-block__body .btn-outline-white {
    border-color: white;
    color: white;
}

#hero-home .content-block__body .btn-outline-white:hover {
    background-color: white;
    color: var(--bs-primary);
}

/* Desktop: 2 kolommen */
@media (min-width: 992px) {
    #hero-home .row {
        align-items: stretch;
    }

    /* Linkerkolom bepaalt hoogte via ratio (geen vaste px) */
    #hero-home .banner {
        aspect-ratio: 16 / 9; /* pas aan naar jouw banner verhouding */
        height: 100%;
    }

    #hero-home .banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Rechterblok mag niet hoger worden dan de kolomhoogte */
    #hero-home .col-lg-4 {
        min-height: 0;
    }

    #hero-home .content-block {
        height: 100%;
        max-height: 100%;
        overflow: auto; /* of hidden als je liever afkapt */
    }
}

.category-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex !important;
}

.category-card h5 {
    padding-left: 16px;
    padding-right: 16px;
    margin-top: auto;
    margin-bottom: auto;
}

.category-card .category-card__image {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.category-card:hover {
    border-color: #b2b2b2;
    filter: none;
}


/* product listing cards on homepage */
.product-miniature .card {
    border: 1px solid #ddd;
    border-radius: 10px;
}

.product-miniature .card:hover {
    border-color: #b2b2b2;
    filter: none;
}

.product-miniature .product-miniature__image-container {
    border-radius: 8px 8px 0 0;
}

.product-miniature .product-miniature__quickview {
    padding: 0;
    left: 0;
    background-color: #f5f5f5;
}

.product-miniature .product-miniature__infos__bottom {
    margin-bottom: 0.25rem;
}

.wishlist-button-add, .page-product .product__images__modal-opener, .product-miniature .product-miniature__quickview_touch {
    box-shadow: 0 0 .125rem 0 rgba(0, 0, 0, .2) !important;
}

.wishlist-button-add,
.wishlist-button-add i {;
    color: var(--bs-primary) !important;
}

.footer .footer__main {
    --footer-background-color: #364350;
}

.product-miniature .product-miniature__infos__bottom,
.product-miniature .product-miniature__infos__top {
    padding-left: 16px;
    padding-right: 16px;
}

.product-miniature .product-miniature__infos__top {
    padding-top: 16px;
}

.product-miniature .product-miniature__infos__bottom {
    padding-bottom: 16px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.product-miniature__infos.card-body .product-flags {
    position: relative;
    padding-left: 0;
}

.product-miniature__infos.card-body .product-flags .badge {
    margin-left: 0;
}

.accordion-item {
    --bs-accordion-bg: #f4f7fb;
    --bs-accordion-active-bg: #f4f7fb;
    --bs-accordion-btn-bg: #f4f7fb;
}

/** navigation **/
.main-menu__tree > li .menu-container {
    padding-top: 0;
    padding-bottom: 0;
}

.main-menu__tree > li .menu-container ul.menu-categories {
    border-right: 1px solid #ddd;
    height: 100%;
}

.main-menu__tree > li .menu-container ul.menu-categories > li {
    display: flex;
    justify-content: space-between;
}

.main-menu__tree > li .menu-container ul.menu-categories > li:hover, .main-menu__tree > li .menu-container ul.menu-categories > li:hover a {
    color: var(--bs-primary);
}

.main-menu__tree .items-per-category {
    padding: 15px 15px 15px 5px;
    display: block;
}

.main-menu__tree .items-per-category > div {
    column-count: 3;
    column-gap: 10px;
    display: none;
}

.main-menu__tree .items-per-category > div *:hover {
    color: var(--bs-primary);
}

.main-menu__tree .items-per-category > div.active {
    display: block;
}


.main-menu__tree .items-per-category > div > ul > li {
    margin-bottom: 20px;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.menu-container .js-menu-item-lvl-1 {
    font-weight: bold;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.menu-container .js-menu-item-lvl-1:nth-child(1) {
    padding-top: 15px;
}

.menu-container .js-menu-item-lvl-1:nth-last-child(1) {
    border-bottom: none;
}

.main-menu__tree__link.dropdown-item[data-depth="2"] {
    font-weight: bold;
}

.subcategory {
    background-color: #FFF;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: .25s ease-out;
}

.subcategory:hover {
    border-color: #2891E1;
    filter: none;
}

.subcategory__name {
    hyphens: auto;
}

table:not(:has(thead>tr)) > tbody > tr:first-child td,
table:has(thead>tr) > thead > tr:first-child td {
    background-color: transparent;
    border-bottom: 1px solid #364350;
    font-weight: bold;
    color: #364350;
    text-transform: uppercase;
    font-size: 0.8rem;
}

table:not(:has(thead>tr)) > tbody > tr:first-child td:first-child,
table:has(thead>tr) > thead > tr:first-child td:first-child {
    border-top-left-radius: 4px;
}

table:not(:has(thead>tr)) > tbody > tr:first-child td:last-child,
table:has(thead>tr) > thead > tr:first-child td:last-child {
    border-top-right-radius: 4px;
}

table > tbody > tr:last-child td:first-child {
    border-bottom-left-radius: 4px;
}

table > tbody > tr:last-child td:last-child {
    border-bottom-right-radius: 4px;
}

table > tbody > tr:last-child td {
    border-bottom: none;
}

.rich-text table > :not(caption) > * > *, .table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom: none;
}

.rich-text table > :not(caption) > *:nth-child(even) > *, .table > :not(caption) > *:nth-child(even) > *,
.product__details .detail:nth-child(odd), .product__features .detail:nth-child(odd) {
    background-color: rgba(40, 145, 225, 0.1);
}

.product__details, .product__features {
    background-color: transparent;
}

.product__details .detail, .product__features .detail {
    border-bottom: none;
}

.product__details .detail .detail__title, .product__features .detail .detail__title {
    font-weight: bold;
    color: #364350;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.product__add-to-cart button.add-to-cart {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.product__add-to-cart .wishlist-button-add {
    margin-top: 12px;
}

.product-actions__quantity input {
    padding: 0.75rem 1rem !important;
    height: 100% !important;
    border-radius: 8px;
    min-width: 90px !important;
    text-align: left;
}

.product__left .product__images #product-images,
.thumbnails__container .thumbnail:not(.active) img {
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.thumbnails__container .thumbnail.active img {
    border: none;
    outline: 1px solid #2891E1;
}

@media (max-width: 768px) {
    .product-actions__quantity input {
        max-width: unset !important;
    }
}

.product_page_details .accordion-item {
    --bs-accordion-bg: #ffffff;
    --bs-accordion-active-bg: #ffffff;
    --bs-accordion-btn-bg: #ffffff;
}

.page-product .product__current-price {
    font-weight: 700;
    color: #2891e1;
    font-family: Open Sans, sans-serif;
    font-size: 1.4rem;
    line-height: 2.4rem;
}

.btn-primary {
    --bs-btn-bg: #2891e1;
    --bs-btn-border-color: #2891e1;
}

.page-product .product__name {
    margin-bottom: 10px;
}

.product_page_details {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    padding: 16px;
}

.product_page_details h2 {
    font-size: 28px;
}

.product_page_details .accordion-button:not(.collapsed) {
    background-color: white;
}

.product__minimal-quantity, .page-product .product__add-to-cart {
    margin-bottom: 0 !important;
}

.thumbnails__container.has-scroll .thumbnails__list {
    flex: 1;
    flex-wrap: nowrap;
}

.thumbnails__container.has-scroll {
    gap: 8px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.thumbnails__container.has-scroll .thumbnails__list {
    overflow-x: hidden;
    margin-bottom: 0;
}

.thumbnails__container.has-scroll .thumbnails__list li {
    margin-top: 2px;
    margin-bottom: 2px;
}

@media (min-width: 768px) {
    .thumbnails__container.has-scroll .thumbnails__list li.col-md-2 {
        flex: 0 0 20%;
        width: 20%;
    }
}

.thumbnails__arrow {
    flex: 0 0 50px;
    height: 50px;
    border-radius: 100%;
    background-color: white;
    border: 1px solid #ddd;
}

.thumbnails__arrow i {
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: inline-block;
    height: 1.5rem;
    width: 1.5rem;
}

.thumbnails__arrow i.action-previous {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23dddddd' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0'/%3E%3C/svg%3E");
}

.thumbnails__arrow i.action-next {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23dddddd' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
}
