
.container_products_sort{
    display: flex;
    flex-direction: column;
}

.tabs_list_products_categoty{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 20px;
    user-select: none;
}

.tabs_list_products_categoty_product_page{
    flex-wrap: nowrap;
    overflow-x: auto;
    cursor: grab;
    cursor: -webkit-grab;
    scroll-behavior: smooth; /* Плавний скрол */
}

.dragging {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.tabs_list_products_categoty_product_page::-webkit-scrollbar {
    width: 4px;
    height: 8px;
}

.tabs_list_products_categoty_product_page::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.tabs_list_products_categoty_product_page::-webkit-scrollbar-thumb:hover {
    background: rgba(238, 113, 3, 1);
}

.tabs_list_products_categoty_product_page::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}


.box_title_length_ctategory{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tabs_list_products_categoty{
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.title_ctategory{
    width: 120px;
    font-family: var(--font-family-main);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.14;
    text-align: left;
    color: var(--color-text-title);

}


.link_item_category_page{
    text-wrap: nowrap;
    display: block;
    font-family: var(--font-family-minor);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.36;
    border-radius: 8px;
    border: var(--border-tabs);
    padding: 15px 20px;
    color: var(--color-text-title);
    transition: all var(--transition-all-time);
}


.link_item_category_page:hover{
    border-color: var(--color-hover);
    color: var(--color-hover);
    cursor: pointer;
}

.list_container_categories{
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    overflow-x: auto;

}


@media screen and (min-width: 768px) {
    .list_container_categories{
        flex-wrap: wrap;
        row-gap: 10px;
        overflow: visible;
    }
}


.ctategory_length{
    margin: 0;
    font-family: var(--font-family-minor);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.36;
    text-align: left;
}


.container_products_sort_btn_filter{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.container_products_sort{
    width: 205px;
    border-radius: 8px;
    padding: 9px 10px;
    border: 1px solid rgba(18, 17, 17, 0.2);

}


.btn_open_filter{
    padding: 8px 21px;
    border-radius: 4px;
    background-color: rgba(238, 113, 3, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon_filter {
    display: block;
    width: 24px;
    height: 24px;
}


.btn_open_filter_text{
    font-family: var(--font-family-main);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.14;
    color: rgba(254, 251, 250, 1);
}



.select_sort{
    font-family: var(--font-family-minor);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.36;
    text-align: left;
    color: var(--color-text-title);
}

.select_sort {
    font-family: var(--font-family-minor);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.36;
    text-align: left;
    color: var(--color-text-title);
}



.tabs_item_product_link{
    box-sizing: content-box;
    width: 170px;
    border: var(--border-tabs);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-all-time);
}

.tabs_box_product_photo{
    width: 100%;
    padding: 4px;
}


.tabs_product_photo{
    width: 100%;
    display: block;
    border-radius: 4px;
    object-fit: cover;
    height: 150px;
}


.tabs_box_product_info{
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: space-between;
}

.tabs_product_title{
    font-family: var(--font-family-minor);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.36;
    letter-spacing: 0.02em;
    height: 57px;
}


.tabs_box_rating_price{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tabs_box_rating{
    display: flex;
    align-items: center;
    gap: 10px;
}

.box_icon{
    display: flex;
    align-items: center;
    height: auto;
}

.tabs_icon_rating {
    width: 15px;
    height: 15px;
    opacity: 0.2;
}


.filled{
    fill: var(--color-hover);
    opacity: 1;
}

.tabs_rating_value{
    font-family: var(--font-family-minor);
    font-size: 12px;
    font-weight: 400;
    opacity: 0.55;
    margin: 0;
}

.tabs_product_price{
    font-family: var(--font-family-minor);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.36;
}


.tabs_item_product_link:hover{
    transform: translateY(-4px);
    box-shadow: 
    0px 2px 3px 0px rgba(0, 0, 0, 0.23),
    0px 6px 6px 0px rgba(0, 0, 0, 0.2),
    0px 14px 9px 0px rgba(0, 0, 0, 0.12),
    0px 25px 10px 0px rgba(0, 0, 0, 0.03),
    0px 40px 11px 0px rgba(0, 0, 0, 0);
    
}


.btn_cart_product{
    position: relative;
    width: 100%;
    border-radius: 4px;
    background-color: rgba(238, 113, 3, 1);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.text_btn_cart{
    font-family: var(--font-family-main);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.14;
    color: rgba(254, 251, 250, 1);
}


.tabs_btn_text{
    font-family: var(--font-family-main);
    position: relative;
    z-index: 10;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.14;
    color: var(--color-text-header-main);
    margin: 0;
}


.btn_cart_product::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--backdrop-dark);
    opacity: 0;
    transition: opacity var(--transition-all-time);
}

.btn_cart_product:hover::after {
    opacity: 1; /* Показати затемнення при наведенні */
}


@media screen and (min-width:768px) {
    .tabs_item_product_link{
        width: 220px;

    }

    .tabs_list_products_categoty{
        justify-content: flex-start;
        column-gap: 16px;
    }

    .tabs_list_products_categoty{
        padding-bottom: 20px;
    }
        
    .box_title_length_ctategory{
        justify-content: flex-start;
        gap: 30px;
    }


    .title_ctategory{
        width: auto;
        font-size: 24px;
    }

 
    .container_products_sort_btn_filter{
        justify-content: flex-start;
        gap: 40px;
    }

    .container_products_sort{
        width: 100%;
        height: 40px;
    }


    .btn_open_filter{
        border-radius: 8px;
        min-width: 220px;
        height: 40px;
        justify-content: center;
    }
}


@media screen and (min-width:1440px) {
    .tabs_item_product_link{
        width: 236px;
    }

    .tabs_item_product {
        width: 237px;
    }

    .tabs_list_products_categoty{
        justify-content: flex-start;
        column-gap: 14px;
    }

        
    .box_title_length_ctategory{
        justify-content: flex-start;
        gap: 30px;
    }

    .tabs_list_products_categoty{
        padding-bottom: 40px;
    }

    .title_ctategory{
        font-size: 32px;
    }

 
    .container_products_sort_btn_filter{
        justify-content: flex-start;
        gap: 40px;
    }

    .container_products_sort{
        width: 100%;
        height: 40px;
    }

    .container_title_sort{
        display: flex;
        justify-content: space-between;
    }

    .btn_open_filter{
        display: none;
    }
}


.tabs_item_product{
    position: relative;
}

.tabs_item_product{
    position: relative;
}

.box_compensation_category {
    position: absolute;
    z-index: 999;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 43px;
    color: #FEFBFA;
    font-family: var(--font-family-main);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.21;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    background-color: #45A02E;

}

@media (min-width: 1200px) {
    #product-category #content {

        min-height: 500px;
    }

    .container_description_category {
    padding-top: 25px;
    }

}