/* stylesheet file for products page */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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


/* most used classes */

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* container set */
.container {
    width: 90%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.landing {
    position: relative;
    width: 100%;
    height: 80vh;
    background-image: url(../imgs/products-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.landing::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .3);
    top: 0;
    left: 0;
}

header {
    position: absolute;
    top: 20px;
    width: 100%;
    color: #FFF;
}


header nav {
    align-items: center;
    justify-content: space-between;
    width: 100%;

}

header nav .logo {
    width: 40%;
}

header nav .logo h1 a {
    color: #FFF;
    text-decoration: none;
}

header nav .links {
    width: 60%;
    display: flex;
    justify-content: flex-end;
}

header nav .links ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: auto;
}

header nav .links ul li {
    margin-right: 10px;
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav .links ul li a {
    text-decoration: none;
    color: #FFF;
    font-size: 20px;
    transition: .5s;
}

header nav .links ul li a:hover {
    color: #94B618;
}

/* cart and login btn */
header nav .btns {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 25%;
    right: 13%;
}

header nav .btns .login {
    width: 80px;
    height: 35px;
    border-radius: 5px;
    border: none;
    color: #FFF;
    background-color: #94B618;
    position: relative;
    cursor: pointer;
}

header nav .cart-btn {
    font-size: 1.5rem;
    color: #94B618;
    background-color: transparent;
    cursor: pointer;
    margin-right: 20px;
    position: relative;
}

/* new styles for cart */
header nav .cart-btn .totalQuantity {
    width: 20px;
    height: 20px;
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #747868;
    border-radius: 50%;
    font-size: large;
    color: #FFF;
}

/* mobile nav btn */
.mobileNavBtn {
    position: absolute;
    top: 28%;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: .5s;
}

.mobileNavBtn:hover i{
    color: #94B618;
    transition: .5s;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* border: 1px solid #DDD; */
    box-shadow: 3px 3px 10px #EEE;
    border-radius: 40px;
    backdrop-filter: blur(5px);
    transition: .5s linear;
    display: none;
    padding: 7px 0;
    z-index: 2;
    position: absolute;
    top: 80px;
    right: 10px;
    width: 50%;
}

.mobile-links ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.mobile-links ul li {
    margin: 10px;
    width: auto;
}

.mobile-links ul li a {
    text-decoration: none;
    color: #FFF;
    font-size: 20px;
    transition: .5s;
}

.mobile-links  ul li a:hover {
    color:  #94B618;
}

.mobile-links .btns {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.mobile-links .btns .login {
    width: 80px;
    height: 35px;
    border-radius: 5px;
    border: none;
    color: #FFF;
    background-color: #94B618;
    position: relative;
    cursor: pointer;
}

/* cart styles */
.landing .cart {
    position: absolute;
    position: relative;
    position: fixed;
    right: -100%;
    /* right: 0; */
    width: 100%;
    height: 100%;
    z-index: 3;
    background-color: #f6f1f1;
    transition: .5s;
    padding: 20px 0;
    overflow-y: scroll;
}

.landing .cart h2 {
    padding-left: 15px;
}

.cart #closeBtn {
    position: absolute;
    right: 15px;
    top: 3%;
    font-size: 1.5rem;
    transition: .5s;
    cursor: pointer;
}

.cart #closeBtn:hover {
    color: red;
}

.cart .checkOut {
    width: 100%;
    height: 50px;
    position: absolute;
    bottom: 0;
}

.cart .checkOut button {
    width: 50%;
    height: 100%;
    cursor: pointer;
}

.cart .checkOut button:first-child {
    background-color: #94B618;
    color: #FFF;
    border: none;
}
.cart .checkOut button:nth-child(2) {
    background-color: red;
    color: #FFF;
    border: none;
}

.landing .cart ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.landing .cart ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFF;
    margin-top: 10px;
    padding: 10px;
    transition: .5s;
    margin-left: 10px;
    transition: .5s;
    border: 1px solid transparent;

}

.landing .cart ul li:hover {
    background-color: #f9f5f5;
    border: 1px solid #DDD;
}

.landing .cart ul li img {
    width: 80px;
    height: auto;
}

.landing .cart ul li h2 {
    font-size: 20px;
}

