#container {
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

#search-panel {
    width: 250px;
    padding-right: 30px;
    border-right: 1px solid #999;
}

/* SEARCH FORM SLIDING TOGGLE */
label[for="filter-slide"] {
    cursor: pointer;
    width: 100%;
    padding: 15px;
    border-bottom: 1px solid #555;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
}

label[for="filter-slide"]:hover {
    background-color: #efefef;
}

label[for="filter-slide"] ion-icon {
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
}

#filter-slide:checked ~ label[for="filter-slide"] ion-icon {
    transform: rotateZ(-180deg);
    -webkit-transform: rotateZ(-180deg);
    -moz-transform: rotateZ(-180deg);
    -ms-transform: rotateZ(-180deg);
    -o-transform: rotateZ(-180deg);
}

#filter-slide {
    display: none;
}

/* SEARCH OPTIONS FORM STYLE */
#filter-slide:checked ~ form #form-div {
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
}

#search-panel form {
    overflow: hidden;
    height: auto;
}

#search-panel form #form-div {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: auto;
    margin-top: 30px;
    transition: transform 1s ease-in-out;
    -webkit-transition: transform 1s ease-in-out;
    -moz-transition: transform 1s ease-in-out;
    -ms-transition: transform 1s ease-in-out;
    -o-transition: transform 1s ease-in-out;
    transform: translateY(calc(-100% - 30px));
    -webkit-transform: translateY(calc(-100% - 30px));
    -moz-transform: translateY(calc(-100% - 30px));
    -ms-transform: translateY(calc(-100% - 30px));
    -o-transform: translateY(calc(-100% - 30px));
}

.btn-form,
.btn-form:hover,
.btn-form:focus,
.btn-form:active {
    cursor: pointer;
    border: none;
    color: #fff;
    font-size: 80%;
    letter-spacing: normal;
    word-spacing: normal;
    line-height: normal;
    text-align: center;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 10px !important;
    padding: 10px 15px;
    outline: none;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
}

.btn-form-submit {
    background-color: var(--color-comp-blue)}

.btn-form-submit:hover,
.btn-form-submit:focus,
.btn-form-submit:active {
    background-color: var(--color-comp-green);
}

.btn-form-reset {
    background-color: #ff3333;
}

.btn-form-reset:hover,
.btn-form-reset:focus,
.btn-form-reset:active {
    background-color: #ff9233;
}

#search-panel form input,
#search-panel form input:focus, 
#search-panel form select,
#search-panel form select:focus {
    margin-bottom: 25px;
    padding: 10px 15px;
    outline: none;
}

#search-panel form select:last-of-type,
#search-panel form select:focus:last-of-type {
    margin-bottom: 0;
}

#search-panel form input::placeholder,
#search-panel form input:focus::placeholder, 
#search-panel form select::placeholder,
#search-panel form select:focus::placeholder {
    font-size: 90%;
}

.input-name {
    margin-bottom: 10px;
    margin-top: 30px;
    padding-top: 10px;

    border-top: 1px solid #888;
}

.inputs-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.inputs-2 input,
.inputs-2 input:focus {
    padding: 5px 10px !important;
    margin-bottom: 0 !important;
    width: 50%;
    text-align: center;
}

.category-link:link,
.category-link:visited,
.category-link:hover,
.category-link:active {
    display: block;
    margin-bottom: 10px;
    margin-left: 10px;
    font-size: 85%;
}

.category-link:link,
.category-link:visited {
    color: var(--font-color);
}

.category-link:hover,
.category-link:active {
    color: #ff3333;
}

.category-link.active:link,
.category-link.active:visited,
.category-link.active:hover,
.category-link.active:active {
    color: #ff3333;
}

/* PRODUCTS-BOX */
#products-box {
    flex: content;
    margin-left: 70px;
}

.products-header {
    font-weight: 300;
    font-size: 150%;
    margin-bottom: 50px;
}

