/*
 Theme Name:   Made I.T. - hapjesenco.be
 Theme URI:    https://www.madeit.be
 Description:  Child theme of Made I.T.
 Author:       Made I.T.
 Author URI:   https://www.madeit.be
 Template:     madeit
 Version:      0.1.10
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  hapjesenco
*/

@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

body {
    font-family: "Rubik", sans-serif;
    font-weight: 400;
    font-style: normal;
}
p {
    line-height: 30px !important;
    letter-spacing: 1px;
}
.custom-logo {
    height: 50px !important;
    width: auto !important;
    margin-block: 25px;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 {
    font-family: "Rubik", sans-serif;
}
.has-h-1-font-size {
    width: 100%;
    font-size: 3vw !important;
}
.navbar a {
    font-weight: 400;
}
.navbar-dark .navbar-nav .nav-link {
    color: white;
}
.navbar-dark .navbar-nav .show > .nav-link, .navbar-dark .navbar-nav .active > .nav-link, .navbar-dark .navbar-nav .nav-link.show, .navbar-dark .navbar-nav .nav-link.active {
    color: var(--wp--preset--color--primary);
    border-bottom: 1px solid var(--wp--preset--color--primary);
}

body {
    font-size: var(--wp--preset--font-size--normal);
    line-height: var(--wp--custom--line-height--body);
}
h1, .h1 {
    font-size: var(--wp--preset--font-size--h-1);
}
@media (max-width: 767px) {
    h1, .h1, .has-h-1-font-size {
        font-size: 2.5rem !important;
    }
}

h2, .h2 {
    font-size: var(--wp--preset--font-size--h-2);
}

h3, .h3 {
    font-size: var(--wp--preset--font-size--h-3);
}

h4, .h4 {
    font-size: var(--wp--preset--font-size--h-4);
}

h5, .h5 {
    font-size: var(--wp--preset--font-size--h-5);
}
h6, .h6 {
    font-size: var(--wp--preset--font-size--h-6);
}

h1[id], h2[id], h3[id], h4[id] {
    scroll-margin-top: 100px;
}


#googlemaps {
    height: 350px;
    width: 100%;
}

form .required {
    color: var(--wp--preset--color--danger);
}

/*! Navigation */
.navbar-toggler {
    display: block;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-toggler {
        display: block !important;
    }

    .navbar-expand-lg .navbar-collapse {
        display: none !important;
        flex-basis: auto;
    }
    .navbar-expand-lg .navbar-nav { /*? Navbar items */
        flex-direction: column !important;
        margin-top: 50px;
        font-size: 1.5em;
        color: var(--wp--preset--color--primary);
    }


    .navbar-toggler[aria-expanded="false"] + .navbar-collapse {
        display: block !important;

        position: absolute;
        top: 115px;
        background: white;
        width: 50%;
        right: -100%;
        height: 100vh;

        transition: all 0.2s ease-in-out;
    }
    .navbar-toggler[aria-expanded="true"] + .navbar-collapse {
        display: block !important;

        position: absolute;
        top: 115px;
        background: white;
        width: 40%;
        right: 0;
        height: 100vh;

        transition: all 0.2s ease-in-out;
    }

    /*? Navbar toggler  */
    .navbar-toggler:focus {
        box-shadow: none;
    }
    .navbar-toggler[aria-expanded="false"] {
        transition: 0.4s cubic-bezier(0, 0, 0, 1);

    }
    .navbar-toggler[aria-expanded="true"] {
        cursor: pointer;
        height: 48px;
        position: relative;
        transition: 0.4s cubic-bezier(0, 0, 0, 1);
        user-select: none;
        width: 48px;
        outline: none;
        transform: rotateY(-180deg);
    }
    .navbar-toggler[aria-expanded="true"] .icon-bar:nth-child(2){
        height: 2px;
        left: 12px;
        position: absolute;
        border-radius: 9em;
        width: 22px;
        top: 19px;
        transition: 0.4s cubic-bezier(0, 0, 0, 1);
        transform: rotate(-45deg) translate(-3.18px, 3.18px);
    }
    .navbar-toggler[aria-expanded="true"] .icon-bar:nth-child(3){
        height: 2px;
        left: 12px;
        position: absolute;
        border-radius: 9em;
        width: 22px;
        top: 24px;
        transition: 0.4s cubic-bezier(0, 0, 0, 1);
        transform: rotate(45deg) translate(-3.18px, -3.18px);
    }
}


