/* Modern Header Styles */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Cardo', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0E7762;
    text-shadow: 0 2px 4px rgba(14, 119, 98, 0.1);
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-slogan {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    margin-left: 8px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Styles */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    align-items: center;
}

.nav-menu li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-menu li a:hover {
    color: #0E7762;
}

.nav-menu li a.active {
    color: #0E7762;
    font-weight: 600;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0E7762, #FDCB5A);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 25px;
    padding: 10px 45px 10px 18px;
    color: #333;
    font-size: 0.9rem;
    width: 220px;
    transition: all 0.3s ease;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-input:focus {
    border-color: #0E7762;
    background: rgba(14, 119, 98, 0.05);
    width: 280px;
    box-shadow: 0 0 0 3px rgba(14, 119, 98, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #0E7762;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: rgba(14, 119, 98, 0.1);
    transform: scale(1.1);
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn, .cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.login-btn:hover, .cart-btn:hover {
    background: rgba(14, 119, 98, 0.08);
    color: #0E7762;
    border-color: rgba(14, 119, 98, 0.2);
    transform: translateY(-1px);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #FDCB5A, #f4c430);
    color: #01100D;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(253, 203, 90, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: #0E7762;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        gap: 15px;
        padding: 0.8rem 20px;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }
    
    .main-nav.mobile-active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .nav-menu li a {
        font-size: 1rem;
        padding: 12px 0;
    }
    
    .search-box {
        display: none;
    }
    
    .user-actions {
        gap: 10px;
    }
    
    .login-btn, .cart-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
    
    .logo-slogan {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 8px;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .logo-slogan {
        font-size: 0.65rem;
    }
    
    .login-btn, .cart-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .login-btn span, .cart-btn span {
        display: none;
    }
}
