/* ===== HEADER STYLES ===== */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --primary-color: #dc2626;
    --primary-hover: #b91c1c;
    --secondary-color: #f59e0b;
    --accent-color: #dc2626;
    
    /* Neutrals */
    --dark-blue: #1e293b;
    --medium-gray: #64748b;
    --light-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --black: #0f172a;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-brand: 'Orbitron', sans-serif;
    
    /* Spacing */
    --container-max: 1280px;
    --container-padding: 20px;
    
    /* Effects */
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== HEADER SALE TIMER ===== */
.header-sale-timer {
    background: var(--primary-color);
    padding: 8px 0;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sale-timer-slim {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.sale-timer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-icon {
    font-size: 1.1rem;
}

.timer-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.sale-timer-right {
    display: flex;
    gap: 5px;
}

.timer-block {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 32px;
    text-align: center;
}

.timer-block span {
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .header-sale-timer {
        padding: 6px 0;
    }
    
    .sale-timer-slim {
        gap: 8px;
    }
    
    .timer-text {
        font-size: 0.8rem;
    }
    
    .timer-block {
        min-width: 28px;
        padding: 3px 6px;
    }
    
    .timer-block span {
        font-size: 0.9rem;
    }
}

/* ===== HEADER STRUCTURE ===== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

/* ===== TOP BAR ===== */

.header-top {
    background: #dc2626;
    color: var(--white);
    font-size: 14px;
    padding: 8px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-icon {
    flex-shrink: 0;
}

.notice-divider {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 5px;
}

.header-top-right {
    display: flex;
    gap: 20px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-fast);
    opacity: 0.9;
}

.header-contact:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* ===== MAIN HEADER ===== */

.header-main {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
}

/* ===== LOGO ===== */

.header-logo {
    flex-shrink: 0;
}

.logo-link {
    text-decoration: none;
    display: block;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-family: var(--font-brand);
    font-size: 28px;
    font-weight: 900;
    color: var(--black);
    line-height: 1;
    letter-spacing: -0.02em;
}



/* ===== SEARCH BAR ===== */

.header-search {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    position: relative;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--font-primary);
    transition: var(--transition);
    background: var(--light-gray);
}

.search-input:focus {
    outline: none;
    border-color: var(--medium-gray);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1);
}

.search-input::placeholder {
    color: var(--medium-gray);
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    color: var(--dark-blue);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--light-gray);
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.search-result-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result-original-price {
    color: var(--medium-gray);
    text-decoration: line-through;
    font-size: 0.9em;
}

.search-result-sale-price {
    color: var(--primary-color);
    font-weight: 600;
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: var(--medium-gray);
}

/* Mobile Search Results */
@media (max-width: 640px) {
    .mobile-search-results {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border-color);
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        z-index: 1000;
        display: none;
    }

    .mobile-search-results.active {
        display: block;
    }

    .mobile-search-result-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
        text-decoration: none;
        color: var(--dark-blue);
    }

    .mobile-search-result-image {
        width: 40px;
        height: 40px;
    }

    .mobile-search-result-name {
        font-size: 0.9em;
    }

    .mobile-search-result-price {
        font-size: 0.85em;
    }
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--medium-gray);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-button:hover {
    background: var(--dark-blue);
    transform: translateY(-50%) scale(1.05);
}

/* ===== HEADER ACTIONS ===== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    margin-left: auto;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--dark-blue);
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.header-action:hover {
    background: var(--light-gray);
    color: var(--dark-blue);
}

.search-toggle {
    /* Zelfde styling als andere header actions */
}

.action-text {
    font-size: 12px;
    font-weight: 500;
}

.cart-action {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 8px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== MOBILE MENU TOGGLE ===== */

.mobile-menu-toggle {
    display: none;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-fast);
    color: var(--dark-blue);
}

.mobile-menu-toggle:hover {
    background: var(--light-gray);
    color: var(--dark-blue);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--medium-gray);
    outline-offset: 2px;
}

