
* {
    /* debug */
    /* border: 1px solid red; */
}


/* .container-main-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    align-content: flex-start;
} */

.container-home-prodotti {
    flex: 1;
}

.no-products {
    font-size: 20px;
    width: 100%;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
}

.full-width {
    width: 100%;
}


/* if is search : */

.search-title-product {
    width: 100%;
    font-size: 20px;
    text-align: left;
    /* margin-bottom: 50px; */
    font-style: italic;
    height: 75px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #ddd;
    padding-left: 10px;
}

/* if is categories or subcategories*/
/* .title-cat-or-subcat {
    height: 75px;
    border-bottom: 2px solid #ddd;
    width: 100%;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
} */
.title-cat-or-subcat.new_version {
    display: flex;
    align-items: center;
    height: 170px;
    width: 100%;
    border-bottom: 2px solid #ddd;
}

/* .title-cat-or-subcat.w-100 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 600;
    height: 170px;
    width: 100%;
    border-bottom: 2px solid #ddd;
} */

.image_cat_preview {
    position: relative;
    width: 250px;
    z-index: 5;
}
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 1));
    pointer-events: none; /* Ensure the overlay does not interfere with image interactions */
}

.image_cat_preview img {
    width: 100%;
    height: auto;
    height: 168px;
    object-fit: cover;
}

/* SIDEBAR */

.side-bar-container {
    width: 280px;
    border-right: 2px solid #ddd;
    transition: width 0.3s ease;

}


.header-sidebar {
    display: flex;
    justify-content: right;
    align-items: center;
    height: 170px;
    font-size: 40px;
    border-bottom: 2px solid #ddd;
    padding: 0px 10px;
}

.header-sidebar i {
    cursor: pointer;
}
.header-sidebar i:hover {
    color: black;
}
.closed {
    width: 45px;
}



/* body sidebar */

/* generali */
.body-sidebar {
    padding: 20px;
    font-family: "Montserrat", sans-serif;
}

.title-filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.title-filter-section h5 {
    text-transform: uppercase;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    line-height: unset;
    color:  var(--color-dark-grey);
}

.title-filter-section i {
    font-size: 25px;
}

.title-filter {
    font-weight: 600 !important;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
}

.filter-section {
    /* max-height: 450px; */
    transition: max-height 0.5s;
    overflow: hidden;
    margin: 30px 0px;
}

.content-filter-section {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}


/* Imposto max-height ad ogni section per l'animazione */

.visualizza-filter > .content-filter-section {
    max-height: 100px;
}
.brands-filter > .content-filter-section {
    max-height: auto;
    overflow-y: auto;
}
.prezzo-filter > .content-filter-section {
    max-height: 150px;
}
.recensioni-filter > .content-filter-section {
    max-height: 200px;
}
.categorie-filter > .content-filter-section {
    max-height: auto;
    overflow-y: auto;
}
.content-filter-section.close-section {
    max-height: 0px !important;
}



/* SECTIONS FILTERS */
/* VISUALIZZA FILTER */
    #prod_order {
        margin-top: 15px;
        width: 100%;
        height: 45px;
        padding: 0px 10px;
        color: var(--color-dark-grey);
        border: 2px solid rgb(174, 174, 174);
        font-weight: 500;
    }
    #prod_order:focus {
        outline: none;
    }
    #prod_order option {
        font-weight: 500;
    }
/* FINE VISUALIZZA */


/* ////////////////// */


/* BRANDS FILTER */
.info-container {
    font-size: 16px;
    padding: 5px 0px;
    display: flex;
    align-items: center;
    padding-left: 5px;
}
.info-container label {
    margin: 0px;
    padding: 0px;
    font-weight: 400;
    transition: all 0.3s;
    cursor: pointer;
    color: var(--color-dark-grey);
}
.info-container label:hover {
    color: black;
    font-weight: 500;
}
.info-container input:checked ~ label {
    color: black;
    font-weight: 500;
}
.info-container input {
    cursor: pointer;
    width: 20px;
    height: 20px;
    margin: 0px;
    padding: 0px;
    margin-right: 10px;
}
/* FINE BRANDS */


/* ////////////////// */


/* PREZZO FILTER */
.box-prezzo {
    margin-top: 10px;
    color: var(--color-dark-grey);
}
.box-prezzo input {
    width: 100%;
    /* height: 30px; */
    font-size: 15px;
    color: var(--color-dark-grey);
    padding: 5px 10px;
    color: black;
    border: 2px solid rgb(174, 174, 174);
    font-weight: 500;
}

.box-prezzo input:focus {
    outline: none;
}
/* FINE PREZZO */


/* ////////////////// */


/* RATINGS FILTER */
.ratings-input i{
    font-size: 22px;
    text-shadow: 0px 1px 1px rgb(45, 45, 45);
}
/* FINE RATINGS */


/* ////////////////// */


/* IN-STOCK FILTER */
.in-stock-button {
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 5px; */
}
.in-stock-button label {
    margin: 0px;
    padding: 0px;
    color: var(--color-dark-grey);
    font-size: 15px;
    cursor: pointer;
}
.in-stock-button input {
    margin: 0px;
    padding: 0px;
    margin-right: 5px;
    width: 15px;
    height: 15px;
}
.in-stock-button label:hover {
    color: black;
}
/* FINE IN-STOCK */


/* ////////////////// */


