/* Global Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #3b4b6b 0%, #2d3a4f 100%);
    --secondary-gradient: linear-gradient(135deg, #5a5a7a 0%, #4a4a6a 100%);
    --success-gradient: linear-gradient(135deg, #3a5f5c 0%, #2a4f4c 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Navigation Bar Styles */
.navbar {
    background: var(--primary-gradient) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(102, 126, 234, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 2px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.dropdown-item {
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 2px 5px;
}

.dropdown-item:hover {
    background: var(--primary-gradient);
    color: white !important;
    transform: translateX(5px);
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

.footer-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1rem auto;
}

.social-links a {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.payment-methods i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.payment-methods i:hover {
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .nav-link {
        margin: 2px 0;
    }
    
    .dropdown-item {
        margin: 1px 0;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* 分类侧边栏样式 - 跨境电商风格 */
.category-filter-card {
    background: #fff;
    border-radius: .25rem;
    
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.category-filter-header {
    padding: 16px 20px;
    border-bottom: none;
}

.category-filter-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.category-filter-body {
    padding: 0;
}

.category-sidebar {
    padding: 0;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
}

.category-item {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    background-color: #f8f9fa;
}

.category-item.active {
    /* background-color: #e7f1ff; */
}

.category-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.category-item-link {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #212529;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.category-item-link:hover {
    color: #0d6efd;
    background: transparent;
    text-decoration: none;
}

.category-item-link.active {
    color: #0d6efd;
    font-weight: 600;
    background: transparent;
}

.category-name {
    flex: 1;
}

.category-count {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-left: 8px;
}

.category-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-right: 8px;
}

.category-toggle:hover {
    background: #e9ecef;
    color: #0d6efd;
}

.category-toggle i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.category-subcategories {
    background: #f8f9fa;
    border-left: 2px solid #e9ecef;
    margin-left: 16px;
}

.category-subcategories .category-item-header {
    padding-right: 8px;
}

.category-subcategories .category-item-link {
    padding: 10px 12px 10px 20px;
    font-size: 0.9rem;
}

.category-subcategories .category-toggle {
    width: 28px;
    height: 28px;
    margin-right: 4px;
}

.category-subcategories .category-subcategories {
    margin-left: 12px;
    border-left: 2px solid #e9ecef;
}

.category-subcategories .category-subcategories .category-item-link {
    padding-left: 28px;
    font-size: 0.85rem;
}

.category-subcategories .category-count {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-filter-card {
        border-radius: 0;
        margin: -1rem;
        box-shadow: none;
        border: none;
    }
    
    .category-filter-header {
        padding: 12px 16px;
    }
    
    .category-filter-title {
        font-size: 1rem;
    }
    
    .category-sidebar {
        border-radius: 0;
        margin: 0;
    }
    
    .category-item-link {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .category-subcategories .category-item-link {
        padding: 8px 12px 8px 20px;
    }
    
    .category-toggle {
        width: 28px;
        height: 28px;
    }
}