/* font */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

.open-sans-light {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}
  
.open-sans-semibold {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}
  
.open-sans-bold {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

/* default tags */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: black;
}
html{
    overflow-x: hidden;
}
a{
    text-decoration: none;
    transition: 0.3s;
}
button{
    cursor: pointer;
    transition: 0.3s;
}
h1{
    font-size: 60px;
    line-height: 120%;
    font-weight: 500;
}
h2{
    font-size: 26px;
    font-weight: 500;
}
h4{
    font-size: 18px;
    font-weight: 500;
}
section{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
img{
    transition: 0.3s;
}
img:hover{
    cursor: cell;
    transform: scale(110%);
}

/* classes */
.container{
    max-width: 1300px;
    width: 100%;
    padding: 0px 20px;
}
.center{
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo{
    width: 250px;
}
.primaryBtn{
    background-color: #D31A26;
    border: 1px solid #D31A26;
    color: white;
    padding: 10px 20px;
    display: inline-block;
}
.primaryBtn:hover{
    background-color: black;
    border: 1px solid black;
    
}
.secondaryBtn{
    background-color: black;
    border: 1px solid black;
    color: white;
    padding: 10px 20px;
    display: inline-block;
}
.secondaryBtn:hover{
    background-color: #D31A26;
    border: 1px solid #D31A26;
}
.btnGroup{
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 15px;
}


/* header */
header>div:nth-of-type(1){
    background-color: black;
    padding: 10px 0px;
}
header>div:nth-of-type(1) *{
    color: white;
    transition: 0.3s;
}
header>div:nth-of-type(1) a:hover, header>div:nth-of-type(1) a:hover svg{
    color: #D31A26;
    fill: #D31A26;
}
header div.container{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header div.container>div{
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 20px;
}
header>div:nth-of-type(2){
    background-color: rgb(242, 242, 242);
    padding: 20px 0px;
}
header>div:nth-of-type(2) svg{
    width: 30px;
    height: 30px;
    cursor: pointer;
}
#menuClose, #menuOpen{
    display: none;
}
header>div:nth-of-type(2) nav{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
header>div:nth-of-type(2) nav a{
    font-size: 18px;
    transition: 0.3s;
    padding: 6px 0px;
    border: 2px solid transparent;
    cursor: pointer;
}
header>div:nth-of-type(2) nav a.active{
    border: 2px solid black;
    padding: 6px 15px;
}
header>div:nth-of-type(2) nav a:hover{
    color: #D31A26;
    border-bottom: 1px solid #D31A26;
}
header>div:nth-of-type(2) nav a.active:hover{
    border: 2px solid #D31A26;
}

/* footer */
footer>div>div.container{
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
}
footer>div:nth-of-type(1)>div.container>*{
    flex-grow: 1;
    flex-basis: 0;
}
footer .logo{
    margin-bottom: 10px;
}
footer h4{
    margin-bottom: 10px;
}
footer a{
    color: #D31A26;
}
footer>div:nth-of-type(1){
    background-color: rgb(242, 242, 242);
    padding: 50px 0px;
}
footer>div:nth-of-type(1) .container>div{
    max-width: 250px;
    min-width: 250px;
    width: 100%;
}
footer>div:nth-of-type(1) .container>div:nth-of-type(1){
    max-width: 450px;
}
footer>div:nth-of-type(1) .container>div:nth-of-type(4) a{
    display: inline-block;
    margin: 7px 10px 0px 0px;
}
footer>div:nth-of-type(1) .container>div:nth-of-type(4) svg{
    width: 20px;
    height: 20px;
    transition: 0.3s;
}
footer>div:nth-of-type(1) .container>div:nth-of-type(4) a:hover svg{
    fill: #D31A26;
}
footer>div:nth-of-type(1)>div.container a{
    display: block;
    white-space: nowrap;
    line-height: 160%;
}
footer>div:nth-of-type(1)>div.container a:hover{
    color: black;
}
footer form{
    position: relative;
    margin-top: 7px;
}
footer input{
    padding: 10px;
    width: 100%;
    max-width: calc(100% - 82px);
}
footer button{
    background-color: black;
    color: white;
    padding: 10px;
    position: absolute;
    width: 85px;
    border: 1px solid black;
    right: 0px;
    transition: 0.3s;
}
footer button:hover{
    background-color: #D31A26;
    border: 1px solid #D31A26;
}
footer>div:nth-of-type(2){
    background-color: black;
    padding: 15px 0px;
}
footer>div:nth-of-type(2)>div.container{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    color: white;
    gap: 10px;
    text-align: center;
}
footer>div:nth-of-type(2)>div.container p{
    color: white;
}
footer>div:nth-of-type(2)>div.container a:hover{
    color: white;
}


/* home */
#homeBanner{
    background-image: url("../img/homeBg.jpg");
    background-size: cover;
    background-position: center;
    height: calc(100vh - 250px);
    position: relative;
}
#homeBanner *{
    color: white;
}
#homeBanner .container div{
    max-width: 600px;
}
#homeBanner h2{
    margin-bottom: 7px;
}
#homeBanner .btnGroup{
    margin-top: 20px;
}
#homeBike{
    position: absolute;
    bottom: -80px;
    right: -500px;
    width: 500px;
    animation: bikeComes 0.7s ease-out forwards;
    transition: bottom 1s ease;
    filter: saturate(150%);
}
@keyframes bikeComes {
    0%{
        right: -500px;
    }
    100%{
        right: 50px;
    }
}
#homeBike.moveDown {
    bottom: -400px;
    filter: hue-rotate(110deg) saturate(200%);
}

