

/* Enhanced Filter Sidebar Styles */
.widget-area {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.widget {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px !important;
    padding-bottom: 20px !important;
}

.widget:last-of-type {
    border-bottom: none;
    margin-bottom: 0 !important;
}

.widget .title {
    margin-bottom: 0;
}

.widget .accordion-button {
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #003fa2;
    box-shadow: none !important;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.widget .accordion-button:hover {
    color: #47639a !important;
}

.widget .accordion-button:not(.collapsed) {
    background: transparent;
    color: #23375d !important;
}

.accordion-body {
    padding: 0 !important;
}

/* Custom checkbox styling */
.custom-checkbox {
    list-style: none;
    padding: 7px;
    margin: 7px;
}

.custom-checkbox .form-check {
    margin-bottom: 6px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
}

.custom-checkbox .form-check:hover {
    background: #f8fafc;
}

.custom-checkbox .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 0;
    border: 2px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox .form-check-input:hover {
    border-color: #23375d;
}

.custom-checkbox .form-check-input:checked {
    background-color: #23375d;
    border-color: #23375d;
}

.custom-checkbox .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    border-color: #23375d;
}

.custom-checkbox label {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-left: 10px;
    font-size: 14px;
    color: #475569;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.custom-checkbox .form-check:hover label {
    color: #1e293b;
}

.custom-checkbox .form-check-input:checked ~ label {
    color: #1e293b;
    font-weight: 500;
}

.custom-checkbox .qty {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Select dropdown styling */
.widget-select .form-select,
.widget-select .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-size: 16px;
}

.widget-select .form-select:hover,
.widget-select .form-control:hover {
    border-color: #cbd5e1;
}

.widget-select .form-select:focus,
.widget-select .form-control:focus {
    border-color: #23375d;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Price inputs */
.widget-price .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.widget-price .form-control:hover {
    border-color: #cbd5e1;
}

.widget-price .form-control:focus {
    border-color: #23375d;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.widget-price label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.widget-price .form-group {
    margin-bottom: 20px;
}

.price-item {
    margin-top: 20px;
}

.price-value {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.price-value .color-dark {
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.filter-price-range {
    color: #23375d;
    font-weight: 600;
}

/* CTA buttons */
.cta {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 16px 24px !important;
    margin: 24px -24px -24px -24px;
    border-top: 2px solid #f1f5f9;
    border-radius: 0 0 12px 12px;
    gap: 12px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta .btn-primary {
    background: #23375d;
    border-color: #23375d;
    color: white;
}

.cta .btn-primary:hover {
    background: #ee1243;
    border-color: #ee1243;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cta .btn-outline-primary {
    background: transparent;
    border-color: #e5e7eb;
    color: #475569;
}

.cta .btn-outline-primary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.cta .btn i {
    font-size: 14px;
}

/* Selected count badge */
.filter-badge {
    display: inline-block;
    background: #23375d;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    margin-left: auto;
    line-height: 1;
}

/* Loading state */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #23375d;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-container p {
    margin-top: 15px;
    color: #64748b;
    font-size: 16px;
}

/* Widget banner */
.widget-banner {
    margin-top: 24px;
}

.widget-banner img {
    border-radius: 12px;
    width: 100%;
    transition: transform 0.3s ease;
}

.widget-banner a:hover img {
    transform: scale(1.02);
}

/* Offcanvas header */
.offcanvas-header {
    border-bottom: 2px solid #f1f5f9;
    padding: 20px 24px;
}

.offcanvas-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .widget-area {
        box-shadow: none;
        padding: 0;
        border-radius: 0;
    }
    
    .offcanvas-body {
        padding: 24px !important;
    }

    .cta {
        margin: 24px -24px -24px -24px;
        padding: 16px 24px !important;
    }
}

@media (max-width: 576px) {
    .widget .accordion-button {
        font-size: 15px;
    }

    .custom-checkbox label {
        font-size: 13px;
    }

    .cta .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Animation for filter changes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.widget.animate {
    animation: fadeIn 0.3s ease;
}