/* =========================================================
   PARTEA 2 - PRODUCT CATALOG, FILTERS, SEARCH AND SORTING
   ========================================================= */

.rs-catalog{
    position:relative;
    padding:105px 0 115px;
    overflow:hidden;
}

.rs-catalog:before{
    content:"";
    position:absolute;
    width:540px;
    height:540px;
    left:-320px;
    top:150px;
    border-radius:50%;
    background:rgba(22,140,255,.08);
    filter:blur(110px);
    pointer-events:none;
}

.rs-catalog:after{
    content:"";
    position:absolute;
    width:560px;
    height:560px;
    right:-340px;
    top:350px;
    border-radius:50%;
    background:rgba(255,101,0,.07);
    filter:blur(120px);
    pointer-events:none;
}

.rs-section-head{
    position:relative;
    z-index:2;
    max-width:850px;
    margin:0 auto 42px;
    text-align:center;
}

.rs-section-label{
    display:inline-flex;
    align-items:center;
    gap:9px;
    padding:9px 14px;
    border:1px solid rgba(0,231,178,.16);
    border-radius:999px;
    color:#baffed;
    background:rgba(0,231,178,.06);
    font-family:"Orbitron",sans-serif;
    font-size:10px;
    font-weight:800;
    letter-spacing:.13em;
}

.rs-section-label:before{
    content:"";
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--rs-green);
    box-shadow:0 0 14px rgba(0,231,178,.75);
}

.rs-section-head h2{
    margin:19px 0 0;
    font-family:"Orbitron",sans-serif;
    font-size:clamp(34px,5vw,60px);
    line-height:1.08;
    letter-spacing:-.04em;
}

