/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

/* Colors */
:root {
    --light-purple: #4E49B9;
    --dark-purple: #3B3790;
    --store-status-open: #0AAB37;
    --store-status-closed: #ff0000;
    --store-status-button: #4843B3;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

header {    
    position: sticky;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;    
    height: 80px;
    width: 100%;
    background-color: var(--light-purple);
    padding: 10px;
}

/* Beggining of Search Input Style */
#search-bar-nav {
    width: 24.323%;
    position: relative;
    align-items: center;
}

#search-bar-nav input {
    height: 36px;
    width: 100%;
    border-radius: 8px;
    border: none !important;
    padding-left: 38px;
    padding-top: 17px;
    padding-bottom: 17px;
    font-size: 12px;
}

#search-btn {
    position: absolute;
    padding: 10px 8px 10px 10px;
}

#search-bar-nav-logged-in {
    width: 30.4038%;
    position: relative;
    align-items: center;
}

#search-bar-nav-logged-in input {
    height: 44px;
    width: 100%;
    border-radius: 8px;
    border: none;
    padding-left: 38px;
    padding-top: 17px;
    padding-bottom: 17px;
}

/* End of Search Input Style */


/* Beggining of Icons Style */
#icons-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFFFFF;
    font-size: 12px;
    gap: 20px;
}

#store-status {
    padding: 4px 8px 4px 0px;
    display: flex;
    align-items: center;
    border-radius: 42px;
    background-color: var(--store-status-button);
    font-weight: 400;

}

/* Class when store is closed */
.store-status--closed::before {
    content: "";
    display: block;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--store-status-closed);
    margin: 8.5px 8px;
}

/* Class when store is open */
.store-status--open::before {
    content: "";
    display: block;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--store-status-open);
    margin: 8.5px 8px;
}

/* Enter button */
#login-container {
    display: flex;
    flex-direction: column;
    align-items: center;    
    gap: 3px;
}

#login-container:hover {
    transform: scale(1.05);
    cursor: pointer;
}

#login-container img {
    width: 24px;
    height: 24px;
    font-size: 10px;
    font-weight: 500;
}

#perfil-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

#perfil-container:hover {
    transform: scale(1.05);
    cursor: pointer;
}

#perfil-container img {
    width: 24px;
    height: 24px;
    font-size: 10px;
    font-weight: 500;
}

#favorites-container {
    display: flex;
    flex-direction: column;
    align-items: center;    
    gap: 3px;
}

#favorites-container:hover {
    transform: scale(1.05);
    cursor: pointer;
}

#favorites-container img {
    width: 24px;
    height: 24px;
    font-size: 10px;
    font-weight: 500;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    align-items: center;    
    gap: 3px;
    text-decoration: none;
    color: white;
}

.menu-icon:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* Cart Button */
#cart-icon {
    display: flex;
    flex-direction: column;
    align-items: center;    
    gap: 3px;
}

#cart-icon:hover {
    transform: scale(1.05);
    cursor: pointer;
}

#shopping-cart-icon-container {
    width: 24px;
    height: 24px;
    position: relative;
}

#nav-underline {
    width: 100%;    
    background-color: var(--dark-purple);
    height: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 9px 15px;
}  

#nav-underline-logged-in {
    width: 100%;
    height: 31px;
    background-color: var(--dark-purple);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 121px;
}

#nav-underline-nome-usuario {
    color: white;
    line-height: 21px;
    font-size: 14px;
    margin: 5px 14px 5px 0px;
}

#nav-underline-logout {
    color: #A09ED8;
}

#nav-underline-logout:hover {
    transform: scale(1.05);
    cursor: pointer;
    
}

#header-status{
    background: #4843B3;
    border-radius: 42px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px 8px;
}

#header-status-circle-open{
    background: #0AAB37;
    width: 12px;
    height: 12px;
    flex: none;
    order: 0;
    flex-grow: 0;
    margin: 0px 8px;
    border-radius: 12px;
}

#header-status-circle-closed{
    background: red;
    width: 12px;
    height: 12px;
    flex: none;
    order: 0;
    flex-grow: 0;
    margin: 0px 8px;
    border-radius: 12px;
}

.header-endereco-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    line-height: 10px;
    cursor: pointer;
}

.header-endereco-change {    
    font-size: 11px;
    line-height: 10px;
    text-decoration: underline;
}

#logo-nav img{
    height: 50px;
}

@media screen and (min-width: 651px) {
    .only-mobile{
        display: none !important;
    }
}


@media screen and (max-width: 650px) {
    #logo-nav{
        display: flex;
        padding-top: 10px;
        justify-content: space-between;
        width: 90%;
        align-items: center;
    }

    #logo-nav span{
        font-weight: 400;
        font-size: 14px;
        line-height: 21px;
        color: #FFFFFF;
    }

    #logo-nav img{
        height: 30px;
    }

    #icons-nav {
        display: none;
    }

    #search-bar-nav {
        width: 90%;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    nav {
        height: auto;
        flex-direction: column;
        padding: 0;
    }      
}