/* ========================================
   SOHAIBIONICS DESKTOP HEADER STYLES
   ======================================== */

/* Desktop Display Logic */
.desktop-header {
    display: block;
}

.mobile-header {
    display: none;
}

/* ========================================
   DESKTOP HEADER STYLES
   ======================================== */

/* Main Container */
#main-container {
    font-family: 'Arial', sans-serif;
    background: #fff;
}

/* Header Wrapper */
.temu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #154880;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Left Section - Home Icon */
.header-left a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.header-left a:hover {
    color: #ffd700;
}

/* Center Section - Category Menu & Search */
.header-center {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
    margin: 0 40px;
}

/* Category Menu Styles */
.category-menu-container {
    position: relative;
}

.category-nav {
    position: relative;
}

.category-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.category-menu > li {
    position: relative;
}

.category-trigger {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.category-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffd700;
}

.arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    position: relative;
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-menu li a:hover {
    background: #f8f9fa;
    color: #154880;
    padding-left: 25px;
}

/* Sub-dropdown Menu */
.sub-dropdown-menu {
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    padding: 8px 0;
}

.has-sub:hover .sub-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sub-dropdown-menu li a {
    padding: 8px 15px;
    font-size: 13px;
}

/* Search Bar Styles */
.search-wrapper {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 8px 16px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-form:hover,
.search-form:focus-within {
    border-color: #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 12px;
    font-size: 14px;
    background: transparent;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 20px;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #f0f0f0;
    color: #154880;
}

/* Right Section - Account & Cart */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Account Menu */
.header-nav {
    position: relative;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.menu-item {
    position: relative;
}

.account-trigger {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.account-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffd700;
}

/* Account Submenu */
.submenu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 8px 0;
    margin-top: 8px;
}

.account-dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    list-style: none;
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.submenu li a:hover {
    background: #f8f9fa;
    color: #154880;
    padding-left: 25px;
}

/* Cart Styles */
.cart-wrapper {
    position: relative;
}

.cart-link {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.cart-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffd700;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #ff4757;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Category Bar */
.category-bar {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.category-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-link:hover {
    color: #154880;
    background: #e3f2fd;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
    background: #fff;
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
}

.woocommerce-breadcrumb a {
    color: #154880;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    color: #ff6b6b;
}

/* ========================================
   DESKTOP RESPONSIVE DESIGN
   ======================================== */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .header-inner {
        max-width: 1600px;
    }
    
    .search-wrapper {
        max-width: 600px;
    }
}

/* Medium Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .header-inner {
        max-width: 1200px;
    }
    
    .header-center {
        margin: 0 30px;
    }
}

/* Small Desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .header-inner {
        padding: 0 15px;
    }
    
    .header-center {
        margin: 0 20px;
        gap: 15px;
    }
    
    .search-wrapper {
        max-width: 400px;
    }
    
    .category-trigger {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ========================================
   DESKTOP ANIMATIONS & TRANSITIONS
   ======================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dropdown-menu,
.submenu {
    animation: fadeInDown 0.3s ease;
}

.sub-dropdown-menu {
    animation: fadeInRight 0.3s ease;
}

/* ========================================
   DESKTOP ACCESSIBILITY & FOCUS STATES
   ======================================== */

.search-input:focus,
.category-trigger:focus,
.account-trigger:focus,
.cart-link:focus {
    outline: 2px solid #154880;
    outline-offset: 2px;
}

/* Screen reader only text */
.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;
} 