.page__desktop--content--body button {
    /* background-color: unset; */
}

.page__desktop--content--body--list * {
    color: black;
    line-height: 21px;
}

.page__container {
    width: 100%;
}

.page__desktop--nav {
    display: flex;
    align-items: center;
    padding: 24px 0 24px 90px;
    margin: 50px auto 0 auto;
    min-height: 68px;
    background-color: #0f0f0f;
    gap: 10px;
}

.page__desktop--nav a {
    font-family: Lato;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0px;
    text-align: right;
}

.page__desktop--content--header {
    min-height: 68px;
    padding: 24px 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background-color: #F6F6F6;
}

.page__desktop--content--header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.page__desktop--content--header--title p {
    text-align: right;
    color: #262626;
    font-weight: 700;
    font-family: Lato;
    font-size: 20px;
    line-height: 20px;
    letter-spacing: 0px;
}

.page__desktop--content--header--result span {
    color: #555555;
    font-weight: 400;
    text-align: left;
    font-family: "Lato";
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0px;

}

a.page__desktop--nav--link:hover {
    border-bottom: 3px solid #55F5FF;
    color: #55F5FF;
}

.page__desktop--content--body {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
}

.page__aside {
    display: block;
    max-width: 312px;
    width: 291px;
    float: left;
    padding-right: 14px;
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    gap: 37px;
}

.page__aside--filtres,
.page__aside--items {
    width: 100%;
}

.page__aside--filtres {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: black;
    height: 55px;
    border-radius: 20px;
}

.page__aside--filtres--button {
    background-color: black;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 16px;
    text-align: left;
    text-decoration-skip-ink: none;
}

.page__aside--filtres--button span {
    font-family: Lato;
    font-weight: 800;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0px;
}