/* MENU COLOR */
.menu li.active a.nav-link {
    color: var(--wp--preset--color--primary);
    background-color: transparent;
}

@media(min-width: 768px) {
    .menu li > a.nav-link {
        transition: all 0.2s ease-in-out;
        background-color: transparent;
    }
    .menu li.active > a.nav-link {
        color: var(--wp--preset--color--primary);
        background-color: transparent;
    }
    .menu li > a.nav-link:hover {
        color: var(--wp--preset--color--primary);
        background-color: transparent;
    }
    .menu .dropdown-menu li a.nav-link {
        border: none;
    }
    .menu .dropdown-menu li.active a.nav-link {
        color: var(--wp--preset--color--primary);
        background-color: transparent;
    }
}

.single-product nav.navbar {
    background-color: var(--wp--preset--color--info) !important;
}





.wp-block-button__link, .btn, .wp-block-madeitforms-submit-button__link {
    border: 4px solid transparent;
    transition: all 0.2s ease-in-out;
}
.wp-block-button__link.has-success-background-color:hover, .wp-block-madeitforms-submit-button__link.has-success-background-color:hover {
    background-color: transparent !important;
    color: var(--wp--preset--color--success) !important;
    border-color: var(--wp--preset--color--success) !important;
}
.wp-block-button__link.has-primary-background-color:hover, .btn-primary:hover {
    background-color: transparent !important;
    color: var(--wp--preset--color--primary) !important;
    border-color: var(--wp--preset--color--primary) !important;
}
.wp-block-button__link.has-secondary-background-color:hover {
    background-color: transparent !important;
    color: var(--wp--preset--color--secondary) !important;
    border-color: var(--wp--preset--color--secondary) !important;
}
.wp-block-button__link.has-danger-background-color:hover {
    background-color: transparent !important;
    color: var(--wp--preset--color--danger) !important;
    border-color: var(--wp--preset--color--danger) !important;
}

/* Column max container size UPDATE*/
.wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
    padding-right: calc(var(--bs-gutter-x));
    padding-left: calc(var(--bs-gutter-x));
}
.wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
    padding-right: calc(var(--bs-gutter-x));
    padding-left: calc(var(--bs-gutter-x));
}
@media (min-width: 576px) {
    .wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
        padding-left: calc((100vw - 540px) / 2 + 15px) !important;
        padding-right: calc((100vw - 540px) / 2 + 15px) !important;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 540px) / 2 + 15px) !important;
        padding-left: calc((100vw - 540px) / 2 + 15px) !important;
    }
}

@media (min-width: 768px) {
    .wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
        padding-left: calc((100vw - 720px) / 2 + 15px) !important;
        padding-right: calc((100vw - 720px) / 2 + 15px) !important;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 720px) / 2 + 15px) !important;
        padding-left: calc((100vw - 720px) / 2 + 15px) !important;
    }
}

@media (min-width: 992px) {
    .wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
        padding-left: calc((100vw - 960px) / 2 + 15px) !important;
        padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 960px) / 2 + 15px) !important;
        padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
    }
}

@media (min-width: 1200px) {
    .wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
        padding-left: calc((100vw - 1140px) / 2 + 15px) !important;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 1140px) / 2 + 15px) !important;
    }
}

@media (min-width: 1400px) {
    .wp-block-madeit-block-content-column.keep-max-container-size:first-child:not(.max-end-size) {
        padding-left: calc((100vw - 1320px) / 2 + 15px) !important;
    }
    .wp-block-madeit-block-content-column.keep-max-container-size:last-child:not(.max-start-size) {
        padding-right: calc((100vw - 1320px) / 2 + 15px) !important;
    }
}



