/* --- Basis Instellingen & Kleurenpalet --- */
:root {
    /* Uw opgegeven palet */
    --col-green-bars: #06922C;     /* Bovenste/Onderste balken + Knoppen */
    --col-bg-beige: #AA8F66;       /* Achtergrond */
    --col-nav-brown: #3B322C;      /* Balk onder de header (Menu) */
    --col-orange-accent: #ED9B40;  /* Raster en Prijzen */
    --col-cream-text: #FFEEDB;     /* Tekstkleur op donkere achtergrond */
    --col-white: #ffffff;
    --col-text-dark: #333333;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Droid Sans', sans-serif;
    background-color: var(--col-bg-beige); /* De Beige achtergrond */
    color: var(--col-text-dark);
    min-height: 100%; 
    display: flex;
    flex-direction: column; /* Stapel alle elementen (header, main, footer) verticaal */
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- 1. Message Bar (Bovenste balk) --- */
.message-bar {
    background-color: var(--col-green-bars); /* Groen */
    color: var(--col-cream-text);
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    min-height: 30px; 
    overflow: hidden;
}

.message-bar .container {
    height: 100%;
    display: flex;
    align-items: center; 
    justify-content: center;
}

.message-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative; 
    width: 100%; 
    height: 100%; 
    text-align: center;
}

.message-bar ul li {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0; 
    transition: opacity 0.5s ease-in-out; 
    white-space: nowrap; 
    display: flex;
    justify-content: center; 
    align-items: center;
    height: 100%;
}

.message-bar ul li.visible {
    opacity: 1; 
}

/* --- 2. Header (Logo Sectie) --- */
header {
    background-color: var(--col-cream-text); 
    padding: 20px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-img {
    height: 70px;
}

.site-title {
    font-size: 2.5em;
    margin: 0;
    color: var(--col-nav-brown);
    line-height: 1;
}

/* --- 3. Navigatie (De balk onder de header) --- */
nav {
    background-color: var(--col-nav-brown); 
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--col-green-bars); 
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.menu li {
    position: relative;
}

.menu a {
    display: block;
    padding: 15px 15px;
    text-decoration: none;
    color: var(--col-cream-text); 
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

.menu a:hover, .menu a.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--col-orange-accent);
}

/* Dropdown menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--col-nav-brown); 
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    top: 100%;
    left: 0;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-transform: none;
}

.menu-right {
    margin-left: auto;
    display: flex;
}

.badge {
    background-color: var(--col-orange-accent); 
    color: var(--col-nav-brown);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    position: relative;
    top: -8px;
    left: -5px;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

/* --- 4. Hero Banner --- */
.hero-banner {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(59, 50, 44, 0.6); 
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    color: var(--col-cream-text); 
    font-size: 3em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-content p {
    color: var(--col-orange-accent);
    font-size: 1.5em;
    font-family: 'Oswald', sans-serif;
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* --- 5. Main Content --- */
main {
    flex-grow: 1; /* Zorgt dat de main de resterende ruimte inneemt */
    background-color: var(--col-cream-text); 
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 4px;
}

main h3 {
    color: var(--col-green-bars);
    border-bottom: 2px solid var(--col-orange-accent);
    padding-bottom: 10px;
    display: inline-block;
}

/* GECOMBINEERDE PRODUCTKAART STIJLEN START */

/* 4. Product Grid Container */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background-color: #ad956e;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    margin-top: 30px;
}

.product-link-wrapper {
    display: block;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

/* De kaart zelf */
.product-card {
    background-color: #ad956e;
    color: var(--col-white);
    padding: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    transition: background-color 0.2s;
    height: 100%; /* Zorgt dat kaarten op gelijke hoogte blijven */
    aspect-ratio: 1 / 1.42;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    overflow: hidden;
}

.product-card:hover {
    background-color: #b79f78;
}

.product-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.08);
}

.product-img {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    font-size: 0;
}

.product-status {
    position: absolute;
    top: 10px;
    right: 0;
    background-color: #1f2b3a;
    color: var(--col-white);
    font-weight: bold;
    line-height: 1;
    padding: 7px 9px;
}

