/**
 * ============================================================
 * Dropdown Styles - Riniba 01 Toy Store Theme
 * ============================================================
 * 下拉菜单样式 - 玩具店主题风格
 * 主色调: #FBC270 (暖橙色), #67D4E0 (青色)
 * 字体: Nunito, Lato, Inter
 * 特点: 圆角、阴影、趣味动画
 * ============================================================
 */

/* ============================================================
   1. 基础下拉容器
   ============================================================ */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-container {
    position: relative;
    width: 100%;
}

.dropdown-inline {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.dropdown-block {
    display: block;
    width: 100%;
    position: relative;
}

/* ============================================================
   2. 下拉触发器按钮
   ============================================================ */

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #5a5a5a;
    background-color: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 10px;
    min-width: 150px;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dropdown-toggle:hover {
    border-color: #FBC270;
    background-color: #fffaf0;
    color: #333;
    box-shadow: 0 4px 16px rgba(251, 194, 112, 0.2);
    transform: translateY(-1px);
}

.dropdown-toggle:focus {
    outline: none;
    border-color: #FBC270;
    box-shadow: 0 0 0 4px rgba(251, 194, 112, 0.15);
}

.dropdown-toggle:active {
    transform: translateY(0);
}

.dropdown-toggle.active,
.dropdown.show .dropdown-toggle {
    border-color: #FBC270;
    background-color: #FBC270;
    color: #fff;
    box-shadow: 0 4px 16px rgba(251, 194, 112, 0.35);
}

/* 下拉箭头图标 */
.dropdown-toggle .dropdown-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.dropdown-toggle .dropdown-arrow svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.dropdown-toggle .dropdown-arrow i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle .dropdown-arrow,
.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* 下拉触发器图标 */
.dropdown-toggle .dropdown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.dropdown-toggle .dropdown-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.dropdown-toggle .dropdown-icon i {
    font-size: 16px;
}

/* ============================================================
   3. 下拉触发器变体
   ============================================================ */

/* 主色按钮 */
.dropdown-toggle.btn-primary {
    background-color: #FBC270;
    border-color: #FBC270;
    color: #fff;
}

.dropdown-toggle.btn-primary:hover {
    background-color: #f5b04d;
    border-color: #f5b04d;
    color: #fff;
}

/* 次要色按钮 */
.dropdown-toggle.btn-secondary {
    background-color: #67D4E0;
    border-color: #67D4E0;
    color: #fff;
}

.dropdown-toggle.btn-secondary:hover {
    background-color: #4fc9d7;
    border-color: #4fc9d7;
    color: #fff;
}

/* 轮廓按钮 */
.dropdown-toggle.btn-outline {
    background-color: transparent;
    border-color: #FBC270;
    color: #FBC270;
}

.dropdown-toggle.btn-outline:hover {
    background-color: #FBC270;
    color: #fff;
}

/* 透明按钮 */
.dropdown-toggle.btn-ghost {
    background-color: transparent;
    border-color: transparent;
    color: #5a5a5a;
    padding: 8px 12px;
}

.dropdown-toggle.btn-ghost:hover {
    background-color: rgba(251, 194, 112, 0.1);
    color: #FBC270;
}

/* 文字链接样式 */
.dropdown-toggle.btn-link {
    background-color: transparent;
    border: none;
    color: #FBC270;
    padding: 8px 12px;
    text-decoration: none;
    min-width: auto;
}

.dropdown-toggle.btn-link:hover {
    color: #f5a623;
    text-decoration: none;
    background-color: transparent;
    box-shadow: none;
    transform: none;
}

/* 小尺寸 */
.dropdown-toggle.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    min-width: 120px;
    border-radius: 10px;
}

/* 大尺寸 */
.dropdown-toggle.btn-lg {
    padding: 16px 28px;
    font-size: 17px;
    min-width: 180px;
    border-radius: 14px;
}

/* 圆形按钮 */
.dropdown-toggle.btn-round {
    border-radius: 50px;
}

/* 图标按钮 */
.dropdown-toggle.btn-icon {
    padding: 12px;
    min-width: auto;
    width: 48px;
    height: 48px;
    justify-content: center;
}

