
@keyframes Fadeout  {
     from {
        opacity: 1;
     }
     to {
        opacity: 0;
     }
}
@keyframes Fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
    }
@keyframes SlideIn {
    from {
        left: -200px;
    }
    to {
        left: 10px;
    }
}
@keyframes SlideOut {
    from {
        left: 10px;
    }
    to {
        left: -200px;
    }
}

body {
    background-color: #f2f3f7;
}
.slide-out {
    display: none;
    animation: 0.4s SlideOut ease-in;
}
.slide-in {
    display: block;
    animation: 0.3s SlideIn ease-out;
}
.fade-in {
    opacity: 0;
    animation: 0.5s Fadein ease-in;
}
.fade-out {
    opacity: 1;
    animation: 0.5s forwards Fadeout ease-out;
}
.hidden-input {
    display: none;
}
* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    font-family: "Nunito", sans-serif;
}

.logo {
    position: relative;
    margin-left: 60px;
    letter-spacing: var(--logo-letter-spacing);
}

.logo a {
    color: black;
}

.full-name {
    position: absolute;
    top: 41px;
    font-size: 12px;
    right: 17px;
    width: 50px;
    height: 1px;
    text-align: center;
}

.father_name {
    display: none;
    top: -2px;
    position: relative;
}

.navbar { 
    position: relative;
    display: flex;
    gap: 180px;
    height: 50px;
    justify-content: start;
    text-align: center;
    align-items: center;
    width: 100%;
    background-color: #27548A;
    padding-bottom: 8px;
    padding-top: 4px;
    
}


.search-bar {
    position: relative;
    width: 580px;
    height: 42px;
    border-radius: 5px;
    background-color: white;
    border: 1px solid white;
    padding-left: 20px;
    z-index: 1000;
}
.search-button {
    position: relative;
    padding: 7px;
    background: white;
    border: 1px solid white;
}
.search-box {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 10px;
}
.search-icon {
    position: relative;
    right: 10px;
    margin-left: 10px;
    width: 24px;
    height: auto;
    z-index: 1000;
}
.search-wrapper {
    display: block;
    justify-content: start;
    text-align: start;
}
.search-results {
    list-style: none;
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 550px;
    font-size: 14px;
    z-index: 100;
}
.search-result-li {
    cursor: pointer;
    text-align: start;
    padding-left: 10px;
    background-color: white;
    width: 110%;
    padding-top: 8px;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.search-result-li:hover {
    animation-duration: 500ms;
    background-color: #f0efef;
}
.three-dot-icon{ 
    width: 26px;
    height: 26px;
}
.cart-button {
    cursor: pointer;
    width: 29px;
    height: 29px;
    position: absolute;
    top: 14px;
    right: 84px; 
}
.cart-button::before {
    content: "10";
    position: absolute;
    width: 300px;
    height: 100%;
    border-radius: 50%;
    top: -5px;
    background-color: yellow;
    
}
.cart-item {
    top: 7px;
    right: 76px; 
    position: absolute;
    width: 17px;
    height: 17px;
    padding: 2.3px;
    justify-content: center;
    font-size: 14px;
    border-radius: 30px;
    background-color: red;
    font-size: 14.5px;
    color: white;
    font-family: "Poppins",sans-serif;
    text-align: center;
    z-index: 1000;
}

.profile-toast-buttons-wrapper {
    display: grid;
    grid-template-columns: 1;
    padding: 20px;
    a {
        color: black;
        margin-bottom: 10px;
    }
}
.account {
    position: absolute;
    right: 20px;
    top: 13px;
}
.profile-picture {
    cursor: pointer;
    width: 27px;
    height: auto;
}
.second-navbar { 
   align-items: center;
   position: relative;
   display: flex;
   width: 98.4%;
   background-color: white;
   padding: 10px;
   column-gap: 90px;
}
.navlist-item {
    width: 120px;
    text-align: center;

}
.navlist-item a:hover {
    color: blue;
}
.categories-button {
    cursor: pointer;
    display: flex;
    column-gap: 10px;
    width: 190px;
    align-items: center;
}
.categories-icon {
    width: 20px;    
    height: 20px;
}
.contacts {
    display: flex;
    column-gap: 20px;
    font-size: 16px;
    margin-left: 20px;
    position: relative;
}
.toast {
    border: 1px solid black;
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgb(33, 33, 33);
    width: 320px;
    text-align: center;
    margin-top: 8px;
    position: absolute;
    z-index: 12000;
    padding: 4px;
    margin-left: 20px;
    display: none;
    align-items: center;
    column-gap: 10px;
   
}

.close-button {
    position: absolute;
    width: 15px;
    top: 3px;
    right: 0;
    height: 15px;
    padding: 10px;
}
.category-link {
    user-select: none;
    color: black;
}
.category-text {
    display: flex;
    border: 1px solid black;
    padding: 0px 20px;
    padding-bottom: 20px;
    width: 170px;
    position: relative;
    padding-left: 60px;
    align-items: center;
    margin-bottom: 10px;
    p {
        text-align: center;
        left: -10px;
        position: relative;
        top: 8px;
    }


}

.side-bar {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    display: none;
    position: absolute;
    left: 10px;
    width: 280px;
    height: 93%;
    border: 1px solid black;
    border-radius: 10px;
    background-color: white;
    top: 10px;
    z-index: 10000;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style:auto;
}
.category-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    margin-top: 10px;
    left: 20px;
    z-index: 10000;
}
.side-bar-drop-down-button {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 10px;
    bottom: 10px;

    transform: rotateX('189');
}
.menu {
    position: relative;
    left: 5px;
}
.sub-menu {
    display: none;
    position: relative;
    top: -3px;
}
.sub-category-text {
    width: 140px;
    padding: 5px 25px;
    margin-left: 10px;
    border: 1px solid black;
    margin-bottom: 7px;
}
/* .side-bar::-webkit-scrollbar {
    left: 0;
} */
footer {
    margin-top: 80px;
    background-color: black;
    width: 100%;
    position: relative;
    height: 400px;
}
.back-to-top {
    background-color: rgb(212, 210, 210);
    cursor: pointer;
    border: none;
    width: 100%;
    position: relative;
    height: 60px;



}
.profile-name {
    text-align: center;
    padding: 10px;
}
.profile {
    display: none;
    position: absolute;
    border: 1px solid black;
    width: 200px;
    height: 250px;
    right: 50px;
    background-color: white;
    top: 38px;
    border-radius: 10px;
    border-top-right-radius: 1px;
    z-index: 100000;
    justify-content: end;
    .logout-button {
        padding-top: 10px 0;
        cursor: pointer;
        background-color: transparent;
        border: none;
        font-size: 17px;
        align-items: center;
        text-align: center;
        justify-content: center;
        position: relative;
        bottom: 20px;
        display: flex;
        column-gap: 3px;
        left: 90px;
        color: red;
        filter: invert(red);
       
    }
}

