/* ===== FILTER SIDEBAR STYLES ===== */

/* Sidebar Container */
/* Sidebar Container styles removed (replaced by Bootstrap offcanvas) */

/* Header Section */
/* Header and Close Button styles removed (replaced by Bootstrap offcanvas-header) */

/* Content Area */
/* Content wrapper removed */

.side-navigation {
    height: 100%;
    width: 100%;
}

.side-navigation::-webkit-scrollbar {
    width: 4px;
}

.side-navigation::-webkit-scrollbar-track {
    background: transparent;
}

.side-navigation::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 10px;
}

.side-navigation::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Feature Navigation */
.feature {
    padding: 0 !important;
}

/* Section Titles */
.shop-sidebar h4 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Search Section */
.shop-sidebar:first-child {
    padding: 0 !important;
    background: transparent;
}

.input-group-sm {
    margin: 1rem 0 !important;
}

.input-group-sm .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px 0 0 8px !important;
    padding: 10px 16px;
    font-size: 13px;
    font-family: "Gilroy", sans-serif;
    transition: border-color 0.2s ease;
    background: #fafafa;
}

.input-group-sm .form-control:focus {
    border-color: #1e3a5f;
    box-shadow: none;
    outline: none;
    background: #ffffff;
}

.input-group-sm .form-control::placeholder {
    color: #999;
    font-weight: 300;
}

.input-group-append .filterOn {
    border-radius: 0 8px 8px 0 !important;
    padding: 10px 20px !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    border: none;
}

/* Categories Section */
.shop-sidebar.mb-4 {
    padding: 0 20px;
    margin-bottom: 20px !important;
}

.shop-sidebar .title {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.shop-sidebar .d-flex.justify-content-between {
    padding: 12px 0;
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
    align-items: center;
}

.shop-sidebar .filterOn i {
    color: #666;
    font-size: 16px;
    transition: color 0.2s ease;
}

.shop-sidebar .filterOn:hover i {
    color: #1e3a5f;
}

/* Category List */
.scroll-style {
    height: auto !important;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    list-style: none;
}

.scroll-style li {
    margin-bottom: 0 !important;
    padding: 0;
}

.scroll-style li label {
    display: flex;
    align-items: center;
    padding: 8px 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    font-family: "Gilroy", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    position: relative;
}

.scroll-style li label:hover {
    color: #1e3a5f;
}

.scroll-style li label input[type="checkbox"] {
    margin-right: 10px !important;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #1e3a5f;
    border-radius: 3px;
}

.scroll-style li label input[type="checkbox"]:checked + span {
    color: #1e3a5f;
    font-weight: 500;
}

/* Custom Checkbox Styling */
.scroll-style li label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #ccc;
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.scroll-style li label input[type="checkbox"]:hover {
    border-color: #1e3a5f;
}

.scroll-style li label input[type="checkbox"]:checked {
    background: #1e3a5f;
    border-color: #1e3a5f;
}

.scroll-style li label input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
}

/* Price Filter Section */
.filter-price-content {
    padding: 0 !important;
}

.filter-price-content .d-flex.justify-content-between {
    padding: 12px 0;
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
    align-items: center;
}

.filter-price-content h4 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0 !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Price Slider */
.price-slider {
    margin: 16px 0 12px;
    height: 4px !important;
    background: #e8e8e8;
    border-radius: 10px;
    border: none !important;
}

.price-slider .ui-slider-range {
    background: #1e3a5f;
    border-radius: 10px;
}

