/* SpecxSorter page-only rules (moved from index.blade.php inline styles) */

/* Preloader blocks LCP on listing — hide immediately on this page only */
.specxsorter-page #preloader,
.specxsorter-page .loading {
    display: none !important;
}

.specxsorter-page .search-close .specx-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Thumbnails: small on screen + small download; main image loads large on click only */
.specxsorter-thumb-strip .thumbnail-img-product {
    width: 33.3% !important;
    max-width: 124px;
    max-height: 62px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    opacity: 0.85;
}

.specxsorter-thumb-strip .thumbnail-img-product.thumbnail-active {
    opacity: 1;
    outline: 2px solid #007bff;
    outline-offset: 1px;
}

.product-card .image-container .main-img.is-loading {
    opacity: 0.65;
}

.product-card .image-container .main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.range-input input {
    -webkit-appearance: auto !important;
}
.filters-container {
    max-height: 100%;
}
.price {
    margin-right: 0 !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;
}
.filters-section {
    padding: 10px;
}
ul.dropdown-menu.show {
    max-height: 400px !important;
    overflow: auto;
}
#container-filters label.form-check-label {
    padding: 6px 2px 0 0;
}
.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;
}
/* Below-fold cards: skip layout work until near viewport (helps mobile scroll). */
.product-container {
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
}

@media screen and (max-width: 768px) {
    .specxsorter-page .logo-get-started {
        max-width: 280px;
    }

    /* Testimonials iframe pulls Materialize + jQuery on mobile — skip until needed */
    .specxsorter-testimonials {
        display: none;
    }

    .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%;
    }
}