.profile-toast-buttons-wrapper {
    row-gap: 10px;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.profile-toast-button-container {
    display: flex;
    align-items: center;
    column-gap: 3px;
    text-align: center;
}
.profile-toast-link {
    color: rgb(0, 0, 168)!important;
    margin-bottom: 10px;
}

.profile-toast-link:hover {
    color: rgb(90, 75, 255)!important;
}
.profile-icon {
    cursor: pointer;
    margin: 5px;
}
.profile-info-container {
    display: flex;
    align-items: center;
    column-gap: 5px;
    border-bottom: 1px solid rgb(200, 200, 200);
    padding-bottom: 4px;
    padding-top: 5px;
    width: auto;
}
.profile-info-text {
    margin: 2px 10px;
    font-size: 14px;
}
.footer-links {
    display: grid;
    column-gap: 30px;
    top: 30px;
    width: 30%;
    position: relative;
    left: 50px;
    row-gap: 20px;
    a {
        color: white;
        width: auto;
    }
    a:hover {
        color: rgb(255, 192, 75);
    }
}
.phone-number {
    color: black;
}
.footer-contacts {
    position: absolute;
    right: 50px;
    bottom: 100px;
    display: flex;
    column-gap: 14px;
    
}
.social-links {
    width: 30px;
    height: 30px;
    cursor: pointer;

}


:root {
    --search-button-padding: 5px 10px;
    --search-button-margin-left: -36px;
    --search-button-left: -150px;
    --logo-left: -100px;
    --logo-letter-spacing: .7px;
    --search-bar-height: 42px;
    --search-bar-width: 350px;
    --navbar-bottom-border: 1px solid rgb(37, 37, 37);
}


@media screen and (max-width: 1100px) {
    .navbar {
        gap: 60px;
    }
    .search-results {
        width: 420px;
        font-size: 13px;
    }
    .search-bar {
        width: 520px;
    }
}
@media screen and (max-width: 900px) {
    .navbar {
        gap: 50px;
    }
    .search-bar {
        width: 430px;
    }
    
}
@media screen and (max-width: 800px) {
    .navbar {
        gap: 30px;
    }
    .search-bar {
        width: 400px;
    }
    .logo {
        margin-left: 19px;
    }
}
@media screen and (max-width: 700px) {
    .navbar {
        gap: 20px;
    }
    .search-bar {
        width: 350px;
    }
    .search-results {
        width: 380px;
        font-size: 12px;
    }
    .search-result-li-icon {
        width: 14px;
    }
    .logo {
        margin-left: 19px;
    }

    .product-name-container {
        p {
            width: 100px;
        }
    }
}
@media screen and (max-width: 650px) {
    .navbar {
        gap: 20px;
    }
    .search-bar {
        width: 300px;
    }
    .logo {
        margin-left: 19px;
    }
}

@media screen and (max-width: 600px) {
     .navbar {
        width: 100%;
        height: 100px;
     }
     .logo {
        top: -30px;
     }
     .search {
        position: absolute;
        max-height: 42px;
        top: 55px;
        left: 20px;
     }
     .search-bar {
        width: 400px;
     }
     .second-navbar {
        width: 96%;
     }
}

@media screen and (max-width: 460px) {
    .search {
        position: absolute;
        max-height: 42px;
        top: 60px;
        left: 20px;
    }
    .search-bar {
        width: 340px;
    }
    .search-results {
        width: 330px;
        line-height: 17px;
        font-size: 12px;
    }
    .logo {
        left: 10px;
    }
}

@media screen and (max-width: 400px) {
    .search {
        position: absolute;
        max-height: 42px;
        top: 55px;
        left: 20px;
    }
    .search-bar {
        width: 290px;
    }
    .search-results {
        width: 280px;
        line-height: 17px;
        font-size: 12px;
    }

}
