*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    font-family: 'Roboto', sans-serif;
    position: relative;
    height: 100%;
}

body{
    background: #fff;
}


:root {
    --primary-color: #0153A6;
    --secondary-color: #4383CB;
    --yellow-color: #FA8E01;
    --danger-red-color: #DC3545;
}

header{
    background-color: var(--primary-color);
    font-size: 1.2rem;
    min-height: 5.5rem;
    width: 100%;
}

/* Navbar */

nav {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    align-items: center;
    color: #fff;
    height: 5.5rem;
    width: 100%;
    position: fixed;
    top: 0;
    background-color: var(--primary-color);
    z-index: 1;
}

#nav-menu-left{
    display: flex;
    list-style-type: none;
    gap: 2rem;
    align-items: center;
}

#nav-menu-right{
    display: flex;
    list-style-type: none;
    gap: 1.5rem;
}

#nav-menu-right li{
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    height: 4rem;
}

#nav-menu-right li i{
    margin-left: 0.7rem;
    color: #fff;
    font-size: 2rem;
}

#nav-menu-left li {
    display: flex;
    align-items: center;
    cursor: pointer;
}

#nav-menu-left li i{
    margin-right: 0.7rem;
    font-size: 1rem;
}

#search-bar{
    width: 48rem;
    background-color: var(--secondary-color);
    height: 4rem;
    padding-left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 5px;
}

#search-bar input{
    width: 90%;
    height: 100%;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 1.2rem;
    border: none;
    outline: none;
}

::placeholder {
    color: #fff;
  }
  

#search-bar i {
    color: #fff;
    font-size: 1rem;
}


#logo{
    width: 160px;
}

#number-on-the-cart{
    background-color: var(--danger-red-color);
    border-radius: 50%;
    position: absolute;
    padding: 0 0.5rem;
    left: 100px;
    top: 0;
}

/* Dropdown Menu */

.select {
    padding: 1.8rem 0.5rem;
    border-radius: 5px;
    cursor: pointer;
}

.select.active{
    background-color: #fff;
    color: var(--primary-color);
}

.dropdown-menu{
    background-color: #fff;
    color: grey;
    width: 17rem;
    position: absolute;
    z-index: 1;
    border-radius: 5px;
    font-size: 1rem;
    display: none;
    transform: translateY(-7px);
}

.dropdown-menu.block{
    display: block;
}

.dropdown-menu i {
    color: var(--secondary-color);
    width: 1.5rem;
}

.menu_top{
    display: flex;
    justify-content: space-around;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--secondary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.menu_top li{
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.menu_top li:hover{
    background-color: var(--primary-color);
    color: #fff;
}

.menu{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.menu li {
    line-height: 3rem;
    width: 100%;
    padding-left: 1rem;
}

.menu li:hover{
    background-color: var(--primary-color);
    color: #fff;
}

.menu li:hover .menu-icon{
    color: #fff;
}



/* Slider */

main{
    width: 100%;
    height: 100%;
    position: relative;
    height: fit-content;
    z-index: 0;
}

#slider {
    min-height: 100%;
    background-color: var(--primary-color);
    padding: 2.5rem 0;
    position: relative;
}

.mySwiper {
    width: 100%;
    height: 450px;
}

.mySwiper2 {
    margin-top: 2rem;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    display: none;
}

.swiper-button-next, .swiper-button-prev{
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff !important;
    padding: 3.5rem 1.75rem;
    border-radius: 5px;
    margin: 0 9.1rem;
}

.swiper-button-next2, .swiper-button-prev2{
    margin: 0 !important;
}

.swiper-arrow i {
    font-size: 1.5rem;
}


.swiper-slide{
    opacity: 0.5;
}

.swiper-slide-prev,.swiper-slide-active,.swiper-slide-next{
    opacity: 1;
}

.opacity-1{
    opacity: 1;
}

.swiper-pagination{
    position: relative;
    margin-top: 1.5rem;
}

.swiper-pagination-bullet{
    background-color: var(--secondary-color) !important;
    border: 1px solid #fff !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active{
    background-color: #fff !important;
}


/* Related Products Section */

.products-section{
    width: 75%;
    margin: auto;
    margin-top: 3rem;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.products-header>h1 {
    font-size: 2rem;
    color: grey;
}

.products-header p{
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 1rem 0;
}

#related-products-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 2rem;
}

.load-more p{
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.5rem;
    border-radius: 10px;
}

.load-more:hover p{
    background-color: var(--primary-color);
    color: #fff;
}

.load-more:active{
    transform: scale(0.95);
}


/* Card Design */

.card{
    width: 285px;
    height: 527px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.card-image {
    height: 40%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card-image img {
    width: 80%;
}

.rating-comment{
    display: flex;
    gap: 0.5rem;
}

.rating i {
    color: var(--yellow-color);
    margin-right: 0.2rem;
}

.comment{
    color: grey;
}

.product-code{
    color: grey;
}

.title{
    text-align: center;
    padding: 0 1rem;
}

.price{
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.same-day-shipping{
    background-color: #eee;
    padding: 0.50rem 1rem;
    color: grey;
}

.add-to-cart{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #fff;
    height: 4rem;
    position: absolute;
    bottom: 0;
    left: 100%;
    transition: transform ease-in-out 0.5s;
    cursor: pointer;
}

#add-to-cart_left{
    background-color: var(--secondary-color);
    height: 100%;
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#add-to-cart_right{
    background-color: var(--primary-color);
    height: 100%;
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card:hover{
    border-color: var(--primary-color);
}

.card:hover .add-to-cart{
    transform: translateX(-100%);
}

/* Footer */

footer{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#social-media-container{
    background-color: var(--secondary-color);
    width: 100%;
    min-height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4rem;
}

#social-media-container ul {
    display: flex;
    gap: 10rem;
}

#social-media-container ul li {
    list-style-type: none;
}

#social-media-container ul li i{
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    transition: transform ease-in-out 0.5s;
}

#social-media-container ul li i:hover{
    color: #000;
    transform: scale(1.4);
}


#footer-container{
    margin-top: 3rem;
    width: 100%;
    min-height: fit-content;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-bottom: 2px solid grey;
    gap: 5rem;
    color: grey;
    padding-bottom: 3rem;
}

#footer-container li {
    cursor: pointer;
}

#footer-container li:hover {
    text-decoration: underline;
}

.footer-menu h4{
    margin-bottom: 1.5rem;
}

.footer-list{
    display: flex;
    gap: 3rem;
}

.footer-list ul{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}



/* Media */

@media only screen and (max-width: 750px) {

    header{
        height: fit-content;
    }

    nav{
        flex-direction: column;
        height: fit-content;
        padding-bottom: 1rem;
        position: static;
    }

    #search-bar{
        width: 80%;
    }

    .swiper-button-next, .swiper-button-prev{
        margin: 0 !important;
    }

    .products-header {
        flex-direction: column;
    }

    #footer-container{
        flex-direction: column;
        align-items: flex-start;
        width: fit-content;
        margin: auto;
        margin-top: 4rem;
    }

    #social-media-container ul {
        display: flex;
        gap: 5rem;
    }

    .dropdown-menu{
        transform: translate(-50.3%, -2%);
    }

}


@media only screen and (max-width: 1100px) {
    nav{
        flex-direction: column;
        height: fit-content;
        padding-bottom: 1rem;
        position: static;
    }

    #search-bar{
        width: 80%;
    }

}
