/**
 * Mido Product Categories Widget RTL Styles
 * For Arabic and other RTL languages
 */

/* RTL Layout Adjustments */
.mido-product-categories-container {
    direction: rtl;
    text-align: right;
}

/* RTL Category Item Adjustments */
.mido-category-item {
    text-align: right;
}

/* RTL Category Title */
.mido-category-title {
    text-align: right;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Arial Unicode MS', 'Microsoft YaHei', 'SimSun', 'SimHei';
}

/* RTL Category Count */
.mido-category-count {
    text-align: right;
    direction: rtl;
}

/* RTL Category Link */
.mido-category-link {
    direction: rtl;
}

/* RTL Image Container */
.mido-category-image {
    direction: rtl;
}

/* RTL Hover Effects */
.mido-category-item:hover {
    transform: translateY(-5px) scaleX(-1);
}

.mido-category-item:hover .mido-category-image img {
    transform: scale(1.05) scaleX(-1);
}

/* RTL Responsive Adjustments */
@media (max-width: 768px) {
    .mido-product-categories-container {
        direction: rtl;
    }
    
    .mido-category-item {
        text-align: right;
    }
}

/* RTL Editor Notices */
.elementor-editor-notice {
    text-align: right;
    direction: rtl;
}

.mido-error {
    text-align: right;
    direction: rtl;
}

/* Arabic Font Support */
.rtl .mido-category-title,
.rtl .mido-category-count {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Arial Unicode MS', 'Microsoft YaHei', 'SimSun', 'SimHei', 'Noto Sans Arabic', 'Amiri', 'Scheherazade', 'Lateef';
}

/* RTL Grid Layout */
.rtl .mido-product-categories-container.columns-2 .mido-category-item:nth-child(2n) {
    margin-right: 10px;
    margin-left: 0;
}

.rtl .mido-product-categories-container.columns-3 .mido-category-item:nth-child(3n) {
    margin-right: 10px;
    margin-left: 0;
}

.rtl .mido-product-categories-container.columns-4 .mido-category-item:nth-child(4n) {
    margin-right: 10px;
    margin-left: 0;
}

/* RTL Animation Adjustments */
@keyframes rtl-fade-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rtl .mido-category-item {
    animation: rtl-fade-in 0.5s ease-out;
}

/* RTL Box Shadow Adjustments */
.rtl .mido-category-item {
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
}

.rtl .mido-category-item:hover {
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.15);
}

/* RTL Border Radius Adjustments for RTL Layout */
.rtl .mido-category-image img {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* RTL Text Shadow for Better Readability */
.rtl .mido-category-title {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* RTL Loading States */
.rtl .mido-category-item.loading {
    direction: rtl;
    text-align: right;
}

/* RTL Empty State */
.rtl .mido-category-item.empty {
    direction: rtl;
    text-align: center;
}

/* RTL Category Description Support */
.rtl .mido-category-description {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Arial Unicode MS', 'Microsoft YaHei', 'SimSun', 'SimHei', 'Noto Sans Arabic', 'Amiri', 'Scheherazade', 'Lateef';
}

/* RTL Category Meta Information */
.rtl .mido-category-meta {
    direction: rtl;
    text-align: right;
}

/* RTL Category Badge */
.rtl .mido-category-badge {
    direction: rtl;
    right: 10px;
    left: auto;
}

/* RTL Category Overlay */
.rtl .mido-category-overlay {
    direction: rtl;
    text-align: right;
}

/* RTL Category Navigation */
.rtl .mido-category-navigation {
    direction: rtl;
}

.rtl .mido-category-navigation .prev {
    float: right;
}

.rtl .mido-category-navigation .next {
    float: left;
}

/* RTL Category Filter */
.rtl .mido-category-filter {
    direction: rtl;
    text-align: right;
}

/* RTL Category Search */
.rtl .mido-category-search {
    direction: rtl;
    text-align: right;
}

/* RTL Category Sort */
.rtl .mido-category-sort {
    direction: rtl;
    text-align: right;
}

/* RTL Category Pagination */
.rtl .mido-category-pagination {
    direction: rtl;
    text-align: center;
}

/* RTL Category Grid/List Toggle */
.rtl .mido-category-view-toggle {
    direction: rtl;
    text-align: right;
}

/* RTL Category Loading Spinner */
.rtl .mido-category-loading {
    direction: rtl;
}

/* RTL Category Error States */
.rtl .mido-category-error {
    direction: rtl;
    text-align: center;
}

/* RTL Category Success States */
.rtl .mido-category-success {
    direction: rtl;
    text-align: center;
}

/* RTL Category Info States */
.rtl .mido-category-info {
    direction: rtl;
    text-align: center;
}

/* RTL Category Warning States */
.rtl .mido-category-warning {
    direction: rtl;
    text-align: center;
} 