﻿header {
    background-color: #181818;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    z-index: 9999;
    position: relative;
}

.header-items-container {
    width: 100%;
    max-width: 1700px; /* Adjusted to 2000px */
    position: relative;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 18px;
    font-weight: 700;
}

.user-options {
    display: flex;
    align-items: center;
    position: relative;
    column-gap: 20px;
    padding-right: 10px;
    color: white;
}

.header-items-list {
    display: flex;
    align-items: center;
    margin: 0;
    list-style: none;
    column-gap: 20px;
    color: white;
    flex-shrink: 0;
}

.header-items-list a {
    text-decoration: none;
    color: white;
    cursor: pointer;
}

.header-items-list a:hover {
    color: rgb(231, 196, 123);
}

.header-item:hover {
    color: rgb(231, 196, 123);
}

.options-menu-dropdown {
    display: inline-block;
    position: relative;
}

.options-menu-dropdown:hover {
    cursor: pointer;
}

.options-menu-dropdown p {
    margin: 0;
    color: white;
    display: inline-block;
}

.options-menu {
    list-style: none;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 10px;
    z-index: 1;
    white-space: nowrap;
    background: #1C1C1E;
    border: solid 1px #2F2F33;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .05), 0 10px 25px rgba(0, 0, 0, .08);
    border-radius: 16px;
}

.options-menu a {
    text-decoration: none;
    color: white;
}

.options-menu a:hover {
    color: rgb(231, 196, 123);
}

.options-menu-dropdown:hover .options-menu {
    display: inline-block;
}

.logout-button {
    border: none;
    background: none;
    color: rgb(255,255,255);
    font-size: 18px;
}

.logout-button:hover {
    cursor: pointer;
    color: rgb(231, 196, 123);
}


.shop-logo {
    width: 300px;
}

.user-profile-and-name {
    display: flex;
    column-gap: 10px;
    align-items: center;
}

.user-profile-picture {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}


.cart-icon-container {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    width: 40px;
}

.cart-icon {
    position: absolute;
    color: #db7093;
}

.cart-item-quantity {
    color: rgb(0,0,0);
     position: relative; 
    z-index: 2;
    bottom: 5px;
}

.reward-points-container {
    position: relative;
    z-index: 5;
}

.reward-points-container p{
    margin: 5px;
}

.reward-points {
    margin: 0;
}

.reward-points-explanation {
    width: 400px;
    max-width: calc(100vw - 30px);
    box-sizing: border-box;
    display: none;
    position: absolute;
    top: 50%;
    right: 0;
    background: #1C1C1E;
    color: white;
    border-radius: 7px;
    font-size: 16px;
    padding: 10px;
    margin-top: 25px;
    overflow-wrap: break-word;
}

.reward-points-container:hover .reward-points-explanation {
    display: inline-block;
}

.reward-points-inner-container {
    display: flex;
    align-items: center;
    column-gap: 7px;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

.search-container {
    display: flex;
    column-gap: 10px;
    justify-content: center;
    margin: 0;
    flex: 1;
    min-width: 200px;
    display: flex;
    column-gap: 10px;
}

.search-input {
    width: 60%;
    max-width: 60%;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    background: #222;
    color: white;
    border: 1px solid #3a3a3a;
}

.search-input::placeholder {
    color: #9a9a9a;
    font-weight: bold;
    font-size: 16px;
}

.search-button {
    background-color: rgb(231,196,123);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    color: black;
    transition: all .2s ease;
}

.search-button:hover {
    background: rgb(241,206,133); 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231,196,123,.35);
}

.search-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.glass-icon{
    color: black;
}

.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-section h6 {
    color: rgb(231,196,123);
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.mobile-user-card p, h5 {
    color: white;
}

.mobile-user-card span {
    color: rgb(231, 196, 123);
}

.mobile-menu-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-divider {
    border-color: rgba(255,255,255,.15);
    margin: 10px 0;
}

.mobile-user-picture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.auth-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    color: white;
}

.mobile-menu a:hover {
    color: rgb(231, 196, 123);
}

.mobile-cart{
    display: none;
}

.header-username {
    max-width: 180px;
    overflow: hidden;
}

.header-username h5 {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1460px) {
    .header-items-container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }

    .search-container {
        order: 10;
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

@media (max-width: 1190px) {

    .burger-menu {
        display: block;
    }

    .mobile-cart{
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    .desktop-user-options {
        display: none;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: #121212;
        z-index: 9999;
        padding: 80px 20px;
        flex-direction: column;
        gap: 20px;
        box-shadow: 4px 0 20px rgba(0,0,0,.5);
        transform: translateX(-100%);
        transition: transform .3s ease;
        display: flex;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .mobile-menu.show {
        display: flex;
        transform: translateX(0);
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 9998;
    }

    .mobile-menu-overlay.show {
        display: block;
    }

    .mobile-menu-close {
        position: absolute;
        top: 20px;
        left: 20px;
        background: none;
        border: none;
        color: white;
        font-size: 30px;
        cursor: pointer;
    }

    .mobile-menu-close:hover {
        color: rgb(231,196,123);
    }

    .mobile-menu a {
        color: white;
        text-decoration: none;
        font-size: 18px;
    }

    .mobile-menu a:hover {
        color: rgb(231,196,123);
    }

    .mobile-menu i::before {
        width: 20px;
        height: 20px;
        margin-right: 5px;
        display: block;
        color: rgb(231,196,123);
    }

    .search-container {
        width: 100%;
        max-width: none;
    }

    .header-items-container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }

    .reward-points-explanation{
        left: -90px;
    }
}

@media (max-width: 440px) {

    .shop-logo{
        width: 200px;
    }
    
}
