/* ==============================================================
   SpecX Sorter listing page styles
   --------------------------------------------------------------
   Previously inlined inside resources/views/frontend/specxsorter/
   index.blade.php as a <style> block. Extracted here so the
   browser can cache it across page navigations.
   ============================================================ */

.range-input input {
    -webkit-appearance: auto !important;
}

.filters-container {
    max-height: 100%;
}

.price {
    margin-right: 0px !important;
    font-size: 1.4em !important;
}

.color-selection-container {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    margin-top: 10px;
}

.color-circle-selection {
    width: 30px;
    height: 30px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 50%;
}

.color-circle-selection.active {
    border-color: #007bff;
}

/* Decrease sidebar padding (was 30px) to give the listing more room. */
.filters-section {
    padding: 10px;
}

/* Add scroll inside long brand/filter dropdowns. */
ul.dropdown-menu.show {
    max-height: 400px !important;
    overflow: auto;
}

/* Tighter spacing inside the brand area. */
#container-filters label.form-check-label {
    padding: 6px 2px 0px 0px;
}

.clearance_container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    left: 682px;
    top: 10px;
    width: 240px;
    font-size: 0.9em;
}

.clearance_container_all {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    left: 630px;
    top: 10px;
    width: 240px;
    font-size: 0.9em;
}

/* Hint the browser that product images will appear so they render
   quickly without causing layout shift. */
.image-container img.main-img {
    /* background-color: #f5f5f5; */
    background-color: #ffffff;
}

@media screen and (max-width: 768px) {
    .clearance_container_all,
    .clearance_container {
        position: static !important;
        width: calc(50% - 0.5rem) !important;
        height: auto !important;
        margin: 0;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }

    .favorite_container button,
    .compare_container button,
    .clearance_container_all button,
    .clearance_container button {
        width: 100%;
    }
}
