@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f5f1ea;
    color: #1f2d3d;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.6;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    position: relative;
    background-color: #e8dfd2;
    padding: 28px 20px 24px;
    text-align: center;
    border-bottom: 1px solid #d8cdbf;
}


/* LOGO EN TITEL */

.logo-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}

.logo-header img {
    display: block;
    width: 250px;
    height: 100px;
    object-fit: contain;
    justify-self: end;
    margin-right: 60px;
    transform: translateY(15px) scale(1.25);
}

.logo-header h1 {
    margin: 0;
    color: #1f456e;
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    justify-self: center;
}

header p {
    margin: 18px 0 0 0;
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
}


/* =========================================================
   NAVIGATIE
   ========================================================= */

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

nav a {
    color: #1f456e;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

nav a.active {
    text-decoration: underline;
}


/* =========================================================
   HAMBURGERMENU
   ========================================================= */

.hamburger {
    display: none;
}


/* =========================================================
   MAIN
   ========================================================= */

main {
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    padding: 38px 30px 60px;
}

section {
    margin-bottom: 45px;
}

h2 {
    margin: 0 0 22px 0;
    color: #1f456e;
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    margin: 0 0 15px 0;
    color: #1f456e;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin: 0 0 18px 0;
}

a {
    color: #1f456e;
}

a:hover {
    text-decoration-thickness: 2px;
}


/* =========================================================
   PRODUCTEN OP HOME
   ========================================================= */

#producten {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    scroll-margin-top: 20px;
}

.product {
    display: grid;
    grid-template-rows:
        290px
        48px
        72px
        42px
        42px
        auto;
    background-color: #ffffff;
    border: 1px solid #ddd3c5;
    border-radius: 8px;
    padding: 18px;
}

.product-afbeelding {
    width: 100%;
    height: 290px;
    margin-bottom: 0;
}

.product-afbeelding img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.product h3 {
    margin: 18px 0 0 0;
    align-self: start;
}

.product h3 a {
    color: #1f456e;
}

.product p {
    margin: 0;
    align-self: start;
}

.product .prijs {
    color: #1f456e;
    font-weight: 600;
}

.beschikbaar {
    color: #6f8f72;
    font-weight: 600;
}

.product button {
    align-self: end;
    justify-self: start;
}


/* =========================================================
   PRODUCTDETAILPAGINA
   ========================================================= */

#product-detail {
    display: grid;
    grid-template-columns: 1fr 380px;
    column-gap: 40px;
    align-items: start;
}

#product-detail > h2,
#product-detail > p,
#product-detail > button,
#product-detail > .naar-winkelmand {
    grid-column: 1;
}

#product-detail > img {
    grid-column: 2;
    grid-row: 1 / 10;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

#product-detail > h2 {
    margin-top: 0;
}


/* =========================================================
   KNOP NAAR WINKELMANDJE
   ========================================================= */

.naar-winkelmand {
    display: inline-block;
    margin-top: 10px;
}

#melding {
    margin-top: 18px;
}

/* =========================================================
   CHECKOUT
   ========================================================= */

.checkout-product {
    margin-bottom: 30px;
}

.checkout-product:last-child {
    margin-bottom: 0;
}

.checkout-product-naam {
    margin-bottom: 8px;
    font-size: 23px;
    font-weight: 600;
}

.checkout-product-details {
    margin: 0;
}


/* =========================================================
   ACCENTKLEUR
   ========================================================= */

.succesmelding {
    color: #6f8f72;
}

.label-accent {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    background-color: #eef3ee;
    color: #6f8f72;
    font-size: 0.85rem;
    font-weight: 600;
}


/* =========================================================
   KNOPPEN
   ========================================================= */

button,
.button {
    display: inline-block;
    padding: 11px 20px;
    border: none;
    border-radius: 6px;
    background-color: #1f456e;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

button:hover,
.button:hover {
    background-color: #173754;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* =========================================================
   FORMULIEREN
   ========================================================= */

form {
    width: 100%;
}

label {
    display: block;
    margin: 0 0 7px 0;
    font-size: 18px;
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    padding: 11px 13px;
    margin-bottom: 18px;
    border: 1px solid #cfc5b8;
    border-radius: 6px;
    background-color: #ffffff;
    color: #1f2d3d;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #6f8f72;
    outline-offset: 1px;
}

textarea {
    min-height: 160px;
    resize: vertical;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}


/* =========================================================
   WINKELMANDJE
   ========================================================= */

#winkelmand {
    width: 100%;
}

.winkelmand-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #ddd3c5;
}

.winkelmand-item:last-child {
    border-bottom: none;
}

