* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #3294c5;
    background-image: url(/images/bg-img.jpeg);
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
    background-attachment: fixed;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

nav {
    max-width:100vw;
    width: 100%;
    background: rgba(0, 0, 0, 0.301);
}

nav>#nav {
    max-width: 1200px;
    width:100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 40px;
    grid-gap: 25px;
    padding: 25px;
}

nav>#nav>a {
    border: 2px solid rgba(255, 255, 255, 0.116);
    text-decoration: none;
    color: #fff;
    background: rgb(53, 59, 63);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.301), 0 4px 8px 0 rgba(0, 0, 0, 0.301);
    transition: all 0.1s;
    letter-spacing: 1.2px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav>#nav>a:hover {
    transform: scale(1.1);
}

nav>#nav>a::after {
    content: "";
    border-bottom: 2px solid rgb(0, 183, 255);
    bottom: 0;
    position: absolute;
    left: 50%;
    width: 0;
    transition: all 0.3s;
}

nav>#nav>a:hover::after {
    left: 0;
    width: 100%;
}

nav>#nav>a.current::after {
    content: "";
    border-bottom: 2px solid rgb(0, 183, 255);
    bottom: 0;
    position: absolute;
    left: 0;
    width: 100%;
}

nav>#nav>a>i {
    margin-right:10px;
    color:rgb(0, 183, 255);
    font-size: 20px;
}

nav>#mobile-menu {
    display: none;
}

nav>#mobile-menu img {
    width: 250px;
}

nav .fa-shopping-cart sup {
    background: rgba(0, 183, 255, 0.603);
    padding: 0px 6px;
    border-radius: 10px;
    transform: translateX(-8px);
    display: inline-block;
    border: 2px solid #006991 ;
    color: #fff;
}

#container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 0 15px;
}

header>#search {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 30px;
}

header>#search>input {
    border: 2px solid rgba(255, 255, 255, 0.116);
    color: #fff;
    background: rgb(53, 59, 63);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.301), 0 4px 8px 0 rgba(0, 0, 0, 0.301);
    letter-spacing: 1.2px;
    padding: 7px;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
}

header>#search>button {
    background-image: url(/images/search.png);
    background-repeat: no-repeat;
    padding: 23px;
    background-size: contain;
    border: none;
    background-color: rgba(97, 97, 97, 0);
    cursor: pointer;
    margin-left: 5px;
}

header>#search>button:hover {
    transform: scale(1.15);
}

#content {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding:20px 15px;
    background-color: rgba(255, 255, 255, 0.8);
    margin: 20px 0 35px;
    background-image: url(/images/background-body.jpg);
    background-blend-mode: color-burn;
}

#content > aside > div {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-gap: 1em;
    padding: 10px;
}

#content > aside > div > div {
    background: #006991;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.301), 0 4px 8px 0 rgba(0, 0, 0, 0.301);
}

#content > aside #car-buy a {
    display:block;
    line-height: 0;
}

#content > aside #car-buy img {
    width:100%;
}

#content > aside #part-back a {
    display:block;
    line-height: 0;
}

#content > aside #part-back img {
    width:100%;
}

#content > aside #last-offers {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
/*    grid-template-rows: auto 1fr 1fr 1fr;*/
    grid-gap: 10px;
    padding: 10px;
}

#content > aside #last-offers > p {
    font-size: 16px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    font-weight: bold;
    color:#fff;
    text-align: center;
    margin:0;
}

#content > aside #last-offers > div {
    background: #fff;
    font-size: 12px;
}

#content > aside #last-offers > div a {
    text-decoration: none;
    color: #006991
}

#content > aside #last-offers > div img {
    width: 100%;
}

#content > aside #last-offers > div p {
    margin: 0;
    padding: 2px 9px;
}

#content > aside #last-offers > div p:first-of-type {
    text-align: justify;
}

#content > aside #last-offers > div p:nth-of-type(2) {
    font-weight: bold;
}

#content > aside #last-offers > div p:last-of-type {
    font-size: 14px;
    text-align: right;
    font-weight: bold;
}

footer {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
}

footer > div {
    max-width: 1200px;
    margin: 0 auto;
}

#footer-top {
    border-bottom: 1px solid #3294c5;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px, 1fr));
    grid-row-gap: 35px;
}

#footer-menu {
    display: flex;
    flex-direction: column;
    align-content: space-between; 
    justify-self: left;
}

#footer-menu a {
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid #fff;
    padding: 0 25px 5px;
    margin-top: 10px;
    text-align: center;
    position: relative;
    height: 25px;
}


#footer-menu a::before {
    content: "";
    border-bottom: 2px solid rgb(0, 183, 255);
    bottom: -1px;
    position: absolute;
    left: 0;
    width: 0;
    transition: all 0.4s;
}