.mobile-menu-toggle .menu-icon,
.mobile-menu-toggle .close-icon {
    transition: var(--transition);
}

.mobile-menu-toggle.active .menu-icon {
    display: none;
}

.mobile-menu-toggle.active .close-icon {
    display: block !important;
}

/* Icon animations */
.mobile-menu-toggle .close-icon {
    transform: rotate(0deg);
}

.mobile-menu-toggle.active .close-icon {
    transform: rotate(180deg);
}

/* Enhanced icon styles for all header actions */
.header-action svg,
.mobile-menu-toggle svg,
.search-button svg {
    transition: var(--transition);
}

.header-action:hover svg,
.mobile-menu-toggle:hover svg,
.search-button:hover svg {
    transform: scale(1.1);
}

/* Specific icon hover effects */
.header-action:hover .heart-icon {
    fill: var(--accent-color);
}

.search-button:hover {
    background: var(--dark-blue);
    color: white;
}

.search-button:focus {
    outline: 2px solid var(--medium-gray);
    outline-offset: 2px;
}

/* ===== NAVIGATION ===== */

.header-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 24px;
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-fast);
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    color: var(--dark-blue);
    background: var(--light-gray);
    border-bottom-color: var(--dark-blue);
}

.nav-link.special {
    color: var(--accent-color);
    font-weight: 600;
    position: relative;
}

.nav-link.special::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Category counter styling */
.category-count {
    font-size: 11px;
    background: var(--medium-gray);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 600;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.nav-link:hover .category-count {
    background: var(--dark-blue);
    opacity: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.dropdown-arrow {
    transition: var(--transition-fast);
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ===== DROPDOWN MENUS ===== */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    min-width: 600px;
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 24px;
}

.dropdown-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-column a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: var(--medium-gray);
    font-size: 14px;
    transition: var(--transition-fast);
    border-radius: 6px;
    padding-left: 12px;
    margin-left: -12px;
}

.dropdown-column a:hover {
    color: var(--dark-blue);
    background: var(--light-gray);
}

/* ===== MOBILE MENU OVERLAY ===== */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        gap: 20px;
    }
    
    .header-search {
        max-width: 400px;
        margin-right: 20px;
        margin-left: 0;
    }
    
    .dropdown-menu {
        min-width: 500px;
    }
    
    .dropdown-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .header-top {
        padding: 6px 0;
        font-size: 13px;
    }
    
    .header-notice {
        gap: 10px;
    }
    
    .notice-item {
        gap: 6px;
    }
    
    .header-top-right {
        gap: 15px;
    }
    
    .header-contact .action-text {
        display: none;
    }
    
    .header-main {
        padding: 12px 0;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .header-search {
        max-width: 300px;
        margin-right: 15px;
        margin-left: 0;
    }
    
    .search-input {
        padding: 12px 45px 12px 16px;
        font-size: 14px;
    }
    
    .search-button {
        width: 32px;
        height: 32px;
    }
    
    .header-actions {
        gap: 8px;
        margin-left: 0;
    }
    
    .action-text {
        display: none;
    }
    
    .nav-link {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .dropdown-menu {
        min-width: 400px;
    }
}

/* Mobile-only elements */
.mobile-only {
    display: none;
}

@media (max-width: 640px) {
    .mobile-only {
        display: flex;
    }
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1002;
    backdrop-filter: blur(2px);
}

.mobile-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-search-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    transform: translateY(-100%);
    transition: var(--transition);
}

.mobile-search-overlay.active .mobile-search-container {
    transform: translateY(0);
}

.mobile-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-search-header h3 {
    color: var(--dark-blue);
    font-size: 18px;
    font-weight: 600;
}

.mobile-search-close {
    background: none;
    border: none;
    color: var(--dark-blue);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.mobile-search-close:hover {
    background: var(--light-gray);
}

.mobile-search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search-input {
    width: 100%;
    padding: 16px 55px 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: var(--transition);
    background: var(--light-gray);
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--medium-gray);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1);
}

