/**
 * BusinessPro-Market Header Styles
 * 
 * @package BusinessPro-Market
 * @version 1.0.0
 */

/* ============================================
   HEADER VARIABLES
   ============================================ */
:root {
    --header-height: 80px;
    --header-height-mobile: 64px;
    --announcement-height: 44px;
    --header-z-index: 9999;
    --overlay-z-index: 9998;
    --menu-z-index: 10000;
    --preloader-z-index: 999999;
    --search-z-index: 99999;
    --modal-z-index: 99999;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: var(--preloader-z-index);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f0f0f0;
    border-top-color: #4F46E5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.preloader-text {
    margin-top: 15px;
    font-size: 14px;
    color: #4B5563;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Dark Mode Preloader */
body.dark-mode .preloader {
    background: #0F172A;
}

body.dark-mode .preloader-spinner {
    border-color: #1E293B;
    border-top-color: #4F46E5;
}

body.dark-mode .preloader-text {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */
.announcement-bar {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: calc(var(--header-z-index) + 1);
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #06B6D4 100%);
    color: #ffffff;
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(79, 70, 229, 0.3);
    display: block;
    min-height: 44px;
    transition: all 0.3s ease;
}

.announcement-bar.hidden {
    display: none;
}

.announcement-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.announcement-icon {
    font-size: 18px;
    animation: pulse 2s ease-in-out infinite;
}

.announcement-text {
    font-size: 14px;
    font-weight: 500;
}

.announcement-text strong {
    font-weight: 700;
    color: #FDE047;
}

.announcement-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

.announcement-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateX(5px);
}

.announcement-btn i {
    transition: transform 0.3s ease;
}

.announcement-btn:hover i {
    transform: translateX(5px);
}

.announcement-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.announcement-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

/* ============================================
   SITE HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--header-z-index);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: var(--header-height);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    width: 100%;
}

.site-header.scrolled {
    height: 68px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 10px;
}

/* ============================================
   LOGO / BRANDING
   ============================================ */
.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-link img {
    max-height: 45px;
    width: auto;
    transition: all 0.3s ease;
}

.site-header.scrolled .logo-link img {
    max-height: 38px;
}

.site-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.5px;
}

.site-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #4F46E5;
}

.site-title .highlight {
    color: #4F46E5;
}

.site-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    padding: 3px 12px;
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

/* ============================================
   NAVIGATION - Desktop
   ============================================ */
.main-navigation {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 1;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    align-items: center;
    height: 100%;
}

.main-navigation ul li {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.main-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 8px 18px;
    color: #4B5563;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    gap: 4px;
    white-space: nowrap;
}

.main-navigation ul li a .nav-link-text {
    position: relative;
    z-index: 1;
}

.main-navigation ul li a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.05);
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-navigation ul li a:hover::before,
.main-navigation ul li.current-menu-item a::before {
    opacity: 1;
    transform: scale(1);
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 2.5px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item a::after {
    transform: translateX(-50%) scaleX(1);
}

.main-navigation ul li a:hover {
    color: #4F46E5;
}

.main-navigation ul li.current-menu-item a {
    color: #4F46E5;
}

/* Sub-menu - Desktop */
.main-navigation ul li .sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scaleY(0.95);
    background: #FFFFFF;
    padding: 8px 0;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #E5E7EB;
    transform-origin: top center;
}

.main-navigation ul li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scaleY(1);
}

.main-navigation ul li .sub-menu li {
    height: auto;
    width: 100%;
}

.main-navigation ul li .sub-menu li a {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 400;
    border-radius: 0;
    color: #4B5563;
    white-space: nowrap;
}

.main-navigation ul li .sub-menu li a::before,
.main-navigation ul li .sub-menu li a::after {
    display: none;
}

.main-navigation ul li .sub-menu li a:hover {
    background: rgba(79, 70, 229, 0.04);
    color: #4F46E5;
    padding-left: 26px;
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    z-index: calc(var(--menu-z-index) + 1);
    position: relative;
    order: 2;
}

.menu-toggle .menu-bar {
    width: 24px;
    height: 2.5px;
    background: #111827;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    transform-origin: center;
}

.menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--overlay-z-index);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
   HEADER ACTIONS
   ============================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    order: 3;
}

.header-actions button,
.header-actions a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #4B5563;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 18px;
    position: relative;
    text-decoration: none;
}