#footer-menu a:hover::before {
    width: 50%;
}

#footer-menu a::after {
    content: "";
    border-bottom: 2px solid rgb(0, 183, 255);
    bottom: -1px;
    position: absolute;
    right: 0;
    width: 0;
    transition: all 0.4s;
}

#footer-menu a:hover::after {
    width: 50%;
}

#map > iframe {
    width:100%;
}

#copyright {
    display: flex;
    justify-content: space-between; 
    padding: 20px;
    color: #fff;
}

#copyright a {
    text-decoration: none;
    color: #fff;
    position: relative;
    align-self:center;
}

#copyright a::after {
    content: "";
    border-bottom: 2px solid rgb(0, 183, 255);
    bottom: -5px;
    position: absolute;
    left: 50%;
    width: 0;
    transition: all 0.3s;
}

#copyright a:hover::after {
    width:100%;
    left:0;
}




/* Home page */

#content > section > #home-page {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-template-rows: auto;
    grid-gap: 10px;
    padding: 10px;
    grid-auto-rows: 170px;
}

#content > section > #home-page .bread-crumb{
    grid-column: 1/-1;
}

#content > section > #home-page > a {
    text-decoration: none;
}

#content > section > #home-page > a > div {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 3px solid rgb(61, 61, 61);
    height:100%;
    display:flex;
    flex-direction: column;
    justify-content: flex-end;
}

#content > section > #home-page > a > div > p {
    color:#fff;
    text-align: center;
    background:rgba(0, 0, 0, 0.61);
    margin: 0;
    height:30px;
    display:flex;
    justify-content: center;
    align-items: center;
    transition:all 0.5s;
}

#content > section > #home-page  div:hover {
    border:5px solid rgb(0, 183, 255);
}

#content > section > #home-page  div:hover p {
    background:rgb(0, 0, 0);
    height:45px;
}

/* Engines page */

#content > section > #engines-page {
    display:grid;
    grid-template-columns: 1fr;
    grid-gap: 7px;
    /*border: 4px solid #006991;*/
    /*padding: 7px;*/
    margin: 10px;
}

#content > section > #engines-page > .engine {
    background: rgb(137, 196, 255);
}

#content > section > #engines-page > .engine:nth-child(even) {
    background: rgb(57, 156, 255);
}

#content > section > #engines-page > .engine > a {
    display:grid;
    grid-template-columns: 300px 140px 70px 90px 140px auto;
    text-decoration: none;
    color:rgb(0, 0, 0);
    padding: 10px 7px;
    padding-left:10px;
    align-items: center;
}

#content > section > #engines-page > .engine:nth-child(even) > a {
    color:rgb(255, 255, 255);
}

#content > section > #engines-page > .engine > a:hover {
    background: rgba(0, 0, 0, 0.100);
}

#content > section > #engines-page > .engine > a div {
    border-left: 1px solid #000;
    text-align: center;
}

#content > section > #engines-page > .engine > a div:first-child {
    border: none;
    text-align: left;
}

#content > section > #engines-page > .engine > a div:first-child h3 {
    font-size: 16px;
    margin: 0;
}


/* Category parts page */

#content > section > #category-parts {
    display:grid;
    grid-template-columns: repeat(auto-fit,minmax(230px, 1fr));
    grid-template-rows: 40px 170px;
    grid-auto-rows: 170px;
    grid-gap: 10px;
    padding: 10px;
    min-height: 100%;
}

#content > section > #category-parts .bread-crumb{
    grid-column: 1/-1;
}

#content > section > #category-parts > div {
    position: relative;
}

#content > section > #category-parts .part-div {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 3px solid rgb(61, 61, 61);
    height:100%;
    display:flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
}

#content > section > #category-parts .part-div > p {
    color:#fff;
    text-align: center;
    background:rgba(0, 0, 0, 0.61);
    margin: 0;
    height:35px;
    display:flex;
    justify-content: center;
    align-items: center;
    transition:all 0.5s;
    user-select: none;
    -moz-user-select:none; 
}


#content > section > #category-parts > div .part-div:hover {
    border:5px solid rgb(0, 183, 255);
}

#content > section > #category-parts > div.disabled .part-div:hover  {
    border:5px solid gray;
    cursor: not-allowed;
}

#content > section > #category-parts .part-div:hover p {
    background:rgb(0, 0, 0);
    height:45px;
}

#content > section > #category-parts .part-list {
    position:absolute;
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 3px;
    background: #fff;
    min-width: 100%;
    z-index: 1;
    overflow: hidden;
    transition: all 0.2s;
}

#content > section > #category-parts .part-list.opened {
    overflow-y: auto;
}

#content > section > #category-parts .part-list > a {
    color:#fff;
    padding: 5px;
    text-decoration: none;
    background: #006991;
}

