/**
 * Header Styles - Clean Design
 *
 * @package Parfumbella
 */

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: #f8f4f2;
    border-bottom: 1px solid #e5e0dd;
}

.header-inner {
    padding: 16px 0;
}

.header-container,
.nav-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ==========================================================================
   Logo
   ========================================================================== */
.header-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img,
.logo.logo-desktop,
.logo.logo-mobile {
    height: 60px;
    width: auto;
}

.logo-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    letter-spacing: -0.5px;
}

.logo-link:hover {
    text-decoration: none;
    opacity: 0.9;
}

/* ==========================================================================
   Search Bar
   ========================================================================== */
.header-search {
    flex: 1;
    max-width: 500px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    z-index: 1;
}

.header-search input[type="search"] {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 50px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-search input[type="search"]::placeholder {
    color: #999;
}

.header-search input[type="search"]:focus {
    outline: none;
    background-color: #fff;
    border-color: #f99d88;
    box-shadow: 0 0 0 3px rgba(249, 157, 136, 0.15);
}

/* ==========================================================================
   Header Actions
   ========================================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-icon:hover {
    background-color: #f5f5f5;
    color: #f99d88;
    text-decoration: none;
}

.header-icon i {
    font-size: 20px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.header-icon i.fa-regular {
    font-weight: 400;
}

/* Cart with count badge */
.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background-color: #f99d88;
    border-radius: 9px;
}

/* ==========================================================================
   Navigation Menu
   ========================================================================== */
.header-nav {
    background: #1a0a10;
    position: relative;
    z-index: 100;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu > li > a {
    display: block;
    padding: 14px 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f99d88;
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background-color: #1a0a10;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.nav-menu li {
    position: relative;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-menu .sub-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f99d88;
}

/* ==========================================================================
   Mobile Menu Toggle
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 20px;
    color: #333;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-toggle i {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.mobile-menu-toggle:hover {
    background-color: #f5f5f5;
    color: #f99d88;
}

/* ==========================================================================
   Mobile Menu Overlay
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    visibility: hidden;
}

.mobile-menu[aria-hidden="false"] {
    visibility: visible;
}

.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu[aria-hidden="false"] .mobile-menu-backdrop {
    opacity: 1;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 300px;
    height: 100%;
    background-color: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu[aria-hidden="false"] .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 20px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-close:hover {
    color: #f99d88;
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

/* Mobile Navigation */
.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-menu a {
    display: block;
    padding: 14px 20px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-menu a:hover {
    background-color: #f9f9f9;
    color: #f99d88;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .header-search {
        display: none;
    }

    .logo-name {
        font-size: 20px;
    }

    .logo-heart {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 12px;
    }

    .header-icon {
        width: 40px;
        height: 40px;
    }

    .header-icon i {
        font-size: 18px;
    }

    .logo-name {
        font-size: 18px;
    }
}