/* Scroll down mouse */
.wp-block-cover {
    overflow: visible !important;
}
.card.scroller {
    position: absolute;
    bottom: -40px;
    margin: auto;
    left: 0;
    right: 0;
    width: max-content;
    border-radius: 50px;
}
.card.scroller p {
    margin-top: 1em;
    margin-bottom: 0;

    animation: scroll 1.5s ease-in-out .1s infinite ;
}

@keyframes scroll {
    0% {
        margin-top: 0em;
        margin-bottom: 1em;
    }
    50% {
        margin-top: .5em;
        margin-bottom: 0;
        padding-bottom: .5em;
    }
    100% {
        margin-top: 0em;
        margin-bottom: 1em;
    }
}

/* Categoriën */
.wc-block-product-categories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    gap: 50px;
}
.wc-block-product-categories-list-item {
    margin: 0 !important;
}
.wc-block-product-categories-list-item a {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-decoration: none !important;
    color: var(--wp--preset--color--secondary) !important;

    transition: all .2s ease;
}
.wc-block-product-categories-list-item a span.wc-block-product-categories-list-item__image {
    margin: auto !important;
    width: 100px !important;
    min-width: 100px;
    border: none !important;
    margin-bottom: 10px !important;
}
.wc-block-product-categories-list-item a span img {
    margin: auto !important;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--wp--preset--color--secondary);

    transition: all .2s ease;
}

.wc-block-product-categories-list-item a:hover {
    color: var(--wp--preset--color--info) !important;
     transition: all .2s ease;
}
.wc-block-product-categories-list-item a:hover span img {
    background-color: var(--wp--preset--color--info);
     transition: all .2s ease;
}

/** Filter **/
#assortiment {
    position: fixed;
    width: 56px;
    height: 56px;
    right: 20px;
    bottom: 20px;
    transition: all .2s ease;
    z-index: 9999;
}
#assortiment:hover circle {
    fill: var(--wp--preset--color--info);
    transition: all .2s ease;
}
/*? Show when scroll */
#assortiment {
    opacity: 0;
    visibility: hidden;
    bottom: -50px;
    transition: all .2s ease;
}
.has-scroll #assortiment {
    opacity: 1;
    visibility: visible;
    bottom: 20px;
    transition: all .2s ease .5s;
}

/** Producten **/
.wc-block-grid__product .wc-block-grid__product-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}
.wc-block-components-product-title,
.wc-block-components-product-price {
    text-align: left;
}
.wc-block-components-product-title .wc-block-components-product-name {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.5em;
}

.wc-block-components-product-price .wc-block-formatted-money-amount,
.wc-block-components-product-price__value,
.wc-block-components-product-price__regular {
    font-size: 2em;
    color: var(--wp--preset--color--primary);
}
.wc-block-grid__product-price .wc-block-grid__product-price__regular {
    margin-right: 0 !important;
    font-size: 1.5em;
    opacity: .5;
}
.wc-block-grid__product .wp-block-button {
    position: absolute;
    top: 210px;
    left: 0;
    right: 0;

    transition: all .2s ease;
    opacity: 0;
}
.wc-block-grid__product:hover .wp-block-button {
    top: 200px;

    transition: all .5s ease;
    opacity: 1;
}
.wc-block-grid__product:hover .wp-block-button button {
    background-color: var(--wp--preset--color--success);
    color: white;
    text-transform: uppercase;
}
/* ? ON SALE */
.wc-block-components-product-sale-badge {
    width: 50% !important;
    height: 30px;
    text-align: center;
    align-content: center;
    font-size: larger;
    padding: 0 !important;
    background: var(--wp--preset--color--success) !important;
    color: white !important;
    letter-spacing: 2px;
    border-radius: 16px !important;
    border-color: white !important;
}

/* ? SINGLE */
.woocommerce div.product div.images img {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50px;
}

/** Footer **/
footer.site-footer,
footer.site-footer .copy {
    background-color: var(--wp--preset--color--primary) !important;
    color: white !important;
}
footer.site-footer a,
footer.site-footer .copy a {
    color: white !important;
    text-decoration: none !important;
}
footer.site-footer a:hover,
footer.site-footer .copy a:hover {
    color: var(--wp--preset--color--secondary) !important;
    text-decoration: none !important;
}