#content > section > #category-parts .part-list > a.disabled {
    color:#fff;
    background: rgba(0,0,0,0.6);
    cursor: not-allowed;
}

#content > section > #category-parts .part-list > a:hover {
    background: #3294c5;
}

#content > section > #category-parts .part-list > a.disabled:hover {
    background: rgba(0,0,0,0.6);
}

#content > section > #category-parts .part-list > span {
    padding: 5px;
    font-weight: bold;
    text-align: center;
}


/* Parts */

#content > section #parts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-gap: 10px;
    padding: 10px;
}

#content > section > #parts .bread-crumb {
    grid-column: 1/-1;
}

#content > section > #parts .no-results {
    grid-column: 1/-1;
}

#content > section #parts > div {
    background: #fff;
    font-size: 12px;
    border: 5px solid #006991;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.301), 0 4px 8px 0 rgba(0, 0, 0, 0.301);
}

#content > section #parts > div > a {
    text-decoration: none;
    color: #006991;
    display: grid;
    grid-template-columns: 1fr;
    height: 100%;
    grid-template-rows: 120px auto 25px 25px 30px;
}

#content > section #parts > div img {
    max-width: 100%;
    max-height: 120px;
    justify-self: center;
}

#content > section #parts > div p {
    margin: 0;
    padding: 2px 9px;
}

#content > section #parts > div p:first-of-type {
    text-align: justify;
    font-size: 14px;
}

#content > section #parts > div p:nth-of-type(2),
#content > section #parts > div p:nth-of-type(3) {
    font-weight: bold;
    align-self:center;
}

#content > section #parts > div p:last-of-type {
    font-size: 18px;
    text-align: right;
    font-weight: bold;
    background: #45a2d0;
    color: #fff;
    display: flex;
    justify-content: end;
    align-items: center;
}


/* PART */

#content > section > #part {
    display:grid;
    grid-template-columns: 450px 2fr;
    grid-template-rows: auto 300px;
    grid-gap: 20px;
    padding:20px;
    background: #006991;
    background-image: linear-gradient(
            to right,
            #006991,
            #216b87
        );
    margin: 10px;
    margin-bottom: 0;
}
  
#content > section > #part > a .img {
    background: #fff;
    padding: 5px;
  
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-origin: content-box;
    height:300px;
   
}
  
#content > section > #part > .content {
    grid-row: span 2
}

#content > section > #part > .content > h1 {
    text-align: center;
    color: #fff;
}

#content > section > #part > h2 {
    font-size: 1rem;
    color: #fff;
    margin: 0;
    display: flex;
    justify-content: space-between;
}

#content > section .span {
    grid-column: 1 / -1;
}

#content > section > #part > .content > .table {
    width: 70%;
    min-width: 400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 5px;
}
  
#content > section > #part > .content > .table div {
    font-weight: bold;
    color: #fff;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.699);
    padding: 3px 0;
}

#content > section > #part > .content > .table div.span {
    border-bottom: none;
}
  
#content > section > #part > .content > .table div:nth-child(even) {
    font-weight: 800;
}

#content > section > #part > .content > .buttons  {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
  
#content > section > #part > .content > .buttons > :nth-child(1)  {
    margin-right: 80px;
}

#content > section > #part #btn-div {
    text-align: center;
    margin-top: 25px;
} 

#content > section > #part .btn {
    padding: 10px 15px;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.603);
    font-size: 1em;
    letter-spacing: 1px;
    color: #fff;
    background: rgb(0, 183, 255);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.301), 0 4px 8px rgba(0, 0, 0, 0.301);
    position:relative;
    transition: all .2s;
}

#content > section > #part .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.301);
}

#content > section > #part .btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.301);
}

#content > section > #part > .images {
    align-self: flex-start;
    padding:10px;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    grid-gap: 10px;
    box-shadow:0 0 6px rgba(255, 123, 0,0.8);
}
  
#content > section > #part > .images > a .thumbnail{
    height: 90px;
    background-size: cover;
    background-position: center;
    border: 2px solid #006991;
    cursor: pointer;
}
  
.lightbox {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#content > section > .note {
    background: #006991;
    color: #fff;
    padding: 20px;
    margin: 0 10px;
}

#content > section > .note span {
    font-weight: bold;
    font-size: 18px;
    text-decoration: underline;
}

#content > section > .note p {
    text-align: justify;
    margin-top: 20px;
    text-indent: 1em;
    line-height: 1.4em;
    margin-bottom: 0;
}










/* ERROR 404 page */
#content > section > #page-404 {
    padding: 10px;
}