#products-list {
    display: flex;
    align-content: stretch;
    flex-wrap: wrap;
}

.results-number {
    margin-left: 20px;
    font-size: 65%;
}

.product-card:link,
.product-card:visited,
.product-card:hover,
.product-card:active {
    width: 180px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 30px;
    margin-right: 25px;
}

.product-img {
    overflow: hidden;
    margin-bottom: 15px;
    flex: 1 0 150px;
    max-height: 150px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
}

.product-card:link .product-name,
.product-card:visited .product-name {
    margin-bottom: 9px;
    width: 100%;
    font-size: 80%;
    line-height: 110%;
    font-weight: 300;
    color: var(--font-color);
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
}

.product-card:hover .product-img img,
.product-card:active .product-img img {
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -o-transform: scale(1.2);
}

.product-card:hover .product-name,
.product-card:active .product-name {
    color: #ff3333;
}

.product-number,
.manufacturer-name,
.engine-size,
.engine-power {
    font-size: 60%;
    font-weight: 400;
    color: var(--font-color);
    line-height: 110%;
}

/* NO IMG TEXT */
.no-img {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-img .text {
    color: #555;
    z-index: 2;
    transform: rotateZ(-45deg);
    -webkit-transform: rotateZ(-45deg);
    -moz-transform: rotateZ(-45deg);
    -ms-transform: rotateZ(-45deg);
    -o-transform: rotateZ(-45deg);
}

.no-img ion-icon {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    font-size: 280%;
    color: #d5d5d5;
    z-index: 1;
}

/* PAGINATION */
.pagination {
    margin-bottom: 30px;
    display: flex;
    justify-content: right;
}

.page:link,
.page:visited,
.page:hover,
.page:active {
    text-align: center;
    font-size: 70%;
    border-left: 1px solid #555;
    border-top: 1px solid #555;
    border-bottom: 1px solid #555;
    height: 35px;
    width: 35px;
    display: flex;
    justify-content: center;
    align-items: center;


    transition: all 0.3s;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
}

.page:last-child:link,
.page:last-child:visited,
.page:last-child:hover,
.page:last-child:active {
    border-right: 1px solid #555;
}

.page:link,
.page:visited {
    color: #555;
    background-color: #fff;
}

.page:hover,
.page:active {
    color: #fff;
    background-color: #ff3333;
}

.page-num {
    transform: translate(1px, 1px);
    -webkit-transform: translate(1px, 1px);
    -moz-transform: translate(1px, 1px);
    -ms-transform: translate(1px, 1px);
    -o-transform: translate(1px, 1px);
}

.page.active:link,
.page.active:visited,
.page.active:hover,
.page.active:active {
    cursor: default;
    pointer-events: none;
    color: #fff;
    background-color: #ff3333;
}

.page.unactive:link,
.page.unactive:visited,
.page.unactive:hover,
.page.unactive:active {
    cursor: default;
    pointer-events: none;
    color: #999;
}

@media only screen and (max-width: 780px) {
    #container {
        flex-direction: column;
    }

    #search-panel {
        padding-right: unset;
        border-right: none;
        width: 100%;
        padding: 20px 10%;
        margin-bottom: 20px;
        border-bottom: 1px solid #999;
    }

    #search-panel form {
        height: 0;
    }

    #filter-slide:checked ~ form {
        height: auto;
    }

    #search-panel form #form-div {
        transition: transform 0s ease-in-out;
        -webkit-transition: transform 0s ease-in-out;
        -moz-transition: transform 0s ease-in-out;
        -ms-transition: transform 0s ease-in-out;
        -o-transition: transform 0s ease-in-out;
}

    #products-list {
        justify-content: center;
        gap: 30px;
    }

    #products-box {
        margin-left: 0;
        margin: 0 10%;
    }

    .product-card:link,
    .product-card:visited,
    .product-card:hover,
    .product-card:active {
        margin: 0;
    }
}