
/* ===== BASIS INSTELLINGEN ===== */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Voorkomt horizontaal scrollen op mobiel */
}

body {
    font-family: "Poppins", sans-serif;
}

#container {
    background-image: url("img/9983105.jpg");

    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    margin: 0;
   
    box-sizing: border-box;
    z-index: 1;
}

/* ===== HEADER ===== */
header {
    display: flex;
    flex-wrap: wrap; /* Zorgt dat search naar de volgende regel springt */
    align-items: center;
    justify-content: flex-start; /* Alles begint links */
    width: 100%;
    margin: 0;
    
    padding: 30px 15px; /* Compacte padding voor mobiel */

    background-color: RGBa(233, 150, 122, 0.9);

    box-sizing: border-box;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
}

/* LINKS: Hamburger en Logo */
.hamburger {
    order: 1;
    font-size: 25px; /* Kleiner gemaakt */
    cursor: pointer;
    margin-right: 15px;
}

.logo {
    order: 2;
    flex-grow: 0;
    margin-right: auto; /* Duwt de iconen (social) naar de rechterkant */
}

.logo h1 {
    margin: 0;
    font-size: 2rem; /* Compacte font-size */
    font-weight: 900;
    font-family: monospace;
    color: red;
    letter-spacing: 1px;
    text-shadow: 2px 2px orange;
}
.logo h1 a {
    text-decoration: none;
    margin: 0;
    font-size: 2rem; /* Compacte font-size */
    font-weight: 900;
    font-family: monospace;
    color: red;
    letter-spacing: 1px;
    text-shadow: 2px 2px orange;
}
/* RECHTS: Social, favoriet en winkelkar */
.social {
    order: 3;
    display: flex;
    align-items: center;
    gap: 8px; /* Kleine ruimte tussen iconen */

}

/* ICONS BASIS STYLING (VERKLEIND) */
.icon,
.favorieten a,
.icons a {
    color: black;
    text-decoration: none;
    font-size: 15px; /* Kleiner */
    width: 30px; /* Kleiner */
    height: 33px; /* Kleiner */
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.icons a {
    font-size: 24px;
    position: relative;
}

#cartCount {
    font-size: 9px;
    background: red;
    color: white;
    padding: 2px 4px;
    border-radius: 50%;
    position: absolute;
    top: -3px;
    right: -3px;
}

/* ONDERAAN: Searchbalk over de volledige breedte */
.search {
    order: 4;
    margin-left: 10% !important; /* Volledige breedte */
    margin: 0 auto;
    margin-top: 10px; /* Ruimte onder de logo-rij */
    display: flex;
    justify-content: center;
}

.search input {
    width: 100%;
    padding: 12px; /* Iets dunner voor mobiel */
    border: 2px solid black;
    border-radius: 12px;
    font-size: 14px;
    box-sizing: border-box;
}
/* ===== ACCOUNT DROPDOWN FULLSCREEN ===== */
.dropdown {
    display: none;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 10000;
    padding: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.dropdown.active {
    display: flex;
    text-align: left;
}

.dropdown a {
    display: block;
    margin: 0;
    padding: 20px;
    font-size: 2rem;
    text-decoration: none;
    color: black;
    border-bottom: 1px solid #eee;
    width: 100%;
}

/* ===== MENU / LOGIN BOXES (Gezamenlijk) ===== */
.login-container,
.login-box {
    margin: 20px;
}

.login-container h2,
.login-box h2 {
    font-size: 3.5rem;
    color: red;
    margin: 50px 20px;
}

.login-container input,
.login-box input {
    display: block;
    width: 90%;
    padding: 25px;
    border-radius: 20px;
    margin: 50px auto;
}

.login-container button,
.login-box button {
    width: 90%;
    font-size: 2rem;
    padding: 30px;
    border: 2px solid red;
    border-radius: 30px;
    color: white;
    background-color: red;
    margin: 30px 40px;
}

/* ===== MOBIEL MENU ===== */
/* ===== MOBIEL MENU FULLSCREEN ===== */
/* Het hoofdmenu-venster */
#menu {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: white; /* Of darksalmon: rgb(233, 150, 122) */
    z-index: 10000;
    display: none; /* Verborgen tot 'active' */
    flex-direction: column;
}

#menu.active {
    display: flex; /* Maakt het menu zichtbaar */
}