.page__desktop--content--aside--item--wrapper {
    display: none; /* Masquer les filtres par défaut */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page__desktop--content--aside--item--title svg {
    transition: transform 0.3s ease;
}



.page__aside--filtres svg {
    width: 16px;
    fill: #D9D9D9;
    stroke: black;
    stroke-width: 80;
    cursor: pointer;
    transition: color 0.3s ease;
    border: none;
}

.center--item {
    justify-content: center;
}

.page__aside--items {
    display: flex;
    flex-direction: column;
    gap: 21px;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.page__desktop--content--aside--item,
.page__mobile--content--aside--item {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page__desktop--content--aside--item--title,
.page__mobile--content--aside--item--title {
    margin: auto 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.page__desktop--content--aside--item--title p,
.page__mobile--content--aside--item--title p {
    text-transform: uppercase;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.5px;
    text-align: left;
}

.page__desktop--content--aside--item--wrapper {
    margin: auto 10px;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 16px;
}

.page__desktop--content--aside--item--body {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.aside--flex-column {
    flex-direction: column;
}

.page__desktop--content--aside--item--body label {
    line-height: 20px;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0px;

}

.page__desktop--content--aside--divider {
    width: 100%;
    height: 1px;

}

svg.rotated {
    transform: rotate(180deg);
}

.aside--items--inline--check {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.aside--items--inline--check input[type="checkbox"] {
    border-color: transparent;
    width: 25px;
    height: 25px;
}

.page__desktop--content--aside--item--body.check--sub-item--title input[type="checkbox"] {
    width: 15px;
    height: 15px;
}

.aside--items--with-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.aside--items-input {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    border-radius: 8px;
    border: 1px solid #343436;
    background-color: #161822;
    color: #ABB0BA;
    width: 100%;
    max-width: 145px;
}

.aside--items-input input {
    width: inherit;
    height: inherit;
    background-color: unset;
    padding-right: 30px;
    color: white;
    border: none;
}


.aside--items-input span {
    color: white;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.aside__price-range--inputs {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ABB0BA;
    width: 87px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
    background-color: #FFFFFF;
}

.aside__price-range--inputs input {
    width: inherit;
    height: inherit;
    background-color: unset;
    padding-right: 20px;
    color: #555555;
    border: none;
}

.aside__price-range--inputs span {
    color: #555555;
}

.aside__price-range--container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
	min-height : 20px;
}

.aside__price-range--slider {
    position: relative;
    width: 100%;
    height: 5px;
    background-color: #D9D9D9;
}

.aside__price-range--slider input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    outline: none;
    position: absolute;
    margin: auto;
    top: -10px;
    height: 15px;
    background: transparent;
    pointer-events: none;
}

.aside__price-range--slider-bar {
    width: 100%;
    height: 5px;
    position: absolute;
    margin: auto;
    top: 0;
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    height: 5px;
}

input[type="range"]::-moz-range-track {
    -moz-appearance: none;
    height: 5px;
}

input[type="range"]::-ms-track {
    appearance: none;
    height: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    margin-top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    background-color: #55F5FF;
    pointer-events: auto;
}

input[type="range"]::-moz-range-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    cursor: pointer;
    border-radius: 50%;
    background-color: #55F5FF;
    pointer-events: auto;
}

input[type="range"]::-ms-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    cursor: pointer;
    border-radius: 50%;
    background-color: #55F5FF;
    pointer-events: auto;
}

input[type="range"]:active::-webkit-slider-thumb {
    background-color: #ffffff;
    border: 3px solid #55F5FF;
}

input[type="number"]::placeholder {
    font-size: small;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    /* Remove in WebKit browsers (Chrome, Safari) */
}

input[type="number"] {
    -moz-appearance: textfield;
    /* Remove in Firefox */
}

input[type="number"]::-ms-expand {
    display: none;
    /* Remove in Internet Explorer and Edge */
}


.page__desktop--content--main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.page__desktop--content--body--filtres--container {
    align-self: end;
}


.page__desktop--content--body--filtres {
    min-width: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 41px;
    margin-left: auto;
}

.page__desktop--content--body--filtres select {
    appearance: none;
    padding: 10px;
    width: 100%;
    color: white;
    background-color: black;
    border: 1px solid black;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    border-radius: 20px;
}

.page__desktop--content--body--select-icon {
    width: 50px;
    height: 100%;
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.page__desktop--content--body--select-icon svg {
    cursor: pointer;
}


.page__desktop--content--body--list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.page__desktop--content--body--list .woocommerce-no-products-found {
    grid-column: span 3;
}

.page__desktop--content--body--list-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0px;
    width: 300px;
    height: 490px;
    border-radius: 20px;
    background-color: #FFFFFF;
}

.card__favorite--container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 5% 5% 0 5%;
}

.card__image {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin: 0 auto;
  /*display: flex;
  align-items: center;
  justify-content: center;*/
}

.card__image a {
    height: 100%;
}

.card__image a img {
  width: 100%;
  height: 110%;
  object-fit: contain;
  display: block;
  overflow: hidden;
  position: relative;
}

.carousel__images--slides {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    margin: 0;
}


.carousel__images--slide {
    flex: 0 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel__button {
    position: relative;
}

.carousel__button,
.carousel__button svg {
    width: 25px;
    height: 25px;
}

.carousel__button.carousel__button--prev {
    left: 8px;
}

.carousel__button.carousel__button--next {
    right: 8px;
}

.card__title {
    width: 90%;
    margin: 0px;
}

.card__distance--container {
    display: flex;
    width: 70px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: -5px;
}

.card__distance--heart {
    position: relative;
}

.card__distance--heart img {
    position: absolute;
    top: 23%;
    left: 30%;
    width: 12px;
    height: 12px;
}

.card__distance--meters span {
    color: #333e49;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 21.33px;
}

.card__price--container {
    width: 125px;
    height: 50px;
    border-radius: 20px;
    border: 1.78px solid var(--color-black);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.card__price--distance {
    align-self: flex-end;
    padding: 0px 10px 10px 0px;
}

.card__price span {
    color: var(--color-black);
    font-size: var(--font-size-lg);
    line-height: 21.33px;
    font-style: normal;
    font-weight: 500;
}

.card__add--cart {
    position: relative;
}

.page__desktop--content--body .card__add--cart--button {
    width: 25px;
    height: 25px;
    background-color: #f77366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page__desktop--content--body--pagination a {
    font-size: 20px;
    min-width: 60px;
    height: 60px;
    text-decoration: none;
    text-align: center;
    padding: 8px 16px;
    margin: 0 5px;
    background-color: #F9F1E7;
    color: black;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page__desktop--content--body--pagination a:hover,
.page__desktop--content--body--pagination a:active,
.page__desktop--content--body--pagination .pagination--active {
    background-color: #F77366;
    color: white;
}


.page__desktop--content--body--pagination .pagination--previous,
.page__desktop--content--body--pagination .pagination--next {
    font-weight: 300;
}

/* Filter Bar Styling */
.page__mobile--filters {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: black;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.filter-btn {
    background-color: black;
    color: white;
    padding: 0 50px;
}




/* Mobile Styles */
@media screen and (max-width: 768px) {

    .page__desktop--nav,
    .page__desktop--content--body--filtres {
        display: none;
    }

    .desktop__sidebar__filtres{
        display: none;
    }

    .page__desktop--content--header p,
    .page__desktop--content--header span {
        font-weight: 400;
        text-align: start;
        margin: auto 10px;
    }

    .page__desktop--content--header span {
        white-space: nowrap;
    }

    .page__desktop--content--header {
        justify-content: center;
        padding: 59px 0;
        margin-top: 20px;
    }

    .page__mobile--sort {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #161822;
        /* Dark background */
        padding: 20px;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        z-index: 1000;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
        color: #E8EAED;
        /* Light text color */
    }

    .mobile-sort-options {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .sort-option {
        padding: 12px;
        border: none;
        background: none;
        text-align: left;
        font-size: 14px;
    }

    .sort-option.selected {
        background: #f5f5f5;
        border-radius: 8px;
        color: black;

    }

    .page__mobile--sort.active {
        transform: translateY(0);
    }


    #form-filter{
        display: flex;
        flex-direction: column;
        width: 100%;
    }


    .page__aside{
        width: 100%;
        max-width: 100%;
    }

    

    .page__desktop--content--header-container {
        gap: 5px;
		display : inline-block;
    }


    .page__desktop--content--main {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin: 0 5px;
    }

    .page__desktop--content--body--list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .page__desktop--content--body--list * {
        line-height: 10px;
        font-size: 10px;
    }

    .page__desktop--content--body--list-card {
        width: 100%;
        max-height: 275px;
    }

    .card__distance--container {
        width: 25px;
    }

    .card__distance--heart svg {
        width: 25px;
        height: 25px;
    }

    .card__carousel {
        width: 128.94px;
        /*height: 106.8px;*/
        gap: 2.5px;
    }

    .carousel__images--slides {
        height: 100%;
    }

    .carousel__button,
    .carousel__button svg {
        width: 12px;
        height: 12px;
    }

    .carousel__button.carousel__button--prev {
        left: 0;
    }

    .carousel__button.carousel__button--next {
        right: 0;
    }

    .card__distance--meters span {
        font-size: 8px;
    }


    .card__distance--container {
        width: 60px;
		margin-left: -10px;
    }

    .card__price--container {
        width: 100px;
        height: 35px;
    }


    .card__price span {
        font-size: 12px;
    }

    .page__desktop--content--body {
        padding: 20px 0 !important;
    }


    .page__desktop--content--body--pagination a {
        font-size: 10px;
        min-width: 30px;
        height: 30px;
        padding: 4px 8px;
        margin: 0 3px;
        border-radius: 5px;
    }

    /* Background overlay to darken the page */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #D9D9D9BF;
        /* Darken the background */
        z-index: 998;
        /* Just behind the filter panel */
    }

    .page__mobile--aside {
        display: none;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 85%;
        overflow-y: auto;
        background-color: black;
        padding: 20px;
        z-index: 999;
    }

    .page__mobile--content--aside--item--title.mobile--aside--flex {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: underline;
    }

    .page__mobile--aside--button {
        height: 48px;
        width: 100%;
        color: #161822;
    }

}

@media screen and (min-width: 768px) {
    .page__mobile--filters {
        position: static;
        display: none;
    }
}

@media (min-width: 1367px) {
    .page__aside {
        width: 312px;
    }

    input[type="number"]::placeholder {
        font-size: medium;
    }
}