/* header.css */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

html, body {
    margin: 0;
    padding: 0;
}

.header {
    position: fixed;
    top: 0;
    width: calc(100vw - 20px);
    height: 6vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: #fff;
    font-family: 'Orbitron', sans-serif;
    z-index: 10;
    overflow: visible;
}

.logo-container {
    font-size: 1.5em;
    font-weight: 700;
    text-decoration: none;
    color: #000;
}

.logo-container:hover {
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
    transform: scale(1.08);
}

.header-shop {
    font-size: 1.4em;
    font-weight: 700;
    text-decoration: none;
    color: #000;
    margin-left: auto;
    margin-right: auto;
}

.header-shop:hover {
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
    transform: scale(1.08);
}

.header-Login {
    font-size: 1.4em;
    text-decoration: none;
    color: #000;
    transition-duration: 0.2s;
    margin-right: 30px;
}

.header-Login:hover {
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.user-dropdown {
    font-size: 1.2em;
    position: relative;
    display: inline-block;
    margin-right: 40px;
    overflow: visible;
    transition-duration: 0.2s;
}

.user-dropdown * {
    color: black !important;
}

.user-dropdown:hover {
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.user-icon {
    cursor: pointer;
    width: 15px;
    height: 15px;
    padding-top: 5px;
}

.dropdown-content {
    padding-top: 10px;
    display: none;
    position: absolute;
    right: -30px;
    background-color: #f9f9f9;
    min-width: 80px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001; /* Increased z-index to ensure dropdown is above other elements */
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: 'Orbitron', sans-serif;
    text-shadow: none;
    transform: scale(1);
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
    transform: scale(1);
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

.header-cart {
    display: inline-block;
    margin-right: 20px;
    transition-duration: 0.2s;
}

.header-cart:hover {
    transform: scale(1.05);
}

.cart-icon {
    cursor: pointer;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

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

    .logo-container {
        font-size: 1.4em;
        text-align: center;
    }

    .header-shop {
        font-size: 1.4em;
        margin: 0 auto;
    }

    .header-Login, .user-dropdown, .header-cart {
        font-size: 1.4em;
        margin: 0 5px;
        transition-duration: 0s;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    .header {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }

    .logo-container {
        font-size: 1em;
        text-align: center;
    }

    .header-shop {
        font-size: 1em;
        margin: 0 auto;
    }

    .header-Login, .user-dropdown, .header-cart {
        font-size: 1em;
        margin: 0 5px;
        transition-duration: 0s;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 0 15px;
    }

    .logo-container {
        font-size: 1.3em;
    }

    .header-shop {
        font-size: 1.2em;
    }
}