/* CATEGORIES FILTER */
.cat-filter-container {

}
.subcat-filter-container {

}
.main-cat-container {
    margin-top: 15px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}
.main-subcat-container {
    margin-left: 15px;
    display: flex;
    align-items: center;
    padding: 5px;
}

.main-cat-container label {
    font-weight: 600;
    color: var(--color-dark-grey);
    margin: 0px;
    padding: 0px;
    font-size: 16px;
}
.main-subcat-container label {
    color: var(--color-dark-grey);
    font-weight: 400;
    margin: 0px;
    font-size: 14px;
    padding: 0px;
}
.main-cat-container input {
    margin: 0px;
    padding: 0px;
    margin-right: 10px;
    width: 15px;
    height: 15px;
}
.main-subcat-container input {
    margin: 0px;
    padding: 0px;
    margin-right: 10px;
    width: 15px;
    height: 15px
}
.main-cat-container label:hover {
    color: unset;
    font-weight: 700;
}
.main-subcat-container label:hover {
    color: unset;
    font-weight: 500;
}
.main-cat-container input:checked ~ label {
    color: unset;
    font-weight: 700;
}
.main-subcat-container input:checked ~ label {
    color: unset;
    font-weight: 500;
}
.order-flex {
    display: flex;
    flex-direction: column;
}
/* FINE CATEGORIES */

/* ORDER CATEGORIES */
.VISO {
    order: 0;
}
.CORPO {
    order: 1;
}
.CAPELLI {
    order: 2;
}
.MAKE_UP {
    order: 3;
}
.UOMO {
    order: 4;
}
.CASA {
    order: 5;
}
.SOLARI {
    order: 6;
}
.ANIMALI {
    order: 7;
}
.BAMBINI {
    order: 8;
}
/* END ORDER */


/* SCROLLBAR STYLE */
.categorie-filter::-webkit-scrollbar {
    width: 5px; /* Width of the scrollbar */
}

.categorie-filter::-webkit-scrollbar-track {
    background: #f1f1f1; /* Color of the scrollbar track */
    border-radius: 10px;
}

.categorie-filter::-webkit-scrollbar-thumb {
    background: #888; /* Color of the scrollbar thumb */
    border-radius: 10px;
}

.categorie-filter::-webkit-scrollbar-thumb:hover {
    background: #3d3d3d; /* Color of the scrollbar thumb on hover */
}

/* FINE SCROLLBAR */


/* Buttons */
.submit-filters {
    width: 100%;
    padding: 7.5px 5px;
    background-color: rgb(0, 102, 51);
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 5px;
    margin-top: 10px;
    transition: all 0.3s ease-out;
}
.submit-filters:hover {
    background-color: rgb(0, 146, 73);
}
.delete-filters {
    display: block;
    padding: 7.5px 5px;
    border-radius: 5px;
    color: #fff;
    text-transform: uppercase;
    transition: all 0.3s ease-out;
    margin-top: 10px;
    font-weight: 600;
    width: 100%;
    background-color: rgb(0, 102, 51);
    text-align: center;
    border-width: 2px;
    border-style: outset;
    border-color: buttonborder;
    border-image: initial;

}
.delete-filters:hover {
    background-color: rgb(0, 146, 73);
    text-decoration: none;
    color: #fff;

}
/* End buttons */


/* Title Message */
.title-message {
    height: 75px;
    width: 100%;
}
.title-search {
    display: flex;
    align-items: center;
    margin-left: 20px;
    font-weight: 700;
}
.title-search span {
    text-decoration: underline;
    margin-left: 5px;
}

/* End Title Message */

/* Error Message */
.error-message {
    font-weight: 800;
    width: 100%;
    font-size: 25px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Montserrat", sans-serif;
}
/* End Error Message */

/* Image Sidebar */
.images-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    /* padding: 10px; */
    padding: 0px 5px;
}

.image-sidebar {
    width: 100%;
    height: 400px;
    /* background-color: black; */
}
.image-sidebar a {
    display: inline-block;
    width: 100%;
    height: 100%;
}
.image-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* End Image Sidebar */



#expand_sidebar_mobile {
    display: none;
    text-transform: uppercase;
    margin: 0 auto;
    width:90%;
    margin-top: 25px;
}

.expanded_sidebar {
    display: block !important;
}
/* media query */

@media only screen and (max-width: 470px) {
    .image_cat_preview {
        display: none;
    }
    .title-cat-or-subcat.new_version {
        justify-content: center;
    }
}

@media only screen and (max-width: 700px) {
    .side-bar-container {
        width: 100%;
        display: none;
    }
    .footer-sidebar {
        display: none;
    }
    #expand_sidebar_mobile {
        display: block;
    }
    .header-sidebar {
        height: 20px;
    }
    .title-cat-or-subcat.new_version {
        display: flex;
        align-items: center;
        height: 150px;
        width: 90%;
        margin: 5px auto;
        border-bottom: 2px solid #ddd;
    }

    /* Prodotti.php : heading */
.heading_products_wrapper {
    width: 100%;
  }
  .heading_products_container {
    width: 100%;
    justify-content: center;
    border: 0px;
    border-bottom: 2px solid #ddd;
    height: 100px;
  }
  .heading_des_agg {
    display: none;
  }
  .image_cat_heading {
    display: none;
  }
  .heading_title_cat_subcat {
    width: auto;
    margin-left: 20px;
  }
    
}