/*
Theme Name: Mennega
Theme URI: https://jouwsite.nl/
Author: Jouw Naam
Description: Eigen WooCommerce thema gebaseerd op Bootstrap
Version: 1.0
Text Domain: mennega
*/

/* Normaal */
@font-face {
    font-family: 'Roboto';
    src: url('/wp-content/themes/mennega/fonts/roboto/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900; /* alle mogelijke gewichten */
    font-style: normal;
    font-display: swap;
}

/* Italic */
@font-face {
    font-family: 'Roboto';
    src: url('/wp-content/themes/mennega/roboto/fonts/roboto/Roboto-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Gebruik op de site */
body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* standaard gewicht */
}
a,a:hover {
    color: #000;
}


header,footer {
    background-color: #090604;
}

header .custom-logo {
    max-width: 250px;
}

footer .custom-logo {
    max-width: 200px;
}

header .line {
    height: 44px;
    width: 100%;
    background-image: url(images/logo-mennega-lijnen.png);

}
header .tagline {
    position: absolute;
    right:0;
    color: #E9C636;
}

header .container {
    position: relative;
}

.content-container { margin-top: 40px; }

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:hover,.button.alt {
    background-color: #FFD93B!important;
    color: #000!important;
    border: 1px solid #8D8E8E!important;
}

.subcategories-container {
    background-color: #FFD93B;
    z-index: 9;
    width: 100%;
}
.subcategories-container.fixed {
    position:fixed;
    top: 0px;
}

.category-header {
    width: 100%;
    height: 400px; /* pas aan naar wens */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    position: relative;
}

.category-header .category-title {
    font-size: 4em;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.subcategories-wrapper {
  position: relative;
  overflow: hidden; /* voorkomt dat het pseudo-element buiten de container komt */
}



.subcategories-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px; /* breedte van verloop */
  height: 100%;
  pointer-events: none; /* zodat klikken/scrollen werkt */
  background: linear-gradient(to right, transparent, #FFD93B); 
  /* vervang 'white' door je achtergrondkleur */
}

.subcategories-menu {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 10px;
    margin: 0;
    overflow-x: auto; /* horizontaal scrollen */
    -webkit-overflow-scrolling: touch; /* smooth scrolling op iOS */
    white-space: nowrap; /* voorkomt dat items op een nieuwe regel springen */
}

.subcategories-menu li {
    flex: 0 0 auto; /* elk li-item behoudt zijn breedte en krimpt niet */
}

.subcategories-menu::-webkit-scrollbar {
    display: none; /* optioneel: scrollbar verbergen op webkit */
}

.subcategories-menu li a {
    color: #FFD93B;
    text-decoration: none;
    background: rgba(0,0,0,1);
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

.subcategories-menu li a:hover {
    background: rgba(0,0,0,0.8);
}

.navbar-toggler {
    display: none;
}

nav.navbar {
    background-color: #090604;
}

.navbar-expand-lg .navbar-nav .nav-link {
    color: #fff;
}

.navbar-expand-lg .navbar-nav .nav-link.active {
    color:#E9C636;
}

.custom-logo {
  max-height: 100px;
  height: auto;
}

.nav {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.nav-item {
  margin-left: 15px;
}

.nav-item:first-child {
  margin-left: 0;
}

.navbar-toggler {
  border-color: white; /* rand wit maken, optioneel */
  position: absolute;
  right: 15px;
  bottom: 15px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


footer { 
    color: #fff;
}

footer a {
    color: #E9C636;
    text-decoration: none;
}

footer a.ikkandatwel { width: 200px; height: 60px; text-indent: -9999px;}
/* Titel met gele achtergrond en volle breedte */
.product-block .product-title {
    background-color: #FFD93B; /* helder geel */
    padding: 0.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
    font-weight: bold;
}

.subcategory-header { 
    min-height: 200px; 
    background-size: cover; 
    align-items: center;
    justify-content: center;
    display: flex;
}
.subcategory-header .subcategory-title {
color: #fff;
text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
font-size: 3rem;
}

/* Zorgt dat elk productblok niet wordt afgebroken binnen kolommen */
.masonry-container {
   
    width: 100%;
}

.product-block {
    width: 48%;
    /*margin: 1%*/;
    background: #fff;
    padding: 0;
    border: 1px solid #8D8E8E;
    box-sizing: border-box;
    float: left;
    margin-bottom: 20px;
}

.product-block-content {
    padding: 0.5rem 1rem;
    position: relative;
}
.product-block-content.broodje-padding{
    padding-bottom: 65px;
}
.broodje { width: 150px; position: absolute; bottom: 5px; right: 150px; }
.broodje label { width: 100%; float:left; text-align: left;}
.broodje .broodje-optie { border: 1px solid #8D8E8E; border-radius: 0; background-color: #FFD93B; width: 100%; float:right;height: 32px;
font-size: 16px;
line-height: 16px; }

/* Categorieen shortcode */
.category-card { 
    min-height: 300px;
    border-radius: 0;
    background-size: cover;
    position:relative; 
    overflow:hidden;
    text-decoration: none;
    transition: background-size 1.5s ease;
  
}

.category-content {
    border: 2px solid #FFD93B;
}
.category-content h2.category-title {
    font-size: 4em;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    color:#fff;
    text-decoration: none;
}

.category-content p.category-tagline {
    font-size: 2em;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    color:#FFD93B;
    text-decoration: none;

}


.category-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-bg {
    width: 100%;
    height: 300px; /* pas aan naar wens */
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-overlay {
    width: 100%;
    height: 100%;
    color: #fff;
    background: rgba(0,0,0,0.4); /* optioneel: overlay voor leesbaarheid */
    display: flex;
    flex-direction: column;
    justify-content: center; /* verticaal centreren */
    align-items: center;     /* horizontaal centreren */
    text-align: center;
    padding: 0 15px;
}

.category-title {
    font-size: 1.5rem;
    margin: 0;
}

.category-tagline {
    font-size: 1rem;
    margin: 0;
    margin-top: 5px;
}



/* Woocommerce aantal div */


 .quantity-controls { 
    position: absolute;
    right: 40px;
    bottom: 5px;
    background-color: #FFD93B;

}

 .quantity-controls .btn,.mini-cart-plus, .mini-cart-minus {
    border-radius: 0;
    color: #333;
}
.mini-cart-plus, .mini-cart-minus {
    border: 1px solid #8D8E8E;
    background: none;
    height: 31px;
    width: 24px;
}

.mini-cart-minus span.trash {
    width: 15px;

}

.mini-cart-cross-sells {
    background-color: #FFD93B;
    margin-top: 20px;
    margin-bottom: 20px; 
    padding: 0 15px 15px 15px;
    min-height: 100px;
}

.mini-cart-cross-sells a img { 
    width: 20px;
    height: 20px;
    max-width: 20px;
}

.mini-cart-cross-sells a.add_to_cart_button {
    width: 20px;
    height: 20px;
    padding: 0;
    text-align:center;
    line-height: 31px;
    background-color: #FFD93B;
    float:right;
    line-height: 20px;
    margin-left: 5px;
}

.mini-cart-cross-sells a.add_to_cart_button:hover {
    background-color: #FFD93B;
}

.woocommerce-mini-cart__total.total {
    margin-top: 15px;
}

.product-block-content a.added_to_cart
{
    display: none;
}
.quantity-controls input {
    background-color: #FFD93B;
    border-radius: 0;
    border-top: 1px solid #8D8E8E;
    border-bottom: 1px solid #8D8E8E;
    border-left: 0;
    border-right: 0;
    width: 50px;
    text-align: center;
}

 .quantity-controls span.quantity-label {
    background-color: #FFD93B;
    border-radius: 0;
    border-top: 1px solid #8D8E8E;
    border-bottom: 1px solid #8D8E8E;
    border-left: 0;
    border-right: 0;
    width: 40px;
    text-align: center;
    line-height: 29px;
}

.quantity-controls span.mini-cart-current-qty {
    background-color: #FFD93B;
    border-radius: 0;
    border-top: 1px solid #8D8E8E;
    border-bottom: 1px solid #8D8E8E;
    border-left: 0;
    border-right: 0;
    width: 40px;
    text-align: center;
    line-height: 29px;
}

.product-block-content .add-to-cart {
    position: absolute;
    right: 5px;
    bottom: 5px;
    background-color: #FFD93B;
    border-color: #8D8E8E;
    border-radius: 0;
    color: #333;
    width: 31px;
    height: 31px;
    padding:0;
}

.product-block-content .add-to-cart img {
    width: 20px;
    height: 20px;
}

.product-block-content .product-description {
    padding-bottom: 50px;
}

.product-block-content .price {
    position: absolute;
    bottom: 3px;
}
.sidebar-container{
    border: 1px solid #8D8E8E;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    background-color: #fff;
}

.sidebar-container.fixed {
  position: fixed;
  top: 60px;
  z-index: 9999;
   overflow-y: auto;         /* verticale scrollbalk */
  max-height: calc(100vh - 60px); /* hoogte van viewport - top offset */
  bottom: 0;
  min-width: 300px;
}

.sidebar-container h4 {
    padding: 10px 0 0 0;
    background-color: #FFD93B;
    color: #000;
    font-size: 1rem;
    width: 100%;
    text-align: left;
    font-weight: bold;
}

.sidebar-container h4.widget-title {
    padding: 10px 15px;
}

.widget_shopping_cart_content {
    padding: 15px; 
}

.widget_shopping_cart_content .woocommerce-Price-amount {
    float: right;
}

.woocommerce-mini-cart-item.mini_cart_item { 
    position: relative;
    border-bottom: 1px solid #333;
}

.woocommerce-mini-cart-item.mini_cart_item .quantity-controls {
    right: 0;
}

.woocommerce-mini-cart__buttons.buttons .button.wc-forward {
    display: none;
}

.woocommerce-mini-cart__buttons.buttons .button.wc-forward.checkout {
    display: block;
    color: #000;
    background-color:#FFD93B;
    border:1px solid #8D8E8E;
    width: 100%;
    border-radius: 0;
    text-align: center;
}

.mini_cart_item .mini-cart-title {
    width: 70%;
    display: inline-block;
    font-size: 14px;
    min-height: 70px;
}
.mini-cart-title { font-size: 14px; }

.woocommerce ul.cart_list li, .woocommerce ul.product_list_widget li {
    min-height: 70px;

}
.woocommerce ul.cart_list li dl, .woocommerce ul.product_list_widget li dl { border: 0; padding-left: 0; font-size: 12px; width: 60%;}

.mini_cart_item .mini-cart-price {
    width: 30%;
    text-align: right;
    float:right;
}




.mini-cart-loader {
	width: 20px;
	height: 20px;
	border: 2px solid #ccc;
	border-top-color: #000;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-left: 10px;
    position: absolute;
    top: 35%;
    left: 45%;
    z-index: 9;
}



@keyframes spin {
	0%   { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

 .mobile-cart-toggle {
    display: none;
}

 .mobile-cart-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        font-size: 24px;
        z-index: 9999;
    }

   .mobile-cart-toggle {
        display: none;
    }

    .mobile-cart-notice {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 99999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Mobiel breakpoint: alles onder elkaar zetten */
@media screen and (max-width: 768px) {
    header .tagline {
    display: none;
}

.mobile-cart-toggle {
        display: block;
    }

   .navbar-toggler {
        display: block;
    }

    .masonry-container {
        position: static !important; /* verwijdert absolute positioning */
        height: auto !important;     /* masonry plugin height negeren */
    }

    .masonry-container .product-block {
        position: static !important; /* verwijdert absolute positioning van items */
        left: auto !important;
        top: auto !important;
        width: 100% !important;      /* volle breedte */
        margin-bottom: 15px;         /* afstand tussen items */
    }

    .subcategories-container.fixed {
    position:fixed;
    top: 140px;
}

    .subcategory-header {
        width: 100%;
    }

    .sidebar-container {
        display: none;
    }


 .sidebar-container.active {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        font-size: 24px;
        z-index: 9999;
    }

    .category-header {
        height: 200px;
    }

    .product-block-content.broodje-padding .price {
        bottom: 60px;
    }
}
.mobile-cart-toggle { width: 30px; height: 30px;}
/* Overlay (fullscreen cart op mobiel) */
/* basis: verborgen op desktop */
.mobile-header-cart { display: none; }

#mennega_date, #mennega_time { max-width: 250px;}

/* mobiel: toon overlay/icoon */
@media (max-width: 768px) {

    header {
        position: fixed;
        z-index: 99999;
        width: 100%;
        top: 0;
    }
    header .custom-logo { 
        max-width: 150px;
    }
    .mobile-cart-toggle {
       display: flex;
  align-items: center; /* verticaal centreren */
  gap: 8px; /* ruimte tussen icoon en aantal */
  text-decoration: none;
  margin-right: 80px;
  margin-top: 15px;
    }
    span.cart-count { 
        color: #fff;
    }

    .mobile-header-cart {
        display: block;
        position: fixed;
        width:100%;
        inset: 0;
        z-index: 10999;
        pointer-events: none; /* standaard niet klikbaar totdat open */
    }

   .mobile-cart-overlay {
    display: none;
    position: fixed; /* zorgt dat hij altijd bovenop staat */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* hoger dan je header/menu */
    background: rgba(0,0,0,0.6); /* optioneel voor overlay effect */

    justify-content: flex-end; /* of center, afhankelijk van je design */
    pointer-events: auto; /* belangrijk: klikbaar maken */
}

.mobile-cart-overlay.active {
    display: block;
}

.mobile-cart-inner {
    background: #fff;
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: fixed;
    top: 0; right: 0;
    overflow-y: auto;
    padding: 20px;
}

.mobile-cart-close {
    color: #000;
}

    /* open state */
    .mobile-header-cart.open .mobile-cart-overlay {
        transform: translateX(0);
    }

    .mobile-cart-close {
        position: absolute;
        top: 14px;
        right: 14px;
        font-size: 28px;
        border: none;
        background: transparent;
        cursor: pointer;
        z-index: 12000;
    }

    /* scrollbare inhoud */
    .mobile-cart-inner {
        padding: 60px 20px 120px; /* ruimte voor close & fixed footer */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1 1 auto;
    }

    /* fixed footer (buttons) */
    .mobile-cart-inner .woocommerce-mini-cart__buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 14px 16px;
        box-shadow: 0 -6px 20px rgba(0,0,0,.08);
        display: flex;
        gap: 10px;
        z-index: 12000;
    }
    .mobile-cart-inner .woocommerce-mini-cart__buttons a {
        flex: 1;
    }

    .content-container{ margin-top: 180px; }
    .category-header { margin-top: 50px; }
}
