:root {
  --blue1: #7C83FB;
  --blue2: #7CB6FB;
  --blue3: #7C9CFB;
  --blue4: #8E7CFB;
  --blue5: #A87CFB;
  --blue6: #472f75;
  --blue7: #afd6fe; 
  --blue8: #264473; 
  --blue9: #e1e8f4; 
  --blue10: #b3bff4;
  --silver: #C0C0C0;
  --text: #333;
  --hover: #ffffff;
  --grey: #d9d9d9; 
  --lila: #c5d5ff;
  --green: #215356;
  --font-family: 'Poppins', sans-serif;
}

/* Basisstijl */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--lila);
  color: var(--blue8);
}

/* ------------------------------------------------ */
/* 2. NAVIGATIE BALK STYLING */
/* ------------------------------------------------ */

.navbar {
    display: flex;
    /* Verdeel de ruimte tussen Links, Logo en Rechts */
    justify-content: space-between; 
    align-items: center;
    background-color: var(--blue9);
    padding: 0.5rem 2rem; /* Grotere padding aan de zijkanten */
    top: 0;
    z-index: 2000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Navigatie Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem; 
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--blue8);
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block; /* Zorgt voor het volledige klikgebied */
}

.nav-links a:hover {
    background-color: var(--hover);
    color: var(--blue6);
    border: 2px solid var(--blue6);
}

/* Logo en Zoekbalk */
.logo-wrapper {
    flex-shrink: 0; /* Voorkom dat het logo krimpt */
}

.logo-img {
    max-height: 120px;
    height: auto;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    margin: 0; /* Verwijder de onnodige marge */
}

.logo-img:hover {
    transform: scale(1.0) translateY(-5px);
}

/* Rechterkant - Groepering Zoek, Home, Cart */
.right-side-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem; 
}

/* Zoekbalk Wrapper */
.search-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--blue7);
    border-radius: 25px;
    padding: 5px 10px;
    background-color: var(--hover);
    width: fit-content;
    box-shadow: 0 0 8px rgba(var(--blue4), 0.3);
}

.search-bar {
    border: none;
    outline: none;
    font-size: 16px;
    padding: 10px;
    width: 200px;
    background-color: transparent;
}

.search-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--blue8);
    transition: color 0.3s;
}

.search-button:hover .search-icon {
    color: var(--blue4); 
}

/* Home en Cart Iconen */
.home-icon img,
.cart-icon img {
    height: 45px;
    display: block;
    transition: transform 0.3s ease;
}

.home-icon img:hover,
.cart-icon img:hover {
    transform: scale(1.1);
}



/* Submenu's */
.submenu-container {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    background-color: var(--blue9);
    border: 1px solid var(--blue7);
    padding: 1rem 0; /* Verticale padding, horizontale padding door li */
    list-style: none;
    margin: 0;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    border-radius: 5px;
}

.submenu li {
    margin: 0;
}

.submenu a {
    text-decoration: none;
    color: var(--blue8);
    font-weight: normal;
    padding: 0.5rem 1.5rem; /* Zorgt voor het klikgebied binnen de lijst */
}

.nav-item:hover .submenu {
    display: block;
}

/* Sub-Submenu Styling (Webshop) */
/* Vereist dat de <li> van de hoofditems in het submenu ook position: relative; krijgt */
.submenu li {
    position: relative; 
}

.sub-submenu {
    display: none;
    position: absolute;
    left: 100%; /* Plaats het rechts naast het hoofditem */
    top: 0;
    background-color: var(--blue7); /* Andere achtergrondkleur voor onderscheid */
    border: 1px solid var(--blue6);
    padding: 0.5rem 0;
    list-style: none;
    min-width: 150px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.submenu li:hover .sub-submenu {
    display: block;
}

.sub-submenu a {
    color: var(--blue8);
}

.sub-submenu a:hover {
    background-color: var(--lila);
}

/* --- WINKELWAGENPAGINA / VERLANGLIJST PAGINA STIJLEN (AANVULLING OP cartpage.css) --- */

/* 1. Algemene layout voor de lijst */
/* Let op: De basis layout van de items gebruikt de bestaande .cart-list-item klasse */

/* 2. Styling voor de acties (de rechter kolom) */
.cart-summary-card h2 {
    /* Zorg dat de titel 'Actions' of 'Order Summary' er hetzelfde uitziet */
    color: var(--blue8);
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--blue9);
}

/* 3. Stijl voor de 'Add to Cart' knop per item */
.move-to-cart-btn {
    padding: 10px 18px;
    background-color: var(--blue1); /* Gebruik je blauw/paars accentkleur */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    margin-right: 20px;
    transition: background-color 0.2s;
}

.move-to-cart-btn:hover {
    background-color: var(--blue2); /* Lichtblauwe hover */
}

/* 4. Stijl voor de 'Remove' knop (rood) */
.remove-wish-btn {
    background: none;
    border: none;
    color: var(--text); /* Gebruik donkere tekstkleur, minder opvallend dan op de productkaart */
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-wish-btn:hover {
    color: red !important; /* Maak rood bij hover */
}


/* 5. Stijl voor de 'Move All to Cart' knop in de Summary */
#moveAllToCartButton {
    /* Hergebruik de styling van .checkout-btn */
    width: 100%;
    padding: 15px;
    background-color: var(--accent-color); /* Lila/Paarse kleur */
    color: var(--light-text);
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    margin-top: 15px;
}