.header-actions button:hover,
.header-actions a:hover {
    background: rgba(79, 70, 229, 0.06);
    color: #4F46E5;
}

.header-actions button:hover i,
.header-actions a:hover i {
    transform: scale(1.1);
}

/* Cart & Wishlist Counts */
.cart-count,
.wishlist-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #EF4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.cart-count.pulse {
    animation: cartPulse 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ============================================
   LOGIN BUTTON
   ============================================ */
.header-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    width: auto;
    height: auto;
    border: none;
    cursor: pointer;
}

.header-login:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.header-login i {
    font-size: 16px;
}

/* ============================================
   USER DROPDOWN
   ============================================ */
.header-user {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 9999px;
    color: #4B5563;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(79, 70, 229, 0.05);
}

.user-avatar:hover {
    background: rgba(79, 70, 229, 0.1);
    color: #4F46E5;
}

.user-avatar i {
    font-size: 22px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #E5E7EB;
    z-index: 100;
}

.header-user:hover .user-dropdown,
.header-user:focus-within .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #4B5563;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.user-dropdown a:hover {
    background: rgba(79, 70, 229, 0.04);
    color: #4F46E5;
}

.user-dropdown a i {
    width: 18px;
    text-align: center;
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--search-z-index);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-container {
    max-width: 700px;
    width: 90%;
    position: relative;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-overlay.active .search-overlay-container {
    transform: scale(1);
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    font-size: 28px;
    color: #111827;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
}

.search-close:hover {
    color: #4F46E5;
    transform: rotate(90deg);
}

.search-overlay-content .search-form {
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 2px solid #E5E7EB;
    padding-bottom: 15px;
}

.search-overlay-content .search-field {
    flex: 1;
    padding: 15px 0;
    border: none;
    background: transparent;
    font-size: 2.5rem;
    font-weight: 300;
    color: #111827;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.search-overlay-content .search-field::placeholder {
    color: #ccc;
}

.search-overlay-content .search-submit {
    background: none;
    border: none;
    font-size: 28px;
    color: #4F46E5;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
}

.search-overlay-content .search-submit:hover {
    transform: translateX(5px);
}

.search-suggestions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.search-suggestions span {
    font-size: 14px;
    color: #9CA3AF;
}

.search-suggestions a {
    padding: 5px 15px;
    background: rgba(79, 70, 229, 0.06);
    border-radius: 9999px;
    font-size: 14px;
    color: #4B5563;
    transition: all 0.3s ease;
}

.search-suggestions a:hover {
    background: rgba(79, 70, 229, 0.12);
    color: #4F46E5;
}

/* ============================================
   LOGIN MODAL
   ============================================ */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--modal-z-index);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-modal-container {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-modal.active .login-modal-container {
    transform: scale(1) translateY(0);
}

.login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #4B5563;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.login-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.login-modal-left {
    padding: 50px 40px;
    background: #FFFFFF;
}

.login-modal-brand h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.login-modal-brand p {
    color: #4B5563;
    margin-bottom: 30px;
}

/* Login Form */
.login-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

.login-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111827;
}

.login-form .form-group input {
    width: 100%;
    padding: 12px 45px 12px 18px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #F8FAFC;
    color: #111827;
    font-family: 'Inter', sans-serif;
}

.login-form .form-group input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

.login-form .form-group .form-icon {
    position: absolute;
    right: 15px;
    bottom: 14px;
    color: #9CA3AF;
}

.password-toggle {
    position: absolute;
    right: 45px;
    bottom: 14px;
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
}

.password-toggle:hover {
    color: #4B5563;
}

.login-form .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4B5563;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4F46E5;
    cursor: pointer;
}

.forgot-password {
    font-size: 14px;
    color: #4F46E5;
    font-weight: 500;
}

.forgot-password:hover {
    color: #4338CA;
}

.login-submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-submit:hover {
    transform: translateY(-2px);
}

.login-submit i {
    transition: transform 0.3s ease;
}

