/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {

    .tf-grid-layout.tf-col-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tf-shop-control {
        justify-content: space-between !important;
    }





}

/* --- PREMIUM SIDEBAR FILTER STYLES --- */
.canvas-sidebar {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.3s ease;
}

.canvas-sidebar:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.widget-facet {
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.widget-facet:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.facet-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.facet-title:hover {
    opacity: 0.8;
}

.facet-title .h4 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.facet-title .icon {
    font-size: 16px;
    color: #888;
    transition: transform 0.3s ease;
}

.facet-title[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.filter-scroll-list {
    margin-top: 16px;
    list-style: none;
    padding: 0;
}

.filter-scroll-list .list-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.filter-scroll-list .list-item:last-child {
    margin-bottom: 0;
}

/* Links & Labels */
.filter-scroll-list .list-item a,
.filter-scroll-list .list-item .label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 0;
}

.filter-scroll-list .list-item input {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #000;
}

/* Hover States */
.filter-scroll-list .list-item a:hover,
.filter-scroll-list .list-item .label:hover {
    color: #000;
    transform: translateX(4px);
}

/* Count Pills */
.filter-scroll-list .count {
    background-color: #f7f7f7;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    min-width: 32px;
    text-align: center;
    transition: all 0.25s ease;
}

.filter-scroll-list .list-item a:hover .count,
.filter-scroll-list .list-item input:checked ~ .label .count,
.filter-scroll-list .list-item .label:hover .count {
    background-color: #000;
    color: #fff;
}

/* Checked state visual cues */
.filter-scroll-list .list-item input:checked ~ .label {
    color: #000;
    font-weight: 700;
}

/* Custom Scrollbar for Filters */
.filter-scroll-list.scroll-enabled {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 12px;
}

.filter-scroll-list::-webkit-scrollbar {
    width: 5px;
}

.filter-scroll-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.filter-scroll-list::-webkit-scrollbar-thumb {
    background: #dcdcdc;
    border-radius: 10px;
}

.filter-scroll-list::-webkit-scrollbar-thumb:hover {
    background: #a9a9a9;
}

/* --- PREMIUM SORT DROPDOWN STYLES --- */
.tf-control-sorting {
    display: flex;
    align-items: center;
    position: relative;
}

.tf-control-sorting .form-select {
    appearance: none;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 10px 40px 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
    min-width: 240px;
}

.tf-control-sorting .form-select:hover,
.tf-control-sorting .form-select:focus {
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    outline: none;
}

/* --- PREMIUM INFINITE SCROLL LOADER --- */
.premium-loader {
    display: inline-flex;
    align-items: center;
    background: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    font-size: 15px;
    color: #444;
    transition: all 0.3s ease;
}

.premium-loader .spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.15em;
    color: #222 !important;
}

.end-of-results {
    color: #888;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 20px;
}