/* DE CRUCIALE STAP: Verberg alle lijsten die niet actief zijn */
.menu.level {
    display: none; /* Standaard onzichtbaar */
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Alleen de actieve lijst wordt getoond */
.menu.level.active {
    display: flex;
    flex-direction: column;
}

/* Styling voor de menu items */
.menu.level li {
    width: 100%;
    border-bottom: 1px solid #eee;
}

.menu.level li a {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: black;
    font-size: 1.1rem;
}

.menu.level li a img {
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.close-btn {
    font-size: 30px;
    cursor: pointer;
    color: black;
}

/* De lijst-items instellingen */
/* ===== HET FULLSCREEN MENU OVER HET HELE SCHERM ===== */
#menu {
    position: fixed; /* Staat vast op het scherm, scrolt niet mee */
    inset: 0; /* Top, Bottom, Left, Right allemaal op 0 */
    width: 100vw; /* Volledige breedte van het scherm */
    height: 100vh; /* Volledige hoogte van het scherm */
    background: white; /* De achtergrond die de rest van de site verbergt */
    display: none; /* Standaard verborgen */
    z-index: 10000; /* Extreem hoog nummer zodat het over alles heen valt */
    flex-direction: column;
    overflow-y: auto; /* Zorgt dat je in het menu kunt scrollen als de lijst lang is */
}

/* Wanneer JS de class 'active' toevoegt, wordt het menu zichtbaar */
#menu.active {
    display: flex;
}

/* Bovenkant van het menu (Titel + Sluitknop) */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: darksalmon;
    border-bottom: 2px solid #eee;
}

.menu-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-family: monospace;
    color: red;
    text-shadow: 2px 2px orange;
}
.menu-header h1 a {
    text-decoration: none;
    font-size: 1.5rem;
    font-family: monospace;
    color: red;
    text-shadow: 2px 2px orange;
}
.close-btn {
    font-size: 32px;
    cursor: pointer;
    color: black;
    font-weight: bold;
}

/* De lijst met categorieën */
.menu.level {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.menu li a {
    text-decoration: none;
    color: black;
    display: flex; /* Afbeelding en tekst naast elkaar */
    align-items: center; /* Verticaal in het midden */
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}

/* De ronde afbeeldingen */
.menu li a img {
    width: 55px; /* Iets groter voor betere klikbaarheid */
    height: 55px;
    border-radius: 50%; /* Maakt ze perfect rond */
    object-fit: cover; /* Geen vervorming van de foto */
    margin-right: 20px; /* Ruimte tussen foto en tekst */
    flex-shrink: 0; /* De cirkel mag niet platgedrukt worden */
    border: 1px solid #ddd;
}
/* ===== HERO & EXTRA NAV ===== */
.hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
}

.afbeelding img {
    width: 100vw;
    height: 100%;
}

/* Container voor de horizontale scroll */
.extra-nav {
    width: 100%;
    background-color: orange;
    opacity: 0.9;
    overflow-x: auto;
    padding: 30px 0; /* Iets minder padding boven/onder */
}