.product-card h4 {
    color: var(--col-white);
    display: -webkit-box;
    font-size: 1.2rem;
    line-height: 1.15;
    min-height: 2.76rem;
    margin: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card .price {
    font-family: 'Oswald', sans-serif;
    color: #f4dec0;
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

.add-btn {
    background-color: var(--col-green-bars); 
    color: var(--col-cream-text);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 8px;
    width: 100%;
    transition: background-color 0.3s;
}

.add-btn:hover {
    background-color: #046e20; 
}

.add-btn:disabled {
    background-color: #8a8178;
    color: #f7efe5;
    cursor: not-allowed;
}

.add-btn:disabled:hover {
    background-color: #8a8178;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
}

/* GECOMBINEERDE PRODUCTKAART STIJLEN EINDE */

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* --- ARTIKEL DETAIL STIJLEN --- */

.product-detail {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.detail-img {
    max-width: 250px;
    max-height: 250px;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    object-fit: contain;
}

.detail-img:hover {
    transform: scale(1.05);
}

.info h1 {
    color: var(--col-nav-brown);
    margin-bottom: 10px;
    font-size: 2em;
}

.article-number {
    color: #666;
    font-weight: bold;
    margin-bottom: 12px;
}

.article-description {
    color: #333;
    line-height: 1.6;
    margin: 0 0 16px;
}

.article-description h2 {
    color: var(--col-nav-brown);
    font-size: 1.15em;
    margin-bottom: 6px;
}

.article-description p {
    margin: 0;
}

.category {
    color: var(--col-orange-accent);
    font-weight: bold;
    margin-bottom: 5px;
}

.price {
    font-size: 1.2em;
    color: var(--col-green-bars);
    font-weight: bold;
    margin-bottom: 5px;
}

.stock {
    color: #666;
    font-style: italic;
}

.out-of-stock {
    color: #d9534f;
    font-weight: bold;
    margin-top: 10px;
}

/* --- MODAL STIJLEN --- */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#modal-img {
    max-width: 100%;
    max-height: 60%;
    object-fit: contain;
}

/* Navigation arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.next {
    right: -50px;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: -50px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Thumbnail strip */
.thumbnail-strip {
    display: flex;
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
    padding: 10px;
    margin-top: 20px;
    background: rgba(0,0,0,0.7);
    border-radius: 5px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 3px;
    transition: border-color 0.3s;
}

.thumbnail:hover, .thumbnail.active {
    border-color: #fff;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* --- 6. Footer (Onderste balk) --- */
footer {
    background-color: var(--col-nav-brown);
    color: var(--col-cream-text);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

/* --- PRODUCT DETAIL PAGINA STIJLEN --- */

/* Verpakking van de Productkaart op de homepagina voor de link */
.product-link-wrapper {
    text-decoration: none; /* Verwijdert de onderstreping van de link */
    color: inherit;
}
.product-link-wrapper .product-card:hover {
    cursor: pointer;
}

/* Breadcrumb Navigatie */
.breadcrumb {
    padding: 10px 0 20px 0;
    font-size: 0.9em;
    color: #888;
}
.breadcrumb a {
    text-decoration: none;
    color: #888;
}
.breadcrumb span {
    color: var(--col-nav-brown);
    font-weight: bold;
}
.breadcrumb a:hover {
    color: var(--col-green-bars);
}

/* --- INTRO BLOCK STIJLEN --- */

.intro-block {
    display: flex;
    gap: 40px; 
    margin-top: 40px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(59, 50, 44, 0.2); 
}

.intro-text {
    flex: 2; 
}

.intro-text h2 {
    color: var(--col-nav-brown); 
    border-bottom: 2px solid var(--col-orange-accent);
    padding-bottom: 10px;
    margin-top: 0;
}

.intro-images {
    flex: 1; 
    display: flex;
    flex-direction: column; 
    gap: 15px; 
}

.intro-image-wrapper {
    overflow: hidden;
    border: 3px solid var(--col-orange-accent); 
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.intro-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Stijl voor de 'Lees Meer' knop (optioneel) */
.read-more-btn {
    display: inline-block;
    background-color: var(--col-green-bars);
    color: var(--col-cream-text);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.read-more-btn:hover {
    background-color: #046e20;
}

html {
    height: 100%; 
}

.account-page {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    margin-top: 20px;
}

.account-form-card {
    background-color: var(--col-bg-beige);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 45%;
}

.account-form-card h3 {
    color: var(--col-nav-brown);
    border-bottom: 2px solid var(--col-orange-accent);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

.account-form-card label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

.account-form-card input[type="text"],
.account-form-card input[type="email"],
.account-form-card input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-btn {
    background-color: var(--col-green-bars);
    color: var(--col-cream-text);
    padding: 10px 15px;
    border: none;
    margin-top: 15px;
    cursor: pointer;
    text-transform: uppercase;
}

.contact-info {
    background-color: var(--col-bg-beige);
    padding: 20px;
    border-radius: 4px;
    margin-top: 30px;
}

.contact-info p {
    margin: 5px 0;
}

.contact-section {
    margin-top: 40px;
}

.contact-intro {
    max-width: 700px;
    margin-bottom: 30px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.contact-card {
    background-color: var(--col-bg-beige);
    padding: 25px;
    border-radius: 6px;
}

.contact-card h3 {
    margin-bottom: 15px;
    color: var(--col-nav-brown);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.contact-list i {
    width: 24px;
    margin-right: 10px;
    color: var(--col-green-bars);
}

.contact-list a {
    color: inherit;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}


/* Responsive container for pdf downloads */
.container_pdfs {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* PDF list item: align button and text */
.pdf-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

/* Truncate long file names dynamically */
.pdf-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.pdf-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 60px);
    /* leave space for button */
}


/* Responsive headings and paragraph text */
h2 {
    font-size: 2rem;
    margin-bottom: 0.5em;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5em;
}

p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1em;
}



/* ========================================================== */
/* --- MEDIA QUERIES (Mobiele Optimalisatie) --- */
/* ========================================================== */

/* Hamburger knop is standaard verborgen */
.menu-toggle {
    display: none;
}

@media (max-width: 900px) {
    /* ------------------- 2. Navigatie (Menu) ------------------- */
    
    /* Maak de Hamburger knop zichtbaar */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--col-cream-text);
        font-size: 1.5em;
        padding: 10px;
        cursor: pointer;
        order: 2; /* Plaats de knop rechts */
    }

    nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu {
        /* Menu is standaard verborgen op mobiel */
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--col-nav-brown);
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
        z-index: 90;
    }

    /* Toon het menu wanneer de 'open' klasse is toegevoegd door JS */
    .menu.open {
        display: flex;
    }

    .menu li {
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .menu li a {
        text-align: left;
    }

    /* De menu-right items (Winkelwagen/Account) moeten in het mobiele menu passen */
    .menu-right {
        margin-left: 0;
        display: flex; /* Zodat ze naast elkaar blijven staan, maar onder de gewone links */
        justify-content: space-around;
        width: 100%;
        border-top: 1px solid var(--col-orange-accent); /* Visuele scheiding */
    }
    
    /* Verberg de dropdown inhoud op mobiel (maak ze klikbaar om te navigeren) */
    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
        background-color: rgba(59, 50, 44, 0.8); /* Iets lichter bruin voor submenu */
    }
    
    /* ------------------- 1. Header & Logo ------------------- */
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .logo-img {
        height: 50px; 
    }

    .site-title {
        font-size: 1.8em; 
    }
    
    /* ------------------- 3. Intro Block ------------------- */
    .intro-block {
        flex-direction: column; 
        gap: 20px;
    }
    
    .intro-text, .intro-images {
        flex: auto; 
        max-width: 100%;
    }
    
    /* ------------------- 4. Product Grid ------------------- */
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: center; 
    }

}


@media (max-width: 500px) {
    /* Bij extreem smalle schermen (telefoon) */

    .message-bar ul {
        flex-direction: column; 
        align-items: center;
        gap: 5px;
    }
    
    .hero-banner {
        height: 250px; 
    }
    
    .hero-content h2 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .product-grid {
        grid-template-columns: minmax(0, 400px);
    }

    .product-link-wrapper {
        flex: 1 1 100%; /* Dwing 1 product per rij op hele smalle schermen */
        max-width: 400px; /* Zorg dat het er op kleine schermen niet té breed uitziet */
    }
    
    .product-card {
        width: auto; /* Geen vaste breedte meer */
    }
}

@media (max-width: 768px) {
    .account-page {
        flex-direction: column;
        align-items: center;
    }

    .account-form-card {
        width: 100%;
    }

    .pdf-name {
        max-width: calc(100% - 50px);
    }

    /* Responsive typography */
    h2 {
        font-size: 4vw;
    }

    h4 {
        font-size: 3vw;
    }

    p {
        font-size: 3vw;
    }
}

@media (max-width: 480px) {
    .pdf-name {
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 5vw;
    }

    h4 {
        font-size: 4vw;
    }

    p {
        font-size: 4vw;
    }
}

/* Add predictable sizing model */
*, *::before, *::after {
    box-sizing: border-box;
}
