/* === AMAZON-STYLE HEADER COMPONENTS === */

/* === TOP NAVIGATION BAR === */
.site-header {
    background: var(--amazon-dark-blue);
    border-bottom: none;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Header Top Bar */
.header-top-bar {
    background: var(--amazon-dark-blue);
    padding: 8px 0;
    border-bottom: 1px solid #3a4553;
}

.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-location {
    color: var(--text-color-light);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
}

.header-location:hover {
    background-color: rgba(255,255,255,0.1);
    text-decoration: none;
    color: var(--text-color-light);
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-top-right a {
    color: var(--text-color-light);
    padding: 5px 8px;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
    font-size: 13px;
}

.header-top-right a:hover {
    background-color: rgba(255,255,255,0.1);
    text-decoration: none;
    color: var(--text-color-light);
}

/* === MAIN HEADER === */
.header-menu {
    background: var(--amazon-dark-blue);
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo Section */
.site-logo {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
    min-width: 120px;
}

.site-logo:hover {
    background-color: rgba(255,255,255,0.1);
}

.site-logo img {
    max-height: 35px;
    width: auto;
}

.site-logo .logo-text {
    color: var(--text-color-light);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

/* === AMAZON-STYLE SEARCH BAR === */
.header-search {
    flex-grow: 1;
    max-width: 600px;
    position: relative;
}

.search-form {
    display: flex;
    background: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-category {
    background: #f3f3f3;
    border: none;
    padding: 10px 12px;
    color: var(--text-color-dark);
    border-right: 1px solid #ccc;
    font-size: 14px;
    cursor: pointer;
    min-width: 120px;
}

.search-category:focus {
    outline: 2px solid var(--amazon-orange);
    outline-offset: -2px;
}

.search-input {
    flex-grow: 1;
    border: none;
    padding: 10px 12px;
    font-size: 16px;
    color: var(--text-color-dark);
}

.search-input:focus {
    outline: 2px solid var(--amazon-orange);
    outline-offset: -2px;
}

.search-input::placeholder {
    color: #999;
}

.search-submit {
    background: var(--amazon-yellow);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    color: var(--text-color-dark);
    font-weight: bold;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: var(--button-secondary-hover);
}

.search-submit:focus {
    outline: 2px solid var(--amazon-orange);
    outline-offset: -2px;
}

/* === HEADER RIGHT SECTION === */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-account,
.header-orders,
.header-cart {
    color: var(--text-color-light);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    min-height: 45px;
    justify-content: center;
}

.header-account:hover,
.header-orders:hover,
.header-cart:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-color-light);
    text-decoration: none;
}

.header-account .account-greeting,
.header-orders .orders-text,
.header-cart .cart-text {
    font-size: 12px;
    line-height: 1;
    margin-bottom: 2px;
}

.header-account .account-signin,
.header-orders .orders-returns,
.header-cart .cart-label {
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

/* Cart Counter */
.cart-count {
    background: var(--amazon-orange);
    color: var(--text-color-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -5px;
    right: -5px;
}

.header-cart {
    position: relative;
}

/* === SECONDARY NAVIGATION === */
.full-menu {
    background: var(--amazon-light-blue);
    padding: 8px 0;
    border-top: 1px solid #48596e;
}

.menu-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-navigation a {
    color: var(--text-color-light);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
    font-size: 14px;
    font-weight: normal;
    text-decoration: none;
}

.main-navigation a:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-color-light);
    text-decoration: none;
}

.main-navigation .menu-all-categories {
    background: rgba(255,255,255,0.1);
    font-weight: bold;
}

/* === MOBILE HEADER === */
@media (max-width: 768px) {
    .header-menu {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
    }
    
    .header-right {
        order: 2;
        justify-content: space-between;
        width: 100%;
    }
    
    .site-logo {
        order: 1;
    }
    
    .search-category {
        min-width: 80px;
        font-size: 12px;
    }
    
    .full-menu {
        display: none;
    }
    
    .header-top-bar {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 10px;
    }
    
    .header-account .account-greeting,
    .header-orders .orders-text,
    .header-cart .cart-text {
        display: none;
    }
    
    .search-form {
        font-size: 14px;
    }
    
    .search-input {
        font-size: 14px;
    }
}