/* =================================================================
   BESTELPAGINA STYLING - Gemaakt door Gemini
   ================================================================= */

/* --- Algemene Pagina Layout --- */
body {
    background-color: #f9f9f9;
    font-family: 'Poppins', sans-serif;
}

main {
    padding: 2rem 0;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Filter Knoppen --- */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.filter-btn {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    /* Pilvormige knoppen */
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
    transform: translateY(-2px);
}

/* Stijl voor de actieve filterknop */
a.filter-btn[style*="background:#20b96a"] {
    background-color: #27ae60 !important;
    /* Gebruik primaire kleur */
    color: #fff !important;
    border-color: #27ae60;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}


/* --- Product Kaarten --- */
.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.menu-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.menu-card .img-container {
    height: 200px;
    overflow: hidden;
}

.menu-card .sandwich-img,
.menu-card .drink-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.menu-card:hover .sandwich-img,
.menu-card:hover .drink-img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.menu-card .label {
    background-color: #ff9f43;
    /* Een mooie accentkleur */
    color: white;
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 50px;
    align-self: flex-start;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.menu-card .menu-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    /* Secundaire kleur uit style.css */
}

.menu-card .description {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
    flex-grow: 1;
    /* Duwt de prijs en knoppen naar beneden */
    min-height: 50px;
    /* Zorgt voor gelijke hoogte */
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* Zorgt dat de footer altijd onderaan staat */
}

.menu-card .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #27ae60;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.card-actions .action-btn {
    background: none;
    border: 2px solid;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-actions .add-btn {
    border-color: #27ae60;
    color: #27ae60;
}

.card-actions .add-btn:hover {
    background: #27ae60;
    color: #fff;
}

.card-actions .remove-btn {
    border-color: #e74c3c;
    color: #e74c3c;
}

.card-actions .remove-btn:hover {
    background: #e74c3c;
    color: #fff;
}


/* --- Winkelwagen Sidebar --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100%;
    background-color: #fff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
    z-index: 1000;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
}

.cart-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.cart-sidebar .close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #868e96;
    padding: 0.5rem;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.cart-sidebar .close-btn:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

.cart-items {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex-grow: 1;
}

.cart-items li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
}

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

.cart-items .item-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-details strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #343a40;
}

.item-details .item-price {
    color: #868e96;
    font-size: 0.9em;
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
}

.item-subtotal {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background-color: #f1f3f5;
    border-radius: 50px;
    padding: 4px;
}

.quantity-controls .quantity-btn {
    background: #fff;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.quantity-controls .quantity-btn:hover {
    background-color: #e9ecef;
}

.quantity-controls .quantity-display {
    padding: 0 0.8rem;
    font-weight: 600;
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

.quantity-controls .remove-all {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    transition: color 0.2s;
}

.quantity-controls .remove-all:hover {
    color: #e74c3c;
}

.cart-empty-message {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #868e96;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.cart-empty-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ced4da;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 1.25rem;
}

.checkout-btn {
    display: block;
    width: 100%;
    background-color: #27ae60;
    color: #fff;
    text-align: center;
    padding: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.checkout-btn:hover {
    background-color: #219d56;
    transform: scale(1.02);
}

/* Stijl voor de nieuwe "Bekijk bestelling" knop - Aangepast voor een mooier design */
.order-summary-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #27ae60;
    /* Groene kleur, consistent met de site */
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    /* Ruimte tussen icoon, tekst en teller */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1001;
}

.order-summary-btn:hover {
    background-color: #219d56;
    /* Donkerder groen bij hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.order-summary-btn i {
    font-size: 1.1rem;
}

.order-summary-btn .cart-count {
    background-color: white;
    color: #27ae60;
    /* Groene tekstkleur, passend bij de knop */
    border-radius: 50%;
    padding: 4px 9px;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
    line-height: 1.2;
}

/* Stijl om de knop te verbergen wanneer de sidebar open is */
.order-summary-btn.hidden {
    transform: translateX(200%);
    /* Verplaats de knop uit het zicht */
    opacity: 0;
    pointer-events: none;
    /* Zorgt dat je er niet op kan klikken als hij onzichtbaar is */
}


/* --- Responsive Aanpassingen --- */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        max-width: 350px;
    }

    .menu-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .menu-container {
        grid-template-columns: 1fr;
    }
}