.extra-nav ul {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.extra-nav li {
    flex: 0 0 auto;
    width: 120px; /* Vaste breedte voor elk item */
    margin-left: 20px; /* Ruimte tussen de items */
}

/* Zorgt dat afbeelding en tekst onder elkaar staan */
.extra-nav li a {
    display: flex;
    flex-direction: column; /* Zet afbeelding boven tekst */
    align-items: center; /* Centreert afbeelding en tekst */
    text-decoration: none; /* Verwijdert de onderstreping */
    color: black; /* Kleur van de tekst */
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

.extra-nav img {
    width: 80px; /* Formaat van de ronde icoontjes */
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    margin-bottom: 8px; /* Ruimte tussen afbeelding en tekst */
}

/* ===== PRODUCT SECTIES (HORIZONTAAL SCROLL) ===== */
#products,
#popular-products,
#eerder-products {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

#products::-webkit-scrollbar,
#popular-products::-webkit-scrollbar,
#eerder-products::-webkit-scrollbar {
    display: none; /* Verberg scrollbar */
}

.special {
    background-color: blanchedalmond;
    opacity: 0.9;
    padding-bottom: 30px;
}

.sectie-titel {
    color: red;
    font-size: 2rem;
    margin: 30px 20px 10px 20px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    position: relative; /* Nodig voor het hartje */
    flex: 0 0 70%;
    max-width: 280px;
    background: white;
  
    overflow: hidden;
   
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    border: 3px solid #000;
    border-radius: 0; /* Geen afgeronde hoeken voor die retro-pixel look */
    box-shadow: 5px 5px 0px #ff6347; /* Een 'offset' schaduw geeft een retro-pop-art effect */
}

.product-img-link {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h3 {
    margin: 0;
    font-size: 1.1rem;
}

.prijs {
    font-size: 1.2rem;
    font-weight: bold;
    color: red;
    margin: 10px 0;
}

.product-info button {
    width: 100%;
    background: red;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
}

/* ===== NIEUWE HARTJE STYLING (GEEN RONDJE) ===== */
.wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.wishlist-icon i {
    font-size: 32px; /* Iets groter hartje */
    color: white; /* Basis kleur op de foto */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); /* Zorgt voor contrast op lichte foto's */
    transition: color 0.3s ease;
}

/* Als het hartje aangeklikt is (favoriet) */
.wishlist-icon.active i {
    color: red !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.wishlist-icon:hover {
    transform: scale(1.1);
}
/* 1. De Grid instellen op exact 2 kolommen */

.sub-menu {
    background-color: blanchedalmond;
    opacity: 0.9;
    overflow-x: auto;
    padding: 20px; /* Geen ruimte boven/onder de container */
    margin: 10px 0;
}

.sub-menu ul {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-menu li {
    padding: 10px; /* Bepaalt de dikte van de balk */
    list-style-type: none;
}

/* Verwijder de marge van de titel "Onze Games" om het gat te dichten */
.special h2 {
    margin: 0;
    padding: 20px; /* Ruimte binnen de 'special' sectie */
}
.sub-menu a {
    text-decoration-line: none;
    color: orange;

    display: flex;
    flex-direction: column; /* Zet afbeelding boven tekst */
    align-items: center; /* Centreert afbeelding en tekst */
    text-decoration: none; /* Verwijdert de onderstreping */
    border: 2px solid orange;
    border-radius: 10px;
    justify-content: center;
    width: 150px;
    height: 50px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}
#product-detail {
    margin: 0;
    padding: 0;
    background-color: white;
    opacity: 0.9;
    border-radius: 10px;
    height: 60%;
}
#product-detail img {
    height: 50%;
}
/* ===== FOOTER ===== */
/* ===== FOOTER STYLING ===== */
/* ===== FOOTER MOBILE-FIRST ===== */
footer {
    background-color: #2c2c2c;
    color: #f4f4f4;
    padding: 40px 20px 20px 20px;
    margin-top: 40px;
    font-family: "Poppins", sans-serif;
    text-align: center; /* Alles gecentreerd op mobiel */
}

.footer-container {
    display: flex;
    flex-direction: column; /* Alles onder elkaar op mobiel */
    gap: 30px;
}

.footer-section h3 {
    color: rgba(233, 150, 122, 1);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    font-size: 0.9rem;
    color: #ccc;
    max-width: 300px;
    margin: 0 auto 10px auto;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px; /* Ruimte voor makkelijk klikken op mobiel */
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    display: block; /* Maakt de hele regel klikbaar */
}

/* Socials & Betaling */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-socials a {
    color: white;
    font-size: 1.4rem;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1.8rem;
    opacity: 0.8;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #888;
}

/* ===== DESKTOP AANPASSINGEN ===== */
@media (min-width: 768px) {
    
    footer {
        text-align: left;
    }

    .footer-container {
        flex-direction: row; /* Naast elkaar op grotere schermen */
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
        flex-wrap: wrap;
    }

    .footer-section {
        flex: 1;
        min-width: 200px;
    }

    .footer-section p {
        margin-left: 0;
    }

    .footer-socials,
    .payment-methods {
        justify-content: flex-start;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* Mobiel */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 20px;
    }

    .payment-methods {
        justify-content: center;
    }
}
/* Standaard: Mobile First (2 kolommen) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}

/* Tablet (vanaf 600px): 3 kolommen */
/* ================================================== */
/* MEDIA QUERIES VOOR RESPONSIVE DESKTOP/TABLET       */
/* ================================================== */

/* 1. Tablet formaat (vanaf 768px) */
@media (min-width: 1024px) {
   
   
    
    header {
        display: grid !important;
        flex-wrap: nowrap;
        justify-content: space-evenly;
        grid-template-areas:
            "logo search social"
            "nav nav nav";
        grid-auto-columns: 5fr 5fr 3fr;
        padding: 20px 10px !important;
        height: 250px !important;
        width: 100vw;
    }

    /* Rij 1: Logo links, Social rechts */
    .logo {
        grid-area: logo;
    }
   .social {
    grid-area: social;
    position: absolute;
    right: 20%;
    top: 10%;
    font-size: 5rem !important;
}
    .logo h1 {
        position: absolute;
        top: 2%;
        left: 5%;
        font-size: 5rem !important;
    }
    .icon,
    .favorieten a,
    .icons a {
        font-size: 35px;
        width: 60x; /* Kleiner */
        height: 60x; /* Kleiner */
        padding: 10px;
    }

    .icons a {
        font-size: 35px;
        position: relative;
        margin: 0 10px;
    }
    /* Rij 2: Navigatie links, Zoekbalk rechts */
    nav#menu {
        grid-area: menu;

        background: transparent !important;
        margin-top: 20px;
    }

    .search {
        grid-area: search;
        width: 30% !important; /* Zoekbalk precies 50% breed */

        position: absolute;
        right: 33%;
        top: 0.5%;
    }
    .filter-trigger{
        width: 88%;
        margin: 0 auto !important;
        margin-bottom: 60px !important;
    }
    main{
         background-color: blanchedalmond;
    opacity: 0.9;
    max-width: 0 50px;
   
    }
    /* Navigatie stijlen: Verwijder decoratie */
    nav#menu {
        grid-area: nav;
        width: 90%;
        position: absolute;
        top: 15%;
        left: 5%;
        justify-content: center;
        display: block !important; /* Forceer tonen */
        background: white !important;
        height: 70px;
        overflow: hidden;
    }

    /* Zorg dat level1 horizontaal wordt */
  #level1 {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center; /* Alles netjes in het midden */
    align-items: center;    /* Alles verticaal uitgelijnd */
    list-style: none !important;
    gap: 40px !important;    /* Ruimte tussen je items */
    padding:  0 !important;
    margin: 0 !important;
    width: 100%;
}

