/* EXACT NAVIGATION STYLES FROM new2.html - MATCHING FONT SIZES */
.promotion-navbar {
    background: linear-gradient(90deg, #ff5f6d, #ffc371) !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030 !important;
    padding: 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.promotion-content {
    height: 32px;
    overflow: hidden;
    position: relative;
}

.promotion-message {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    animation: slideUp 20s linear infinite;
    color: white;
    font-weight: 500;
    font-size: 0.9rem !important;
    line-height: 32px;
}

@keyframes slideUp {
    0%, 25% { opacity: 1; transform: translateY(0); }
    30%, 100% { opacity: 0; transform: translateY(-100%); }
}

.promotion-message:nth-child(1) { animation-delay: 0s; }
.promotion-message:nth-child(2) { animation-delay: 5s; }
.promotion-message:nth-child(3) { animation-delay: 10s; }

/* Main Navigation Bar - EXACT MATCH */
.main-navbar {
    position: fixed;
    top: 48px;
    width: 100%;
    z-index: 1025 !important;
    background: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #4b5563 !important;
    padding: 0.6rem 0.8rem !important;
    border-radius: 0.375rem;
    margin: 0 0.15rem;
    transition: all 0.2s ease;
    font-size: 0.85rem !important;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: #3b82f6 !important;
    background-color: #f3f4f6;
}

.navbar-nav .nav-link i {
    font-size: 0.8rem !important;
    margin-right: 0.4rem;
}

/* Dropdown Menus - EXACT MATCH */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 420px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1040 !important;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.75rem !important;
    transition: all 0.2s ease;
    border: none;
    background: none;
    white-space: nowrap;
    line-height: 1.2;
    display: block;
    width: 100%;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #3b82f6;
}

.dropdown-item i {
    width: 0.9rem;
    margin-right: 0.5rem;
    color: #6b7280;
    font-size: 0.7rem !important;
}

.dropdown-item:hover i {
    color: #3b82f6;
}

.dropdown-header {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.7rem !important;
    padding: 0.5rem 1rem 0.3rem;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* User Actions - EXACT MATCH */
.user-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    border: none;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    font-size: 0.9rem !important;
}

.action-btn:hover {
    background: #e9ecef;
    color: #3b82f6;
    transform: translateY(-1px);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.65rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.register-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    border: none;
    border-radius: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    color: white !important;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.85rem !important;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white !important;
}

.user-dropdown .dropdown-toggle {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.4rem 0.8rem;
    color: #1f2937 !important;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.85rem !important;
}

.user-dropdown .dropdown-toggle:hover {
    background: #e9ecef;
}

/* Badge styling - EXACT MATCH */
.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.55rem !important;
    padding: 0.15rem 0.3rem;
    border-radius: 0.2rem;
    margin-left: 0.3rem;
}

.badge-hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.55rem !important;
    padding: 0.15rem 0.3rem;
    border-radius: 0.2rem;
    margin-left: 0.3rem;
}

/* Common Body Styling */
body {
    margin-top: 110px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    min-height: 100vh;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        border-radius: 0.5rem;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .user-actions {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
        justify-content: center;
    }

    .dropdown-menu {
        min-width: 300px;
    }

    .navbar-nav .nav-link {
        font-size: 0.9rem !important;
        padding: 0.7rem 0.8rem !important;
    }

    .dropdown-item {
        white-space: normal !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 767.98px) {
    .promotion-message {
        font-size: 0.75rem;
        padding: 0 1rem;
    }
    
    body {
        margin-top: 105px !important;
    }

    .navbar-brand img {
        height: 32px;
    }
}