/* about */
#aboutUs{
    padding: 50px 0px;
}
#aboutUs div.container>div{
    max-width: 600px;
}
#aboutUs h2{
    padding-bottom: 5px;
    border-bottom: 1px solid black;
}
#aboutUs p{
    margin: 20px 0px 15px;
    line-height: 150%;
}

/* contactUs */
#contactUs{
    padding: 50px 0px;
}
#contactUs>div.container>div{
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
}
#contactUs>div.container>div>*{
    flex-grow: 1;
    flex-basis: 0;
    width: 100%;
}
#contactUs>div.container>div>div a{
    display: block;
    padding: 25px;
    box-shadow: 0px 0px 10px gray;
    margin-top: 20px;
    align-items: center;
    display: flex;
}
#contactUs>div.container>div>div a:hover{
    background-color: rgb(242, 242, 242);
    color: #D31A26;
    box-shadow: 0px 0px 10px transparent;
}
#contactUs>div.container>div>div a svg{
    margin-right: 15px;
    width: 30px;
    height: 30px;
    transition: 0.3s;
}
#contactUs>div.container>div>div a:hover svg{
    fill: #D31A26;
}
#contactUs h2{
    padding-bottom: 5px;
    border-bottom: 1px solid black;
}
#contactUs p{
    margin: 20px 0px;
}
#contactUs form{
    box-shadow: 0px 0px 10px gray;
    padding: 30px;
}
#contactUs form input, #contactUs form textarea{
    padding: 10px;
    width: 100%;
    margin-bottom: 20px;
}
#contactUs form textarea{
    height: 150px;
}
#contactUs iframe{
    width: 100%;
    min-height: 400px;
}

/* serviceCenter */
#serviceCenter{
    padding: 50px 0px;
    background-color: black;
}
#serviceCenter>div.container>div{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
#serviceCenter div.container>div>*{
    max-width: 600px;
    min-width: 300px;
    flex-grow: 1;
    flex-basis: 0;
}
#serviceCenter h2{
    padding-bottom: 5px;
    border-bottom: 1px solid white;
    color: white;
}
#serviceCenter p{
    margin: 20px 0px 20px;
    line-height: 150%;
    color: white;
}
#serviceCenter .secondaryBtn{
    border: 1px solid white;
}
#serviceCenter .secondaryBtn:hover{
    border: 1px solid transparent;
}

/* login and register */
.signWindow{
    width: 100%;
    height: calc(100vh - 140px);
    position: fixed;
    bottom: 0px;
    z-index: 10;
    background-image: url("../img/homeBg.jpg");
    background-size: cover;
    background-position: center;
    display: none;
}
.signWindow div.container>div{
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 50px;
}
.signWindow h2{
    text-align: center;
    margin-bottom: 10px;
}
.signWindow form{
    max-width: 500px;
    min-width: 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.7);
}
.signWindow input{
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}
.signWindow input[type='file']{
    border: 1px solid rgba(0, 0, 0, 0.6);
    background-color: white;
}
.signWindow a{
    color: #D31A26;
}
.signWindow a:hover{
    color: black;
}
.signWindow .btnGroup{
    margin: 10px 0px 20px;
}
.signWindow .btnGroup button{
    width: 100%;
}
.signWindow a{
    margin-top: 5px;
    display: inline-block;
}
.signWindow img{
    max-width: 600px;
}
#registerSecondSet{
    display: none;
}

