/* Header Layout */
.site-header {
    background-color: #fff;
    padding: 10px 0;
}

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

/* Logo */
.header-logo {
    max-height: 50px;
    /* Reduced specific height to match typical e-com density */
    width: auto;
}

/* Search Bar (Center) */
.header-search {
    flex-grow: 1;
    max-width: 600px;
    /* Limit width */
    margin: 0 20px;
}

.header-search .search-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #c7c7cd;
    border-radius: 4px;
    /* Slightly rounded */
    background: #fff;
    overflow: hidden;
    height: 44px;
}

.header-search .search-icon {
    padding-left: 12px;
    color: #75757a;
    font-size: 1.1rem;
}

.header-search input.search-field {
    flex-grow: 1;
    border: none;
    padding: 0 12px;
    height: 100%;
    font-size: 0.95rem;
    color: #282828;
    background: transparent;
    outline: none;
    box-shadow: none;
    /* Remove WP default */
}

.header-search input.search-field::placeholder {
    color: #75757a;
}

.header-search button.search-submit {
    background-color: var(--color-primary);
    /* Using our Gold/Orange accent */
    color: #fff;
    border: none;
    height: 100%;
    padding: 0 24px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 0;
    /* Flush with input */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Subtle depth like Jumia */
    transition: background 0.2s;
}

.header-search button.search-submit:hover {
    background-color: var(--color-primary);
    /* Darker on hover */
}

/* Header Actions (Right) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-action-item .action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #282828;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.header-action-item .action-link:hover {
    color: var(--color-accent);
}

.header-action-item svg {
    stroke-width: 2;
    width: 22px;
    height: 22px;
}

.header-action-item .chevron {
    width: 16px;
    height: 16px;
    margin-left: -4px;
    color: #75757a;
}

/* Cart Specifics */
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-icon-wrapper .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    height: 16px;
    min-width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 99px;
    padding: 0 4px;
}

/* Responsive */
/* Mobile Menu Base Elements */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-active {
    display: block;
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .header-container {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 10px 0 0;
    }

    .header-actions {
        gap: 15px;
    }

    .header-action-item span {
        display: none;
    }

    .header-action-item span.cart-count {
        display: flex;
    }

    /* Mobile Menu Implementation */
    .mobile-menu-btn {
        display: flex;
    }

    .header-bottom-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 999;
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding-top: 60px;
        display: block !important;
    }

    .header-bottom-nav.is-open {
        right: 0;
    }

    .bottom-nav-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
        gap: 20px;
    }

    .nav-categories-btn {
        display: none;
    }

    .main-navigation {
        width: 100%;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .main-navigation ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-navigation ul li a {
        padding: 15px 0;
        display: block;
        width: 100%;
    }

    .header-social-icons {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--color-border);
        width: 100%;
        justify-content: flex-start;
    }
}