/* --- Google Font: Nunito (Speels & Modern) --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --primary: #795f4a;   /* Donkerbruin */
    --primary-light: #8e735c;
    --secondary: #b89d97; /* Lichtbruin/Taupe */
    --bg-color: #f8f5f2;  /* Zacht warm wit */
    --card-bg: #ffffff;
    --accent: #e67e22;    /* Oranje voor acties/knoppen */
    --success: #27ae60;
    --shadow: 0 8px 30px rgba(121, 95, 74, 0.12);
    --radius: 20px;       /* Flinke rondingen */
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: #4a4a4a;
    margin: 0;
    padding: 20px;
}

/* Container met zwevend effect */
.container {
    max-width: 850px;
    margin: 20px auto;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid #efeae6;
}

/* --- Header & Logo --- */
.header {
    background: linear-gradient(135deg, #fff 0%, #fdfbf9 100%);
    text-align: center;
    padding: 30px 20px 10px;
    border-bottom: 3px dashed var(--secondary); /* Speels stippellijntje */
}

.header img {
    /* Logo kleiner en gecentreerd */
    max-width: 250px; 
    height: auto;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header img:hover {
    transform: scale(1.05) rotate(-2deg); /* Speels effect bij hover */
}

.slogan {
    color: var(--secondary);
    font-weight: 700;
    margin-top: 10px;
    font-size: 1.1em;
}

/* --- Formulier --- */
form { padding: 30px; }

h2 {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Inputs styling - ronder */
.form-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 15px; }
.col { flex: 1; min-width: 240px; }

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary);
}

input[type="text"], input[type="email"], input[type="date"], input[type="time"], select, textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #eee;
    border-radius: 15px; /* Ronder */
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafafa;
    box-sizing: border-box;
}

input:focus, textarea:focus {
    border-color: var(--secondary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(184, 157, 151, 0.2);
}

/* --- Producten & Categorieën --- */
.category-block { margin-bottom: 40px; }
.category-title {
    background: var(--primary);
    color: #fff;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(121, 95, 74, 0.2);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Product Kaartje */
.product-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--secondary);
}

.p-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.p-title { font-weight: 800; color: var(--primary); font-size: 1.1em; }
.p-price { 
    background: #f4f1ea; 
    padding: 4px 8px; 
    border-radius: 8px; 
    font-size: 0.9em; 
    font-weight: bold; 
    color: var(--primary);
}

/* Aantal knoppen */
.qty-control {
    display: flex;
    align-items: center;
    background: #fafafa;
    border-radius: 50px;
    padding: 5px;
    border: 1px solid #eee;
}

.qty-input {
    width: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary);
}
.qty-input:focus { box-shadow: none; }

/* Extra opties (checkboxes etc) */
.extra-options {
    background: #fdfbf9;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #eee;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
}
.checkbox-group input { margin-right: 10px; width: 20px; height: 20px; }

/* --- Sticky Total Bar --- */
.total-bar {
    background: var(--primary);
    color: white;
    border-radius: 18px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 10px 25px rgba(121, 95, 74, 0.3);
    position: relative;
    overflow: hidden;
}

/* Achtergrond decoratie in totaal balk */
.total-bar::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.total-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 1em; }
.total-row.discount-row { color: #ffeaa7; font-weight: bold; }
.total-row.final { 
    font-size: 1.6em; 
    font-weight: 800; 
    border-top: 1px solid rgba(255,255,255,0.2); 
    padding-top: 15px; 
    margin-top: 10px; 
}

/* Actie Knop */
button.btn-submit {
    background-color: var(--accent);
    color: white;
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-size: 1.3em;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    cursor: pointer;
    margin-top: 25px;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
    transition: all 0.2s;
}

button.btn-submit:hover {
    background-color: #d35400;
    transform: scale(1.02);
}

/* Berichten */
.msg-box { padding: 25px; border-radius: 15px; margin: 20px; text-align: center; }
.error { background: #ffebee; color: #c62828; border: 2px solid #ef9a9a; }
.success { background: #e8f5e9; color: #2e7d32; border: 2px solid #a5d6a7; }

/* Tabel in bonnetje */
.receipt-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.receipt-table td { padding: 10px; border-bottom: 1px dashed #ddd; }
.receipt-table th { text-align: left; color: var(--primary); padding: 10px; }

/* Mobiel */
@media (max-width: 600px) {
    .container { margin: 0; border-radius: 0; border: none; }
    .form-row { flex-direction: column; gap: 10px; }
}