.title {
    width: 80%;
}

.catalog {
    width: 100%;
    padding: 50px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow: hidden;
}

.catalog-container {
    width: 80%;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.box {
    width: 100%;
    display: flex;
    gap: 10px;
}

.search {
    width: 100%;
    display: flex;
    align-items: center;
}

.search-inp {
    width: 95%;
    height: 60px;
    border-bottom-left-radius: 20px;
    border-top-left-radius: 20px;
    background-color: #ececec;
    border: none;
    outline: none;
    padding: 0 30px;
}

.search button {
    height: 60px;
    background-color: #ececec;
    width: 100px;
    border-radius: 0;
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
    border: none;
}

/*------------------------------ filter ------------------------------*/

.filter {
    width: 300px;
    border: 3px solid #f6f6f6;
    box-shadow: inset -2px -2px 4px hsla(0, 0%, 100%, .1), inset 2px 2px 4px rgba(0, 0, 0, .35);
    padding: 10px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: min-content;
}

.filter-catalog,
.filter-big-catalog,
.filter-title {
    width: 100%;
    padding: 10px 15px;
    border-bottom: 4px solid #f6f6f6;
    font-size: 18px;
    cursor: pointer;
    transition: .3s;
}

.filter-catalog i {
    opacity: 0;
    transition: .3s;
}

.filter-catalog:hover,
.filter-big-catalog:hover {
    padding-left: 25px;
}

.filter-catalog:hover i {
    opacity: 1;
    margin-left: 10px;
    transform: rotate(90deg);
}

.filter-catalog-element {
    width: 100%;
}

.filter-parent {
    padding: 10px 15px;
    padding-right: 0;
    padding-left: 25px;
    border-bottom: 2px solid #f6f6f6;
    color: #6a6a6a;
    transition: .3s;
}

.filter-parent .fas {
    opacity: 0;
    transition: .3s;
}

.filter-parent a {
    color: #6a6a6a;
    text-decoration: none;
}

.filter-parent:hover {
    padding-left: 30px;
}

.filter-parent:hover .fas {
    opacity: 1;
    margin-left: 10px;
}

.filter-search-but {
    width: 100%;
}

.filter-button {
    padding: 10px 50px;
    font-weight: 600;
}

.range-slider {
    width: 100%;
    text-align: center;
    position: relative;

    .rangeValues {
        display: block;
    }
}

input[type=range] {
    -webkit-appearance: none;
    border: 1px solid white;
    width: 100%;
    position: absolute;
    left: 0;
    cursor: grab;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 300px;
    height: 5px;
    background: #ddd;
    border: none;
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #2d43c7;
    margin-top: -4px;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #ccc;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 5px;
    background: #ddd;
    border: none;
    border-radius: 3px;
}

input[type=range]::-moz-range-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #2d43c7;

}


/*hide the outline behind the border*/

input[type=range]:-moz-focusring {
    outline: 1px solid white;
    outline-offset: -1px;
}

input[type=range]::-ms-track {
    width: 100%;
    height: 5px;
    /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
    background: transparent;
    /*leave room for the larger thumb to overflow with a transparent border */
    border-color: transparent;
    border-width: 6px 0;
    /*remove default tick marks*/
    color: transparent;
    z-index: -4;

}

input[type=range]::-ms-fill-lower {
    background: #777;
    border-radius: 10px;
}

input[type=range]::-ms-fill-upper {
    background: #ddd;
    border-radius: 10px;
}

input[type=range]::-ms-thumb {
    border: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #2d43c7;
}

input[type=range]:focus::-ms-fill-lower {
    background: #888;
}

input[type=range]:focus::-ms-fill-upper {
    background: #ccc;
}

.filter-section-title {
    font-size: 20px;
    padding: 10px 15px;
}

.filter-search-but {
    width: 100%;
    display: flex;
    justify-content: center;
}

/*------------------------------ category ------------------------------*/

.category-box {
    /* border: 3px solid #aeaeae; */
    display: flex;
    flex-wrap: wrap;
    border-radius: 20px;
    gap: 10px;
    width: 100%;
    max-height: 600px;
    overflow-x: auto;
}