.landing .cart ul li span {
    font-size: 20px;
    background-color: #94B618;
    color: #FFF;
}

.landing .cart ul li .itemRemove {
    background-color: transparent;
    color: red;
    cursor: pointer;
}


/* main title on products page */
.product-title {
    position: absolute;
    left: 4%;
    bottom: 10%;
    color: #FFF;
    z-index: 1;
}

.product-title h1 {
    font-size: 3rem;
    z-index: -1;
}

.product-title p {
    font-size: 1.2rem;
}

/* bike products section */
.bike-products {
    height: auto;
    position: relative;
}

.links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navlinks {
    width: 80%;
    background-color: #FFF;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    overflow: hidden;
    position: absolute;
    top: -20px;
    box-shadow: 3px 3px 10px #e9eddf;
}


.link {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    cursor: pointer;
    transition: .5s;
}

.link:not(:last-child) {
    border-right: 1px solid #94B618;;
}

.active {
    background-color: #94B618;
    color: #FFF;
}

.link:hover {
    background-color: #94B618;
}

/* search bar */
.search {
    margin-top: 50px;
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.search-bar input[type=search] {
    width: 400px;
    height: 50px;
    padding-left: 10px;
    padding-right: 10px;
    border: none;
    border-bottom: 1px solid #94B618;
}

.search-bar input[type=search]:focus {
    outline: none;
}

.search-bar button {
    height: 50px;
    width: 100px;
    border: none;
    cursor: pointer;
    border-bottom: 1px solid #94B618;
    border-right: 1px solid #94B618;
    border-left: 1px solid transparent;
    border-top: 1px solid transparent;
    transition: .5s;
}

.search-bar button:hover {
    color: #94B618;
    background-color: #FFF;
    border-left: 1px solid #94B618;
    border-top: 1px solid #94B618;
}



/* bikes products */
.bikes {
    margin-top: 30px;
    padding: 15px 0 15px 0;
}

.bike-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    gap: 20px;
    flex-wrap: wrap;
}

.bike-card {
    width: 400px;
    height: 250px;
    border: 1px solid #DDD;
    overflow: hidden;
    position: relative;
    padding: 20px;
}

.bike-card img {
    width: 90%;
    height: auto;
    z-index: 2;
    transition: .5s;
}

.bike-card .add {
    position: absolute;
    width: 20%;
    height: 100%;
    top: 0;
    right: -20%;
    transition: .5s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    background-color: #f6f1f1;
}

.bike-card:hover .add {
    right: 0;
}

.bike-card:hover img {
    width: 80%;
}

.add i 
{
    color: #94B618;
    font-size: 2rem;
    transition: .5s;
    cursor: pointer;
}

.add i:hover {
    color: red;
}


/* footer styles */
footer {
    height: auto;
    background-color: #f8f4e9;
    position: relative;
}

.footer-wrapper {
    flex-direction: column;
}

.subscribe,
.hotline {
    height: 100%;
    width: 100%;
    padding-top: 30px;
}

.subscribe h3 {
    font-size: 2.5rem;
}
.subscribe p {
    font-size: 1.4rem;
    width: 80%;
    margin-top: 20px;
}

.subscribe .email {
    margin-top: 20px;
}

.email input[type=text] {
    width: 250px;
    height: 40px;
    border: none;
    padding-left: 10px;
    border-bottom: 1px solid #94B618;
    background-color: #f8f4e9;
}

.email input[type=text]:focus {
    outline: none;
}

.email button {
    width: 100px;
    min-width: fit-content;
    background-color: #747868;
    color: #FFF;
    border: none;
    transition: .5s;
    cursor: pointer;
    padding: 0 3px;
}

.subscribe .email:hover button {
    background-color: #94B618;
}

/* right side */
.hotline span {
    font-size: 1.1rem;
}

.hotline a {
    font-size: 1.5rem;
    text-decoration: none;
    color: #747868;

}

.hotline a:first-child {
    color: #000000;
}

.hotline .mail {
    margin-top: 10px;
}

.author {
    text-align: center;
    padding: 20px 0;
    bottom: 5px;
    width: 100%;
}

.author a {
    text-decoration: none;
    color: #747868;
}