/* =========================================================
   Liquidation Mart – Sidebar Filters
   ========================================================= */

.lm-filter-section {
    margin-bottom: 28px;
}

.lm-filter-title {
    font-size: 19px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

/* ---- Category links ---- */
.lm-filter-section ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.lm-filter-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lm-filter-cat-list li {
    margin-bottom: 6px;
}
.lm-cat-link {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    display: block;
    padding: 2px 0;
    transition: color 0.15s;
}
.lm-cat-link:hover,
.lm-cat-link.is-active {
    color: #c0392b;
    font-weight: 600;
}

/* ---- Attribute filter list ---- */
.lm-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lm-filter-list li {
    margin-bottom: 6px;
}
.lm-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}
.lm-filter-item:hover {
    color: #1a1a1a;
}
.lm-filter-item.is-active {
    color: #1a1a1a;
    font-weight: 600;
}

/* Custom checkbox */
.lm-check {
    display: inline-flex;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1.5px solid #c0392b;
    border-radius: 3px;
    background: #fff;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}
.lm-filter-item:hover .lm-check {
    border-color: #a93226;
    background: #fdf5f5;
}
.lm-filter-item.is-active .lm-check {
    background: #c0392b;
    border-color: #c0392b;
}
.lm-filter-item.is-active .lm-check::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* ---- Native select (mobile/tablet only) ---- */
.lm-filter-select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}
.lm-filter-select:focus {
    border-color: #c0392b;
}

/* Desktop: show checkbox list, hide select */
.lm-list-desktop { display: block !important; }
.lm-list-mobile  { display: none !important; }

/* ---- Price slider ---- */
.lm-filter-price {
    padding: 4px 0;
}
.lm-price-range {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    background: #e5e5e5;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    transition: opacity 0.15s;
}
.lm-price-range:hover {
    opacity: 0.9;
}
.lm-price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 1.5px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: transform 0.1s, box-shadow 0.1s;
}
.lm-price-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.lm-price-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: 1.5px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.lm-price-label {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 12px 0 0;
    font-size: 12px;
    color: #888;
    letter-spacing: 0.02em;
}
.lm-price-label .lm-price-val {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ---- Reset filters button ---- */
.lm-filter-reset {
    display: inline-block;
    margin-top: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c0392b;
    text-decoration: none;
    transition: opacity 0.15s;
}
.lm-filter-reset:hover {
    opacity: 0.7;
    color: #c0392b;
}

/* =========================================================
   Pagination [lm_pagination]
   ========================================================= */

.lm-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 24px 0 8px;
    padding: 0;
    justify-content: center;
}
.lm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lm-pagination a.page-numbers:hover {
    border-color: #c0392b;
    color: #c0392b;
}
.lm-pagination .page-numbers.current {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}
.lm-pagination .page-numbers.dots {
    border-color: transparent;
    background: none;
}

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet & mobile — show select, hide checkbox list */
@media ( max-width: 1024px ) {
    .lm-list-desktop { display: none !important; }
    .lm-list-mobile  { display: block !important; }

    .lm-filter-section {
        margin-bottom: 10px;
    }
    .lm-filter-title {
        font-size: 16px;
        margin-bottom: 6px;
        padding-bottom: 6px;
    }
    .lm-cat-link {
        font-size: 14px;
        padding: 3px 0;
    }
    .lm-filter-cat-list li {
        margin-bottom: 6px;
    }
}


/* Mobile — larger touch targets */
@media ( max-width: 767px ) {
    .lm-filter-section {
        margin-bottom: 8px;
    }
    .lm-filter-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    .lm-filter-select {
        font-size: 15px;
        padding: 10px 36px 10px 12px;
    }
    .lm-cat-link {
        font-size: 15px;
        padding: 6px 0;
    }
    .lm-filter-cat-list li {
        margin-bottom: 4px;
    }
    .lm-price-range {
        height: 6px;
    }
    .lm-price-range::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }
    .lm-price-range::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }
    .lm-price-label {
        font-size: 13px;
    }
    .lm-price-label .lm-price-val {
        font-size: 17px;
    }
    .lm-filter-reset {
        font-size: 12px;
        margin-top: 24px;
    }
}