#level1 li a {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: black !important;
    font-weight: bold;
    white-space: nowrap; /* Voorkomt dat tekst naar een nieuwe regel springt */
   
}

    #level1 li {
        border: none !important;
    }

  

    /* Zorg dat iconen verborgen blijven op desktop */
    #level1 li a img {
        display: none !important;
    }

    /* Verberg de rest van de mobiele menu-onderdelen */
    .hamburger,
    .menu-header,
    .close-btn {
        display: none !important;
    }
   
    .special {
        padding-left: 30px;
        padding-top: 150px;
        padding-bottom: 80px;
    }
    #products,
    #popular-products,
    #eerder-products {
        padding-left: 20px;
    }

footer {
    padding-left: 10px !important;
}
  footer{
        margin: 0;
        padding: 0;
        max-width: 100vw;
       box-sizing: border-box;
    }
    .footer-container{
        margin: 0 50px !important;
        align-content: space-between;
        max-width: 95vw;
        margin: 0 auto;
    }
    .footer-section{
        text-align: center;
        flex: 1;
        width: 20vw;
    }
    .footer-section:first-child{
        text-align: left;
        width: 20vw;
    }
    .footer-section:last-child{
        text-align: right;
        display: flex;
        flex-direction: column;
        margin-right: 10px;
        
        
    }
    .payment-methods {
   
    flex-direction: row; /* Zet iconen onder elkaar */
    align-items: right;    /* Centreert ze in de kolom */
    gap: 15px;              /* Geeft wat ruimte tussen de iconen */
    margin-top: 10px;
        margin-left: 65%;
}

/* Zorg dat de iconen zelf ook goed reageren op de nieuwe kolom-indeling */
.payment-methods i {
    font-size: 24px;        /* Pas de grootte naar wens aan */
    display: inline;
  
}
   
                
}
/* ==========================================
   TABLET: PORTRAT & LANDSCAPE (600px - 1023px)
   ========================================== */
@media screen and (min-width: 600px) and (max-width: 1023px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px;
    }

    .search {
        max-width: 400px;
        margin: 10px auto;
    }

    .sub-menu {
        display: flex;
        justify-content: center;
    }

    main {
        padding-top: 170px;
    }
}

/* ==========================================
   GROTE TELEFOONS / KLEINE TABLETS (480px - 599px)
   ========================================== */
@media screen and (min-width: 480px) and (max-width: 599px) {
    .product-grid {
        gap: 15px;
    }
}

/* ==========================================
   LANDSCAPE MODUS (telefoons, korte hoogte)
   Voorkomt dat header + hero te veel verticale ruimte opeisen
   ========================================== */
@media screen and (orientation: landscape) and (max-width: 1023px) and (max-height: 500px) {
    header {
        position: sticky !important; /* i.p.v. fixed: schuift mee, geen vaste ruimte-opeis */
    }

    main {
        padding-top: 10px;
    }

    .hero .afbeelding img.img-mobile {
        max-height: 40vh;
        object-fit: cover;
    }

    .sub-menu {
        height: 44px;
    }

    .sub-menu a {
        height: 40px;
        padding: 6px 14px;
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px;
    }
}

/* ==========================================
   GROTE DESKTOP / BREDE SCHERMEN (1440px+)
   ========================================== */
@media screen and (min-width: 1440px) {
    .product-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }

    #game-products {
        max-width: 1600px;
    }
}