.bread-crumb {
    background: #006991!important;
    color: white!important;
    padding: 12px!important;
    border: none!important;
}
.bread-crumb:hover {
    border: none!important;
}
.bread-crumb h3 {
    margin: 0!important;
    font-size: 1rem!important;
}
.bread-crumb a {
    color: white!important;
    text-decoration: none;
}
.bread-crumb a:hover {
     color: #b1deff !important;
     text-decoration: underline;
}
.cd-top {
    background-color: #3294c5;
    bottom: 10px;
    color: rgb(255, 255, 255);
    display: inline-block;
    font-size: 18px;
    line-height: 24px;
    position: fixed;
    opacity: 0;
    right: -185px;
    text-align: center;
    text-decoration: none;
    -webkit-transform: scale(5) translate(47px, -10px);
    -moz-transform: scale(5) translate(47px, -10px);
    -o-transform: scale(5) translate(47px, -10px);
    -ms-transform: scale(5) translate(47px, -10px);
    transform: scale(5) translate(47px, -10px);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    visibility: hidden;
    white-space: nowrap;
    width: auto;
    border-radius: 10px 0 0 10px;
}

.cd-top.cd-is-visible, .no-touch .cd-top:hover {
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.cd-top.cd-is-visible {
    opacity: 0.9;
    -webkit-transform: scale(1) translate(0px, 0px);
    -moz-transform: scale(1) translate(0px, 0px);
    -o-transform: scale(1) translate(0px, 0px);
    -ms-transform: scale(1) translate(0px, 0px);
    transform: scale(1) translate(0px, 0px);
    visibility: visible;
}

.cd-top.cd-is-visible:hover {
    color: rgb(255, 255, 255);
    opacity: 1;
}

.cd-top:hover {
    text-decoration: none;
}

.cd-top .fa {
    padding: 16px 16px;
}

.cd-top span:last-child {
    padding: 13px 16px;
}


@media(max-width:1200px) {
    #content {
        margin-bottom: 0;
    }

    /* Engines page */

    #content > section > #engines-page > .engine > a {
        grid-template-columns: repeat(auto-fit,minmax(200px, 1fr));
        grid-row-gap: 8px;
    }

    #content > section > #engines-page > .engine > a div {
        border:none;
    }

    #content > section > #engines-page > .engine > a div:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    #content > section > #engines-page > .engine > a div:first-child h3 {
        border-bottom: 1px solid #000;
        padding-bottom:2px;
        margin: 4px;
    }
}

@media(max-width:1000px) {
    header {
        grid-template-columns: 1fr;
        grid-gap: 15px;
        padding-top: 15px;
    }
    header>a {
        margin: 0 auto;
    }
    header>a>img {
        width: 100%;
        max-width: 500px;
    }
    header>#search {
        padding: 0 15px;
    }

    #content > section > #part {
        grid-template-columns: 1fr;
    }
}

@media(max-width:900px) {
    #footer-menu {
        justify-self: center;
    }
    

    
    @supports(background-attachment: fixed) {
        
        body {
            background-image: url(/images/bg-img-900x900.jpg);
            background-attachment: inherit;
            background-repeat: repeat;
        }
    }
}

@media(max-width:660px) {

    #content > section > #part > .content > .table {
        grid-template-columns: 1fr;
        width: 100%;
        min-width: unset;
        padding: 0 20px;
    }
    #content > section > #part > .content > .table > div:nth-child(odd) {
        border: none;
    }
    
    #content > section > #part > .content > .buttons > :nth-child(1)  {
        margin-right: 50px;
    }
}

@media(max-width:432px) {
    #content {
        grid-template-columns: 1fr;
    }

    #content > aside {
        order:1;
    }
}

@media(max-width:374px) {
    #content {
        padding: 10px 5px;
    }
    nav>#nav {
        display: none;
    }
    nav>#mobile-menu {
        display: flex;
        justify-content: space-between;
        padding: 10px;
    }
    

    nav>#mobile-menu>#nav-btn {
        display: flex;
        padding: 3px 5px;
        flex-direction: column;
        justify-content: space-around;
        width: 40px;
        height: 40px;
        border: 2px solid rgba(255, 255, 255, 0.116);
        background: rgb(53, 59, 63);
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.301), 0 4px 8px 0 rgba(0, 0, 0, 0.301);
    }
    

    nav>#mobile-menu>#nav-btn>hr {
        width: 100%;
        margin: 0;
    }
    header>a {
        display: none;
    }

    #footer-top {
        padding:10px;
    }

    #copyright {
        flex-direction: column;
        text-align: center;
    }

    #copyright a {
        margin-top:10px;
    }
}


@media (hover: none) { 
    body {
        background-image: linear-gradient(
            to right,
            #174564,
            #43acf1
        );
    }
}

@media (min-width: 768px) {
    .cd-top {
        bottom: 70px;
        width: auto;
        right: -185px;
    }
    .cd-top:hover {
        right: 0;
    }
    .cd-top .fa {
        border-right: 1px solid  rgb(71, 142, 203);
    }
}