.box-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.filter-modal-open {
    display: none;
}

/*------------------------------ category mdia ------------------------------*/
@media (max-width: 2200px) {
    .category-item {
        width: calc(90% / 6) !important;
    }

    .category-box {
        gap: 10px 2%;
    }
}

@media (max-width: 1800px) {
    .catalog-container {
        width: 95%;
    }
}

@media (max-width: 1500px) {
    .category-item {
        width: calc(92% / 5) !important;
    }
}

@media (max-width: 1280px) {
    .category-item {
        width: calc(94% / 4) !important;
    }
}

@media (max-width: 1000px) {
    .category-item {
        width: calc(96% / 3) !important;
    }

    .filter {
        display: none;
    }

    .filter-modal-open {
        display: block;
    }
}

@media (max-width: 800px) {

    .category-item {
        width: calc(94% / 4) !important;
    }
}

@media (max-width: 750px) {
    .category-item {
        width: calc(96% / 3) !important;
    }
}

@media (max-width: 500px) {
    .category-item-img {
        display: none;
    }

    .category-item-title {
        margin: 0 !important;
    }

    .category-item {
        padding: 5px;
    }
}

@media (max-width: 420px) {
    .category-item {
        width: 48% !important;
    }
}


/*------------------------------ carts ------------------------------*/

.carts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-item {
    width: 200px;
    border: 2px solid #f6f6f6;
    padding: 20px;
    border-radius: 20px;
    transition: .3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-item:hover {
    box-shadow: inset -2px -2px 4px hsla(0, 0%, 100%, .1), inset 2px 2px 4px rgba(0, 0, 0, .35);
    border: 2px dashed #f6f6f6;
}

.category-item-img {
    border-radius: 20px;
    overflow: hidden;
    height: 100px;
}
.category-item-img img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-title a {
    color: black;
}

.category-item-title a {
    color: black;
    transition: .3s;
}


.cart-item {
    padding: 20px;
    border: 1px solid #f6f6f6;
    position: relative;
    border-radius: 20px;
    transition: 
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}
.cart-item:hover {
    transform: scale(1.01);
    box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.08),
    0 0 40px rgba(142, 142, 142, 0.15);
}

.cart-img {
    width: 100%;
    overflow: hidden;
    height: 280px;
}

.cart-img img {
    border-radius: 20px;
}

.cart-quantity {
    display: flex;
    gap: 10px;
}

.cart-title {
    height: 70px;
}

.cart-quantity>input {
    width: 50px;
    border: none;
}

