/* product-list.css */

/* --- General Styles --- */
.item-product {
    background-color: #2a2f34;
    border: 1px solid #3c3f44;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

    .item-product:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .item-product h2 {
        margin: 5px 0px 2rem 0px !important;
    }

    .item-product h3 {
        font-size: 16px;
        color: #f8f9fa;
        font-weight: 500;
        margin-bottom: 0.5rem;
    }

    .item-product img {
        height: 240px;
        object-fit: cover;
        border-radius: 8px;
    }

/* --- Sidebar --- */
.shop-sidebar.card {
    padding: 1.5rem !important;
}

    .shop-sidebar.card.category {
        max-height: calc(5 * 2.5rem);
        overflow-y: auto;
        scrollbar-color: #888 #2a2f34;
        scrollbar-width: thin;
    }

        .shop-sidebar.card.category::-webkit-scrollbar {
            width: 6px;
        }

        .shop-sidebar.card.category::-webkit-scrollbar-thumb {
            background: #555;
            border-radius: 10px;
        }

            .shop-sidebar.card.category::-webkit-scrollbar-thumb:hover {
                background: #333;
            }

/* --- Filter Search --- */
.search-in-filter-container {
    margin-bottom: 10px;
}

.search-in-filter {
    position: relative;
}

    .search-in-filter input {
        width: 100%;
        height: 35px;
        border: 1px solid #fff;
        padding: 5px 10px;
        border-radius: 8px;
        font-size: 11px;
        background-color: transparent;
        color: #fff;
    }

    .search-in-filter svg {
        position: absolute;
        right: 10px;
        top: 8px;
    }

        .search-in-filter svg path {
            fill: #fff;
        }

/* --- Filter Accordion --- */
.pro_item_filter .ui.accordion .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
}

    .pro_item_filter .ui.accordion .title i {
        color: #fff;
    }

    .pro_item_filter .ui.accordion .title h4 {
        padding-bottom: 0.5rem;
        font-size: 1.1rem;
    }

.pro_item_filter .ui.form .field {
    margin: 0 !important;
}

.ui.checkbox label,
.ui.checkbox + label {
    color: #ccc !important;
}

/* --- Loader --- */
.loader-list {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999999;
    background: #0d0e0e;
    opacity: 0.4;
    height: 100%;
    width: 100%;
    display: none;
}

    .loader-list.active {
        display: block;
    }

/* --- Pagination & Buttons --- */
nav {
    text-align: center;
}

.btn-search-product {
    position: absolute;
    right: 7px;
    top: 7px;
}

.btn_filter_mobile {
    display: none;
}

#serach_mobile {
    display: none;
}

/* --- Responsive --- */
@media(max-width: 991px) {
    .checkbox input[type=checkbox],
    .checkbox-inline input[type=checkbox],
    .radio input[type=radio],
    .radio-inline input[type=radio] {
        margin-left: 0 !important;
    }

    #ProductList .item-product {
        display: flex;
    }

        #ProductList .item-product img {
            height: 110px;
            width: 110px;
            margin-right: 1.5rem;
        }

    .nopad {
        padding: 0 !important;
    }

    .category-sidebar {
        position: fixed;
        height: 100%;
        width: 100%;
        top: 100%;
        right: 0;
        z-index: 99999;
        overflow-y: scroll;
        background: #222;
        padding: 20px 15px;
        transition: all 0.2s ease-in-out;
    }

        .category-sidebar.show {
            top: 0;
        }

    .btn_filter_mobile {
        display: block;
        background-color: transparent;
        border: 1px solid #c49330;
        padding: 10px 25px;
        color: #c49330;
        border-radius: 8px;
        margin-bottom: 1rem;
        width: 100%;
    }

    #serach_mobile {
        display: flex;
        justify-content: space-between;
        margin: 2rem 0;
    }

        #serach_mobile button {
            width: 45%;
            border: none;
            padding: 15px;
        }

            #serach_mobile button:first-of-type {
                background-color: #0826ff;
                color: #fff;
            }

            #serach_mobile button:last-of-type {
                background-color: #FF8008;
                color: #fff;
            }
}
