/* Store categorie menu */
.shop-categories {
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(34,0,66,0.07);
    border: 1px solid #ece6f6;
    margin-bottom: 2.2rem;
}
.menu-container .store-categories-menu,
.index-menu .main-menu,
.partner-menu .main-menu,
.store-menu .main-menu,
.account-menubar ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 56px;
    gap: 18px;
    box-sizing: border-box;
}
.store-categories-menu li {
    margin: 0;
}
.store-categories-menu a {
    display: block;
    padding: 12px 0;
    color: #222;
    font-weight: 500;
    font-size: 1.08em;
    text-decoration: none;
    border-bottom: none; /* Use animated cursor underline instead */
    transition: border-color 0.2s, color 0.2s;
}
.store-categories-menu a.active,
.store-categories-menu a:hover {
    color: #6d00c7;
    background: none;
}
/* Submenu styling: compact en geen text wrapping */
.submenu {
    min-width: 120px;
    max-width: 180px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 10;
    padding: 0;
}
/* Submenu styles moved from inline */
.menu-producten, .menu-oor, .menu-software {
    position: relative;
}
.submenu {
    display: none;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    background: #f7f7fa;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(34,0,66,0.10);
    z-index: 100;
    padding: 8px 0;
    margin-top: 10px;
    border: 1.5px solid #ece6f6;
    min-width: 0;
}
.submenu a {
    text-decoration: none;
    font-size: 1.08em;
    border-radius: 8px;
    transition: background 0.13s, color 0.13s;
    position: relative;
}
.submenu a:hover, .submenu a:focus {
    background: #ece6f6;
    color: #6d00c7;
    font-weight: 600;
    box-shadow: 0 2px 0 #6d00c7 inset;
}
.submenu li:not(:last-child) {
    margin-bottom: 2px;
}
.submenu a {
    display: block;
    padding: 10px 6px;
    color: #222;
    text-decoration: none;
    font-size: 1em;
    white-space: nowrap;
}
.submenu a:hover {
    background: #f8f9fa;
    color: #6d00c7;
}
/* menu.css - Styling voor de account menubalk */

/* ===== Menubalk container ===== */
.account-menubar {
    width: 100%;
    background: #ffffff;
    /* Remove static bottom border to avoid double underline with animated cursor */
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(34,0,66,0.06);
    margin: 0;
    padding: 0;
}

/* ===== Menubalk lijst ===== */
/* padding wordt afgehandeld door .site-container; geen extra 32px in de UL */

/* ===== Menubalk item ===== */
.account-menubar li {
    margin-right: 32px;
}

/* ===== Menubalk link ===== */
.account-menubar a {
    display: block;
    padding: 12px 0;
    color: #222;
    font-weight: 500;
    font-size: 1.08em;
    text-decoration: none;
    /* No per-link underline; use animated cursor instead */
    border-bottom: none;
    transition: color 0.2s, background 0.2s;
}

.account-menubar a:hover,
.account-menubar a.active {
    color: #6d00c7;
    background: none; /* No box around active/hovered tab */
}
.account-menubar .menu-cursor {
    position: relative;
    height: 2px;
    background: transparent;
}
.account-menubar .menu-cursor::after {
    content: '';
    position: absolute;
    left: var(--cursor-left, 0);
    width: var(--cursor-width, 0);
    height: 2px;
    background: #6d00c7;
    transition: left 220ms cubic-bezier(0.2, 0.6, 0.2, 1), width 220ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* New dropdown menu styles for index main menu */
.account-menubar .main-menu { gap: 28px; }
/* Store categories use moving underline cursor; avoid per-link borders */
.account-menubar .store-categories-menu.main-menu a { border-bottom: none; }
.account-menubar .has-dropdown { position: relative; }
.account-menubar .has-dropdown > .menu-link { display: inline-flex; align-items: center; gap: 6px; }
.account-menubar .has-dropdown > .menu-link::after {
    content: '\25BE'; /* downwards small triangle */
    font-size: 0.8em;
}
.account-menubar .dropdown {
    display: block; /* Override flex from generic UL to stack items vertically */
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ece6f6;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(34,0,66,0.10);
    min-width: 180px;
    padding: 8px;
    /* Remove vertical gap to prevent hover-out when moving from trigger to submenu */
    margin-top: 0;
    /* Hidden by default but able to animate */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    pointer-events: none;
    transition: opacity 200ms cubic-bezier(0.2, 0.6, 0.2, 1),
                transform 200ms cubic-bezier(0.2, 0.6, 0.2, 1),
                visibility 0s linear 200ms;
    z-index: 1000;
}
.account-menubar .dropdown::before {
    /* Hover bridge to avoid flicker when crossing the edge */
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}
.account-menubar .dropdown li { margin: 0; }
.account-menubar .dropdown a {
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    display: block;
}
.account-menubar .dropdown a:hover {
    background: #f6f2fb;
    color: #6d00c7;
}
/* Show submenu on hover, click-open, or keyboard focus */
.account-menubar .has-dropdown:hover > .dropdown,
.account-menubar .has-dropdown.open > .dropdown,
.account-menubar .has-dropdown:focus-within > .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        transition-delay: 0s, 0s, 0s;
}

@media (prefers-reduced-motion: reduce) {
    .account-menubar .dropdown {
        transition: none;
        transform: none;
    }
}

/* Only show menu on hover: hide entire bar until hovered */
/* Menu is always visible; only dropdowns appear on hover */

/* ===== Responsive ===== */
/* Phone-specific rules moved to includes/menu.mobile.css */

/* Utility: show only on mobile, hide on desktop */
@media (min-width: 768px) {
    .only-mobile { display: none !important; }
}
