body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    padding: 0;
    /* overflow: hidden; */
    text-decoration: none;
    list-style: none;
}

#container {
    background-color: #161a18;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* logo | search | menu */
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
    font-family: 'Lato', sans-serif;
    gap: 20px;
    overflow: visible !important;
}

/* ---------------- LOGO ---------------- */
#shopName {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 15px;
    border-radius: 50%;
}

#shopName .logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

#shopName .logo img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ---------------- SEARCH ---------------- */
#search {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #e2ece7;
    border: 1px solid #333;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    border-radius: 20px;
    z-index: 9999;
}

#searchResults a {
    display: block;
    padding: 10px;
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #2a2e2c;
    transition: background 0.2s ease;
}

#searchResults a:hover {
    background: #ff9d00;
    color: #000;
}

#input {
    width: 100%;
    max-width: 35em;
    height: 3em;
    padding: 2px 50px;
    background-color: rgb(241, 241, 241);
    border: none;
    border-radius: 5px;
    font-weight: bold;
}

#input::placeholder {
    font-weight: bold;
}

#input:focus {
    outline: none;
}

/* ---------------- MENU BUTTON ---------------- */
#menuBtn {
    display: none;
    background: none;
    border: none;
    color: #e9a11b;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.3s ease;
}

#menuBtn:hover {
    color: #fff;
    transform: scale(1.1);
}

/* ---------------- NAV OPTIONS ---------------- */
#userOptions {
    display: flex;
    justify-content: center;
    align-items: center;
}

#userOptions nav {
    display: flex;
    align-items: center;
}

#userOptions .navItem {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    margin: 0 15px;
    font-weight: bold;
    font-size: 14px;
}

#userOptions .navItem:hover {
    color: #e9a11b;
    transition: 0.3s;
}

/* ---------------- SIDE MENU (for mobile) ---------------- */
#sideMenu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 250px;
    height: calc(100% - 70px);
    background-color: #161a18;
    box-shadow: 2px 0 10px rgba(87, 68, 47, 0.4);
    border-radius: 3px;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

#sideMenu.active {
    transform: translateX(0);
}

#sideMenu .navItem {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    margin: 15px 0;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s;
}

#sideMenu .navItem:hover {
    color: #e9a11b;
}

/* ---------------- RESPONSIVE ---------------- */
@media(max-width: 1300px) {
    #input {
        max-width: 28em;
    }
}

@media(max-width: 1090px) {
    #input {
        max-width: 22em;
    }
}

@media(max-width: 900px) {
    #container {
        display: grid;
        grid-template-columns: auto 1fr 4fr auto;
        /* logo | search | menu */
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        gap: 10px;
    }

    /* Hide the desktop nav */
    #userOptions nav {
        display: none;
    }

    /* Keep logo visible */
    #shopName {
        order: 1;
        justify-self: start;
    }

    /* Keep search in the center */
    #search {
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    /* Menu button — right side beside search */
    #menuBtn {
        display: block;
        order: 3;
        justify-self: end;
        align-self: center;
        color: #e9a11b;
        font-size: 26px;
        background: none;
        border: none;
        cursor: pointer;
    }

    #input {
        width: 100%;
        max-width: 18em;
        height: 2.6em;
        padding: 2px 40px;
        font-size: 14px;
    }

    #shopName .logo img {
        height: 40px;
    }
}
@media(max-width: 600px) {
    #container {
        padding: 8px 15px;
    }

    #input {
        max-width: 15em;
    }
}