.price-slider .ui-slider-handle {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 2px solid #1e3a5f !important;
    cursor: pointer;
    top: -6px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.price-slider .ui-slider-handle:hover,
.price-slider .ui-slider-handle:focus {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Price Display */
.filter-price-wapper {
    padding: 0;
}

.filter-price-cont {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
    background: transparent;
    border-radius: 0;
    font-family: "Gilroy", sans-serif;
}

.filter-price-cont span {
    color: #666;
    font-size: 13px;
    font-weight: 400;
}

.filter-price-cont .input-type {
    display: inline-block;
}

.filter-price-cont input {
    border: 1px solid #e0e0e0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #1e3a5f;
    background: #fafafa;
    text-align: center;
    width: 70px;
    font-family: Arial, sans-serif;
}

/* Divider Between Sections */
/* .mb-3 {
    padding: 0 20px;
} */

/* Responsive Adjustments */
/* Legacy animations and responsive queries removed */

/* ===== DESKTOP SHOP PAGE FILTER STYLES ===== */

/* Shop Sidebar Wrapper */
.shop-sidebar-wrap {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #eee;
}

/* Shop Sidebar Sections */
.shop-sidebar-wrap .shop-sidebar {
    padding: 0;
    margin-bottom: 16px;
}

.shop-sidebar-wrap .shop-sidebar h4 {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Search Input for Desktop */
.shop-sidebar-wrap .input-group-sm {
    margin: 12px 0 20px !important;
}

.shop-sidebar-wrap .input-group-sm .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px 0 0 8px !important;
    padding: 8px 16px !important;
    font-size: 13px;
    font-family: "Gilroy", sans-serif;
    transition: border-color 0.2s ease;
    background: #fafafa;
}

.shop-sidebar-wrap .input-group-sm .form-control:focus {
    border-color: #1e3a5f;
    box-shadow: none;
    outline: none;
    background: #ffffff;
}

.shop-sidebar-wrap .input-group-append .filterOn,
.shop-sidebar-wrap .input-group-append .btn {
    border-radius: 0 8px 8px 0 !important;
    padding: 10px 8px !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

/* Section Headers */
.shop-sidebar-wrap .shop-sidebar.mb-30,
.shop-sidebar-wrap .shop-sidebar.mb-2 {
    margin-bottom: 20px !important;
}

.shop-sidebar-wrap .shop-sidebar .d-flex.justify-content-between {
    padding: 12px 0;
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
    align-items: center;
}

.shop-sidebar-wrap .shop-sidebar .title {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Checkbox Lists */
.shop-sidebar-wrap .scroll-style,
.shop-sidebar-wrap ul {
    height: auto !important;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    list-style: none;
}

.shop-sidebar-wrap ul li {
    margin-bottom: 0 !important;
    padding: 0;
}

.shop-sidebar-wrap ul li label {
    display: flex;
    align-items: center;
    padding: 8px 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    font-family: "Gilroy", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    position: relative;
}

.shop-sidebar-wrap ul li label:hover {
    color: #1e3a5f;
}

.shop-sidebar-wrap ul li label input[type="checkbox"] {
    margin-right: 10px !important;
    width: 16px;
    height: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid #ccc;
    border-radius: 3px;
    background: #ffffff;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.shop-sidebar-wrap ul li label input[type="checkbox"]:hover {
    border-color: #1e3a5f;
}

.shop-sidebar-wrap ul li label input[type="checkbox"]:checked {
    background: #1e3a5f;
    border-color: #1e3a5f;
}

.shop-sidebar-wrap ul li label input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
}

.shop-sidebar-wrap ul li label input[type="checkbox"]:checked + span {
    color: #1e3a5f;
    font-weight: 500;
}

/* Price Filter */
.shop-sidebar-wrap .filter-price-content {
    padding: 0 !important;
}

.shop-sidebar-wrap .filter-price-content .d-flex.justify-content-between {
    padding: 12px 0;
    background: transparent;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}

.shop-sidebar-wrap .price-slider {
    margin: 16px 0 12px;
    height: 4px !important;
    background: #e8e8e8;
    border-radius: 10px;
    border: none !important;
}

.shop-sidebar-wrap .price-slider .ui-slider-range {
    background: #1e3a5f;
    border-radius: 10px;
}

.shop-sidebar-wrap .price-slider .ui-slider-handle {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 2px solid #1e3a5f !important;
    cursor: pointer;
    top: -6px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.shop-sidebar-wrap .price-slider .ui-slider-handle:hover,
.shop-sidebar-wrap .price-slider .ui-slider-handle:focus {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.shop-sidebar-wrap .filter-price-wapper {
    padding: 0;
}

.shop-sidebar-wrap .filter-price-cont {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
    background: transparent;
    font-family: "Gilroy", sans-serif;
}

.shop-sidebar-wrap .filter-price-cont span {
    color: #666;
    font-size: 13px;
    font-weight: 400;
}

.shop-sidebar-wrap .filter-price-cont input {
    border: 1px solid #e0e0e0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #1e3a5f;
    background: #fafafa;
    text-align: center;
    width: 70px;
    font-family: Arial, sans-serif;
}

/* Best Product Section */
.shop-sidebar-wrap .sidbar-product {
    margin-bottom: 20px !important;
}

.shop-sidebar-wrap .sidbar-product .title {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.shop-sidebar-wrap .sidbar-product-inner {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}

.shop-sidebar-wrap .sidbar-product-inner:last-child {
    border-bottom: none;
}

/* ===== RTL SPECIFIC ADJUSTMENTS ===== */
[dir="rtl"] .input-group-sm .form-control,
[dir="rtl"] .shop-sidebar-wrap .input-group-sm .form-control {
    border-radius: 0 8px 8px 0 !important;
}

[dir="rtl"] .input-group-append .filterOn,
[dir="rtl"] .shop-sidebar-wrap .input-group-append .filterOn,
[dir="rtl"] .shop-sidebar-wrap .input-group-append .btn {
    border-radius: 8px 0 0 8px !important;
}

/* Fix Checkbox Gap in RTL */
[dir="rtl"] .scroll-style li label input[type="checkbox"],
[dir="rtl"] .shop-sidebar-wrap ul li label input[type="checkbox"] {
    margin-right: 0 !important;
    margin-left: 10px !important;
}

/* Ensure proper text alignment for filter items */
[dir="rtl"] .shop-sidebar-wrap ul li label {
    text-align: right;
}

[dir="rtl"] .shop-sidebar .title,
[dir="rtl"] .shop-sidebar-wrap .shop-sidebar .title,
[dir="rtl"] .shop-sidebar h4,
[dir="rtl"] .shop-sidebar-wrap .shop-sidebar h4,
[dir="rtl"] .best-product-title,
[dir="rtl"] .sidbar-product .title {
    text-align: right;
}

/* Move the blue decoration line to the right in RTL */
[dir="rtl"] .shop-sidebar h4::before,
[dir="rtl"] .shop-sidebar h4::after,
[dir="rtl"] .title::before,
[dir="rtl"] .title::after,
[dir="rtl"] .best-product-title::before,
[dir="rtl"] .best-product-title::after,
[dir="rtl"] .shop-sidebar .title::before,
[dir="rtl"] .shop-sidebar .title::after {
    right: 0;
    left: auto;
    margin-right: 0;
    margin-left: auto;
}

/* Fix "Best Product" text alignment in RTL */
/* Overriding !important from inline styles/Shop.cshtml */
[dir="rtl"] .sidebar-best-info,
[dir="rtl"] .sidebar-best-info .price-box {
    text-align: right !important;
}

/* Ensure flex direction is correct for sidebar products in RTL if needed, though row usually handles it */
[dir="rtl"] .sidbar-product-inner {
    direction: rtl;
}
