.sfilter-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    position: fixed;
    top: 0; left: 0;
    z-index: 1050;
    overflow: hidden;
    box-sizing: border-box;
}

.sfilter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f1f1;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    flex-shrink: 0;
}
.sfilter-close-btn { font-size: 20px; cursor: pointer; color: #333; }
.sfilter-title { font-size: 18px; font-weight: 700; color: #111; text-align: center; }

.sfilter-body {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden; 
    background: #ffffff; 
    width: 100%;
}

.sfilter-sidebar {
    width: 35%;
    background: #f8f9fa;
    height: 100%;      
    overflow-y: auto;  
    overflow-x: hidden;
    border-right: 1px solid #eee;
    padding: 0 0 60px 0;
    margin: 0;
    scrollbar-width: none; 
}

.sfilter-sidebar::-webkit-scrollbar {
    display: none;
}
.sfilter-tab-item {
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: all 0.2s;
    background: #f8f9fa; 
}
.sfilter-tab-item.active {
    background: #ffffff;
    color: #c91414;
    font-weight: 700;
    border-left: 4px solid #c91414;
}

.sfilter-content {
    width: 65%;
    background: #ffffff;
    padding: 20px 15px 50px 15px;
    height: 100%;
    overflow-y: auto;
}
.sfilter-tab-pane { display: none; animation: sfilterFadeIn 0.3s ease; }
.sfilter-tab-pane.active { display: block; }
@keyframes sfilterFadeIn { from { opacity: 0; transform: translateX(5px); } to { opacity: 1; transform: translateX(0); } }

.sfilter-pane-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sfilter-select, .sfilter-search-box input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.sfilter-select:focus, .sfilter-search-box input:focus {
    border-color: #c91414;
    box-shadow: 0 0 5px rgba(201, 20, 20, 0.2);
}

.sfilter-search-box { position: relative; }
.sfilter-search-box i { position: absolute; left: 12px; top: 12px; color: #888; }
.sfilter-search-box input { padding-left: 35px; }

.sfilter-custom-checkbox {
    display: block; position: relative; padding-left: 30px; margin-bottom: 15px;
    cursor: pointer; font-size: 14px; font-weight: 500; color: #444;
}
.sfilter-custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.sfilter-checkmark {
    position: absolute; top: -2px; left: 0; height: 20px; width: 20px;
    background-color: #fff; border: 2px solid #ddd; border-radius: 4px; transition: 0.2s;
}
.sfilter-custom-checkbox input:checked ~ .sfilter-checkmark { background-color: #c91414; border-color: #c91414; }
.sfilter-checkmark:after {
    content: ""; position: absolute; display: none;
    left: 6px; top: 2px; width: 5px; height: 10px;
    border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.sfilter-custom-checkbox input:checked ~ .sfilter-checkmark:after { display: block; }

.sfilter-pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.sfilter-pill {
    padding: 6px 14px; border: 1px solid #ddd; border-radius: 20px;
    font-size: 12px; font-weight: 600; color: #555; cursor: pointer; transition: 0.3s;
}
.sfilter-pill.active { background: #fff1f1; border-color: #c91414; color: #c91414; }

.sfilter-price-display {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.sfilter-price-box {
    background: #f8f9fa; padding: 8px; border-radius: 6px; width: 45%; text-align: center; border: 1px solid #eee;
}
.sfilter-price-box small { display: block; font-size: 10px; color: #888; text-transform: uppercase; margin-bottom: 2px; }
.sfilter-price-box span { font-size: 14px; font-weight: 700; color: #111; }
.sfilter-price-divider { color: #888; font-weight: bold; }

.sfilter-dual-range-slider {
    position: relative; width: 100%; height: 5px; background: #ddd; border-radius: 5px; margin-top: 10px;
}
.sfilter-slider-track {
    position: absolute; height: 100%; background: #c91414; border-radius: 5px; z-index: 1;
}
.sfilter-dual-range-slider input[type="range"] {
    position: absolute; width: 100%; height: 5px; top: 0; background: none;
    pointer-events: none; -webkit-appearance: none; z-index: 2; outline: none; margin: 0; padding: 0;
}
.sfilter-dual-range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto; -webkit-appearance: none;
    width: 22px; height: 22px; background: #fff; border: 2px solid #c91414;
    border-radius: 50%; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sfilter-footer {
    position: fixed;
    bottom: 0;
    background: #fff; 
    padding: 12px 15px; 
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    flex-shrink: 0; 
    width: 100%;
    box-sizing: border-box;
}

.sfilter-footer-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 12px; 
    width: 100%;
}

.sfilter-btn-clear, .sfilter-btn-apply {
    flex: 1; 
    padding: 12px 5px; 
    border-radius: 8px; 
    font-size: 14px; 
    font-weight: 700; 
    cursor: pointer;
    text-align: center;
    white-space: nowrap; 
    transition: 0.3s;
    box-sizing: border-box;
}

.sfilter-btn-clear {
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
}
.sfilter-btn-clear:hover { background: #f8f9fa; }

.sfilter-btn-apply {
    background: #c91414; 
    color: #fff; 
    border: 1px solid #c91414; 
    box-shadow: 0 4px 10px rgba(201, 20, 20, 0.2); 
}
.sfilter-btn-apply:hover { background: #a81010; border-color: #a81010; }