body
{
    margin: 0;
}
#badge
{
    position: absolute;
    background-color: rgb(255, 30, 30);
    color: white;
    border-radius: 50%;
    padding: 5px 8px;
    font-size: 14px;
    top: 10px;
    right:158px;
}
#container
{
    background-color: white;
    margin: auto;
    text-align: center;
    width: 100%;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: auto 1fr auto;
    font-family: 'Lato', sans-serif;
    z-index: 1;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    box-sizing: border-box;
    position: fixed;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302), 0 2px 6px 2px rgba(60, 64, 67, 0.149); 
}
#shopName 
{
    font-size: 40px; 
    font-family: 'Lato', sans-serif;
    padding-left: 40px;
    justify-self: start;
}
#shopName a
{
    text-decoration: none;
    color: rgb(29, 29, 29);
}
#shopName > b
{
    font-weight: 900;
    font: black;
}

#collection
{
    font-weight: bold;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
#collection a
{
    text-decoration: none;
    color: rgb(29, 29, 29);
}

.search
{
    padding: 14px;
    /* color: gray; */
    color: rgb(29, 29, 29);
    min-width: 25px;
    text-align: center;
    position: absolute;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    font-size: 16px;
    justify-self: center;
}

.nav-link {
    color: rgb(90, 98, 115);
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}

.nav-dropdown-trigger {
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.nav-link:hover {
    color: rgb(45, 52, 70);
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.nav-caret {
    font-size: 10px;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 2px;
    z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: flex;
    flex-direction: column;
}

.nav-dropdown-item {
    padding: 6px 16px;
    font-size: 13px;
    color: rgb(90, 98, 115);
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background-color: #f3f4f6;
    color: rgb(45, 52, 70);
}

.addedToCart
{
    font-size: 1.5em;
}

#user
{
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 0;
}

.header-actions
{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-right: 40px;
    justify-self: end;
}

.userIcon
{
    font-size: 45px;
}
#input 
{
    width: 35em;
    height: 3em;
    padding: 2px 50px;
    background-color: rgb(241, 241, 241);
    border: none;
    border-radius: 5px;
}
#input::placeholder
{
    font-weight: bold;
}
#input:focus
{
    outline: none;
}
#user a
{
    color: rgb(29, 29, 29)
}

.hamburger-btn {
    display: none;
    border: none;
    background: transparent;
    color: rgb(29, 29, 29);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

/* ----------------------------- MEDIA QUERY --------------------------- */

@media(max-width: 1300px)
{
    #collection
    {
        font-size: 13px;
    }
    #input 
    {
        width: 25em;
    }
}
@media(max-width: 1212px)
{
    #collection
    {
        font-size: 13px;
    }
    #input 
    {
        width: 20em;
    }
    .addedToCart
    {
        font-size: 1.5em;
    }
}

@media(max-width: 1090px)
{
    #container
    {
        display: grid;
        grid-template-columns: auto 1fr auto;
    }
    #search
    {
        display: none;
    }
}
@media(max-width: 750px)
{
    #shopName
    {
        font-size: 28px;
        padding-left: 20px;
    }
    #collection
    {
        font-size: 12px;
    }
    .userIcon
    {
        font-size: 35px;
    }
    .addedToCart
    {
        font-size: 1.2em;
        margin: 10px 20px;
    }
    #user
    {
        padding-right: 20px;
    }
}

@media(max-width: 650px)
{
    #shopName
    {
        font-size: 24px;
        padding-left: 15px;
    }
    #collection
    {
        font-size: 10px;
    }
    .userIcon
    {
        font-size: 30px;
    }
}
@media(max-width: 550px)
{
    #container 
    {
        padding: 20px 25px;
    }
    #shopName
    {
        padding-left: 10px;
    }
    #user
    {
        padding-right: 15px;
    }
}

@media(max-width: 900px)
{
    #container
    {
        grid-template-columns: auto 1fr auto;
        padding: 10px 14px;
        gap: 8px;
    }
    #shopName
    {
        padding-left: 0;
    }
    .shop-logo
    {
        height: 34px;
    }
    .header-actions
    {
        padding-right: 0;
    }
    .addedToCart
    {
        margin: 0;
        font-size: 1.25em;
    }
    .hamburger-btn
    {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .main-nav
    {
        display: none;
        position: fixed;
        top: 58px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 14px 14px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
        border-top: 1px solid #eceff3;
        z-index: 100;
    }
    .main-nav.open
    {
        display: flex;
    }
    .nav-link
    {
        width: 100%;
        text-align: left;
        font-size: 14px;
        padding: 10px 0;
    }
    .nav-dropdown
    {
        display: block;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .nav-dropdown-trigger
    {
        width: 100%;
        justify-content: space-between;
        padding: 10px 0;
    }
    .nav-dropdown-menu
    {
        position: static;
        display: none;
        min-width: 0;
        box-shadow: none;
        border-radius: 0;
        padding: 0 0 0 12px;
        margin-top: 0;
        background: transparent;
    }
    .nav-dropdown:hover .nav-dropdown-menu
    {
        display: none;
    }
    .nav-dropdown.open .nav-dropdown-menu
    {
        display: flex;
        flex-direction: column;
    }
    .nav-dropdown-item
    {
        padding: 8px 0;
        font-size: 13px;
    }
}

/* badge media */

@media(max-width: 1480px)
{
    #badge
    {
        right:150px;
    }
}
@media(max-width: 1426px)
{
    #badge
    {
        right:142px;
    }
}
@media(max-width: 1360px)
{
    #badge
    {
        right:136px;
    }
}
@media(max-width: 1320px)
{
    #badge
    {
        right:129px;
    }
}
@media(max-width: 1259px)
{
    #badge
    {
        right:119px;
    }
}
@media(max-width: 1212px)
{
    #badge
    {
        right: 96px;
    }
}
@media(max-width: 1155px)
{
    #badge
    {
        right: 87px;
    }
}
@media(max-width: 1090px)
{
    #badge
    {
        right: 119px;
    }
}
@media(max-width: 1030px)
{
    #badge
    {
        right: 109px;
    }
}
@media(max-width: 970px)
{
    #badge
    {
        right: 100px;
    }
}
@media(max-width: 910px)
{
    #badge
    {
        right: 94px;
    }
}
@media(max-width: 850px)
{
    #badge
    {
        right: 87px;
    }
}
@media(max-width: 750px)
{
    #badge
    {
        right: 87px;
        padding: 3px 6px;
        font-size: 12px;
        top: 12px;
    }
}
@media(max-width: 650px)
{
    #badge
    {
        right: 78px;
    }
}
@media(max-width: 550px)
{
    #badge
    {
        right: 62px;
        top: 18px;
    }
}