.dropdown-menu {
    min-width: 220px;
    padding: .35rem;
    border: 1px solid var(--b2c-line, #e6e8ec);
    border-radius: 8px;
    background: var(--b2c-surface, #fff);
    box-shadow: 0 10px 28px rgba(23, 26, 31, .10), 0 2px 6px rgba(23, 26, 31, .05);
    font-size: .9rem;
}
.dropdown-menu.shadow-lg,
.dropdown-menu.shadow-sm,
.dropdown-menu.custom-drop,
.dropdown-menu.centered-dropdown {
    border: 1px solid var(--b2c-line, #e6e8ec) !important;
    border-radius: 8px !important;
    padding: .35rem !important;
    box-shadow: 0 10px 28px rgba(23, 26, 31, .10), 0 2px 6px rgba(23, 26, 31, .05) !important;
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .75rem;
    border-radius: 6px;
    color: var(--b2c-ink, #171a1f) !important;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    transform: none !important;
    transition: background-color .15s ease, color .15s ease;
}
.dropdown-menu .dropdown-item i {
    width: 16px;
    margin: 0 !important;
    flex-shrink: 0;
    text-align: center;
    color: var(--navbar-account-icon, var(--b2c-steel, #6b7280));
    font-size: .85rem;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus-visible {
    background: var(--b2c-surface-muted, #f6f7f9);
    color: var(--b2c-ink, #171a1f) !important;
}
.dropdown-menu .dropdown-item.is-active,
.dropdown-menu .dropdown-item:active {
    background: var(--b2c-surface-muted, #f6f7f9);
    color: var(--b2c-ink, #171a1f) !important;
    font-weight: 600;
}
.dropdown-menu .dropdown-item.text-primary { color: var(--b2c-primary, #1d4ed8) !important; }
.dropdown-menu .dropdown-item.logout-link,
.dropdown-menu .dropdown-item.logout-link i { color: var(--navbar-logout, var(--b2c-danger, #c0272d)) !important; }
.dropdown-menu .dropdown-divider { margin: .35rem .25rem; border-top-color: var(--b2c-line-soft, #eef0f3); opacity: 1; }
.dropdown-menu .menu-count-badge {
    margin-left: auto;
    min-width: 20px;
    padding: 0 .4rem;
    border-radius: 10px;
    background: var(--b2c-accent, #e31e24);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.nav-dropdown-header {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    max-width: 260px;
    padding: .55rem .75rem .7rem;
    margin-bottom: .3rem;
    border-bottom: 1px solid var(--b2c-line-soft, #eef0f3);
}
.nav-dropdown-header strong { font-size: .92rem; color: var(--b2c-ink, #171a1f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-dropdown-header span { font-size: .78rem; color: var(--b2c-steel, #6b7280); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-account-drop { min-width: 240px; }

:is(.micro-bar, header) .dropdown-menu { margin-top: 6px !important; }
.sub-nav-deck .dropdown-menu { margin-top: 0 !important; }
@media (min-width: 992px) {
    .sub-nav-deck .dropdown-menu.centered-dropdown { top: 100% !important; }
}
.dropdown-menu.custom-drop,
.dropdown-menu.centered-dropdown,
.dropdown-menu.garage-dropdown,
.micro-dropdown .dropdown-menu { overflow: visible !important; }
:is(.micro-bar, header, .sub-nav-deck) .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 22px;
    width: 11px;
    height: 11px;
    background: var(--b2c-surface, #fff);
    border-left: 1px solid var(--b2c-line, #e6e8ec);
    border-top: 1px solid var(--b2c-line, #e6e8ec);
    border-top-left-radius: 2px;
    transform: rotate(45deg);
    pointer-events: none;
}
:is(.micro-bar, header, .sub-nav-deck) .dropdown-menu.dropdown-menu-end::before,
.micro-dropdown .dropdown-menu::before { left: auto; right: 22px; }
:is(.micro-bar, header, .sub-nav-deck) .dropdown-menu.centered-dropdown::before { left: 50%; margin-left: -5px; }
:is(.micro-bar, header, .sub-nav-deck) .dropdown-menu.nav-account-drop::before { right: 28px; }

:is(.micro-bar, header, .sub-nav-deck) [data-bs-toggle="dropdown"].show { background: color-mix(in srgb, currentColor 10%, transparent); border-radius: 6px; }
.nav-item-link.dropdown-toggle.show { background: color-mix(in srgb, var(--navbar-sub-text, #fff), transparent 88%); }

.dropdown-menu.nav-floating-menu { z-index: 11050 !important; }
.dropdown-menu.nav-floating-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: calc(var(--nav-arrow-x, 50%) - 5px);
    right: auto;
    width: 11px;
    height: 11px;
    margin: 0;
    background: var(--b2c-surface, #fff);
    border-left: 1px solid var(--b2c-line, #e6e8ec);
    border-top: 1px solid var(--b2c-line, #e6e8ec);
    border-top-left-radius: 2px;
    transform: rotate(45deg);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .dropdown-menu .dropdown-item { transition: none; }
}

@media (max-width: 991.98px) {
    .dropdown-menu .dropdown-item { min-height: 44px; }
    .sub-nav-deck .dropdown-menu::before,
    .micro-bar .dropdown-menu::before { display: none; }
}
