.searchresults {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top:60px;
    height: 80vh;
}
.hidefilters{
    display: none;
}
/* Scrollable filters and results with thin scrollbar */
.filters,
.results {
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.filters::-webkit-scrollbar,
.results::-webkit-scrollbar {
    width: 6px;
}
.filters::-webkit-scrollbar-thumb,
.results::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}
.filters::-webkit-scrollbar-track,
.results::-webkit-scrollbar-track {
    background-color: transparent;
}

.filters {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: .5rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    min-height: 45px;
}

/* Filter section titles */
.filtertitle {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin: 1rem 0 0.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3rem;
}

/* Wrapping layout for checkboxes and other filter items */
.filteroptions {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    gap: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-bottom: 1rem;
}

/* Individual checkbox block */
.filterbox {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    max-width: 48%;
    white-space: nowrap;
}

/* Style the checkboxes */
.filterbox input[type="checkbox"] {
    transform: scale(1.1);
    margin-left: .3rem;
}

/* Label beside checkbox */
.filterbox label {
    font-size: 10pt;
    margin-left: .2rem;
}

/* Styling for all select elements */
.locationselects,
#discountfilter {
    width: 98%;
    padding: 0.2rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 10pt;
}

/* Style error spans if needed */
.error {
    color: red;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Product result header */
.section-title {
    font-weight: bold;
    margin: .1rem auto;
    font-size: 12pt;
}

/* Discount badge on product */
.discount-badge {
    font-size: 9pt;
}
.myfiltertitle{
    font-size: 11pt;
    font-weight: bold;
    background: var(--color-success-bg);
    color: #fff;
    padding: .3rem;
    user-select: none;
    margin:0 auto;
}
.appyfilter{
    float: right;
    transition: transform 0.3s ease;
}
.appyfilter.rotate {
    transform: rotate(180deg);
}
.noresults{
    width: 100%;
    padding: .5rem;
    text-align: center;
    justify-content: center;
    align-items: center;
}
/* Responsive layout for wider screens */
@media (min-width: 768px) {
    .searchresults {
        flex-direction: row;
        margin: 0 auto;
    }
    .hidefilters{
        display:block;
    }
    .filters {
        width: 20%;
    }

    .results {
        width: 80%;
        padding: 1rem;
    }
    .myfiltertitle{
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    }
}
