/* ========================================
   SOHAIBIONICS MOBILE HEADER STYLES
   ======================================== */

/* Mobile Display Logic */
.mobile-header {
    display: block;
}

.desktop-header {
    display: none;
}

/* Body scroll prevention when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ========================================
   MOBILE HEADER STYLES
   ======================================== */

/* Main Mobile Container */
#main-container-mobile {
    font-family: 'Arial', sans-serif;
    background: #fff;
}

/* Mobile Header Wrapper */
.temu-header-mobile {
    background-color: #154880;
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    max-width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Mobile Logo */
.mobile-logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mobile-logo img {
    max-height: 32px;
    width: auto;
}

.mobile-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Mobile Icons */
.mobile-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-icons a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffd700;
}

.mobile-icons .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ff4757;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Mobile Search Bar */
.mobile-search-wrapper {
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-search-wrapper .search-form {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 6px 12px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.mobile-search-wrapper .search-form:hover,
.mobile-search-wrapper .search-form:focus-within {
    border-color: #ff6b6b;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.mobile-search-wrapper .search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 6px 8px;
    font-size: 14px;
    background: transparent;
    color: #333;
}

.mobile-search-wrapper .search-input::placeholder {
    color: #999;
}

.mobile-search-wrapper .search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    padding: 2px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-wrapper .search-btn:hover {
    background: #f0f0f0;
    color: #154880;
}

/* Mobile Category Bar */
.mobile-category-bar {
    background: #fff;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 12px;
    padding-left: 15px;
    padding-right: 15px;
    -webkit-overflow-scrolling: touch;
}

.mobile-category-link {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.mobile-category-link:hover,
.mobile-category-link:active {
    color: #154880;
    background: #e3f2fd;
    border-color: #154880;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-panel.active {
    left: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    background: #154880;
    padding: 20px 15px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-menu-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-nav a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-nav a:hover {
    background: #f8f9fa;
    color: #154880;
    padding-left: 25px;
}

.mobile-menu-nav .material-icons {
    font-size: 18px;
    color: #999;
}

/* Mobile Submenu */
.mobile-submenu {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.mobile-submenu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-submenu a {
    padding: 12px 20px 12px 40px;
    font-size: 14px;
    color: #666;
}

.mobile-submenu a:hover {
    background: #e3f2fd;
    color: #154880;
}

/* Mobile Category Trigger */
.mobile-category-trigger {
    cursor: pointer;
}

.mobile-category-trigger .expand_more {
    transition: transform 0.3s ease;
}

.mobile-category-trigger .expand_more.rotated {
    transform: rotate(180deg);
}

/* Mobile Account Menu */
.mobile-account-menu {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-account-menu a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-account-menu a:hover {
    color: #154880;
    padding-left: 10px;
}

/* ========================================
   MOBILE RESPONSIVE DESIGN
   ======================================== */

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .mobile-header-inner {
        padding: 0 10px;
    }
    
    .mobile-search-wrapper {
        padding: 8px 10px;
    }
    
    .mobile-category-bar {
        padding-left: 10px;
        padding-right: 10px;
        gap: 8px;
    }
    
    .mobile-category-link {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .mobile-icons {
        gap: 10px;
    }
    
    .mobile-icons a {
        font-size: 18px;
        padding: 4px;
    }
    
    .mobile-menu-panel {
        width: 260px;
        left: -260px;
    }
}

/* Medium Mobile (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .mobile-header-inner {
        padding: 0 15px;
    }
    
    .mobile-search-wrapper {
        padding: 10px 15px;
    }
    
    .mobile-category-bar {
        padding-left: 15px;
        padding-right: 15px;
        gap: 12px;
    }
    
    .mobile-category-link {
        font-size: 13px;
        padding: 4px 10px;
    }
    
    .mobile-icons {
        gap: 15px;
    }
    
    .mobile-icons a {
        font-size: 20px;
        padding: 6px;
    }
}

/* ========================================
   MOBILE ANIMATIONS & TRANSITIONS
   ======================================== */

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.mobile-menu-panel.active {
    animation: slideInLeft 0.3s ease;
}

.mobile-menu-panel:not(.active) {
    animation: slideOutLeft 0.3s ease;
}

/* ========================================
   MOBILE ACCESSIBILITY & FOCUS STATES
   ======================================== */

.mobile-menu-toggle:focus,
.mobile-icons a:focus,
.mobile-menu-close:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

.mobile-search-wrapper .search-input:focus {
    outline: none;
}

/* Touch-friendly targets */
.mobile-menu-toggle,
.mobile-icons a,
.mobile-menu-close,
.mobile-menu-nav a {
    min-height: 44px;
    min-width: 44px;
}

/* ========================================
   MOBILE UTILITY CLASSES
   ======================================== */

.mobile-hidden {
    display: none !important;
}

.mobile-visible {
    display: block !important;
}

/* Mobile scroll indicators */
.mobile-category-bar::-webkit-scrollbar {
    height: 4px;
}

.mobile-category-bar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.mobile-category-bar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.mobile-category-bar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 