/* pagesBanner */
#pagesBanner{
    background-image: url("../img/homeBg.jpg");
    background-size: cover;
    background-position: center;
    height: 100px;
    position: relative;
}
#pagesBanner *{
    color: white;
}
#pagesBanner h2{
    margin-bottom: 7px;
}
#pagesBanner .container>div>div{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#pagesBanner form{
    position: relative;
    margin-top: 7px;
    max-width: 300px;
    width: 100%;
}
#pagesBanner input{
    padding: 10px;
    width: 100%;
    max-width: calc(100% - 82px);
}
#pagesBanner button{
    background-color: black;
    color: white;
    padding: 10px;
    position: absolute;
    width: 85px;
    border: 1px solid black;
    right: 0px;
    transition: 0.3s;
}
#pagesBanner button:hover{
    background-color: #D31A26;
    border: 1px solid #D31A26;
}




/* itemsList */
#itemsList{
    padding: 50px 0px;
}
#itemsList>div.container>div>div{
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
}
#itemsList article{
    box-shadow: 0px 0px 10px gray;
    max-width: 450px;
    min-width: 250px;
    flex-grow: 1;
    flex-basis: 0;
    padding: 30px;
    position: relative;
    text-align: center;
    transition: 0.3s;
}
#itemsList article:hover{
    background-color: black;
    box-shadow: none;
}
#itemsList article:hover .secondaryBtn{
    border: 1px solid white;
}
#itemsList article:hover .secondaryBtn:hover{
    border: 1px solid #D31A26;
}
#itemsList article h4{
    transition: 0.3s;
}
#itemsList article:hover h4{
    color: white;
}
#itemsList article img{
    width: 100%;
    height: 150px;
    object-fit: contain;
}
.cartIcon{
    width: 24px;
    height: 24px;
    padding: 10px;
    box-sizing: content-box;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: black;
    border: none;
}
.cartIcon svg{
    fill: white;
}
.cartIcon:hover{
    background-color: #D31A26;
}
#itemsList article>h4{
    margin: 20px 0px 5px;
}
#itemsList article>p{
    color: #D31A26;
    margin-bottom: 10px;
}
#itemsList article .btnGroup button{
    width: 100%;
}

/* viewProduct */
#viewProduct{
    padding: 50px 0px;
    background-color: black;
}
#viewProduct>div.container>div{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
#viewProduct div.container>div>div{
    max-width: 600px;
    min-width: 300px;
    flex-grow: 1;
    flex-basis: 0;
}
#viewProduct h2{
    padding-bottom: 5px;
    border-bottom: 1px solid white;
    color: white;
}
#viewProduct p{
    margin: 20px 0px 20px;
    line-height: 150%;
    color: white;
}
#viewProduct .productPriceView{
    color: #D31A26;
    font-size: 20px;
}
#viewProduct .productDescriptionView li{
    margin-left: 20px;
    line-height: 150%;
    color: white;
}
#viewProduct .secondaryBtn{
    border: 1px solid white;
}
#viewProduct .secondaryBtn:hover{
    border: 1px solid transparent;
}
#viewProduct .btnGroup{
    width: 400px;
    margin-top: 20px;
}
#viewProduct .btnGroup button{
    width: 100%;
    white-space: nowrap;
}




.viewProductImages {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: auto;
    overflow: hidden;
}

.viewProductImages img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: none;
}

.viewProductImages img:first-child {
    display: block;
}

.prevBtn, .nextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(58 58 58 / 40%);
    color: white;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 18px;
}

.prevBtn:hover, .nextBtn:hover {
    background: rgba(120, 120, 120, 0.4);
}

.prevBtn { left: 10px; }
.nextBtn { right: 10px; }


