#custom-product-filter-container {
    max-width: 100%;
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-section {
    flex: 1;
    min-width: 200px;
}

#custom-product-filter h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    width: 100%;
}

#custom-product-filter h5 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
    color: #444;
    text-align: center;
}

#custom-product-filter ul {
    list-style: none;
    border: 1px solid #00000026;
    padding: 5px;
    padding-top: 20px;
}

#custom-product-filter ul li {
    margin-top: 0;
    margin-bottom: 1rem;
    display: inline-flex;
    flex-wrap: wrap;
    flex-direction: row;
}

#custom-product-filter input[type="checkbox"] {
    margin-right: 5px;
    margin-left: 8px;
    height: 1.3rem;
}

.language-select-container {
    width: 100%;
    text-align: center;
    position: relative;
}

.dokan-select2 {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #b1abab63;
    background: white;
    font-size: 16px;
}

.dokan-select2:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0px 0px 5px rgba(0, 124, 186, 0.3);
}

.select2-container--default .select2-selection--single {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.select2 .select2-selection {
    padding-top: 15px;
}

.select2-container--default .select2-search--inline .select2-search__field {
    padding-left: 10px !important;
    height: 40px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 20px;
    padding-left: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 20px;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

#custom-product-filter button {
    background: #007cba;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
    width: 100%;
    display: block;
}

#custom-product-filter button:hover {
    background: #005f8d;
}

.products-carousel {
    display: block;
    gap: 15px;
    overflow-x: auto;
    padding: 15px 0;
}

body:not(.input-variation-filled)[data-color=default] .select2 .select2-selection:not(.variation-filled),
body[data-color=default] .select2 .select2-selection:not(.variation-filled) {
    border: 0px !important;
}

/* === PRODUCT ITEM STYLE === */
.product-item {
    flex: 0 0 auto;
    width: 200px;
    padding: 10px;
    border-radius: 8px;
    background: white;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 300px;
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

.product-item img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover;
    display: block;
    border-radius: 5px;
    flex-shrink: 0;
}

.product-item h3 {
    font-size: 16px;
    margin-top: 5px;
    margin-bottom: 5px;
    color: #333;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 40px;
}

.product-item p {
    font-size: 14px;
    font-weight: bold;
    color: #007cba;
    margin-top: auto;
}

/* === MOBILE === */
@media screen and (max-width: 768px) {
    .product-item h3 {
        font-size: 12px;
    }

    #custom-product-filter-container {
        position: relative;
        z-index: 2;
    }

    .search-results-container {
        position: relative;
        z-index: 1;
        width: 100%;
        overflow: hidden;
    }
}
