/* ======================================
   ROOT STYLES (Light Mode Standaard)
====================================== */
:root {
    --bg: #f6f8fb;
    --bg-gradient-top: #f0f6ff;
    --bg-gradient-bottom: #fdfefe;
    --card: #ffffff;
    --text: #0f172a;
    --text-secondary: #334155;
    --muted: #6b7280;
    --shadow: 0 10px 30px rgba(16,24,40,0.08);
    --accent: #2b6df6;
    --warning: #ef4444;
    --border: #e2e8f0;
    --border-light: #f0f0f0;
    --border-dashed: #e0e0e0;
    --size-guide-bg: #f7f9fc;
    --size-guide-th-bg: #eef2f6;
    --hover-bg: #f0f6ff;
    --select-border: #d1d5db;
    
    /* RGB variabelen voor transparantie effecten */
    --accent-rgb: 43, 109, 246;
    --text-rgb: 15, 23, 42;
}

/* ======================================
   DARK MODE OVERRIDES
====================================== */
.dark-mode {
    --bg: #18191a;
    --bg-gradient-top: #18191a;
    --bg-gradient-bottom: #1c1d1f;
    --card: #242526;
    --text: #e4e6eb;
    --text-secondary: #b0b3b8;
    --muted: #b0b3b8;
    --shadow: 0 4px 15px rgba(0,0,0,0.4);
    --accent: #5e8cf6;
    --warning: #ff6b6b;
    --border: #3a3b3c;
    --border-light: #3a3b3c;
    --border-dashed: #3a3b3c;
    --size-guide-bg: #2d2f31;
    --size-guide-th-bg: #35373a;
    --hover-bg: rgba(94, 140, 246, 0.1);
    --select-border: #3a3b3c;
    
    --accent-rgb: 94, 140, 246;
    --text-rgb: 228, 230, 235;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
    background: linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--bg-gradient-bottom) 60%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.5s ease, color 0.3s ease;
}

/* ======================================
   NAVIGATIEBALK 
====================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: var(--card);
    display: flex;
    justify-content: center; 
    align-items: center;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.05);
    z-index: 10;
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar-content {
    max-width: 1100px;
    width: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

.nav-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.3s;
}

.nav-links {
    list-style: none; 
    display: flex; 
    position: relative; 
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 20px 10px; 
    display: block;
    transition: color 0.15s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%; 
    left: 0; 
    transform: translateY(10px); 
    list-style: none;
    padding: 8px 0;
    background: var(--card);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 180px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.3s;
}

.dropdown-menu li a {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    display: block;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu li a:hover {
    background: var(--hover-bg);
    color: var(--accent);
}

.arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

/* --- DARK MODE TOGGLE STYLING --- */
.dark-mode-toggle {
    background: var(--bg); 
    border: 1px solid var(--muted); 
    cursor: pointer;
    font-size: 20px;
    margin-left: 10px;
    padding: 0;
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, border-color 0.2s;
    flex-shrink: 0; 
}

.dark-mode-toggle:hover {
    background-color: rgba(var(--accent-rgb), 0.1);
    border-color: var(--accent);
}

.icon-light, .icon-dark {
    color: var(--text);
}

.icon-dark, .dark-mode .icon-light {
    display: none;
}

.dark-mode .icon-dark {
    display: inline;
}

/* ======================================
   PRODUCT PAGINA SPECIFIEKE STIJL
====================================== */

.product-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 30px 40px; 
}

.product-header {
    text-align: center;
    margin-bottom: 30px;
}

.product-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    transition: color 0.3s;
}

.product-header .tag {
    font-size: 16px;
    color: var(--muted);
    margin-top: 5px;
    transition: color 0.3s;
}

.product-grid {
    display: flex;
    gap: 40px;
    background: var(--card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: background 0.3s, box-shadow 0.3s;
}

.product-media {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center; 
}

.product-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    display: block;
}

.product-details {
    flex: 1.2;
}

.product-details h2 {
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 10px;
    color: var(--accent);
    transition: border-color 0.3s, color 0.3s;
}

.product-description {
    margin-bottom: 25px;
    padding: 10px 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    font-weight: 500; 
    transition: color 0.3s;
}

/* Matentabel STIJL (Algemene opmaak) */
.size-guide {
    margin-bottom: 25px;
    padding: 15px;
    background-color: var(--size-guide-bg);
    border-radius: 8px;
    transition: background-color 0.3s;
}

.size-guide h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    transition: color 0.3s;
}

.size-guide table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 14px;
}

.size-guide th, .size-guide td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.size-guide th {
    background-color: var(--size-guide-th-bg);
    font-weight: 600;
    color: var(--text-secondary);
}

.size-guide td {
    color: var(--text);
}

.size-note-warning {
    color: var(--warning); 
    font-weight: 700;
    font-size: 14px;
    transition: color 0.3s;
}


/* Keuzegroepen (Dropdowns/Swatches) */
.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    transition: color 0.3s;
}

.custom-select {
    width: 200px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--select-border);
    background-color: var(--card);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.3s, color 0.3s;
}

.custom-select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

/* Kleurkiezer */
.color-picker {
    display: flex;
    gap: 10px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.2s;
}

.color-swatch.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--card);
}

.color-note {
    font-size: 13px;
    color: var(--muted);
    margin: 8px 0 0;
    transition: color 0.3s;
}

/* Prijs en Betaalknop */
.price-box {
    margin: 30px 0 15px;
    padding: 15px 0;
    border-top: 1px dashed var(--border-dashed);
    transition: border-color 0.3s;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    transition: color 0.3s;
}

.shipping-note {
    font-size: 14px;
    color: var(--muted);
    margin-top: 5px;
    transition: color 0.3s;
}

/* CTA KNOP */
.rounded-cta {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    width: 100%;
    text-align: center;
    box-shadow: 0 6px 15px rgba(var(--accent-rgb), 0.3);
}

.rounded-cta:hover {
    background-color: #1e53c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.45);
}

.dark-mode .rounded-cta:hover {
    background-color: #4a7ae8;
}

.product-info {
    margin-top: 30px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    transition: border-color 0.3s;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--text);
    transition: color 0.3s;
}

.product-info ul {
    list-style: none;
}

.product-info li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 5px;
    transition: color 0.3s;
}

/* Responsive aanpassingen */
@media (max-width: 900px) {
    .product-grid {
        flex-direction: column;
    }
    .product-media {
        align-items: center;
    }
    .product-image {
        max-width: 100%;
    }
    .product-container {
        padding: 80px 15px 40px;
    }
    .rounded-cta {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .navbar-content {
        padding: 0 20px;
    }
    
    .nav-brand {
        font-size: 16px;
    }
}