*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100vh;
    background: #2A7B9B;
    background: linear-gradient(90deg, #0065F8 0%, rgba(87, 199, 133, 1) 50%, #EA6227 100%);
    font-family: sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

.navtop {
    background: black;
    color: white;
    height: 6rem;
    font-size: 4rem;
    text-align: right;
}

.products {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 5rem;
    padding: 2rem;
    font-size: 2rem;
}

.products__product {
    background-color: white;
    width: 25rem;
    border: 1.5rem solid green;
    padding: 5rem;
    margin: 2rem;
    font-size: 2.5rem;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.fa-cart-shopping {
    color: rgba(237, 221, 83, 1);
    padding: 1rem;
    vertical-align: middle;
    margin-top: -8rem;
    transition: transform 0.2s, color 0.2s;
}

.fa-cart-shopping:hover {
    color: #EA6227;
    transform: scale(1.2) rotate(-10deg);
    cursor: pointer;
}

.img_products {
    display: block;
    width: 100%;
    max-width: 18rem;
    aspect-ratio: 1/1;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
    background: #f3f3f3;
    margin: 0 auto 2rem auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#cart-count {
    position: absolute;
    top: -0.1rem;
    right: -0.1rem;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.6rem;
    font-size: 2rem;
    z-index: 1;
}

.filters {
    display: flex;
    flex-direction: row;
}

.products__product:nth-of-type(1) .cart-btn {
    background: rgba(42, 123, 155, 1);
    color: white;
}

.products__product:nth-of-type(2) .cart-btn {
    background: rgba(87, 199, 133, 1);
    color: white;
}

.products__product:nth-of-type(3) .cart-btn {
    background-color: #FF9800;
    color: white;
}

.products__product:nth-of-type(4) .cart-btn {
    background: rgba(42, 123, 155, 1);
    color: white;
}

.products__product:nth-of-type(5) .cart-btn {
    background: rgba(87, 199, 133, 1);
    color: white;
}

.products__product:nth-of-type(6) .cart-btn {
    background-color: #FF9800;
    color: white;
}

.cart-btn {
    border: none;
    padding: 1rem 2rem;
    margin: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.6rem;
}

.logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
}

.logo {
    display: block;
    margin: 1rem 0 1.5rem 0;
    max-width: 200px;
    height: auto;
}

.info-box {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem 3rem;
    font-size: 1.8rem;
    color: #2A7B9B;
    min-width: 220px;
    max-width: 320px;
}

.terug_webshop {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.back-btn {
    background: #2A7B9B;
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #0065F8;
    font-weight: normal;
}

.products__product,
.cart-list {
    overflow-wrap: break-word;
    box-sizing: border-box;
    font-weight: normal;
}

.footer {
    width: 100%;
    text-align: center;
    padding: 2rem 0;
    background: #2A7B9B;
    margin-top: 3rem;
}

.footer-link {
    color: white;
    font-size: 2rem;
    text-decoration: underline;
}

.footer-link:hover {
    color: #EA6227;
}

#cart-items {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.cart-total {
    font-size: 2.8rem;
    margin-top: 2.5rem;
    color: #fff;
    background: #2A7B9B;
    padding: 1.5rem 0;
    border-radius: 1rem;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.darkmode {
    background: #181818;
    color: #f3f3f3;
}

body.darkmode .products__product {
    background: #232323;
    border-color: #444;
    color: #f3f3f3;
}

body.darkmode .info-box {
    background: #232323;
    color: #f3f3f3;
}

body.darkmode .cart-btn,
body.darkmode .back-btn {
    background: #444 !important;
    color: #fff !important;
    border-color: #888 !important;
}

body.darkmode .footer {
    background: #232323;
}

body.darkmode .cart-total {
    background: #444;
    color: #fff;
}

.section--contact {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.section__form-wrapper {
    background: #fff;
    padding: 3rem 4rem;
    border-radius: 1.5rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
    max-width: 400px;
    width: 100%;
}

.section__title {
    font-size: 2.5rem;
    color: #2A7B9B;
    margin-bottom: 2rem;
    text-align: center;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
    padding: 1rem;
    border: 1px solid #2A7B9B;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    resize: vertical;
}

.form textarea {
    min-height: 8rem;
    max-height: 20rem;
}

.form button[type="submit"] {
    background: #2A7B9B;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 0;
    font-size: 1.7rem;
    cursor: pointer;
    transition: background 0.2s;
}

.form button[type="submit"]:hover {
    background: #EA6227;
}