/* ========================================
   FILTER SIDEBAR REDESIGN
   Modern Filter UI with Better Mobile Support
   ======================================== */

/* Sidebar Container */
.sidebar {
    background: transparent;
}

/* Widget Container */
.widget {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.widget:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

/* Widget Heading */
.widget_heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    font-family: 'Quintessential', cursive;
    position: relative;
    padding-bottom: 12px;
}

.widget_heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Search Input */
.widget .uk-input {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px 12px 44px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.widget .uk-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.widget .uk-form-icon {
    color: #667eea;
}

/* Categories List */
.categories-list,
.stores-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Category/Store Item */
.category-item,
.store-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.category-item:hover,
.store-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-color: #667eea;
    transform: translateX(4px);
}

/* Checkbox */
.category-checkbox,
.store-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #667eea;
    border-radius: 6px;
}

/* Category/Store Name */
.category-name,
.store-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    transition: color 0.3s ease;
}

.category-item:hover .category-name,
.store-item:hover .store-name {
    color: #1e293b;
}

/* Checked State */
.category-checkbox:checked + .category-name,
.store-checkbox:checked + .store-name {
    color: #667eea;
    font-weight: 700;
}

.category-checkbox:checked ~ *,
.store-checkbox:checked ~ * {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: #667eea;
}

/* Other Filters */
.otherFilters {
    padding: 0;
}

.otherFilters li {
    margin-bottom: 12px;
    list-style: none;
}

.otherFilters label {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.otherFilters label:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-color: #667eea;
    transform: translateX(4px);
}

.otherFilters .uk-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #667eea;
}

.otherFilters .uk-checkbox:checked + * {
    color: #667eea;
}

/* View More Button */
.widget .uk-button-default {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.widget .uk-button-default:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Mobile Filter Button */
.fltr {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border: none !important;
    font-weight: 700 !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
}

.fltr:hover {
    background: linear-gradient(135deg, #764ba2, #667eea) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4) !important;
}

.fltr i {
    color: white !important;
}

/* Filter Tags */
.filterTag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid #667eea;
    border-radius: 20px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #667eea;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filterTag:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.05);
}

.filterTag p {
    margin: 0;
}

.filterTag i {
    font-size: 0.9rem;
}

/* Mobile Modal */
#searchModal .uk-modal-dialog {
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 30px 20px;
    max-height: 90vh;
    overflow-y: auto;
}

#searchModal .uk-modal-close {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #667eea;
    transition: all 0.3s ease;
}

#searchModal .uk-modal-close:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 960px) {
    .widget {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 16px;
    }
    
    .widget_heading {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .category-item,
    .store-item,
    .otherFilters label {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .widget {
        padding: 18px;
        margin-bottom: 16px;
    }
    
    .widget_heading {
        font-size: 1rem;
    }
    
    .category-item,
    .store-item {
        padding: 10px 12px;
    }
    
    .category-name,
    .store-name {
        font-size: 0.9rem;
    }
}
