/* Filter Sidebar Styles */
.filter-sidebar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 30px;
}

.shop-widget {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.shop-widget:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.shop-widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: right;
}

[dir="rtl"] .shop-widget-title {
    text-align: right;
}

[dir="ltr"] .shop-widget-title {
    text-align: left;
}

/* Filter Items */
.filter-item {
    margin-bottom: 12px;
}

.filter-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.filter-label:hover {
    color: #3498db;
}

.filter-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-left: 12px;
    position: relative;
    transition: all 0.3s ease;
}

[dir="rtl"] .checkmark {
    margin-left: 12px;
    margin-right: 12px;
}

[dir="ltr"] .checkmark {
    margin-left: 12px;
    margin-right: 12px;
}

.filter-label input[type="checkbox"]:checked + .checkmark {
    background-color: #3498db;
    border-color: #3498db;
}

.filter-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.filter-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #555;
    flex: 1;
}

/* Price Filter */
.price-filter {
    margin-top: 15px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.price-separator {
    color: #999;
    font-weight: 500;
}

.apply-price-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-price-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Sort Select */
.sort-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

/* Latest Products */
.latest-products {
    margin-top: 30px;
}

.latest-product-card {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.latest-product-card:last-child {
    border-bottom: none;
}

.latest-product-card:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 0 -15px;
}

.product-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-left: 15px;
    flex-shrink: 0;
}

[dir="rtl"] .product-image {
    margin-left: 0;
    margin-right: 15px;
}

[dir="ltr"] .product-image {
    margin-left: 15px;
    margin-right: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    margin-left: 12px;
    margin-right: 12px;
}

.product-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.product-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #e74c3c;
    font-weight: 600;
    margin: 0;
}

/* Clear Filters Button */
.clear-filters {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.clear-filters-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* RTL Support */
[dir="rtl"] .filter-sidebar {
    text-align: right;
}

[dir="ltr"] .filter-sidebar {
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-sidebar {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .shop-widget-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .price-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .latest-product-card {
        padding: 12px 0;
    }
    
    .product-image {
        width: 50px;
        height: 50px;
    }
}

/* Arabic Font Support */
[dir="rtl"] .shop-widget-title,
[dir="rtl"] .filter-text,
[dir="rtl"] .product-title,
[dir="rtl"] .product-price {
    font-family: 'GE SS Two', 'Arial', sans-serif;
}

/* English Font Support */
[dir="ltr"] .shop-widget-title,
[dir="ltr"] .filter-text,
[dir="ltr"] .product-title,
[dir="ltr"] .product-price {
    font-family: 'Montserrat', 'Arial', sans-serif;
}
