@font-face {
    font-family: 'Codec Pro';
    src: url('fonts/Codec Pro Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --primary-color: #A55218;
    --secondary-color: #F4752E;
    --accent-color: #B62339;
    --background-light: #FFF5E7;
    --background-dark: #FFE6BD;
    --text-dark: #5A2E1F;
}

/* Algemene styling */
body {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    background: linear-gradient(120deg, var(--background-light), var(--background-dark));
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    animation: fadeInPage 1s ease-in;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header styling */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 25px;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    animation: slideDown 1s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px; /* Verbeterde padding */
}

/* Responsive Design Fixes for Mobile */

/* Ensure logo scales properly on smaller screens */
.header-logo {
    max-width: 80%; /* Scales the logo based on screen size */
    height: auto;
    display: block;
    margin: 0 auto; /* Centers the logo */
}

@keyframes slideDown {
    from { transform: translateY(-100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Secties */
section {
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 800px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Knoppen */
button {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 15px 30px; /* Grotere padding voor een opvallendere knop */
    font-size: 1.3em; /* Maak de tekst groter */
    font-weight: bold;
    border: none;
    border-radius: 10px; /* Meer afgeronde hoeken voor een moderne uitstraling */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    margin: 20px 0; /* Extra ruimte boven en onder de knop */
}

/* Hover-effect: knop iets vergroten en een schaduw toevoegen */
button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/* Geef de knop extra aandacht door een subtiele animatie */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#bestel-btn {
    display: inline-block;
    margin: 40px auto; /* Zorgt ervoor dat de knop goed gecentreerd blijft */
    animation: pulse 1.5s infinite ease-in-out; /* Knop pulseert lichtjes */
}

/* Containers voor Over Ons en Geschiedenis */
.content-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    flex-wrap: wrap;
}

/* Tekst uitlijning in de containers */
.text-content {
    width: 55%;
}

/* Afbeelding wordt links van de tekst weergegeven */
.image-content {
    width: 40%;
    display: flex;
    justify-content: center;
}

/* Zelfde formaat voor afbeeldingen in Over Ons & Geschiedenis */
.content-img, .history-img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Zorg dat de tekst goed uitgelijnd blijft */
#geschiedenis p, #over-ons p {
    line-height: 1.5;
}

/* Mobiele versie: afbeelding boven de tekst */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
        text-align: center;
    }

    .image-content, .text-content {
        width: 100%;
    }

    .image-content {
        display: flex;
        justify-content: center;
    }
}

/* Pop-up styling */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); /* Verbeterd schaduw effect */
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: popIn 0.3s ease-in-out;
}

@keyframes popIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Pop-up inhoud */
.popup-content {
    position: relative;
}

/* Sluitknop */
.close {
    position: absolute;
    top: 15px; /* Beter gepositioneerd */
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
}

/* Formulier styling */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Formulier groepen */
.form-group {
    width: 100%;
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Zorg dat het datumveld hetzelfde design heeft als de andere invoervelden */
#delivery-date {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    appearance: none;
    background-color: white;
    color: var(--text-dark);
    font-family: inherit;
}

#delivery-date:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px var(--secondary-color);
}

/* Labels */
.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-dark);
}

/* Input velden */
.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

/* Verzenden knop */
.form-submit {
    text-align: center;
    margin-top: 20px;
}

.form-submit button {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-submit button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Footer Styling */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    margin-top: 30px;
}

.footer-contact, .footer-socials {
    margin-top: 10px;
}

.footer-contact p, .footer-socials p {
    margin: 5px 0;
}

.footer-socials a {
    display: inline-block;
    margin: 0 10px;
}

.social-icon {
    width: 30px;
    height: 30px;
}

#historia .text-content {
    text-align: justify;
}

/* Centering containers on mobile */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center content */
        text-align: center;
    }

    .text-content, .image-content {
        width: 90%; /* Make containers fit better on small screens */
        max-width: 400px;
    }

    .image-content {
        display: flex;
        justify-content: center;
    }

    section {
        width: 90%; /* Adjust section width for better spacing */
    }
}

/* Ensure 'Sobre Nosotros' is justified on both web and mobile */
#sobre-nosotros .text-content {
    text-align: justify;
}

@media (max-width: 768px) {
    #sobre-nosotros .text-content {
        text-align: justify; /* Keep justified on mobile */
    }
}

/* Instagram Knop Styling */
.floating-instagram {
    position: fixed;
    left: 20px;
    bottom: 50px;
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Voorkomt dat de afbeelding buiten de container valt */
}

/* Zorg dat de afbeelding niet vervormt */
.floating-instagram img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain; /* Zorgt ervoor dat de afbeelding binnen de container blijft */
}

/* WhatsApp Knop Styling */
.floating-whatsapp {
    position: fixed;
    left: 20px;
    bottom: 110px; /* Plaats het boven de Instagram-knop */
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.floating-whatsapp img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* Carousel Container */
.carousel-container {
    width: 80%;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Carousel */
.carousel {
    display: flex;
    gap: 20px; /* Space between images */
    padding: 10px; /* Padding to give breathing room */
    animation: slide 20s infinite ease-in-out; /* Slower and smoother sliding */
}

/* Carousel Item */
.carousel-item {
    min-width: 33.33%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

/* Carousel Animation */
@keyframes slide {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-33.33%); }
    40% { transform: translateX(-66.66%); }
    60% { transform: translateX(-99.99%); }
    80% { transform: translateX(-133.32%); }
}

.catalog-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Twee kolommen naast elkaar */
    gap: 20px; /* Ruimte tussen de kaarten */
    padding: 20px;
    justify-content: center; /* Centreert de grid in het midden */
    place-items: center; /* Centreert de kaarten binnen de grid-cellen */
}

.product-card {
    width: 250px; /* Formaat van de kaarten */
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    background-color: #fff;
    padding-bottom: 10px;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: transform 0.3s ease;
}

.product-card img:hover {
    transform: scale(1.1);
}

.product-card h3 {
    font-size: 18px;
    margin: 10px 0 5px 0;
    color: #333;
}

.product-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.3;
    padding: 0 10px;
}

.product-options {
    list-style-type: none;  /* Verwijdert standaard bolletjes van de lijst */
    padding: 0;
    margin-top: 10px;
}

.product-options li {
    font-size: 13px;
    color: #555;
    background-color: #f1f1f1;
    margin: 5px 10px;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.product-options li:hover {
    background-color: #e0e0e0;  /* Lichte achtergrond bij hover */
}

.product-select {
    width: 80%;
    padding: 5px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.product-select:focus {
    border-color: #666;
}

.product-price {
    font-size: 16px;
    color: #333;
    margin-top: 5px;
}

.styled-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: scale(1.05); /* Slight zoom effect */
}

.styled-button:active {
    background-color: #003d80; /* Even darker blue when clicked */
    transform: scale(0.98); /* Click effect */
}