.dropdown-toggle.btn-icon .dropdown-arrow {
    display: none;
}

/* ============================================================
   4. 下拉菜单面板
   ============================================================ */

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1000;
    min-width: 220px;
    padding: 12px 0;
    margin: 0;
    list-style: none;
    background-color: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12),
                0 4px 16px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    overflow: hidden;
}

.dropdown.show .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* 菜单位置变体 */
.dropdown-menu.dropdown-menu-right,
.dropdown-menu.dropdown-menu-end {
    left: auto;
    right: 0;
}

.dropdown-menu.dropdown-menu-center {
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.98);
}

.dropdown.show .dropdown-menu.dropdown-menu-center,
.dropdown-menu.dropdown-menu-center.show {
    transform: translateX(-50%) translateY(0) scale(1);
}

/* 向上弹出 */
.dropdown.dropup .dropdown-menu,
.dropdown-menu.dropdown-menu-up {
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateY(10px) scale(0.98);
}

.dropdown.dropup.show .dropdown-menu,
.dropdown-menu.dropdown-menu-up.show {
    transform: translateY(0) scale(1);
}

/* 宽度变体 */
.dropdown-menu.dropdown-menu-sm {
    min-width: 160px;
}

.dropdown-menu.dropdown-menu-lg {
    min-width: 300px;
}

.dropdown-menu.dropdown-menu-xl {
    min-width: 400px;
}

.dropdown-menu.dropdown-menu-full {
    min-width: 100%;
}

/* ============================================================
   5. 下拉菜单项
   ============================================================ */

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #5a5a5a;
    text-decoration: none;
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #FBC270;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-item:hover {
    background-color: #fffaf0;
    color: #333;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item:focus {
    outline: none;
    background-color: #fffaf0;
}

.dropdown-item:active {
    background-color: #fff5e0;
}

.dropdown-item.active,
.dropdown-item.selected {
    background-color: rgba(251, 194, 112, 0.15);
    color: #FBC270;
    font-weight: 600;
}

.dropdown-item.active::before,
.dropdown-item.selected::before {
    transform: scaleY(1);
}

.dropdown-item.disabled,
.dropdown-item:disabled {
    color: #bbb;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.dropdown-item.disabled:hover {
    background-color: transparent;
}

/* 菜单项图标 */
.dropdown-item .item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dropdown-item .item-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.dropdown-item .item-icon i {
    font-size: 16px;
}

/* 菜单项文本 */
.dropdown-item .item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-item .item-text .item-title {
    font-weight: 600;
    color: inherit;
}

.dropdown-item .item-text .item-subtitle {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

/* 菜单项徽章 */
.dropdown-item .item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background-color: #FBC270;
    border-radius: 20px;
    flex-shrink: 0;
}

.dropdown-item .item-badge.badge-new {
    background-color: #67D4E0;
}

.dropdown-item .item-badge.badge-hot {
    background-color: #ff6b6b;
}

.dropdown-item .item-badge.badge-sale {
    background-color: #4ecdc4;
}

/* 菜单项复选框 */
.dropdown-item .item-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dropdown-item .item-checkbox.checked {
    background-color: #FBC270;
    border-color: #FBC270;
}

.dropdown-item .item-checkbox.checked::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* 菜单项箭头（子菜单） */
.dropdown-item .item-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: auto;
    flex-shrink: 0;
}

.dropdown-item .item-arrow svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

/* ============================================================
   6. 下拉菜单分隔线和标题
   ============================================================ */

.dropdown-divider {
    height: 0;
    margin: 8px 0;
    border: none;
    border-top: 1px solid #f0f0f0;
}

.dropdown-header {
    display: block;
    padding: 10px 20px 6px;
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: transparent;
}

.dropdown-header-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-header-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ============================================================
   7. 下拉菜单表单
   ============================================================ */

.dropdown-form {
    padding: 16px 20px;
}

.dropdown-form-group {
    margin-bottom: 16px;
}

.dropdown-form-group:last-child {
    margin-bottom: 0;
}

.dropdown-form-label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #5a5a5a;
}