.mobile-search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--medium-gray);
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-search-button:hover {
    background: var(--dark-blue);
}

/* Mobile */
@media (max-width: 640px) {
    .header-top-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .header-top-right {
        display: none; /* Verberg telefoonnummer op mobiel */
    }
    
    .header-notice {
        flex-direction: row;
        gap: 10px;
        font-size: 13px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .notice-item {
        gap: 6px;
        flex-shrink: 0;
    }
    
    .notice-divider {
        font-size: 14px;
        margin: 0 5px;
        align-self: center;
    }
    
    .header-search {
        display: none; /* Verberg normale zoekbalk op mobiel */
    }
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide mobile-specific elements on desktop */
    .mobile-nav-header {
        display: flex;
    }
    
    .mobile-menu-toggle svg {
        width: 28px;
        height: 28px;
    }
    
    .header-search {
        display: none; /* Verborgen op mobiel - gebruikt search icon */
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header-actions {
        order: 2;
        margin-left: 0;
        justify-content: flex-end;
        gap: 6px;
    }
    
    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-heavy);
        transform: translateX(-100%);
        transition: var(--transition);
        z-index: 1001;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .header-nav .container {
        padding: 0;
        max-width: none;
        width: 100%;
    }
    
    .header-nav.active {
        transform: translateX(0);
    }
    
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        background: #dc2626;
        color: white;
        min-height: 70px;
    }
    
    .mobile-nav-logo .logo-text {
        font-family: var(--font-brand);
        font-weight: 700;
        font-size: 20px;
        color: white;
    }
    
    .mobile-nav-close {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 8px;
        border-radius: 6px;
        transition: var(--transition-fast);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-nav-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .nav-list {
        flex-direction: column;
        padding: 0;
        margin: 0;
        flex: 1;
        width: 100%;
        text-align: left;
    }
    
    .nav-item {
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        display: block;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 16px 24px;
        color: var(--dark-blue);
        text-decoration: none;
        font-weight: 500;
        font-size: 15px;
        transition: var(--transition-fast);
        position: relative;
        text-align: left;
        box-sizing: border-box;
        line-height: 1.4;
    }
    
    .nav-link:hover {
        background: var(--light-gray);
        color: var(--dark-blue);
        padding-left: 30px;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--dark-blue);
        transform: scaleY(0);
        transition: var(--transition-fast);
    }
    
    .nav-link:hover::before {
        transform: scaleY(1);
    }
    
    .text-label-link {
        display: block;
        width: 100%;
        padding: 16px 24px;
        color: var(--medium-gray);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 13px;
        letter-spacing: 0.5px;
        cursor: pointer;
        position: relative;
        background: transparent;
        border-left: none;
        text-align: left;
        box-sizing: border-box;
        line-height: 1.3;
    }
    
    .text-label-link:hover {
        background: transparent;
        color: var(--medium-gray);
    }
    
    .dropdown-arrow {
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        transition: var(--transition-fast);
        font-size: 12px;
        color: var(--medium-gray);
    }
    
    .has-dropdown.active .dropdown-arrow {
        transform: translateY(-50%) rotate(180deg);
    }
    
    .has-dropdown .dropdown-menu {
        display: none;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
        border: none;
        border-radius: 0;
        min-width: auto;
        width: 100%;
        background: #f8f9fa;
        margin: 0;
        padding: 0;
        border-top: 1px solid var(--border-color);
        margin-left: 0;
        margin-right: 0;
    }
    
    .dropdown-item {
        display: block;
        width: 100%;
        padding: 12px 24px 12px 48px;
        color: #64748b;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        transition: var(--transition-fast);
        background: #f8f9fa;
        position: relative;
        text-align: left;
        box-sizing: border-box;
        line-height: 1.4;
        margin: 0;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-item:hover {
        background: var(--white);
        color: var(--dark-blue);
        padding-left: 56px;
        border-left: 3px solid var(--dark-blue);
    }
    
    .dropdown-item::before {
        content: '→';
        position: absolute;
        left: 24px;
        opacity: 0;
        transition: var(--transition-fast);
        color: var(--dark-blue);
    }
    
    .dropdown-item:hover::before {
        opacity: 1;
        left: 30px;
    }
    
    .dropdown-content {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 0;
        background: #f8f9fa;
        margin: 0;
    }
    
    .has-dropdown .dropdown-menu {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .has-dropdown.active .dropdown-menu {
        display: block;
        max-height: 500px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-tagline {
        font-size: 10px;
    }
    
    .search-input {
        padding: 10px 40px 10px 14px;
        font-size: 13px;
    }
    
    .search-button {
        width: 28px;
        height: 28px;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1000;
        backdrop-filter: blur(2px);
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .header-action {
        padding: 6px 6px;
    }
    
    /* Voor zeer kleine schermen - maak menu nog breder */
    .header-nav {
        width: 90%;
        max-width: 450px;
    }
}

/* Desktop/Large screens */
@media (min-width: 641px) {
    .mobile-nav-header {
        display: none;
    }
    
    .header-nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        transform: none;
        z-index: auto;
        overflow: visible;
        display: block;
        flex-direction: row;
    }
    
    .nav-list {
        flex-direction: row;
        align-items: center;
    }
    
    .nav-link {
        padding: 12px 16px;
    }
    
    .nav-link:hover {
        padding-left: 16px;
    }
    
    .nav-link::before {
        display: none;
    }
}

/* ===== UTILITY CLASSES ===== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== MAIN CONTENT OFFSET ===== */

.main-content {
    margin-top: 0; /* Header scrolls with page now */
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .main-content {
        margin-top: 0;
    }
}

/* ===== DROPDOWN MENU STYLING ===== */

/* Text Labels in Navigation */
.nav-item.text-label .text-label-link {
    font-weight: 600;
    color: var(--medium-gray);
    cursor: default;
    pointer-events: none;
}

.nav-item.text-label.has-dropdown .text-label-link {
    cursor: pointer;
    pointer-events: auto;
}

.nav-item.text-label.has-dropdown:hover .text-label-link {
    color: var(--medium-gray);
}

.nav-item.has-dropdown {
    position: relative;
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 0.8em;
    transition: var(--transition-fast);
}

.nav-item.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--dark-blue);
    text-decoration: none;
    font-size: 0.9em;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition-fast);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--dark-blue);
    padding-left: 20px;
}