.cart-buts {
    width: 30px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-cart {
    border: none;
    border-radius: 10px;
    padding: 10px;
}

.fav-heart,
.fas-heart {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 40px;
    aspect-ratio: 1;
    border-radius: 50px;
    color: black;
    background-color: #ffffff6b;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fas-heart .fas {
    color: red;
}

.bullits {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.bullits button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background-color: #f6f6f6;
}

.bullits button:hover {
    cursor: pointer;
}

.path {
    width: 100%;
    display: flex;
    gap: 5px;
    color: #aeaeae;
}

.path a {
    color: #aeaeae;
}

.cart-title h5 {
    font-size: 15px;
}

.cart-quantity {
    color: green;
    font-size: 15px;
}

.cart-art {
    color: #aeaeae;
    font-size: 15px;
}

.cart-price {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: left;
}

.cart-price p {
    font-size: 25px;
    margin: auto 0;
}

.current {
    background-color: #2d43c7 !important;
    color: white;
}

/*------------------------------ carts media ------------------------------*/
@media (max-width: 2600px) {
    .carts {
        gap: 10px 2%;
    }

    .cart-item {
        width: calc(92% / 5) !important;
    }
}

@media (max-width: 2100px) {
    .cart-item {
        width: calc(94% / 4) !important;
    }
}

@media (max-width: 1460px) {
    .cart-item {
        width: calc(96% / 3) !important;
    }
}

@media (max-width: 830px) {
    .cart-item {
        width: calc(96% / 3) !important;
    }

    .add-cart i {
        display: none;
    }

    .bullits {
        gap: 5px;
    }
}

@media (max-width: 800px) {
    .cart-title {
        font-size: 13px;
    }

    .cart-quantity {
        font-size: 11px;
    }
}

@media (max-width: 760px) {
    .add-cart {
        padding: 10px;
        width: 100%;
    }
}

@media (max-width: 700px) {
    .cart-item {
        width: 48% !important;
        padding: 5px;
    }

    .cart-quantity {
        font-size: 12px;
    }

    .add-cart {
        font-size: 15px;
    }
}

@media (max-width: 577px) {
    .cart-quantity {
        justify-content: start;
    }

    .cart-quantity p {
        display: block;
    }

    .cart-title {
        display: block;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}



@media (max-width: 360px) {
    .bullits {
        gap: 2px;
    }
}

.range-inp {
    width: 40%;
    border: none;
    transition: .3s;
    border: 3px solid #dddddd;
    border-radius: 10px;
    padding: 9px 5px;
    font-size: 17px;
}

.range-inp:focus {
    width: 50%;
    background-color: #efefef;
    outline: none;
    box-shadow: none;
    border: 3px solid #dddddd00;
}

.range-inp::-webkit-inner-spin-button,
.range-inp::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.range-inp {
    -moz-appearance: textfield;
}

.range-inp {
    appearance: textfield;
}

.range-inps {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.filter-block .filter-title {
    border: none;
    cursor: auto;
}

.filter-title-collapse {
    cursor: pointer;
    width: 100%;
    padding: 10px 15px;
    border-bottom: 4px solid #f6f6f6;
    font-size: 18px;
}

.filter-title-collapse i {
    transform: rotate(90deg);
    margin-left: 10px;
    transition: .3s;
}

.filter-title-collapse i.rotate {
    transform: rotate(-90deg);
}

.filter-collapse-section {
    padding: 10px 15px;
    padding-right: 0;
    padding-left: 25px;
    border-bottom: 2px solid #f6f6f6;
    color: #6a6a6a;
    transition: .3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-collapse-section input {
    width: 18px;
    aspect-ratio: 1;
    cursor: pointer;
}

.filter-catalog-element {
    max-height: 300px;
    overflow-x: auto;
}

.filter-catalog-element {
    max-height: 300px;
    overflow-y: auto;
}

.filter-catalog-element {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.filter-catalog-element::-webkit-scrollbar {
    width: 8px;
}

.filter-catalog-element::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.filter-catalog-element::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 6px;
}

.filter-catalog-element::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.filter-modal-body {
    background-color: white;
}

.add-cart {
    font-size: 13px;
    width: 100%;
}

.cart-item.cart-anim {
    animation: glow-shadow 1s ease forwards;
}

@keyframes glow-shadow {
    0% {
        box-shadow: 0 0 0px rgba(255, 0, 150, 0);
        transform: scale(1) rotate(0deg);
    }

    25% {
        box-shadow: 10px 10px 20px rgba(255, 0, 150, 0.6);
        transform: scale(1.05) rotate(5deg);
    }

    50% {
        box-shadow: -10px 10px 20px rgba(0, 255, 255, 0.6);
        transform: scale(1.05) rotate(-5deg);
    }

    75% {
        box-shadow: -10px -10px 20px rgba(255, 255, 0, 0.6);
        transform: scale(1.05) rotate(5deg);
    }

    100% {
        box-shadow: 0 0 0px rgba(255, 0, 150, 0);
        transform: scale(1) rotate(0deg);
    }
}

.cart-img {
    display: flex;
    justify-content: center;
    border-radius: 20px;
}

.cart-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.page-cart-buttons{
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.page-cart-buttons button{
    cursor: pointer;
    height: 100%;
    width: 40px;
    border: none;
    font-weight: 700;
}
.page-cart-buttons input{
    height: 100%;
    width: 100px;
    border: none;
    text-align: center;
    background-color: #f0f0f0;
}
.page-cart-quantity-remove-but{
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
.page-cart-quantity-add-but{
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;

}