.dropdown-form-input {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f8f8f8;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.dropdown-form-input:focus {
    outline: none;
    border-color: #FBC270;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(251, 194, 112, 0.1);
}

.dropdown-form-input::placeholder {
    color: #aaa;
}

.dropdown-form-select {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f8f8f8;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.dropdown-form-select:focus {
    outline: none;
    border-color: #FBC270;
    background-color: #fff;
}

.dropdown-form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #5a5a5a;
}

.dropdown-form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    accent-color: #FBC270;
}

.dropdown-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: #FBC270;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-form-btn:hover {
    background-color: #f5b04d;
    transform: translateY(-1px);
}

/* ============================================================
   8. 子菜单（嵌套下拉）
   ============================================================ */

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    position: absolute;
    top: -12px;
    left: 100%;
    margin-left: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.25s ease;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu.show > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 左侧弹出的子菜单 */
.dropdown-submenu.dropdown-submenu-left > .dropdown-menu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 4px;
    transform: translateX(10px);
}

.dropdown-submenu.dropdown-submenu-left:hover > .dropdown-menu,
.dropdown-submenu.dropdown-submenu-left.show > .dropdown-menu {
    transform: translateX(0);
}

/* ============================================================
   9. 多列下拉菜单
   ============================================================ */

.dropdown-menu-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 16px 0;
    min-width: 400px;
}

.dropdown-menu-columns.columns-3 {
    grid-template-columns: repeat(3, 1fr);
    min-width: 600px;
}

.dropdown-menu-columns.columns-4 {
    grid-template-columns: repeat(4, 1fr);
    min-width: 800px;
}

.dropdown-column {
    padding: 0;
}

.dropdown-column + .dropdown-column {
    border-left: 1px solid #f0f0f0;
}

.dropdown-column-title {
    padding: 8px 20px 12px;
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.dropdown-column .dropdown-item {
    padding: 10px 20px;
}

/* ============================================================
   10. 大型下拉菜单
   ============================================================ */

.dropdown-mega {
    position: static;
}

.dropdown-mega .dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
    padding: 24px;
    border-radius: 0 0 20px 20px;
    max-width: none;
}

.dropdown-mega-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.dropdown-mega-section {
    padding: 0;
}

.dropdown-mega-title {
    padding-bottom: 12px;
    margin-bottom: 12px;
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
}

.dropdown-mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-mega-list li {
    margin-bottom: 8px;
}

.dropdown-mega-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #5a5a5a;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-mega-list a:hover {
    background-color: #fffaf0;
    color: #FBC270;
}

.dropdown-mega-featured {
    padding: 20px;
    background: linear-gradient(135deg, #fffaf0 0%, #fff5e0 100%);
    border-radius: 16px;
    text-align: center;
}

.dropdown-mega-featured img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 12px;
}

.dropdown-mega-featured h4 {
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.dropdown-mega-featured p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.dropdown-mega-featured .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background-color: #FBC270;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-mega-featured .btn:hover {
    background-color: #f5b04d;
    transform: translateY(-1px);
}

/* ============================================================
   11. 导航下拉菜单
   ============================================================ */

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #5a5a5a;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-dropdown-toggle:hover {
    color: #FBC270;
}

.nav-dropdown-toggle .nav-arrow {
    display: inline-flex;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-dropdown-toggle .nav-arrow svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}

.nav-dropdown:hover .nav-dropdown-toggle .nav-arrow,
.nav-dropdown.show .nav-dropdown-toggle .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown .dropdown-menu {
    top: 100%;
    padding-top: 8px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ============================================================
   12. 用户下拉菜单
   ============================================================ */

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    background-color: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-dropdown-toggle:hover {
    border-color: #FBC270;
    box-shadow: 0 4px 16px rgba(251, 194, 112, 0.2);
}

.user-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.user-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FBC270 0%, #f5a623 100%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-dropdown-name {
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.user-dropdown-email {
    font-size: 12px;
    color: #888;
}

.user-dropdown-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.user-dropdown-arrow svg {
    width: 10px;
    height: 10px;
    fill: #888;
}

.user-dropdown.show .user-dropdown-arrow,
.user-dropdown-toggle.active .user-dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown .dropdown-menu {
    min-width: 240px;
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fffaf0 0%, #fff5e0 100%);
    border-bottom: 1px solid #f0f0f0;
}

.user-dropdown-header-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-dropdown-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown-header-info {
    flex: 1;
}

.user-dropdown-header-info h4 {
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.user-dropdown-header-info p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.user-dropdown-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}

.user-dropdown-footer .btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ff6b6b;
    background-color: #fff5f5;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-dropdown-footer .btn-logout:hover {
    background-color: #ffe5e5;
    color: #ff4444;
}