/* Mobile dropdown aanpassingen */
@media (max-width: 768px) {
    .nav-item.has-dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        display: none;
    }
    
    .nav-item.has-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        padding: 12px 24px 12px 48px;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        color: #64748b;
        background: #f8f9fa;
        width: 100%;
        margin: 0;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.4;
    }
    
    .dropdown-item:hover {
        background: var(--white);
        padding-left: 56px;
        color: var(--dark-blue);
        border-left: 3px solid var(--dark-blue);
    }
}

/* ===== WINKELWAGEN STYLING ===== */

.header-cart {
    position: relative;
    margin-left: 20px;
}

.cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--dark-blue);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.cart-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.cart-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Mobile aanpassingen voor winkelwagen */
@media (max-width: 768px) {
    .header-cart {
        margin-left: 15px;
    }
    
    .cart-link {
        width: 36px;
        height: 36px;
    }
    
    .cart-icon {
        width: 20px;
        height: 20px;
    }
    
    .cart-count {
        top: -6px;
        right: -6px;
        min-width: 18px;
        height: 18px;
        font-size: 11px;
        border-width: 1.5px;
    }
}

@media (max-width: 480px) {
    .header-cart {
        margin-left: 10px;
    }
    
    .cart-link {
        width: 32px;
        height: 32px;
    }
    
    .cart-icon {
        width: 18px;
        height: 18px;
    }
    
    .cart-count {
        top: -5px;
        right: -5px;
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        border-width: 1px;
    }
}
