:root {
    --shadow: 0px 4px 16px 0px #00000040;
    --green-Color: #A8D060;
    --purple-Color: #8860D0;
    --black-color: #333333;
    --second-white: #F5F5F7;
    --second-purole: #C1C8E4;
}

/* filter side section */

.filterandproducts {
    display: flex;
    width: 90%;
    margin: 0 5%;
    gap: 1%;
}


.filter-side-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    width: 15%;
}

.filter h3 {
    margin-bottom: 10px;
}

.filter select,
.filter input[type="number"] {
    padding: 5px;
    width: 100%;
    margin-bottom: 10px;
}

.filter input[type="number"] {
    width: calc(50% - 5px);
}

.filter .price-filter {
    display: flex;
    gap: 10px;
}

#apply-price-filter {
    padding: 5px 10px;
    cursor: pointer;
    border:2px solid var(--green-Color);
    color: var(--black-color);
    border-radius: 24px;
    transition: all .5s ease;
    width: 100%;
}

#apply-price-filter:hover {
    background-color: var(--green-Color);
    color: var(--second-white);
}

button#clear-filters {
    width: 100%;
    padding: 5px 10px;
    cursor: pointer;
    border: 2px solid #ff0b0b;
    color: var(--black-color);
    border-radius: 24px;
    transition: all .5s ease;

}
#clear-filters:hover {
    background-color: #ff0b0b;
    color: var(--second-white);
}

/* product side section */

.product-side-section {
    display: flex;
    flex-direction: column;
    width: 85%;
}

.product-side-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--second-purole);
    border-radius: 12px;
    margin: 0 0 2rem 0;

}

select#sort {
    border-radius: 5px;
    font-size: 16px;
    padding: 5px;

}


.products-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));}


/* products-section */
.products-section {
    width: 95%;
    margin: 0 0 10rem 4%;
    position: relative;
}

.products-section-product-container::-webkit-scrollbar {
    display: none;
}

.products-section-header h2 {
    font-size: 2rem;
    color: var(--black-color);
    margin: 0 0 2rem 1%;
}

.products-section-product {
    width: 17rem;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    background-color: var(--second-white);
    display: flex;
    flex-direction: column;
    gap: 3rem;
    transition: all 0.3s ease-in-out;

}

.products-section-product:hover {
    transform: scale(1.05);
    transition: all .5s ease;
}

.products-section-product-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    position: relative;
    padding: 2% 1%;
}

#previous-button,
#next-button {
    position: absolute;
    z-index: 10;
    top: 50%;
}

#next-button {
    right: 0;
}


.products-section-products-photo {
    position: relative;
    text-align: center;
    padding: 1rem;
    width: 16rem;
    height: 14rem;
}

.products-section-product:hover .products-section-products-photo img {
    transform: scale(1.15);
    transition: transform 0.5s ease;
}


.products-section-products-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.like-product-button {
    position: absolute;
    top: 0;
    right: 10px;
    border: none;
    cursor: pointer;
}

.products-section-products-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.products-section-products-details-name {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
}
.products-section-products-details-rating{
    display: none;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-Color);
}

#product-name {
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-section-products-details h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--purple-Color);
}

.products-section-products-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#product-price {
    font-size: 1.5rem;
}


/* products-section */
