/* =========================================
   1. VARIABELEN & RESETS
   ========================================= */
:root {
    --primary-color: #8DAA91;
    --accent-color: #D4A373;
    --secondary-color: #264653;
    --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; }
body { font-family: var(--font-main); color: var(--text-color); line-height: 1.6; background-color: var(--white); 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: rgba(255, 255, 255, 0.98);
    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; }
.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: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
    margin-bottom: 50px;
}
.hero-content { max-width: 800px; padding: 0 20px; animation: fadeIn 1s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content h1 { font-family: var(--font-heading); font-size: 3.5rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; line-height: 1.2; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; font-weight: 300; }

/* =========================================
   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: 40;
    background: #fff;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px 0;
    border-bottom: 1.5px solid #eee;
    margin-bottom: 20px;
}
#menu-cat-nav::-webkit-scrollbar { display: none; }
.cat-pill {
    white-space: nowrap;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid #ddd;
    background: #fff;
    color: #264653;
    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: #264653;
    color: #fff;
    border-color: #264653;
}
.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: #264653;
    padding: 6px 0 8px 12px;
    border-left: 4px solid #2a9d8f;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2px;
}

/* ── 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: collapse; background: var(--white); border: 1px solid #eee; }
.menu-table td { padding: 8px 16px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; font-size: .88rem; }
.menu-table tr:last-child td { border-bottom: none; }
.menu-table tbody tr { cursor: pointer; transition: background .15s; }
.menu-table tbody tr:not(.no-hover):hover { background: #f0f7f6; }
.menu-table tbody tr.no-hover { cursor: default; background: transparent !important; }
.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. PROMOTIE BANNER
   ========================================= */
.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; }
.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-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    align-items: stretch;
}
.contact-info { background: var(--light-bg); padding: 40px; border-radius: var(--border-radius); }
.contact-info h3 { font-family: var(--font-heading); text-transform: uppercase; font-size: 1.3rem; margin-bottom: 25px; }
.contact-info-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; font-size: 1rem; line-height: 1.5; }
.contact-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.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%; flex: 1; min-height: 0; pointer-events: none; }
.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 { text-align: center; padding: 50px 0; background: var(--secondary-color); color: var(--white); }
footer p { font-size: 0.9rem; opacity: 0.8; }

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

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 30px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); text-align: center; }
    .nav-links.active { display: flex; }
    .hero { height: 70vh; }
    .hero-content h1 { font-size: 2.2rem; }
    .flex-row { flex-direction: column; text-align: center; }
    .about-image { order: -1; margin-bottom: 30px; }
    .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; }
}

@media (max-width: 480px) {
    .menu-grid { grid-template-columns: 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: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}

.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: #264653;
    cursor: pointer;
    min-width: 0;
    background: white;
    box-sizing: border-box;
}
.slot-date-alt:focus,
#slot-time-select:focus {
    outline: none;
    border-color: #264653;
}
