/* Extracted from header-mobile-source.php lines 19-799 */
/* BEGIN STYLE BLOCK 1 */
/* Hide mobile elements by default */
.mobile-usp-bar,
.mobile-test-header,
.mobile-slide-menu,
.mobile-slide-submenu,
.mobile-slide-menu-overlay,
.mobile-menu-footer {
    display: none !important;
}

@media (max-width: 768px) {
    /* Show mobile elements on mobile */
    .mobile-usp-bar,
    .mobile-test-header {
        display: block !important;
    }
    .mobile-slide-menu,
    .mobile-slide-submenu,
    .mobile-menu-footer {
        display: flex !important;
    }
    
   
    
    body { 
        padding-top: 142px !important; 
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        height: 100vh;
    }
    
    /* Notch area styling */
    body {
        background-color: white;
    }
    
    /* USP Bar */
    .mobile-usp-bar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 30000;
        background: #aea98e;
        color: white;
        font-size: 13px;
        line-height: 32px;
        height: 32px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        overflow: hidden;
    }
    .mobile-usp-bar p {
        margin: 0;
        padding: 0;
        opacity: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: opacity 0.4s ease;
        white-space: nowrap;
        width: 100%;
        text-align: center;
    }
    .mobile-usp-bar p.active { 
        opacity: 1;
    }

    /* Header */
    .mobile-test-header {
        position: fixed;
        top: 32px;
        left: 0;
        width: 100%;
        background: white;
        z-index: 20002;
        transition: all 0.35s cubic-bezier(.77,0,.18,1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }
    .menu-open .mobile-test-header {
        box-shadow: none;
    }
    /* Header shadow blijft actief wanneer search suggestions open zijn */
    .mobile-test-header.search-active {
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .mobile-header-row {
        position: relative;
        display: flex;
        align-items: center;
        height: 52px;
        padding: 0 16px;
        background-color: #ffffff;
        justify-content: space-between;
        transition: all 0.35s cubic-bezier(.77,0,.18,1);
    }
    .menu-open .mobile-header-row .right-icons .account-icon {
        display: flex !important;
    }
    .menu-open .mobile-header-row .right-icons a:not(.account-icon) {
        opacity: 0;
        visibility: hidden;
    }
    /* Remove fade-out of burger in menu-open state */

    /* Icons */
    .left-icons, .right-icons {
        display: flex;
        align-items: center;
        z-index: 2;
        position: relative;
        height: 100%;
    }
    .left-icons {
        gap: calc(12px + 0.5vw);
        padding-left: 4px;
    }
    .right-icons {
        gap: calc(12px + 0.5vw);
        padding-right: 4px;
    }
    .hamburger {
        --size: 44px;
        --bar-w: 20px;
        --bar-h: 0.75px;
        --gap: 5px;
        
        inline-size: var(--size);
        block-size: var(--size);
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: -10px -12px;
        color: rgba(0, 0, 0, 0.5) !important;
        background: transparent;
        border: 0;
        cursor: pointer;
        touch-action: manipulation;
        opacity: 1;
        transition: color 0.35s cubic-bezier(.77,0,.18,1);
    }

    .hamburger:active {
        background-color: rgba(0, 0, 0, 0.05);
        color: rgba(0, 0, 0, 0.7) !important;
    }

    .hamburger__line {
        position: absolute;
        inline-size: var(--bar-w);
        block-size: var(--bar-h);
        background: rgba(0, 0, 0, 0.5) !important;
        border-radius: 0.5px;
        transition: transform 0.35s cubic-bezier(.77,0,.18,1), 
                    opacity 0.35s cubic-bezier(.77,0,.18,1);
        transform-origin: center;
    }
    
    .menu-open .hamburger__line {
        background: rgba(0, 0, 0, 0.5) !important;
    }

    .hamburger__line:nth-child(1) { 
        transform: translateY(calc(-1 * (var(--gap) + var(--bar-h)))); 
    }
    .hamburger__line:nth-child(2) { 
        transform: translateY(0); 
    }
    .hamburger__line:nth-child(3) { 
        transform: translateY(calc(var(--gap) + var(--bar-h))); 
    }

    .menu-open .hamburger__line:nth-child(1) { 
        transform: rotate(45deg); 
    }
    .menu-open .hamburger__line:nth-child(2) { 
        opacity: 0; 
    }
    .menu-open .hamburger__line:nth-child(3) { 
        transform: rotate(-45deg); 
    }

    .search-icon {
        --size: 44px;
        inline-size: var(--size);
        block-size: var(--size);
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin: -10px -12px;
    }
    .search-icon:active {
        background-color: Argba(0, 0, 0, 0.05);
    }
    .search-icon img { 
        filter: brightness(0) opacity(0.5);
        height: calc(16px + 0.5vw); 
        max-height: 20px; 
    }
    .right-icons a { 
        --size: 44px;
        inline-size: var(--size);
        block-size: var(--size);
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin: -10px -12px;
    }
    .right-icons a:active {
        background-color: rgba(0, 0, 0, 0.05);
    }
    /* Cart icon styling - matches cart links by src attribute */
    .right-icons a[href*="cart"], 
    .right-icons a[href*="winkelwagen"] { position: relative; }
    .right-icons a img[src*="bag.svg"] { 
        height: calc(17px + 0.5vw); 
        max-height: 21px; 
        filter: brightness(0) opacity(0.5) !important;
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
        image-rendering: pixelated !important;
        -webkit-backface-visibility: hidden !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
    
    /* Account icon styling - matches account links by src attribute */
.right-icons a img[src*="user.svg"] { 
    height: calc(16px + 0.5vw); 
    max-height: 20px; 

    /* Optisch dikkere lijnen via stacked drop-shadows */
    filter:
        drop-shadow(0 0 0 currentColor)
        drop-shadow(0 0 0 currentColor)
        drop-shadow(0 0 0 currentColor)
        brightness(0) opacity(0.65);

    /* Rendering tweaks voor scherpte (SVG -> geen pixelated) */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: filter;
}

/* Zorg dat het icoon de juiste kleur erft */
.right-icons a { 
    color: rgba(0, 0, 0, 0.6);
}

/* Account icon container and label */
.account-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.account-label {
    font-size: 9px;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 1px;
    white-space: nowrap;
}

    
    /* Wishlist FontAwesome Heart Icon */
    .right-icons .wishlist-link {
        display: inline-flex !important;
        justify-content: center;
        align-items: center;
    }
    .right-icons .wishlist-link .fa-heart {
        font-size: calc(14px + 0.5vw) !important;
        max-height: 20px;
        color: transparent !important;
        -webkit-text-stroke-width: 0.5px !important;
        -webkit-text-stroke-color: rgba(0, 0, 0, 0.5) !important;
        transition: all 0.2s ease !important;
        font-weight: 200 !important;
        transform: translate(2px, 1px) !important;
    }
    .right-icons .wishlist-link:active .fa-heart {
        -webkit-text-stroke-color: rgba(0, 0, 0, 0.7) !important;
    }
    
    /* Cart Badge */
    .cart-badge {
        position: absolute;
        top: 6px;
        right: 4px;
        background: #1a1a1a;
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 600;
        line-height: 1;
        min-width: 18px;
        transform: scale(0);
        transition: transform 0.2s ease;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
        opacity: 0;
    }
    .cart-badge.visible {
        transform: scale(1);
        opacity: 1;
    }
    .cart-badge.pulse {
        animation: cartPulse 0.3s ease;
    }
    
    @keyframes cartPulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.15); }
        100% { transform: scale(1); }
    }

    /* Logo */
    .center-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        z-index: 20001;
    }
    .center-logo a {
        display: flex;
        align-items: center;
        padding: 12px 4px;
        margin: -12px -4px;
        border-radius: 4px;
    }
    .center-logo a:active {
        background-color: rgba(0, 0, 0, 0.05);
    }
    .center-logo img {
        height: calc(14.5px + 0.5vw);
        max-height: 22px;
        object-fit: contain;
        display: block;
        margin: 0;
        max-width: none;
    }

    /* Hide default header */
    header.site-header { display: none !important; }

    /* Mobile Menu */
    .mobile-slide-menu, .mobile-slide-submenu {
        position: fixed;
        top: 122px;
        left: 0;
        bottom: 52px; /* Make room for footer bar */
        width: 100%;
        background: #fff;
        z-index: 20000;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(.77,0,.18,1);
        display: flex;
        flex-direction: column;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile Menu Footer Bar */
    .mobile-menu-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 52px;
        background: #E1DFD7;
        z-index: 20001; /* Above menu content */
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(.77,0,.18,1);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .mobile-menu-footer.open {
        transform: translateX(0);
    }
    .mobile-menu-footer-left,
    .mobile-menu-footer-right {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    .mobile-menu-footer a {
        color: #1a1a1a;
        text-decoration: none;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 1px;
        text-transform: uppercase;
        padding: 8px 0;
        transition: opacity 0.2s ease;
    }
    .mobile-menu-footer a:hover {
        opacity: 0.7;
    }
    .mobile-menu-footer a:active {
        opacity: 0.5;
    }
    
    /* Currency Switcher Styling */
    .mobile-menu-footer .valuta_switch {
        display: flex;
        align-items: center;
        position: relative;
        margin-right: 0px; /* Extra space between currency and language selector */
        min-width: 65px; /* Vaste breedte voor container */
    }
    .mobile-menu-footer .valuta_switch form {
        margin: 0 !important;
        margin-bottom: 0 !important;
        width: 100%;
    }
    .mobile-menu-footer .valuta_switch select {
        background: transparent !important;
        border: none;
        color: #1a1a1a;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 1px;
        text-transform: uppercase;
        padding: 8px 20px 8px 0; /* Reset padding */
        outline: none;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 100%; /* Volledige breedte van container */
        line-height: 1;
        box-shadow: none !important;
    }
    .mobile-menu-footer .valuta_switch select:hover {
        opacity: 0.7;
        background: transparent !important;
    }
    .mobile-menu-footer .valuta_switch select:active {
        opacity: 0.5;
        background: transparent !important;
    }
    .mobile-menu-footer .valuta_switch select:focus {
        background: transparent !important;
        box-shadow: none !important;
    }
    .mobile-menu-footer .valuta_switch select option {
        background: #E1DFD7;
        color: #1a1a1a;
        padding: 8px 8px;
        font-size: 14px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }
    
    /* Custom dropdown arrow */
    .mobile-menu-footer .valuta_switch::after {
        content: '';
        position: absolute;
        right: 2px; /* Heel klein beetje vanaf de rand */
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 4px solid #1a1a1a;
        pointer-events: none;
        opacity: 0.5;
    }
    
    /* Hide noscript submit button */
    .mobile-menu-footer .valuta_switch noscript {
        display: none;
    }
    .mobile-slide-menu.open,
    .mobile-slide-submenu.open {
        transform: translateX(0);
    }
    .mobile-slide-submenu {
        z-index: 20001;
        transform: translateX(-100%);
        display: flex;
        opacity: 0;
        transition: transform 0.35s cubic-bezier(.77,0,.18,1), opacity 0.35s cubic-bezier(.77,0,.18,1);
    }
    .mobile-slide-submenu.open {
        transform: translateX(0);
        opacity: 1;
    }

    /* Menu Buttons */
    .back-menu {
        font-size: 16px;
        color: #1a1a1a;
        background: none;
        border: none;
        cursor: pointer;
        font-weight: 400;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        font-style: normal;
        padding: 14px 20px;
        height: 52px;
        box-sizing: border-box;
        text-decoration: none;
    }
    .mobile-slide-menu.open .close-menu,
    .mobile-slide-submenu.open .close-menu {
        opacity: 1;
        visibility: visible;
    }
    .close-menu:active, .back-menu:active {
        background-color: rgba(0, 0, 0, 0.05);
    }

    /* Menu Lists */
    .mobile-slide-menu ul,
    .mobile-slide-submenu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .mobile-slide-menu a,
    .mobile-slide-submenu a {
        display: flex;
        align-items: center;
        padding: 14px 20px;
        color: #1a1a1a;
        text-decoration: none;
        font-size: 16px;
        border-bottom: 1px solid #eee;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        height: 52px;
        box-sizing: border-box;
        position: relative;
    }
    
    /* Submenu items hidden by default - no CSS transitions to avoid conflicts */
    .mobile-slide-submenu li {
        display: none;
        transform: translateX(0);
        opacity: 1;
        /* No CSS transitions - all animations handled by JavaScript */
    }
    
    /* Style links that have submenus - modern chevron */
    .mobile-slide-menu a[data-has-submenu]:after,
    .mobile-slide-submenu a[data-has-submenu]:after {
        content: '';
        position: absolute;
        right: 20px;
        width: 8px;
        height: 8px;
        border-right: 2px solid #999;
        border-bottom: 2px solid #999;
        transform: rotate(-45deg);
        transition: transform 0.2s ease;
        box-sizing: border-box;
    }
    
    /* Hover effect for chevron */
    .mobile-slide-menu a[data-has-submenu]:hover:after,
    .mobile-slide-submenu a[data-has-submenu]:hover:after {
        border-color: #666;
        transform: rotate(-45deg) translateX(2px);
    }
    
    /* Level-specific styling for visual hierarchy */
    .mobile-slide-submenu li[data-level="1"] a {
        padding-left: 20px;
        font-size: 16px;
    }
    
    .mobile-slide-submenu li[data-level="2"] a {
        padding-left: 35px;
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .mobile-slide-submenu li[data-level="3"] a {
        padding-left: 50px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    .mobile-slide-menu a:hover,
    .mobile-slide-submenu a:hover {
        background: #f7f7f7;
    }

    /* Overlay */
    .mobile-slide-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.25);
        z-index: 19999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    .mobile-slide-menu-overlay.open {
        opacity: 1;
        visibility: visible;
    }

    /* Search Bar - Always visible */
    .mobile-search-bar {
        position: relative;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        z-index: 1;
        padding: 0 16px;
        display: block;
        transition: border-bottom 0.3s ease;
        overflow: hidden;
    }
    .menu-open .mobile-search-bar {
        border-bottom: 1px solid #eee;
    }
    
    /* Prevent scroll issues when search suggestions are active */
    body.search-suggestions-active {
        position: relative !important;
        overflow: visible !important;
    }
    
    /* Search Suggestions - nu onderdeel van header */
    .search-suggestions {
        width: 100%;
        background: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top: 1px solid #eee;
        opacity: 0;
    }
    .search-suggestions.active {
        max-height: 300px;
        opacity: 1;
    }
    .search-suggestions-content {
        padding: 0;
    }
    .custom-mobile-search {
        display: flex !important;
        align-items: center;
        background: white;
        border: none;
        padding: 0 4px;
        min-height: 32px;
        position: relative;
        margin-bottom: 0 !important;
    }
    .custom-mobile-search input.search-field {
        flex: 1;
        border: none !important;
        background: white;
        font-size: 16px;
        padding: 6px 0;
        outline: none !important;
        box-shadow: none !important;
        color: #333;
    }
    .custom-mobile-search input.search-field:focus {
        outline: none !important;
        box-shadow: none !important;
    }
    .custom-mobile-search input.search-field::placeholder {
        color: #999;
        opacity: 1 !important;
    }
    .custom-mobile-search input.search-field:focus::placeholder {
        opacity: 0.7 !important;
    }
    .custom-mobile-search .search-submit {
        background: none;
        border: none;
        outline: none;
        cursor: pointer;
        margin-left: 8px;
        padding: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #999;
    }
    .custom-mobile-search .search-submit img {
        width: 18px;
        height: 18px;
        filter: brightness(0) opacity(0.5);
        transition: filter 0.2s ease;
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
        image-rendering: pixelated !important;
        -webkit-backface-visibility: hidden !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
    .custom-mobile-search .search-submit:active img {
        filter: brightness(0) opacity(0.7);
    }
    
    /* Clear button */
    .search-clear {
        background: none !important;
        border: none !important;
        cursor: pointer;
        padding: 6px;
        display: none;
        align-items: center;
        justify-content: center;
        color: #999;
        font-size: 24px;
        line-height: 1;
        font-style: normal;
        outline: none !important;
        box-shadow: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-focus-ring-color: transparent !important;
        text-decoration: none !important;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        border-radius: 4px;
        transition: background-color 0.15s ease;
    }
    .search-clear:active {
        background-color: rgba(0, 0, 0, 0.05) !important;
        color: #666;
    }
    .search-clear:focus,
    .search-clear:hover,
    .search-clear:visited {
        background: none !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        -webkit-tap-highlight-color: transparent !important;
        text-decoration: none !important;
    }
    
    /* Search suggestion buttons */
    .search-suggestion-btn {
        font-style: normal !important;
    }
    .search-suggestion-btn:hover {
        background: #e8e8e8 !important;
    }
    .search-suggestion-btn:active {
        background: #ddd !important;
        transform: scale(0.98);
    }
}

/* PhotoSwipe lightbox rules - OUTSIDE media query to work on all screen sizes */
.pswp--open .mobile-test-header,
.pswp--open .mobile-usp-bar {
    display: none !important;
}


/* END STYLE BLOCK 1 */