/* profile */
#profile{
    margin: 50px 0px;
    width: 100%;
}
#profile form{
    padding: 20px;
    box-shadow: 0px 0px 10px gray;
    text-align: center;
}
#profile article{
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 20px 0px;
}
#profile article>div{
    flex-grow: 1;
    flex-basis: 0;
    min-width: 300px;
}
#profile article input, section article select, section article textarea{
    width: 100%;
    padding: 10px;
}
#profile article input[type="file"]{
    padding: 10px 0px;
}
#profile article textarea{
    height: 86px;
    resize: vertical;
}
#profile article span span{
    display: block;
}
#profile article>div div{
    text-align: left;
    margin-bottom: 10px;
}
#profile article label{
    font-weight: bold;
}
#profile .btnGroup{
    width: 100%;
    justify-content: center;
}
#profile img{
    width: 200px;
    height: 200px;
    object-fit: contain;
}

/* cart */
#cart{
    margin: 50px 0px;
    width: 100%;
}
#cart>div>div{
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}
#cart table{
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    table-layout: fixed;
    overflow-wrap: break-word;
}
#cart table th{
    background-color: #D31A26;
    color: white;
    padding: 10px 5px;
    font-weight: bold;
}
#cart table td{
    padding: 20px 10px;
    text-align: right;
}
.cartAmount{
    background-color: #D31A26;
    border: 1px solid #D31A26;
    color: white;
    padding: 10px 18px;
    font-weight: bold;
    display: inline-block;
}
.cartAmount:hover{
    background-color: black;
    border: 1px solid black;
}
#cart table img{
    width: 100%;
    height: 85px;
    object-fit: contain;
}
#cart table tbody tr:nth-of-type(even){
    background-color: rgb(242, 242, 242);
}
#cart table tbody tr td:nth-of-type(4) .btnGroup{
    width: 100%;
    justify-content: space-between;
}
#cart table tbody tr td:nth-of-type(1){
    text-align: left;
    cursor: pointer;
    text-decoration: underline;
    padding: 15px;
    transition: 0.3s;
}
#cart table tbody tr td:nth-of-type(1):hover{
    color: #D31A26;
}
#cart table tbody tr td:nth-of-type(5){
    font-weight: bold;
}
#cart table .action{
    display: flex;
    flex-direction: column;
}
#cart table .action form{
    display: flex;
    gap: 5px;
    flex-direction: column;
}
#cart table .action button{
    width: 100%;
    display: block;
}
.messageAddBoxForInquiries{
    border: 1px solid black;
    border-radius: 20px;
    padding: 30px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
    display: none;
    text-align: left;
    z-index: 10;
}
.messageAddBoxForInquiries input{
    width: 100%;
    padding: 10px;
    margin: 5px 0px;
    border: 1px solid rgba(0, 0, 0, 0.6);
    background-color: white;
}
.messageAddBoxForInquiries textarea{
    width: 100%;
    padding: 10px;
    margin: 5px 0px;
    border: 1px solid rgba(0, 0, 0, 0.6);
    background-color: white;
    resize: vertical;
    height: 100px;
}


/* mobile responsive */
@media screen and (max-width: 1100px) {
    footer>div:nth-of-type(1) .container>div{
        max-width: 100%;
    }
    footer>div:nth-of-type(1) .container>div:nth-of-type(1){
        max-width: 100%;
    }
    #menuOpen{
        display: block;
    }
    header nav{
        position: absolute;
        display: flex;
        flex-direction: column;
        background-color: #F2F2F2;
        width: 100%;
        top: 130px;
        left: 0px;
        z-index: 100;
        transition: 0.3s;
        height: 0px;
        overflow: hidden;
    }
    header nav>a:nth-of-type(1){
        margin-top: 10px;
        display: block;
    }
    header nav>a:nth-last-of-type(1){
        margin-bottom: 20px;
        display: block;
    }
    #homeBike{
        opacity: 0.3;
        z-index: 1;
        right: -200px !important;
    }
    #homeBanner .container div{
        z-index: 2;
        position: relative;
    }
    #aboutUs div.container>div{
        z-index: 2;
        position: relative;
    }
}
@media screen and (max-width: 900px) {
    h1{
        font-size: 50px;
    }
    h2{
        font-size: 22px;
    }
    header div.container>div:nth-of-type(1){
        display: none;
    }
    header div.container>div{
        justify-content: center;
        width: 100%;
    }
}
@media screen and (max-width: 700px) {
    h1{
        font-size: 45px;
    }
    h2{
        font-size: 20px;
    }
    footer>div:nth-of-type(2)>div.container{
        justify-content: space-around;
    }
}