.rs-section-head h2 span{
    display:block;
    margin-top:8px;
    color:transparent;
    background:linear-gradient(90deg,#00e7b2,#168cff 48%,#ff6500);
    background-clip:text;
    -webkit-background-clip:text;
}

.rs-section-head p{
    max-width:760px;
    margin:20px auto 0;
    color:#98a3b4;
    font-size:16px;
    line-height:1.8;
}

.rs-catalog-toolbar{
    position:relative;
    z-index:5;
    display:grid;
    grid-template-columns:1fr auto;
    gap:18px;
    align-items:center;
    margin-bottom:25px;
    padding:17px;
    border:1px solid rgba(255,255,255,.075);
    border-radius:22px;
    background:rgba(10,14,21,.84);
    box-shadow:0 22px 60px rgba(0,0,0,.22);
    backdrop-filter:blur(18px);
}

.rs-filter-list{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
}

.rs-filter-btn{
    min-height:41px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:0 15px;
    border:1px solid rgba(255,255,255,.075);
    border-radius:12px;
    color:#a7b0be;
    background:rgba(255,255,255,.03);
    font-family:"Inter",sans-serif;
    font-size:11px;
    font-weight:900;
    cursor:pointer;
    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.rs-filter-btn:hover{
    color:#fff;
    border-color:rgba(255,255,255,.14);
    transform:translateY(-2px);
}

.rs-filter-btn.active{
    color:#03110d;
    border-color:transparent;
    background:linear-gradient(135deg,#00edb4,#1a9eff);
    box-shadow:0 10px 24px rgba(0,231,178,.11);
}

.rs-filter-btn[data-filter="amd"].active{
    color:#fff;
    background:linear-gradient(135deg,#ff7a1b,#e91f2b);
    box-shadow:0 10px 28px rgba(255,101,0,.16);
}

.rs-filter-btn-icon{
    width:21px;
    height:21px;
    display:grid;
    place-items:center;
    border-radius:6px;
    background:rgba(255,255,255,.08);
    font-family:"Orbitron",sans-serif;
    font-size:8px;
}

.rs-filter-btn.active .rs-filter-btn-icon{
    background:rgba(0,0,0,.12);
}

.rs-toolbar-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.rs-search-wrap{
    position:relative;
    min-width:245px;
}

.rs-search-wrap svg{
    position:absolute;
    left:14px;
    top:50%;
    width:17px;
    height:17px;
    transform:translateY(-50%);
    stroke:#718096;
    pointer-events:none;
}

.rs-search-input{
    width:100%;
    min-height:43px;
    padding:0 15px 0 41px;
    border:1px solid rgba(255,255,255,.075);
    border-radius:12px;
    outline:none;
    color:#fff;
    background:rgba(255,255,255,.035);
    font-family:"Inter",sans-serif;
    font-size:12px;
    font-weight:700;
    transition:.2s ease;
}

.rs-search-input::placeholder{
    color:#687386;
}

.rs-search-input:focus{
    border-color:rgba(0,231,178,.3);
    box-shadow:0 0 0 4px rgba(0,231,178,.06);
}

.rs-sort-select{
    min-height:43px;
    padding:0 35px 0 13px;
    border:1px solid rgba(255,255,255,.075);
    border-radius:12px;
    outline:none;
    color:#c9d0db;
    background-color:#0d121b;
    font-family:"Inter",sans-serif;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
}

.rs-catalog-summary{
    position:relative;
    z-index:3;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:24px;
}

.rs-result-count{
    color:#8d98aa;
    font-size:12px;
    font-weight:700;
}

.rs-result-count strong{
    color:#fff;
}

.rs-stock-legend{
    display:flex;
    align-items:center;
    gap:15px;
    color:#7e899a;
    font-size:10px;
    font-weight:800;
}

.rs-stock-item{
    display:flex;
    align-items:center;
    gap:7px;
}

.rs-stock-dot{
    width:7px;
    height:7px;
    border-radius:50%;
}

.rs-stock-dot.available{
    background:#30ef92;
    box-shadow:0 0 10px rgba(48,239,146,.65);
}

.rs-stock-dot.limited{
    background:#ffad32;
    box-shadow:0 0 10px rgba(255,173,50,.55);
}

.rs-products-grid{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
}

.rs-products-grid.is-filtering{
    opacity:.55;
    transform:translateY(4px);
    transition:.15s ease;
}

.rs-product-card{
    display:flex;
}

.rs-product-card[hidden]{
    display:none !important;
}

.rs-empty-state{
    display:none;
    position:relative;
    z-index:2;
    padding:55px 25px;
    border:1px dashed rgba(255,255,255,.11);
    border-radius:24px;
    text-align:center;
    background:rgba(255,255,255,.025);
}

.rs-empty-state.visible{
    display:block;
}

.rs-empty-icon{
    width:60px;
    height:60px;
    display:grid;
    place-items:center;
    margin:0 auto 17px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    color:#7f8999;
    background:rgba(255,255,255,.035);
}

.rs-empty-icon svg{
    width:27px;
    height:27px;
    stroke:currentColor;
}

.rs-empty-state h3{
    margin:0;
    font-family:"Orbitron",sans-serif;
    font-size:20px;
}

.rs-empty-state p{
    margin:10px 0 0;
    color:#808b9d;
    font-size:13px;
}

.rs-reset-filter{
    margin-top:19px;
    padding:11px 16px;
    border:1px solid rgba(0,231,178,.18);
    border-radius:11px;
    color:#baffed;
    background:rgba(0,231,178,.07);
    font-family:"Inter",sans-serif;
    font-size:11px;
    font-weight:900;
    cursor:pointer;
}

.rs-catalog-note{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:17px;
    align-items:center;
    margin-top:28px;
    padding:19px 21px;
    border:1px solid rgba(0,231,178,.11);
    border-radius:20px;
    background:
        linear-gradient(90deg,rgba(0,231,178,.06),rgba(22,140,255,.04)),
        rgba(255,255,255,.018);
}

.rs-catalog-note-icon{
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:12px;
    color:var(--rs-green);
    background:rgba(0,231,178,.08);
}

.rs-catalog-note-icon svg{
    width:20px;
    height:20px;
    stroke:currentColor;
}

.rs-catalog-note strong{
    display:block;
    font-size:13px;
}

.rs-catalog-note p{
    margin:5px 0 0;
    color:#7f8a9c;
    font-size:11px;
    line-height:1.55;
}

.rs-custom-config-btn{
    padding:12px 15px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:11px;
    color:#fff;
    text-decoration:none;
    background:rgba(255,255,255,.045);
    font-size:11px;
    font-weight:900;
    white-space:nowrap;
}

@media(max-width:1120px){
    .rs-catalog-toolbar{
        grid-template-columns:1fr;
    }

    .rs-toolbar-actions{
        justify-content:space-between;
    }

    .rs-search-wrap{
        flex:1;
    }

    .rs-products-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:720px){
    .rs-catalog{
        padding:78px 0 90px;
    }

    .rs-section-head{
        margin-bottom:31px;
    }

    .rs-section-head h2{
        font-size:35px;
    }

    .rs-section-head p{
        font-size:14px;
    }

    .rs-catalog-toolbar{
        padding:13px;
        border-radius:17px;
    }

    .rs-filter-list{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        width:100%;
    }

    .rs-filter-btn{
        width:100%;
        padding:0 10px;
    }

    .rs-toolbar-actions{
        align-items:stretch;
        flex-direction:column;
    }

    .rs-search-wrap{
        width:100%;
        min-width:0;
    }

    .rs-sort-select{
        width:100%;
    }

    .rs-catalog-summary{
        align-items:flex-start;
        flex-direction:column;
        gap:12px;
    }

    .rs-stock-legend{
        flex-wrap:wrap;
    }

    .rs-products-grid{
        grid-template-columns:1fr;
    }

    .rs-catalog-note{
        grid-template-columns:auto 1fr;
    }

    .rs-custom-config-btn{
        grid-column:1 / -1;
        text-align:center;
    }
}