#filter-icon svg,
#sort-icon svg {
    stroke: none;
    stroke-dasharray: none;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-miterlimit: 10;
    fill-rule: nonzero;
    opacity: 1;
}

#filter-icon g,
#sort-icon g {
    stroke-width: 0;
    fill: none;
}

#filter-icon path,
#sort-icon path {
    stroke-width: 1;
    fill: rgb(0, 0, 0);
    stroke-linecap: round;
    transform: matrix(1 0 0 1 0 0);
}

.filters,
.sort {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
}

.filter-toggle,
.sort-toggle {
    cursor: pointer;
}


.filter-toggle,
.sort-toggle {
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.filter-toggle:hover,
.sort-toggle:hover {
    border-color: #F08E34;
    background-color: #fff8f1;
}

.filter-toggle svg,
.sort-toggle svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {

.filter-btns{
    display: flex;
    gap: 1.375rem;
    justify-content: flex-end;
    margin-top: 1rem;
}
    .filter-toggle,
    .sort-toggle {
        flex: 1;
        justify-content: center;
    }

    .pagination-conteiner {
        position: relative;
        top: 3rem;
    }

}

.filter-btns form {
  display: flex;
  justify-content: flex-end;  
  gap: 1rem;
  margin-top: 16px;
}

.flex-row{
    display: flex;
    flex-direction: row;
}

.filters input[type="text"],
.filters input[type="number"],
.input-bordered {
    border: 1px solid rgba(191, 191, 191, 0.3);
    font-size: 14px;
    padding: .5rem;
    background-color: transparent;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

/* PRICE RANGE SLIDER */
.range_container {
    display: flex;
    flex-direction: column;
    width: 80%;
}

.sliders_control {
    position: relative;
    min-height: 50px;
}

.form_control {
    position: relative;
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    color: #635a5a;
    margin-bottom: 1rem;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all;
    width: 16px;
    height: 16px;
    background-color: rgba(240, 142, 52, 0.8);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

input[type=range]::-moz-range-thumb {
    -webkit-appearance: none;
    pointer-events: all;
    width: 16px;
    height: 16px;
    background-color: rgba(240, 142, 52, 1);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

input[type=range]::-webkit-slider-thumb:hover {
    background-color: rgba(240, 142, 52, 1);
}

input[type="number"] {
    color: #8a8383;
    width: 50px;
    height: 30px;
    font-size: 16px;
    border: none;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    opacity: 1;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 2px;
    width: 100%;
    position: absolute;
    background-color: rgba(240, 142, 52, 0.6);
    pointer-events: none;
}

#fromSlider {
    height: 0;
    z-index: 1;
}

.all-items {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
}

.sort-choices div:hover {
    display: list-item;
    list-style-type: disc;
    list-style-position: inside;
    cursor: pointer;
}

.sort-active {
    display: list-item;
    list-style-type: disc;
    list-style-position: inside;
}

.all-categories-menu {
    overflow-x: auto;
    max-width: 100%;
    cursor: grab;
    scrollbar-width: none;
    /* For Firefox to hide scrollbar */
    -ms-overflow-style: none;
    /* For Internet Explorer and Edge to hide scrollbar */
}

.scroll-container::-webkit-scrollbar {
    display: none;
    /* For Chrome, Safari, and newer versions of Edge */
}

.chosen-products .product-card {
    min-width: 300px;
}

@media only screen and (max-width: 1300px) {
    .chosen-products .product-card {
        min-width: 230px;
    }
}

@media only screen and (max-width: 1000px) {
    .chosen-products .product-card {
        min-width: 200px;
    }
}

@media only screen and (max-width: 900px) {
    .chosen-products .product-card {
        min-width: 170px;
    }
}

@media only screen and (max-width: 850px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chosen-products .product-card {
        min-width: 340px;
    }
}

@media only screen and (max-width: 700px) {
    .chosen-products .product-card {
        min-width: 250px;
    }
}

@media only screen and (max-width: 600px) {
    .chosen-products {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}


pagination-conteiner {
    display: flex;
    flex-direction: column;
    column-gap: .5rem;
}

/*filter and sort style */

.filters {
    border: 1px solid #f0e0d0;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #fff;
}


.filters h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e17728;
    margin-bottom: 1rem;
}

.filters p.font-lg {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.filters input[type="text"],
.filters input[type="number"] {
    border: 1px solid #e0c5ae;
    padding: 0.6rem;
    border-radius: 0.4rem;
    background-color: #fff;
    font-size: 14px;
    width: 100%;
    margin-bottom: 0.8rem;
    transition: border-color 0.3s ease;
}

.filters input[type="text"]:focus,
.filters input[type="number"]:focus {
    border-color: #f08e34;
    outline: none;
}

.checkbox-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    user-select: none;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: #f08e34;
}

.all-items {
    background: #fffaf4;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #f3e1d0;
    max-height: 250px;
    overflow-y: auto;
}

.range_container {
    width: 100%;
}

input[type=range]::-webkit-slider-thumb,
input[type=range]::-moz-range-thumb {
    background-color: #f08e34;
    transition: background-color 0.3s ease;
}

input[type=range]:hover::-webkit-slider-thumb {
    background-color: #d56b16;
}


#apply-filter-btn,
.button-clear {
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    border: none;
    background-color: #f08e34;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

#apply-filter-btn:hover {
    background-color: #d46c14;
}

.close-popup svg {
    fill: #888;
    transition: fill 0.3s ease;
}

.close-popup:hover svg {
    fill: #f08e34;
}

.filters>div {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.4s ease forwards;
}

.filters>div:nth-child(2) {
    animation-delay: 0.1s;
}

.filters>div:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.filter-card {
    background-color: #fff;
    border: 1px solid #f5e4d6;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.sort-choices .sort-option {
    padding: 0.6rem 1rem;
    border: 1px solid #f5e4d6;
    border-radius: 0.5rem;
    background-color: #fffaf5;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sort-choices .sort-option.sort-active {
    background-color: #f08e34 !important;
    color: white;
    font-weight: 600;
}

.filter-card h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #f08e34;
}



.sort-choices .sort-option:hover {
    background-color: #f08e34;
    color: white;
}



.button.button-transparent {
    border: 1px solid #f08e34;
    color: #f08e34;
    background: transparent;
    border-radius: 0.5rem;
    padding: 0.5rem 1.2rem;
}

.button.button-transparent:hover {
    background: rgba(240, 142, 52, 0.1);
}

.close-popup svg {
    fill: #aaa;
    transition: fill 0.3s ease;
}

.close-popup:hover svg {
    fill: #f08e34;
}


.filters,
.sort {
    display: none;
}

.sort>div {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.4s ease forwards;
}

.sort>div:nth-child(2) {
    animation-delay: 0.1s;
}

.sort>div:nth-child(3) {
    animation-delay: 0.2s;
}

.sort>div:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.all-items.all-groups {
    background: #fffaf5;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #f3e1d0;
    max-height: 250px;
    overflow-y: auto;
}

.category-search {
    border: 1px solid rgba(191, 191, 191, 0.3);
    font-size: 14px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: transparent;
    border-radius: 4px;
    width: 100%;
}

@media only screen and (max-width: 600px) {
    .category-products-header {
        align-items: baseline;
        width: 100%;
        padding: 1rem;
    }

    .container,
    .product.section {
        display: flex;
        flex-direction: column;
        align-items: stretch !important;
    }
}



.all-items.all-groups {
    background: #fffaf5;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #f3e1d0;
    max-height: 250px;
    overflow-y: auto;
}

.category-search {
    border: 1px solid rgba(191, 191, 191, 0.3);
    font-size: 14px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: transparent;
    border-radius: 4px;
    width: 100%;
}

.gray-badge:hover,
.pagination-dot:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: all 0.2s ease;
    cursor: pointer;

}



#pagination-message {
    display: none;
    margin-top: 12px;
    padding: 10px 16px;
    background-color: #fff6f0;
    color: #f08e34;
    border: 1px solid #f08e34;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: opacity 0.3s ease-in-out;
}


#filter-form {
    gap: 1rem;
    justify-content: center !important;
    margin-top: 1rem;
}

#Previous,
#Next {
    background: white;
    border: 1px solid #ccc;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}


#Previous:hover,
#Next:hover {
    background-color: rgb(255, 248, 241);
    border-color: rgb(240, 142, 52);
    color: #333333;
    cursor: pointer;
}

    .all-items.all-groups {
    background: #fffaf5;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #f3e1d0;
    max-height: 250px;
    overflow-y: auto;
}

.category-search {
    border: 1px solid rgba(191, 191, 191, 0.3);
    font-size: 14px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: transparent;
    border-radius: 4px;
    width: 100%;
}