.winkelmand-item h3 {
    margin-bottom: 5px;
}

.winkelmand-totaal {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #d8cdbf;
    font-weight: 600;
}

.winkelmand-product {
    margin-bottom: 30px;
}

#winkelmand-acties {
    display: flex;
    gap: 15px;
}


/* =========================================================
   TABELLEN
   ========================================================= */

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 9px 12px;
    border-bottom: 1px solid #ddd3c5;
    text-align: left;
}

th {
    color: #1f456e;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}


/* =========================================================
   TEKSTBLOKKEN
   ========================================================= */

.tekstblok {
    background-color: #ffffff;
    border: 1px solid #ddd3c5;
    border-radius: 8px;
    padding: 24px;
}

.info {
    background-color: #faf7f2;
    border: 1px solid #ddd3c5;
    border-radius: 8px;
    padding: 22px;
}

.succes {
    background-color: #eef3ee;
    border: 1px solid #d5e1d6;
    border-radius: 8px;
    padding: 20px;
    color: #4f6f54;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 30px 20px;
    background-color: #e8dfd2;
    border-top: 1px solid #d8cdbf;
    text-align: center;
}

footer p {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

footer a {
    color: #1f456e;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   FOUTMELDINGEN
   ========================================================= */

.error,
.foutmelding {
    color: #9b4d4d;
    font-weight: 500;
}


/* =========================================================
   RESPONSIVE / MOBIEL
   ========================================================= */

@media (max-width: 700px) {

    body {
        font-size: 17px;
    }

    header {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "slogan"
            "menu";
        justify-items: center;
        width: 100%;
        padding: 22px 15px 20px;
    }


    /* LOGO EN TITEL MOBIEL */

    .logo-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-bottom: 15px;
        padding: 0 45px;
        grid-area: logo;
    }

    .logo-header img {
        width: 115px;
        height: 115px;
        margin-right: 0;
        transform: translateY(-8px);
    }

    .logo-header h1 {
        font-size: 2.3rem;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
    }


    /* SLOGAN MOBIEL */

    header p {
        grid-area: slogan;
        margin: 8px 0 0 0;
        font-size: 17px;
        font-style: italic;
        line-height: 1.5;
        text-align: center;
    }


    /* HAMBURGER */

    .hamburger {
        display: flex;
        position: absolute;
        top: 18px;
        left: 15px;
        z-index: 10;
        width: 46px;
        height: 46px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        padding: 0;
        border: 1px solid #cfc5b8;
        border-radius: 6px;
        background-color: #f5f1ea;
        cursor: pointer;
    }

    .hamburger:hover {
        background-color: #f5f1ea;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: #1f456e;
        border-radius: 2px;
    }


    /* MOBIELE NAVIGATIE */

    nav {
        display: none;
        grid-area: menu;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: calc(100% - 30px);
        margin: 18px auto 0;
        padding: 8px 0;
        background-color: #f5f1ea;
        border: 1px solid #cfc5b8;
        border-radius: 8px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    }

    nav.open {
        display: flex;
    }

    nav a {
        display: block;
        padding: 12px 18px;
        color: #1f456e;
        font-size: 18px;
        text-align: left;
        text-decoration: none;
        border-bottom: 1px solid #ddd3c5;
    }

    nav a:last-child {
        border-bottom: none;
    }

    nav a:hover,
    nav a.active {
        background-color: #e8dfd2;
        text-decoration: none;
    }


    /* MAIN */

    main {
        padding: 30px 20px 45px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 21px;
    }


    /* PRODUCTEN */

    #producten {
        grid-template-columns: 1fr;
    }

    .product {
        grid-template-rows:
            290px
            48px
            72px
            42px
            42px
            auto;
    }


    /* PRODUCTDETAIL */

    #product-detail {
        display: flex;
        flex-direction: column;
    }

    #product-detail > img {
        order: 1;
        width: 100%;
        margin-bottom: 25px;
    }

    #product-detail > h2,
    #product-detail > p,
    #product-detail > button,
    #product-detail > .naar-winkelmand {
        order: 2;
    }


    /* WINKELMANDJE */

    .winkelmand-item {
        flex-direction: column;
        align-items: flex-start;
    }

    #winkelmand-acties {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }


    /* CHECKOUT */

    .checkout-product-naam {
        font-size: 20px;
    }


    /* FORMULIEREN */

    label {
        font-size: 17px;
    }

    input,
    textarea,
    select {
        font-size: 16px;
    }


    /* KNOPPEN */

    button,
    .button {
        font-size: 16px;
    }


    /* FOOTER */

    footer p {
        font-size: 15px;
    }

}