/* Professional E-commerce Header Styles */

.professional-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Top Notice Bar */
.top-notice-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
    font-size: 12px;
    color: #666;
}

.notice-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.currency-selector,
.links-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 500;
}

.currency-selector:hover,
.links-menu:hover {
    color: #007bff;
}

.notice-text {
    flex: 1;
    text-align: center;
    font-weight: 500;
    color: #333;
}

/* Main Header */
.main-header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Logo Section */
.logo-section {
    flex: 0 0 200px;
}

.logo {
    display: block;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Search Section */
.search-section {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    padding: 12px 20px;
    background: #007bff;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #0056b3;
}

.search-btn i {
    font-size: 16px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info {
    text-align: right;
}

.contact-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.phone-number {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.phone-number:hover {
    color: #007bff;
}

.cart-section {
    position: relative;
}

.cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    position: relative;
    transition: background 0.3s ease;
}

.cart-link:hover {
    background: #0056b3;
    color: white;
}

.cart-link i {
    font-size: 18px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Main Navigation */
.main-navigation {
    background: #007bff;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-link i {
    margin-left: 5px;
    font-size: 12px;
}

/* Sale Item Special Styling */
.sale-item .nav-link {
    background: #dc3545;
    font-weight: bold;
}

.sale-item .nav-link:hover {
    background: #c82333;
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 250px;
    z-index: 1000;
}

/* Dropdown Loading State */
.dropdown-loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Item Count Styling */
.item-count {
    font-size: 11px;
    color: #999;
    font-weight: normal;
    margin-left: 5px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    display: flex;
    padding: 20px;
    gap: 30px;
}

.dropdown-column {
    flex: 1;
    min-width: 150px;
}

.dropdown-column h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
    text-transform: uppercase;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 5px;
}

.dropdown-column a {
    display: block;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.dropdown-column a:hover {
    color: #007bff;
    padding-left: 5px;
}

/* Brands Menu Special Styling */
.brands-menu .dropdown-content {
    min-width: 600px;
}

/* Container Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .notice-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .notice-text {
        order: -1;
        margin-bottom: 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-section {
        margin: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 0;
    }
    
    .nav-link {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.95);
        margin-top: 0;
    }
    
    .dropdown-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 40px;
    }
    
    .search-input {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .search-btn {
        padding: 10px 15px;
    }
    
    .contact-label {
        font-size: 11px;
    }
    
    .phone-number {
        font-size: 14px;
    }
    
    .cart-link {
        width: 40px;
        height: 40px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 10px 15px;
    }
}

/* Body Adjustment for Fixed Header */
body {
    padding-top: 15px; /* Adjust based on header height */
}

@media (max-width: 768px) {
    body {
        /*padding-top: 200px;*/ /* Adjust for mobile header height */
    }
}
