/* =========================================
   1. VARIABELEN & RESETS
   ========================================= */
:root {
    --primary-color: #8DAA91;
    --accent-color: #D4A373;
    --secondary-color: #264653;
    --highlight-color: #2a9d8f;
    --text-color: #333533;
    --light-bg: #F1F3F2;
    --white: #ffffff;
    --font-main: 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --border-radius: 15px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font-family: var(--font-main); color: var(--text-color); line-height: 1.6; background-color: var(--bg, #fff); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--border-radius); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   2. VAKANTIEBANNER
   ========================================= */
.holiday-banner {
    background: var(--accent-color);
    color: white;
    text-align: center;
    padding: 15px 20px;
    font-weight: 600;
    width: 100%;
    position: relative;
    z-index: 2000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease-out;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* =========================================
   3. HEADER & NAVIGATIE
   ========================================= */
header {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; text-decoration: none; color: var(--secondary-color); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; display:inline-flex; align-items:center; }
.logo span { color: var(--primary-color); }
.nav-links { display: flex; list-style: none; }
.nav-links li a { text-decoration: none; color: var(--secondary-color); margin-left: 25px; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; transition: all 0.3s ease; position: relative; }
.nav-links li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-links li a:hover { color: var(--primary-color); }
.nav-links li a:hover::after { width: 100%; }
.menu-toggle { display: none; cursor: pointer; flex-direction: column; justify-content: space-between; width: 25px; height: 18px; }
.menu-toggle .bar { height: 2px; width: 100%; background-color: var(--secondary-color); transition: all 0.3s ease; }

/* =========================================
   4. HERO SECTIE
   ========================================= */
.hero {
    height: 260px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    margin-bottom: 40px;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(38,70,83,.1) 0%, rgba(38,70,83,.85) 100%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 42px;
    animation: fadeIn .8s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-accent {
    width: 36px;
    height: 3px;
    background: var(--highlight-color);
    border-radius: 2px;
    margin-bottom: 10px;
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.1;
    margin: 0 0 6px;
    text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
.hero-content p {
    font-size: .95rem;
    font-weight: 300;
    margin: 0;
    opacity: .85;
    letter-spacing: .4px;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

/* Hero tekst-only (sidebar & tiles layout) */
.hero-text-only {
    text-align: center;
    padding: 28px 20px 16px;
}
.hero-text-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary-color);
    margin: 0 0 6px;
    line-height: 1.2;
}
.hero-text-slogan {
    font-size: .9rem;
    color: var(--primary-color);
    font-weight: 300;
    margin: 0;
    letter-spacing: .4px;
}

/* =========================================
   5. KNOPPEN
   ========================================= */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 40px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn:hover { background: var(--accent-color); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* =========================================
   6. SECTIE LAYOUTS
   ========================================= */
section { padding: 100px 0; }
.bg-light { background-color: var(--light-bg); }
.section-title { text-align: center; font-family: var(--font-heading); margin-bottom: 60px; font-size: 2.2rem; text-transform: uppercase; position: relative; color: var(--secondary-color); }
.section-title::after { content: ''; position: absolute; width: 60px; height: 3px; background: var(--primary-color); bottom: -15px; left: 50%; transform: translateX(-50%); }

/* =========================================
   7. OVER ONS
   ========================================= */
.flex-row { display: flex; align-items: center; gap: 50px; }
.about-text { flex: 1; }
.about-text h2 { text-align: left; margin-bottom: 20px; }
.about-text p { margin-bottom: 20px; font-size: 1.05rem; }
.about-image { flex: 1; }
.about-image img { box-shadow: 20px 20px 0 var(--primary-color); transition: transform 0.3s ease; }
.about-image img:hover { transform: scale(1.02); }

/* =========================================
   8. MENUKAART
   ========================================= */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; margin-top: 20px; }
.category-tile { background: var(--white); padding: 20px !important; text-align: center; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.3s ease; border: 1px solid #eee; display: flex; flex-direction: column; align-items: center; }
.category-tile:hover { transform: translateY(-10px); border-color: var(--primary-color); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.category-image { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; background-color: #f0f0f0; }
.category-tile h3 { font-family: var(--font-heading); font-size: 1.1rem; color: var(--secondary-color); margin-bottom: 5px; text-transform: uppercase; }
.category-tile span { font-size: 0.85rem; color: #888; }

/* ── Sticky categorie-navigatie ── */
#menu-cat-nav {
    position: sticky;
    top: 70px;
    z-index: 900;
    background: #fff;
    padding: 12px 0;
    border-bottom: 1.5px solid #eee;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#menu-cat-nav::-webkit-scrollbar { display: none; }
@media (min-width: 769px) {
    #menu-cat-nav { flex-wrap: wrap; overflow-x: visible; }
}
#menu-cat-nav-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#menu-cat-nav-inner::-webkit-scrollbar { display: none; }
@media (min-width: 769px) {
    #menu-cat-nav-inner { flex-wrap: wrap; overflow-x: visible; }
}
@media (max-width: 768px) {
    #menu-cat-nav {
        position: fixed;
        left: 0;
        right: 0;
        padding-left: 16px;
        padding-right: 16px;
    }
}
#menu-cat-nav-spacer { display: none; }
.cat-pill {
    white-space: nowrap;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid #ddd;
    background: #fff;
    color: var(--secondary-color);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
    font-family: var(--font-main);
    text-decoration: none;
    display: inline-block;
}
.cat-pill:hover, .cat-pill.active {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}
.menu-cat-block {
    margin-bottom: 28px;
    scroll-margin-top: 130px;
}
.menu-cat-block + .menu-cat-block {
    margin-top: 12px;
}
.menu-cat-title {
    font-size: .92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--secondary-color);
    padding: 8px 14px;
    border-left: 4px solid var(--highlight-color);
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    background: rgba(42, 157, 143, 0.07);
    border-radius: 0 6px 6px 0;
}
.cat-chevron { font-style: normal; font-size: 1.1rem; color: var(--highlight-color); }

/* ── Tiles layout branded header ── */
.tiles-brand-header { text-align: center; padding: 44px 20px 32px; }
.tiles-brand-header h1 { font-family: var(--font-heading); font-size: 2.8rem; color: var(--secondary-color); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; line-height: 1.1; }
.tiles-brand-header p { color: #64748b; font-size: 1rem; margin: 0; }

/* ── Categorietegels ── */
.cat-tile-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin: 0 0 20px;
}
.cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    border: 2.5px solid transparent;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    cursor: pointer;
    transition: box-shadow .15s, transform .12s, border-color .15s;
    aspect-ratio: 1;
}
.cat-tile:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-2px); }
.cat-tile.cat-active { border-color: var(--primary-color); }
.cat-tile-img {
    width: 68%;
    aspect-ratio: 1;
    object-fit: contain;
    display: block;
    background: transparent;
    margin: 6px auto;
    border-radius: 6px;
}
.cat-tile-img-ph {
    width: 80%;
    aspect-ratio: 1;
    background-image: url('images/placeholder-kk.jpeg');
    background-size: cover;
    background-position: center;
    margin: 6px auto;
    border-radius: 6px;
}
.cat-tile-label {
    width: 100%;
    padding: 8px 10px;
    font-weight: 700;
    font-size: .75rem;
    color: var(--secondary-color);
    text-align: left;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .07em;
    background: rgba(42, 157, 143, 0.07);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

/* ── Categorie product-paneel ── */
.cat-panel { display: none; }
.cat-panel.cat-active { display: block; }
#cat-panels { scroll-margin-top: 80px; padding-bottom: 40px; }
#menu.container { padding-bottom: 48px; }

/* ── Oud accordion (behouden voor compatibiliteit) ── */
.menu-table-container { margin-bottom: 20px; overflow-x: auto; }
.menu-category-header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 20px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 30px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.menu-category-header:hover { background: #1a3545; }
.accordion-meta { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; opacity: 0.75; font-weight: 400; letter-spacing: 0; text-transform: none; }
.accordion-arrow { font-style: normal; transition: transform 0.3s ease; display: inline-block; font-size: 0.9rem; }
.menu-table-wrapper { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.menu-table-wrapper.open { max-height: 3000px; }
.menu-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; background: transparent; border: none; }
.menu-table td { padding: 11px 16px; vertical-align: middle; font-size: .88rem; background: #fff; border-top: 1px solid #e8edf2; border-bottom: 1px solid #e8edf2; }
.menu-table tbody tr.no-hover > td { background: transparent; border: none; padding: 2px 0; }
.menu-table tbody tr { cursor: pointer; transition: background .15s; }
.menu-table tbody tr:not(.no-hover):hover > td { background: #f0f7f6; }
.menu-table tbody tr.no-hover { cursor: default; }
.menu-table tbody tr:not(.no-hover) > td:first-child { border-left: 1px solid #e8edf2; border-radius: 10px 0 0 10px; }
.menu-table tbody tr:not(.no-hover) > td:last-child { border-right: 1px solid #e8edf2; border-radius: 0 10px 10px 0; }
.size-row > td { background: #f4f7fa; border-bottom: 1px solid #eef1f5; }
.size-row:last-child > td { border-bottom: none; }
.size-row:hover > td { background: #e8f4f3; cursor: pointer; }
.item-name { font-weight: 600; color: var(--secondary-color); font-size: .88rem; }
.item-price { font-weight: 700; color: var(--text-color); text-align: right; width: 100px; white-space: nowrap; }
.item-action { width: 50px; text-align: right; }
.badge { background: var(--accent-color); color: white; font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; margin-left: 10px; vertical-align: middle; font-weight: 700; text-transform: uppercase; }
.add-to-cart-btn { background: var(--primary-color); color: white; border: none; width: 38px; height: 38px; border-radius: 8px; cursor: pointer; font-size: 1.3rem; font-weight: bold; transition: background 0.2s, transform 0.1s; display: flex; align-items: center; justify-content: center; }
.add-to-cart-btn:hover { background: var(--secondary-color); transform: scale(1.05); }
.size-btn { background: var(--primary-color); color: white; border: none; padding: 5px 10px; border-radius: 8px; cursor: pointer; font-size: .78rem; font-weight: 700; line-height: 1.3; text-align: center; transition: background 0.2s, transform 0.1s; white-space: nowrap; }
.size-btn:hover { background: var(--secondary-color); transform: scale(1.04); }
.size-btn small { font-weight: 400; font-size: .72rem; opacity: .9; }

/* =========================================
   9. MENU ZOEKBALK
   ========================================= */
#menu-search-wrap{margin-bottom:18px}
.layout-sidebar #menu-search-wrap,
.layout-logo #menu-search-wrap {
    position: sticky;
    top: var(--hh);
    z-index: 100;
    background: var(--bg, #fff);
    padding: 10px 0 8px;
    margin: 0 0 4px;
}
#menu-search{width:100%;box-sizing:border-box;padding:11px 16px 11px 42px;border:1.5px solid #e5e7eb;border-radius:10px;font-size:.95rem;color:var(--secondary-color);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 14px center;outline:none;transition:border-color .2s}
#menu-search:focus{border-color:var(--primary-color)}
#menu-search::-webkit-search-cancel-button{cursor:pointer}
#menu-no-results{margin:24px 0;text-align:center;color:#94a3b8;font-size:.95rem}

/* =========================================
   10. PROMOTIE BANNER
   ========================================= */
.promo-ribbon-wrap{display:flex;flex-direction:column;gap:6px;margin-bottom:24px}
.promo-ribbon{display:flex;align-items:center;gap:14px;background:var(--white);border:1px solid rgba(42,157,143,.2);border-left:3px solid var(--highlight-color);border-radius:0 8px 8px 0;padding:9px 16px 9px 14px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.promo-ribbon-img{width:56px;height:44px;border-radius:6px;background-size:cover;background-position:center;flex-shrink:0}
.promo-ribbon-body{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}
.promo-ribbon-badge{font-size:.6rem;font-weight:800;color:var(--highlight-color);text-transform:uppercase;letter-spacing:.08em;white-space:nowrap}
.promo-ribbon-title{font-size:1rem;font-weight:600;color:var(--secondary-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.promo-ribbon-price{display:flex;align-items:center;gap:6px;flex-shrink:0}
.promo-ribbon-orig{font-size:.8rem;color:#94a3b8;text-decoration:line-through}
.promo-ribbon-act{font-size:1rem;font-weight:800;color:var(--secondary-color)}
.promo-ribbon-btn{padding:6px 14px;font-size:.82rem;flex-shrink:0}
@media(max-width:540px){
    .promo-ribbon{flex-wrap:wrap;gap:6px 14px}
    .promo-ribbon-body{flex-basis:calc(100% - 70px)}
    .promo-ribbon-title{white-space:normal;overflow:visible;text-overflow:clip}
    .promo-ribbon-price{margin-left:70px;flex-shrink:0}
    .promo-ribbon-btn{flex:1;text-align:center;font-size:.8rem}
}
.promo-banner { background: var(--white); border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin-bottom: 60px; overflow: hidden; display: flex; border: 2px solid var(--primary-color); }
.promo-img { flex: 1; min-height: 250px; background-size: cover; background-position: center; }
.promo-content { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.promo-tag { background: var(--accent-color); color: white; padding: 4px 12px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; display: inline-block; margin-bottom: 15px; width: fit-content; text-transform: uppercase; }
.promo-content h3 { font-family: var(--font-heading); font-size: 2rem; color: var(--secondary-color); margin-bottom: 15px; line-height: 1.2; }
.promo-content p { font-size: 1.1rem; color: #555; margin-bottom: 25px; }

/* =========================================
   10. MODALS
   ========================================= */
.modal { display: none; position: fixed; z-index: 9000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(4px); overflow-y: auto; }
.modal-content { background-color: var(--white); margin: 5vh auto; padding: 40px; border-radius: var(--border-radius); width: 90%; max-width: 600px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); animation: modalFade 0.3s ease-out; }
@keyframes modalFade {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
.close-modal { position: absolute; right: 25px; top: 20px; font-size: 35px; font-weight: bold; color: #bbb; cursor: pointer; transition: color 0.3s; }
.close-modal:hover { color: var(--secondary-color); }
.modal-header { margin-bottom: 30px; border-bottom: 3px solid var(--primary-color); padding-bottom: 15px; }
.modal-header h2 { font-family: var(--font-heading); color: var(--secondary-color); text-transform: uppercase; font-size: 1.1rem; }
.modal-list { list-style: none; }
.modal-list li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #f0f0f0; }
.modal-list li:last-child { border-bottom: none; }
.item-info span { font-weight: 600; font-size: 0.82rem; color: var(--secondary-color); }
.item-info small { color: #777; font-size: 0.75rem; }

.modal-content--flex { display: flex; flex-direction: column; max-height: 85vh; }
.modal-scroll-wrapper { position: relative; flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.modal-scroll-body { flex: 1; overflow-y: auto; padding-right: 6px; }
.modal-scroll-body::-webkit-scrollbar { width: 5px; }
.modal-scroll-body::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.modal-scroll-body::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; }
.modal-scroll-body::-webkit-scrollbar-thumb:hover { background: var(--secondary-color); }
.scroll-hint { position: absolute; bottom: 0; left: 0; right: 6px; height: 60px; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.96) 65%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; pointer-events: none; transition: opacity 0.3s ease; font-size: 1.1rem; color: var(--primary-color); font-weight: 700; }
.scroll-hint.hidden { opacity: 0; }
.modal-footer { padding-top: 15px; border-top: 2px solid #eee; margin-top: 5px; flex-shrink: 0; }

.opt-group h4 { background: var(--light-bg); padding: 6px 10px; border-radius: 6px; margin: 14px 0 6px 0; font-family: var(--font-heading); font-size: 0.72rem; text-transform: uppercase; color: var(--secondary-color); }
.opt-label { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.2s; font-size: 0.82rem; }
.opt-label:hover { background: #f9f9f9; }
.opt-label-sm { padding: 5px 12px; }
.opt-text { font-size: 0.82rem; color: #333; }
.saus-uitverkocht { opacity: .5; cursor: default; pointer-events: none; }
.saus-uitverkocht-tag { font-size: .7rem; background: #fef3c7; color: #92400e; padding: 1px 5px; border-radius: 4px; font-weight: 700; margin-left: 4px; }
.opt-input { width: 20px; height: 20px; margin-right: 20px; cursor: pointer; accent-color: var(--primary-color); vertical-align: middle; }
.comment-section { margin-top: 20px; padding-top: 15px; border-top: 2px solid #eee; }
.comment-section textarea { width: 100%; height: 80px; padding: 12px; border-radius: 8px; border: 1px solid #ddd; font-family: var(--font-main); resize: none; margin-top: 5px; }

/* =========================================
   11. WINKELMAND
   ========================================= */
#floating-cart-btn { position: fixed; bottom: 30px; right: 30px; width: 70px; height: 70px; background-color: var(--secondary-color); color: var(--white); border-radius: 50%; display: none; justify-content: center; align-items: center; box-shadow: 0 10px 25px rgba(0,0,0,0.3); z-index: 8000; cursor: pointer; border: 3px solid var(--white); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
#floating-cart-btn:hover { transform: scale(1.1); background-color: var(--primary-color); }
#cart-count-badge { position: absolute; top: -5px; right: -5px; background: var(--accent-color); color: white; font-size: 0.85rem; padding: 4px 10px; border-radius: 20px; font-weight: 700; border: 2px solid var(--white); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.cart-icon { font-size: 1.8rem; }
.cart-item-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
.cart-item-info { flex: 1; padding-right: 15px; }
.cart-item-info strong { display: block; color: var(--secondary-color); font-size: 1rem; }
.cart-item-info small { display: block; color: #888; font-style: italic; font-size: 0.85rem; margin-top: 4px; line-height: 1.3; }
.cart-item-price { font-weight: 700; color: var(--text-color); margin-right: 15px; white-space: nowrap; }
.remove-btn { background: #fee2e2; color: #ef4444; border: none; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-weight: 800; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.remove-btn:hover { background: #ef4444; color: white; }
.cart-total-container { margin-top: 20px; padding-top: 15px; border-top: 2px solid var(--primary-color); display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; font-weight: 700; color: var(--secondary-color); margin-bottom: 20px; }
.cart-btn { background: #25D366; color: white; border: none; padding: 16px; border-radius: 12px; font-weight: 800; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; font-size: 1rem; width: 100%; display: block; text-align: center; }
.cart-btn:hover { background: #128C7E; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.cart-name-input { width: 100%; padding: 12px 15px; border: 2px solid #ddd; border-radius: 8px; font-size: 1rem; font-family: var(--font-main); transition: border-color 0.3s; outline: none; }
.cart-name-input:focus { border-color: var(--primary-color); }
.cart-name-input::placeholder { color: #bbb; }
.time-btn.active { border-color: var(--primary-color) !important; background: var(--primary-color) !important; color: white !important; }
.remove-item-btn { background: #ffeded; color: #e74c3c; border: none; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; font-weight: bold; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.remove-item-btn:hover { background: #e74c3c; color: white; }

.cart-qty-controls { display: flex; align-items: center; gap: 6px; margin: 0 10px; }
.qty-btn { background: var(--light-bg); border: 1px solid #ddd; color: var(--secondary-color); width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.qty-btn:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.qty-value { font-weight: 700; min-width: 20px; text-align: center; font-size: 1rem; }

/* =========================================
   12. CONTACT & KAART
   ========================================= */
#contact.container { padding-bottom: 5rem; }
.contact-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}
.contact-tile {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.contact-tile-head {
    padding: 8px 14px;
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--secondary-color);
    background: color-mix(in srgb, var(--highlight-color) 10%, white);
    border-left: 4px solid var(--highlight-color);
}
.contact-tile-body { padding: 16px; }
.contact-info-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: .88rem; line-height: 1.5; }
.contact-icon { font-size: .85rem; flex-shrink: 0; margin-top: 2px; color: var(--secondary-color); width: 14px; text-align: center; }
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.social-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.map-preview-wrapper { border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: flex; flex-direction: column; height: 100%; }
#map-preview { width: 100%; height: 180px; pointer-events: none; display: block; }
.map-open-btn { display: block; width: 100%; border-radius: 0; padding: 12px; font-size: 0.9rem; flex-shrink: 0; }
#map-big { height: 420px; border-radius: 12px; }

/* =========================================
   13. OPENINGSUREN
   ========================================= */
.opening-hours { background: var(--light-bg); padding: 40px; border-radius: var(--border-radius); }
.opening-hours h3 { margin-bottom: 25px; font-family: var(--font-heading); text-transform: uppercase; font-size: 1.3rem; }
.opening-hours p { display: flex; justify-content: space-between; border-bottom: 1px dotted #ccc; padding-bottom: 8px; margin-bottom: 12px; }

/* =========================================
   14. FOOTER
   ========================================= */
footer { background: var(--secondary-color); color: var(--white); padding: 56px 0 0; }
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 18px;
}
.footer-heading {
    font-family: var(--font-heading);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .5;
    margin-bottom: 14px;
}
.footer-col p {
    font-size: .9rem;
    opacity: .75;
    margin: 0 0 10px;
    line-height: 1.5;
}
.footer-col a { color: inherit; text-decoration: none; opacity: 1; }
.footer-col a:hover { text-decoration: underline; }
.footer-icon { font-size: .82rem; width: 16px; text-align: center; margin-right: 8px; opacity: .7; }
.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    font-size: 1rem;
    transition: background .2s, border-color .2s;
    opacity: .8;
}
.footer-socials a:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.6); opacity: 1; text-decoration: none; }
.footer-hours-row {
    display: flex;
    justify-content: space-between;
    font-size: .88rem;
    opacity: .75;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    gap: 16px;
}
.footer-hours-row span:first-child { opacity: .7; }
.footer-bottom {
    text-align: center;
    padding: 18px 0;
}
.footer-bottom p { font-size: .82rem; opacity: .45; margin: 0; }
.footer-kaartklik { color: inherit; text-decoration: none; font-weight: 700; opacity: 1; }
.footer-kaartklik span { color: #F4B942; }
.footer-kaartklik:hover { text-decoration: underline; }
.footer-legal-link { color: inherit; text-decoration: none; opacity: .6; }
.footer-legal-link:hover { opacity: 1; text-decoration: underline; }

.legal-modal-content { max-width: 600px; max-height: 80vh; display: flex; flex-direction: column; }
.legal-modal-title { font-family: var(--font-heading); color: var(--secondary-color); font-size: 1rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #eee; flex-shrink: 0; }
.legal-modal-body { overflow-y: auto; font-size: .78rem; line-height: 1.6; color: #444; }
.legal-modal-body h3 { font-size: .78rem; font-weight: 700; color: #1a1a1a; margin: 14px 0 4px; text-transform: uppercase; letter-spacing: .04em; }
.legal-modal-body p { margin: 0 0 6px; }
.legal-modal-body a { color: var(--primary-color); }

/* =========================================
   15. MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2rem; }
}

/* Tablet: nav gewoon zichtbaar, geen hamburger */
@media (max-width: 768px) {
    .menu-toggle { display: none; }
    .nav-links { display: flex; }
    .nav-links li a { margin-left: 16px; font-size: .8rem; }
    .hero { height: 220px; background-attachment: scroll; }
    .hero-content { padding: 0 20px 32px; }
    .hero-content h1 { font-size: 1.8rem; letter-spacing: 2px; }
    .section-title { font-size: 1.6rem; margin-bottom: 36px; }
    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    #floating-cart-btn { bottom: 20px; right: 20px; width: 60px; height: 60px; }
    .promo-banner { flex-direction: column; }
    .promo-img { min-height: 200px; }
    .promo-content { padding: 30px; }
    .cat-tile-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Klein mobiel: hamburger terug */
@media (max-width: 520px) {
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--white);
        padding: 12px 20px 16px;
        box-shadow: 0 8px 20px rgba(0,0,0,.12);
        border-radius: 0 0 10px 10px;
        min-width: 150px;
        z-index: 999;
    }
    .nav-links.active { display: flex; }
    .nav-links li a { margin-left: 0; padding: 8px 0; font-size: .88rem; text-align: right; }
    .hero { height: 200px; }
    .hero-content { padding: 0 16px 13px; }
    .hero-content h1 { font-size: 1.4rem; letter-spacing: 1.5px; }
    .hero-content p { font-size: .85rem; }
    .section-title { font-size: 1.4rem; margin-bottom: 28px; }
    .tiles-brand-header { padding: 24px 16px 20px; }
    .tiles-brand-header h1 { font-size: 1.8rem; }
    .tiles-brand-header p { font-size: .88rem; }
}

@media (max-width: 768px) {
    .contact-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .menu-grid { grid-template-columns: 1fr; }
    .cat-tile-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === PRODUCT & CATEGORIE FOTO'S === */
.cat-header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.item-thumb {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--light-bg);
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}
.item-thumb-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    background-color: var(--light-bg);
    background-image: url('images/placeholder-kk.jpeg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: inline-block;
    flex-shrink: 0;
}
.item-unavailable { cursor: default; }
.item-unavailable .item-thumb { filter: grayscale(1); opacity: .2; }
.uitverkocht-tag { font-size: .75rem; color: #94a3b8; margin-left: 7px; }

/* Sidebar, tiles & logo: minder ruimte boven menu-sectie */
.layout-sidebar section,
.layout-tiles section,
.layout-logo section { padding-top: 24px; }

/* === HEROSIDEBAR: sidebar compenseert voor fixed header === */
:root { --hh: 90px; }
.layout-herosidebar #menu {
    padding-top: 0;
}
.layout-herosidebar #menu-search-wrap {
    position: sticky;
    top: var(--hh);
    z-index: 10;
    background: var(--bg, #fff);
    padding: 10px 0 8px;
    margin: 0 0 4px;
}
.layout-herosidebar .sb-nav {
    top: calc(var(--hh) + 60px);
    max-height: calc(100vh - var(--hh) - 80px);
}

/* === SIDEBAR LAYOUT (menu-section-sidebar.php) === */
.sb-wrap { display: flex; gap: 0; align-items: flex-start; }

/* ── Desktop: verticale nav links ── */
.sb-nav {
    width: 230px;
    min-width: 230px;
    flex-shrink: 0;
    position: sticky;
    top: 144px;
    max-height: calc(100vh - 164px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 32px;
}
.sb-pill {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-family: var(--font-heading);
    font-size: .83rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sb-pill:hover { background: var(--light-bg); }
.sb-pill.sb-active { background: var(--secondary-color); color: #fff; }

/* ── Content ── */
.sb-content { flex: 1; min-width: 0; }
.sb-cat-block { margin-bottom: 36px; }
.sb-cat-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--secondary-color);
    margin-bottom: 14px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
}

/* ── Product grid ── */
.sb-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 14px;
}
.sb-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .15s, transform .15s;
}
.sb-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.10); transform: translateY(-2px); }
.sb-unavailable { cursor: default; opacity: .55; }
.sb-unavailable:hover { box-shadow: none; transform: none; }
.sb-card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0;
    display: block;
}
.sb-card-img-ph {
    width: 100%;
    aspect-ratio: 1;
    background: var(--light-bg) url('images/placeholder-kk.jpeg') center/cover no-repeat;
}
.sb-card-body {
    padding: 8px 10px 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sb-card-name {
    font-size: .875rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.25;
}
.sb-card-badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    background: var(--accent-color);
    color: #fff;
    border-radius: 4px;
    padding: 1px 5px;
    align-self: flex-start;
}
.sb-card-uitverkocht {
    font-size: .73rem;
    color: #94a3b8;
    font-style: italic;
}
.sb-card-sub {
    font-size: .75rem;
    color: #64748b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sb-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 8px;
    gap: 6px;
}
.sb-card-price {
    font-size: .88rem;
    font-weight: 700;
    color: var(--secondary-color);
    white-space: nowrap;
}
.sb-card-btn {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.sb-card-btn:hover { background: var(--secondary-color); }

/* ── Mobiel: horizontale pill-balk ── */
@media (max-width: 768px) {
    .sb-wrap { flex-direction: column; }
    .sb-nav {
        position: sticky;
        top: var(--hh);
        z-index: 90;
        width: 100%;
        min-width: 0;
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 6px;
        padding: 8px 0 8px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        scrollbar-width: none;
    }
    .sb-nav::-webkit-scrollbar { display: none; }
    .sb-pill {
        flex-shrink: 0;
        width: auto;
        padding: 5px 12px;
        font-size: .78rem;
        border-radius: 20px;
        border: 1.5px solid #e5e7eb;
    }
    .sb-pill.sb-active { border-color: var(--primary-color); }
    .sb-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.modal-product-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.modal-product-thumb {
    display: none;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

#opt-item-name {
    margin: 0;
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

/* Slot datepicker & tijdsdropdown */
.slot-date-alt,
#slot-time-select {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: .9rem;
    font-family: inherit;
    color: var(--secondary-color);
    cursor: pointer;
    min-width: 0;
    background: white;
    box-sizing: border-box;
}
.slot-date-alt:focus,
#slot-time-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* === LOGO LAYOUT: groot logo in header, sidebar-menukaart === */
header.header-logo-layout {
    padding: 8px 0;
}
header.header-logo-layout #header-logo-img {
    height: 90px;
    max-width: 260px;
}
header.header-logo-layout .logo a > div {
    display: none;
}
.layout-logo .sb-nav {
    top: 112px;
}
@media (max-width: 768px) {
    header.header-logo-layout #header-logo-img {
        height: 56px;
        max-width: 160px;
    }
}

.grecaptcha-badge { visibility: hidden !important; }

/* ── Subcat filter chips ─────────────────────────────────────────────────── */
.subcat-filter { display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 14px; }
.subcat-chip { padding:5px 16px;border-radius:20px;border:1.5px solid var(--border,#e2e8f0);background:var(--surface,#fff);color:var(--text,#1e293b);font-size:.82rem;font-weight:600;cursor:pointer;transition:all .15s;line-height:1.4; }
.subcat-chip.active,.subcat-chip:hover { background:var(--teal,#0d9488);border-color:var(--teal,#0d9488);color:#fff; }