#moveAllToCartButton:hover {
    background-color: var(--accent-hover);
}

/* 6. Stijl voor lege lijst melding */
.empty-cart-message {
    font-size: 1.2em;
    color: var(--text);
}

.empty-cart-message a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

/* ======================================= */
/* WISHLIST.CSS - Modern & Consistent Style */
/* ======================================= */

.wishlist-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    background-color: transparent; 
}

/* 2. Header en 'Continue Shopping' link */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color, #e0e0e0); /* Gebruik je variabele */
    padding-bottom: 15px;
}

.page-header h1 {
    font-size: 2.2em;
    color: var(--blue1);
    font-weight: 700;
}

.continue-shopping {
    color: var(--blue1, #007bff);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.continue-shopping:hover {
    color: var(--accent-color, #9370DB);
}

/* 3. GRID WRAPPER (FORCEREN 2 KOLOMMEN) */
.wishlist-grid-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr; 
    gap: 30px;
}

/* 4. ITEMS CONTAINER (LINKS) */
.wishlist-items-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 4.1 INDIVIDUEEL ITEM VAK (DE KAART) */
.wishlist-item-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff; /* Wit vak */
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.wishlist-item-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.item-image-container {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 20px;
}

.item-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex-grow: 1;
    min-width: 0; 
}

.item-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: var(--text, #333);
    font-weight: 600;
}

.item-details p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.item-price {
    font-weight: 700;
    color: var(--text, #333);
    font-size: 1.1em;
    margin-right: 30px;
    min-width: 80px; 
    text-align: right;
}

/* 4.2 Knoppen container */
.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.action-item-btn {
    padding: 8px 15px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

/* Move to Cart knop */
.move-to-cart-btn {
    background-color: var(--accent-color, #9370DB); /* Paars/Lila */
    color: var(--light-text, #fff);
    border-color: var(--accent-color, #9370DB);
}

.move-to-cart-btn:hover {
    background-color: var(--accent-hover, #7b5ed9);
    border-color: var(--accent-hover, #7b5ed9);
}

/* Remove knop */
.remove-wish-btn {
    background: none;
    border: none;
    color: var(--text, #333);
    font-size: 1.2em; 
    padding: 8px;
}

.remove-wish-btn:hover {
    color: var(--danger-color, #dc3545);
}

/* 4.3 STIJL VOOR LEGE WISHLIST VAK */
#wishlistItemsList {
    min-height: 200px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Zorgt ervoor dat het vak zichtbaar is als het leeg is */
    background-color: #fff; 
    border: 1px dashed #ccc; 
    border-radius: 8px;
}

.loading-message {
    font-size: 1.1em;
    color: #666;
    padding: 20px;
}

/* 5. SUMMARY CARD (RECHTS VAK) */
.wishlist-summary-card {
    /* Maakt dit een duidelijke 'box' */
    background-color: #fff; 
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e0e0e0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); 
    height: fit-content;
}

.wishlist-summary-card h2 {
    font-size: 1.5em;
    color: var(--text, #333);
    margin: 0 0 15px 0;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    padding-bottom: 10px;
}

.summary-details {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 20px;
}

.ready-message {
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
}

.action-btn {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

/* Move All knop */
.move-all-btn {
    background-color: var(--accent-color, #9370DB);
    color: var(--light-text, #fff);
    border: 1px solid var(--accent-color, #9370DB);
}

.move-all-btn:hover {
    background-color: var(--accent-hover, #7b5ed9);
    border: 1px solid var(--accent-hover, #7b5ed9);
}

/* Clear All knop */
.clear-all-btn {
    background-color: #fff;
    color: var(--danger-color, #dc3545);
    border: 1px solid var(--danger-color, #dc3545);
}

.clear-all-btn:hover {
    background-color: var(--danger-color, #dc3545);
    color: var(--light-text, #fff);
}

/* 6. Responsive aanpassingen */
@media (max-width: 900px) {
    .wishlist-grid-wrapper {
        grid-template-columns: 1fr; 
    }
    .wishlist-summary-card {
        order: -1; 
    }
}
@media (max-width: 600px) {
    .wishlist-item-card {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }
    .item-image-container {
        margin: 0 0 10px 0;
    }
    .item-details {
        text-align: center;
        margin-bottom: 10px;
        width: 100%;
    }
    .item-price {
        order: 3; 
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-top: 10px;
    }
    .item-actions {
        order: 4; 
        width: 100%;
        justify-content: space-around;
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ------------------------------------------------ */
/* 5. FOOTER STYLING */
/* ------------------------------------------------ */

footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--blue9);
    color: var(--blue8);
    margin-top: 40px;
    width: 100%;
    font-size: 0.9em;
}

footer p {
    margin: 5px 0;
}

/* Styling voor Social Media iconen in de footer */
footer img {
    height: 40px;
    width: 40px;
    margin: 0 10px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

footer a:hover img {
    transform: scale(1.1);
}