.login-submit:hover i {
    transform: translateX(5px);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

.login-divider span {
    padding: 0 15px;
    font-size: 13px;
    color: #9CA3AF;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #111827;
    font-family: 'Inter', sans-serif;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.social-btn.google-btn {
    border-color: #DB4437;
    color: #DB4437;
}

.social-btn.google-btn:hover {
    background: #DB4437;
    color: #ffffff;
}

.social-btn.facebook-btn {
    border-color: #4267B2;
    color: #4267B2;
}

.social-btn.facebook-btn:hover {
    background: #4267B2;
    color: #ffffff;
}

.register-link {
    text-align: center;
    font-size: 14px;
    color: #4B5563;
}

.register-link a {
    color: #4F46E5;
    font-weight: 600;
}

.register-link a:hover {
    color: #4338CA;
}

/* Login Modal Right */
.login-modal-right {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    padding: 50px 40px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.login-modal-features h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
}

.login-modal-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.login-modal-features ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
}

.login-modal-features ul li:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.login-modal-features ul li i {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.login-modal-features ul li div {
    display: flex;
    flex-direction: column;
}

.login-modal-features ul li strong {
    font-size: 15px;
    color: #ffffff;
}

.login-modal-features ul li span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   RESPONSIVE - TABLET & MOBILE
   ============================================ */

/* Tablet Landscape */
@media (max-width: 1200px) {
    .main-navigation ul li a {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* Tablet Portrait & Mobile */
@media (max-width: 992px) {
    .site-header {
        height: var(--header-height-mobile);
    }
    
    .site-header.scrolled {
        height: 60px;
    }
    
    /* Mobile Menu Toggle - Show */
    .menu-toggle {
        display: flex !important;
    }
    
    /* Mobile Navigation - Full Screen Slide */
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #FFFFFF;
        padding: 80px 24px 30px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow-y: auto;
        height: 100vh;
        z-index: var(--menu-z-index);
        width: 100%;
        border: none;
        border-radius: 0;
        flex: none;
    }
    
    .main-navigation.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 4px;
        height: auto;
        padding: 0;
        margin: 0;
    }
    
    .main-navigation ul li {
        height: auto;
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .main-navigation ul li:last-child {
        border-bottom: none;
    }
    
    .main-navigation ul li a {
        padding: 14px 16px;
        font-size: 16px;
        white-space: normal;
        width: 100%;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .main-navigation ul li a::before,
    .main-navigation ul li a::after {
        display: none;
    }
    
    .main-navigation ul li a:hover {
        background: rgba(79, 70, 229, 0.06);
    }
    
    /* Sub-menu on mobile */
    .main-navigation ul li .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 0;
        margin: 0 0 0 20px;
        border: none;
        display: none;
        background: transparent;
        border-radius: 0;
        min-width: auto;
        width: 100%;
    }
    
    .main-navigation ul li .sub-menu.active {
        display: block;
    }
    
    .main-navigation ul li .sub-menu li {
        border-bottom: none;
    }
    
    .main-navigation ul li .sub-menu li a {
        padding: 10px 16px;
        font-size: 14px;
        white-space: normal;
        color: #4B5563;
        border-radius: 6px;
    }
    
    .main-navigation ul li .sub-menu li a:hover {
        padding-left: 24px;
        background: rgba(79, 70, 229, 0.04);
    }
    
    .announcement-text {
        font-size: 12px;
    }
    
    .announcement-btn {
        font-size: 12px;
        padding: 4px 14px;
    }
    
    .user-name {
        display: none;
    }
    
    .header-login span {
        display: none;
    }
    
    .header-login {
        padding: 8px 12px;
    }
    
    .login-modal-content {
        grid-template-columns: 1fr;
    }
    
    .login-modal-right {
        display: none;
    }
    
    .login-modal-left {
        padding: 30px 25px;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .search-overlay-content .search-field {
        font-size: 1.8rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .site-header {
        height: 60px;
    }
    
    .site-header.scrolled {
        height: 56px;
    }
    
    .header-container {
        padding: 0 12px;
    }
    
    .logo-link img {
        max-height: 35px;
    }
    
    .site-header.scrolled .logo-link img {
        max-height: 30px;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .site-badge {
        font-size: 7px;
        padding: 2px 8px;
    }
    
    .header-actions button,
    .header-actions a {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .cart-count,
    .wishlist-count {
        font-size: 8px;
        min-width: 16px;
        height: 16px;
    }
    
    .header-login {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .announcement-icon {
        font-size: 16px;
    }
    
    .announcement-text {
        font-size: 11px;
    }
    
    .announcement-btn {
        font-size: 11px;
        padding: 3px 12px;
    }
    
    .announcement-close {
        font-size: 14px;
    }
    
    .login-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .login-modal-left {
        padding: 20px;
    }
    
    .search-close {
        top: -40px;
        font-size: 22px;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .site-header {
        height: 56px;
    }
    
    .site-header.scrolled {
        height: 52px;
    }
    
    .site-title {
        font-size: 16px;
    }
    
    .site-badge {
        display: none;
    }
    
    .logo-link img {
        max-height: 28px;
    }
    
    .header-actions button,
    .header-actions a {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .cart-count,
    .wishlist-count {
        font-size: 7px;
        min-width: 14px;
        height: 14px;
    }
    
    .header-login {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .header-login i {
        font-size: 13px;
    }
    
    .announcement-text {
        font-size: 10px;
    }
    
    .announcement-btn {
        font-size: 10px;
        padding: 2px 10px;
    }
    
    .announcement-icon {
        font-size: 14px;
    }
    
    .search-overlay-content .search-field {
        font-size: 1.4rem;
    }
}

/* ============================================
   DARK MODE - Full Support
   ============================================ */
body.dark-mode .site-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

body.dark-mode .site-header.scrolled {
    background: rgba(15, 23, 42, 0.98);
}

body.dark-mode .site-title a {
    color: #ffffff;
}

body.dark-mode .main-navigation ul li a {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .main-navigation ul li a:hover {
    color: #ffffff;
}

body.dark-mode .main-navigation ul li.current-menu-item a {
    color: #ffffff;
}

body.dark-mode .main-navigation ul li .sub-menu {
    background: #1E293B;
    border-color: rgba(255, 255, 255, 0.04);
}

body.dark-mode .main-navigation ul li .sub-menu li a {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .main-navigation ul li .sub-menu li a:hover {
    color: #ffffff;
}

body.dark-mode .header-actions button,
body.dark-mode .header-actions a {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .header-actions button:hover,
body.dark-mode .header-actions a:hover {
    color: #ffffff;
}

body.dark-mode .header-login {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
}

body.dark-mode .user-avatar {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .user-avatar:hover {
    color: #ffffff;
}

body.dark-mode .user-dropdown {
    background: #1E293B;
    border-color: rgba(255, 255, 255, 0.04);
}

body.dark-mode .user-dropdown a {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .user-dropdown a:hover {
    color: #ffffff;
}

body.dark-mode .menu-toggle .menu-bar {
    background: rgba(255, 255, 255, 0.8);
}

body.dark-mode .search-overlay {
    background: rgba(15, 23, 42, 0.98);
}

body.dark-mode .search-overlay-content .search-field {
    color: #ffffff;
}

body.dark-mode .search-overlay-content .search-field::placeholder {
    color: #666666;
}

body.dark-mode .search-close {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .search-close:hover {
    color: #ffffff;
}

body.dark-mode .search-suggestions a {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .search-suggestions a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.dark-mode .login-modal-container {
    background: #1E293B;
}

body.dark-mode .login-modal-left {
    background: #1E293B;
}

body.dark-mode .login-modal-brand h2 {
    color: #ffffff;
}

body.dark-mode .login-modal-brand p {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .login-form .form-group label {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .login-form .form-group input {
    background: #0F172A;
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.dark-mode .login-form .form-group input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

body.dark-mode .login-divider span {
    color: rgba(255, 255, 255, 0.4);
}

body.dark-mode .social-btn {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .social-btn:hover {
    border-color: transparent;
}

body.dark-mode .login-modal-close {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .login-modal-close:hover {
    color: #ffffff;
}

body.dark-mode .register-link {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .register-link a {
    color: #4F46E5;
}

@media (max-width: 992px) {
    body.dark-mode .main-navigation {
        background: #1E293B;
        border-color: rgba(255, 255, 255, 0.04);
    }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.header-actions button:focus-visible,
.header-actions a:focus-visible,
.menu-toggle:focus-visible,
.announcement-close:focus-visible,
.search-close:focus-visible,
.login-modal-close:focus-visible {
    outline: 2px solid #4F46E5;
    outline-offset: 2px;
}

/* Skip to content */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 50%;
    transform: translateX(-50%);
    background: #4F46E5;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 999999;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 10px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .announcement-bar,
    .preloader,
    .search-overlay,
    .login-modal,
    .back-to-top {
        display: none !important;
    }
    
    .site-main {
        padding-top: 0 !important;
    }
}