/* ============================================================
   13. 通知下拉菜单
   ============================================================ */

.notification-dropdown {
    position: relative;
}

.notification-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.notification-dropdown-toggle:hover {
    border-color: #FBC270;
    background-color: #fffaf0;
}

.notification-dropdown-toggle svg {
    width: 20px;
    height: 20px;
    fill: #5a5a5a;
    transition: fill 0.2s ease;
}

.notification-dropdown-toggle:hover svg {
    fill: #FBC270;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background-color: #ff6b6b;
    border-radius: 20px;
    border: 2px solid #fff;
}

.notification-dropdown .dropdown-menu {
    min-width: 340px;
    max-height: 480px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fafafa;
    flex-shrink: 0;
}

.notification-header h4 {
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.notification-header .mark-all-read {
    font-size: 13px;
    color: #FBC270;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.notification-header .mark-all-read:hover {
    color: #f5a623;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background-color: #fafafa;
}

.notification-item.unread {
    background-color: #fffaf0;
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #FBC270;
    border-radius: 50%;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #f0f0f0;
}

.notification-icon.icon-order {
    background-color: rgba(251, 194, 112, 0.15);
    color: #FBC270;
}

.notification-icon.icon-message {
    background-color: rgba(103, 212, 224, 0.15);
    color: #67D4E0;
}

.notification-icon.icon-alert {
    background-color: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

.notification-icon.icon-success {
    background-color: rgba(78, 205, 196, 0.15);
    color: #4ecdc4;
}

.notification-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content h5 {
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-content p {
    font-size: 13px;
    color: #888;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 11px;
    color: #aaa;
    margin-top: 6px;
}

.notification-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    flex-shrink: 0;
}

.notification-footer a {
    font-size: 14px;
    font-weight: 600;
    color: #FBC270;
    text-decoration: none;
    transition: color 0.2s ease;
}

.notification-footer a:hover {
    color: #f5a623;
}

/* ============================================================
   14. 购物车下拉菜单
   ============================================================ */

.cart-dropdown {
    position: relative;
}

.cart-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cart-dropdown-toggle:hover {
    border-color: #FBC270;
    background-color: #fffaf0;
}

.cart-dropdown-toggle svg {
    width: 22px;
    height: 22px;
    fill: #5a5a5a;
    transition: fill 0.2s ease;
}

.cart-dropdown-toggle:hover svg {
    fill: #FBC270;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background-color: #FBC270;
    border-radius: 22px;
    border: 2px solid #fff;
}

.cart-dropdown .dropdown-menu {
    min-width: 360px;
    max-height: 520px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fafafa;
    flex-shrink: 0;
}

.cart-header h4 {
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.cart-header .items-count {
    font-size: 13px;
    color: #888;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    transition: background-color 0.2s ease;
    position: relative;
}

.cart-item:hover {
    background-color: #fafafa;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f0f0f0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #888;
}

.cart-item-price {
    font-weight: 600;
    color: #FBC270;
}

.cart-item-qty {
    color: #888;
}

.cart-item-remove {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cart-item:hover .cart-item-remove {
    opacity: 1;
}

.cart-item-remove svg {
    width: 14px;
    height: 14px;
    fill: #bbb;
    transition: fill 0.2s ease;
}

.cart-item-remove:hover svg {
    fill: #ff6b6b;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.cart-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-empty-icon svg {
    width: 100%;
    height: 100%;
    fill: #ddd;
}

.cart-empty h4 {
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
}

.cart-empty p {
    font-size: 13px;
    color: #aaa;
    margin: 0;
}

.cart-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.cart-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cart-subtotal span {
    font-size: 14px;
    color: #888;
}

.cart-subtotal strong {
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.cart-footer-buttons {
    display: flex;
    gap: 10px;
}

.cart-footer-buttons .btn {
    flex: 1;
    padding: 12px 16px;
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cart-footer-buttons .btn-view-cart {
    background-color: #f0f0f0;
    color: #5a5a5a;
    border: none;
}

.cart-footer-buttons .btn-view-cart:hover {
    background-color: #e8e8e8;
    color: #333;
}

.cart-footer-buttons .btn-checkout {
    background-color: #FBC270;
    color: #fff;
    border: none;
}

.cart-footer-buttons .btn-checkout:hover {
    background-color: #f5b04d;
    transform: translateY(-1px);
}

/* ============================================================
   15. 语言/货币选择器
   ============================================================ */

.language-dropdown {
    position: relative;
}

.language-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #5a5a5a;
    background-color: transparent;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-dropdown-toggle:hover {
    border-color: #FBC270;
    color: #FBC270;
}

.language-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.language-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-dropdown .dropdown-menu {
    min-width: 180px;
}

.language-dropdown .dropdown-item {
    padding: 10px 16px;
}

.language-dropdown .dropdown-item .language-flag {
    margin-right: 8px;
}

.language-dropdown .dropdown-item.active {
    background-color: rgba(251, 194, 112, 0.1);
    color: #FBC270;
}

.language-dropdown .dropdown-item.active::after {
    content: '✓';
    margin-left: auto;
    font-weight: bold;
}

.currency-dropdown {
    position: relative;
}

.currency-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-family: 'Nunito', 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #5a5a5a;
    background-color: transparent;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.currency-dropdown-toggle:hover {
    border-color: #FBC270;
    color: #FBC270;
}

.currency-symbol {
    font-weight: 700;
}

.currency-dropdown .dropdown-menu {
    min-width: 160px;
}

.currency-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-dropdown .dropdown-item .currency-symbol {
    width: 24px;
    text-align: center;
}

.currency-dropdown .dropdown-item.active {
    background-color: rgba(251, 194, 112, 0.1);
    color: #FBC270;
}

/* ============================================================
   16. 动画效果
   ============================================================ */

@keyframes dropdownSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropdownSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes dropdownScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes dropdownBounce {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }
    60% {
        transform: translateY(3px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.dropdown-menu.animate-slide-down.show {
    animation: dropdownSlideDown 0.25s ease forwards;
}

.dropdown-menu.animate-slide-up.show {
    animation: dropdownSlideUp 0.25s ease forwards;
}

.dropdown-menu.animate-fade.show {
    animation: dropdownFadeIn 0.2s ease forwards;
}

.dropdown-menu.animate-scale.show {
    animation: dropdownScaleIn 0.2s ease forwards;
}

.dropdown-menu.animate-bounce.show {
    animation: dropdownBounce 0.35s ease forwards;
}

/* ============================================================
   17. 响应式设计
   ============================================================ */

@media (max-width: 991px) {
    .dropdown-menu-columns {
        grid-template-columns: repeat(2, 1fr);
        min-width: 100%;
    }
    
    .dropdown-menu-columns.columns-3,
    .dropdown-menu-columns.columns-4 {
        grid-template-columns: repeat(2, 1fr);
        min-width: 100%;
    }
    
    .dropdown-mega .dropdown-menu {
        padding: 16px;
    }
    
    .dropdown-mega-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .dropdown-menu {
        min-width: 100%;
        max-width: calc(100vw - 32px);
        left: 50%;
        transform: translateX(-50%) translateY(-10px) scale(0.98);
    }
    
    .dropdown.show .dropdown-menu {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    
    .dropdown-menu.dropdown-menu-right,
    .dropdown-menu.dropdown-menu-end {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px) scale(0.98);
    }
    
    .dropdown.show .dropdown-menu.dropdown-menu-right,
    .dropdown.show .dropdown-menu.dropdown-menu-end {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    
    .dropdown-menu-columns {
        grid-template-columns: 1fr;
    }
    
    .dropdown-menu-columns.columns-3,
    .dropdown-menu-columns.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .dropdown-column + .dropdown-column {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding-top: 12px;
        margin-top: 12px;
    }
    
    .dropdown-mega-content {
        grid-template-columns: 1fr;
    }
    
    .notification-dropdown .dropdown-menu {
        min-width: calc(100vw - 32px);
        max-width: 400px;
    }
    
    .cart-dropdown .dropdown-menu {
        min-width: calc(100vw - 32px);
        max-width: 400px;
    }
    
    .user-dropdown-toggle {
        padding: 6px 12px 6px 6px;
    }
    
    .user-dropdown-info {
        display: none;
    }
}

@media (max-width: 575px) {
    .dropdown-toggle {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 120px;
    }
    
    .dropdown-item {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .notification-item,
    .cart-item {
        padding: 12px 16px;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
    
    .cart-footer-buttons {
        flex-direction: column;
    }
    
    .dropdown-mega .dropdown-menu {
        padding: 12px;
    }
    
    .dropdown-mega-featured {
        padding: 16px;
    }
}

/* ============================================================
   18. 深色模式支持
   ============================================================ */

[data-theme="dark"] .dropdown-toggle,
.dark-mode .dropdown-toggle {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .dropdown-toggle:hover,
.dark-mode .dropdown-toggle:hover {
    border-color: #FBC270;
    background-color: #333;
    color: #fff;
}

[data-theme="dark"] .dropdown-menu,
.dark-mode .dropdown-menu {
    background-color: #2a2a2a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .dropdown-item,
.dark-mode .dropdown-item {
    color: #e0e0e0;
}

[data-theme="dark"] .dropdown-item:hover,
.dark-mode .dropdown-item:hover {
    background-color: #333;
    color: #fff;
}

[data-theme="dark"] .dropdown-divider,
.dark-mode .dropdown-divider {
    border-color: #3a3a3a;
}

[data-theme="dark"] .dropdown-header,
.dark-mode .dropdown-header {
    color: #888;
}

[data-theme="dark"] .dropdown-form-input,
.dark-mode .dropdown-form-input {
    background-color: #333;
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .user-dropdown-toggle,
.dark-mode .user-dropdown-toggle {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
}

[data-theme="dark"] .notification-dropdown-toggle,
[data-theme="dark"] .cart-dropdown-toggle,
.dark-mode .notification-dropdown-toggle,
.dark-mode .cart-dropdown-toggle {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
}

[data-theme="dark"] .notification-header,
[data-theme="dark"] .cart-header,
.dark-mode .notification-header,
.dark-mode .cart-header {
    background-color: #222;
    border-color: #3a3a3a;
}

[data-theme="dark"] .notification-item:hover,
[data-theme="dark"] .cart-item:hover,
.dark-mode .notification-item:hover,
.dark-mode .cart-item:hover {
    background-color: #333;
}

[data-theme="dark"] .notification-item.unread,
.dark-mode .notification-item.unread {
    background-color: rgba(251, 194, 112, 0.1);
}

/* ============================================================
   19. 辅助功能
   ============================================================ */

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .dropdown-toggle {
        border-width: 3px;
    }
    
    .dropdown-menu {
        border: 2px solid #333;
    }
    
    .dropdown-item:focus {
        outline: 3px solid #FBC270;
        outline-offset: -3px;
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    .dropdown-toggle,
    .dropdown-menu,
    .dropdown-item,
    .dropdown-arrow,
    .notification-item,
    .cart-item {
        transition: none;
    }
    
    .dropdown-menu.animate-slide-down.show,
    .dropdown-menu.animate-slide-up.show,
    .dropdown-menu.animate-fade.show,
    .dropdown-menu.animate-scale.show,
    .dropdown-menu.animate-bounce.show {
        animation: none;
    }
}

/* 焦点可见性 */
.dropdown-toggle:focus-visible,
.dropdown-item:focus-visible {
    outline: 3px solid rgba(251, 194, 112, 0.5);
    outline-offset: 2px;
}

/* 屏幕阅读器 */
.dropdown-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;
}

/* ============================================================
   20. 打印样式
   ============================================================ */

@media print {
    .dropdown,
    .dropdown-toggle,
    .dropdown-menu,
    .user-dropdown,
    .notification-dropdown,
    .cart-dropdown,
    .language-dropdown,
    .currency-dropdown {
        display: none !important;
    }
}

/* ============================================================
   结束 - Dropdown Styles
   ============================================================ */