footer.site-footer .footer-widget-2 {
    width: max-content;
    min-width: max-content;
    max-width: max-content;
    padding-inline: 40px;
}

/* CHATBOT */
.chatbot {
    position: fixed;
    bottom: 20px;
    left: 20px;
    
    display: flex;
    align-items: center;
    z-index: 9999;
}

.bot-icon {
    width: 50px;
    height: 50px;
}

.chat-text {
    position: absolute;
    display: none;
    bottom: 35px;
    width: 200px;
    left: 50px;
    transition: all .2s ease;
}
.chat-text p {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    align-content: center;
    font-size: small;
    padding: 20px;
    line-height: 20px !important;
}


.chat-text.hidden {
    opacity: 1;
    transition: all .2s ease;

    animation: hidden .5s ease-in-out;
}

.chat-text.visible {
    display: block;
    transition: all .2s ease;

    animation: visible .5s ease-in-out;
}
@-webkit-keyframes visible {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes visible {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@-webkit-keyframes hidden {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@keyframes hidden {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Magic_input */
.magic-input input {
    width: 60%;
    padding: 10px;
    height: 50px;
    background-color: #254243;
    border: none;
    border-bottom: 2px solid #b29466; 
    color: #fff;
    font-size: 16px;
    outline: none;
}

.magic-input input::placeholder {
    color: #7a8f8f; 
}


/* Magic_dropdown */
.dropdown_magic_container {
    position: relative;
    display: inline-block;
}

.magic-input_toggle,
.dropdown_magic_container {
    width: 400px;
    max-width: 100%;
}
.magic-input_toggle input {
    width: 100%;
    padding: 10px;
    height: 50px;
    background-color: #254243;
    border: none;
    border-bottom: 2px solid #b29466; 
    color: #fff;
    font-size: 16px;
    outline: none;
}
.magic-input_toggle:after {
    content: '';
    position: absolute;
    top: 45%;
    transform: translateY(-50%) rotate(-45deg);
    right: 20px;
    width: 10px;
    height: 10px;
    border-left: 2px solid #b29466;
    border-bottom: 2px solid #b29466;

    background-color: transparent;
    transition: 0.4s;
}
.dropdown_magic_container:hover .magic-input_toggle:after {
    transform: translateY(-50%) rotate(135deg);
}

.dropdown_magic {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-height: calc(75vh - 270px);
    overflow: scroll;
}

.dropdown_magic li {
    border-bottom: 1px solid #ddd;
}

.dropdown_magic li:last-child {
    border-bottom: none;
}

.dropdown_magic a {
    color: black;
    text-decoration: none;
    display: block;
    padding: 10px;
}

.dropdown_magic a:hover {
    background-color: #f1f1f1;
}

.dropdown_magic_container:hover .dropdown_magic {
    display: block;
}

.dropdown_magic_container .wc-block-product-categories-list-item a span img {
    width: 40px !important;
}
.dropdown_magic_container .wc-block-product-categories-list-item {
    cursor: pointer;
}

.magic_ai_chat{
    position: relative;
    width: 100%;
    padding: 10px;
    height: 35vh;
    background-color: #254243;
    border: none;
    border-bottom: 2px solid #b29466; 
    color: #fff;
    font-size: 16px;
    outline: none;
}
.magic_ai_chat-input input {
    width: 90%;
    padding: 10px;
    height: 40px;
    background-color: #1c3434;
    border: none;
    color: #fff;
    font-size: 16px;
    outline: none;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: auto;
}
.magic_ai_chat-input button {
    background-color: transparent;
    border: none;
    pointer-events: none;
    cursor: default;
}
.magic_ai_chat-input button svg {
    width: 20px;
    height: 20px;
    fill: #fff;

    position: absolute;
    right: calc(10% - 20px);
    bottom: 20px;

}



button.button.button_ai {
    border: none;
    padding: 10px 15px;
    margin-right: 5px;
    background-color: #254243 !important;
    color: white;
    display: flex;
    align-items: center;
}
button.button.button_ai.active {
    background-color: var(--wp--preset--color--secondary) !important;
    color: #254243;
}
button.button.button_ai img {
    filter: invert(1);
}
button.button.button_ai.active img {
    filter: invert(0);
}

.btn-primary {
    color: white !important;
}


/************************/
/** Meer producten CSS **/
/************************/

/* .carousel_more_product { 
    position: relative; 
}
.carousel_more_product .inner_more_product {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;

  scroll-snap-type: x mandatory;
}
.carousel_more_product .more_product {
  scroll-snap-align: start;
}

.more_product .card {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 0 6px #0000001c;
}
.more_product .card img {
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
    border-radius: 20px 20px 0 0 !important;
}
.more_product p {
    font-size: 14px;
    font-weight: 100;
}

.more_product .btn {
    border-radius: 0 0 0 15px;
}

.carousel_more_product .nav {
  position: absolute;
  top: 50%;
  padding-left: 5px;
  justify-content: center;  
  transform: translateY(-50%);
  z-index: 2;
  border: none;
  background: rgba(0,0,0,.45);
  color: #fff;
  width: 36px; height: 36px; line-height: 36px;
  text-align: center;
  border-radius: 999px;
  cursor: pointer;
}
.carousel_more_product .prev { 
    left: 8px; 
}
.carousel_more_product .next { 
    right: 8px; 
}
.carousel_more_product .nav[disabled] { 
    opacity: .4; 
    cursor: not-allowed; 
}

.more_product {
    flex: 0 0 calc(100% / 3.5);
}

@media (max-width: 992px) {
  .more_product {
    flex: 0 0 calc(100% / 2.5);
  }
}

@media (max-width: 576px) {
  .more_product {
    flex: 0 0 calc(100% / 1.5);
  }
} */




.carousel_more_product .inner_more_product {
    overflow-x: auto;
    width: 100%;
    margin: 3em auto;
    display: flex;
    gap: 1em;
    scroll-behavior: smooth;
    anchor-name: --carousel;
    scroll-snap-type: x mandatory;
    scroll-marker-group: after;
}
.carousel_more_product .inner_more_product::scroll-marker-group {
    display: flex;
    justify-content: center;
    gap: .5em;
}
.carousel_more_product .inner_more_product .more_product::scroll-marker {
    content: '';
    height: 1em;
    width: 1em;
    background-color: var(--wp--preset--color--secondary);
    border-radius: 50%;
    opacity: .5;
}
.carousel_more_product .inner_more_product .more_product::scroll-marker:target-current {
    background-color: var(--wp--preset--color--secondary);
    opacity: 1;
}
/* .carousel_more_product .inner_more_product::-webkit-scrollbar {
    display: none;
} */
.carousel_more_product .inner_more_product::scroll-button(right),
.carousel_more_product .inner_more_product::scroll-button(left) {
    content: '→';
    border: none;
    background-color: var(--wp--preset--color--primary);
    color: white;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    padding-bottom: .1em;
    cursor: pointer;
    position: fixed;
    position-anchor: --carousel;
    position-area: right center;
    translate: -50%;
}
.carousel_more_product .inner_more_product::scroll-button(left) {
    content: '←';
    position-area: left center;
    translate: 50%;
}
.carousel_more_product .inner_more_product::scroll-button(right):disabled,
.carousel_more_product .inner_more_product::scroll-button(left):disabled {
    opacity: 0.5;
    cursor: auto;
}
.carousel_more_product .inner_more_product .more_product {
    scroll-snap-align: start;
    flex: 0 0 20em;
    background-color: white;
    border-radius: 20px;
}
@media (max-width: 500px) {
    .carousel_more_product .inner_more_product .more_product {
        flex: 0 0 100%;
    }
}

.more_product .card {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 0 6px #0000001c;
}
.more_product .card img {
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
    border-radius: 20px 20px 0 0 !important;
}
.more_product p {
    font-size: 14px;
    font-weight: 100;
}
.more_product .btn {
    border-radius: 0 0 0 15px;
}