@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo/Cairo-VariableFont_slnt,wght.ttf") format("truetype");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

html[dir="rtl"] body,
html[dir="rtl"] body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.flaticon):not([class^="flaticon-"]):not([class*=" flaticon-"]):not(.glyphicon):not([class^="glyphicon-"]):not([class*=" glyphicon-"]) {
    font-family: "Cairo", Arial, sans-serif !important;
}

html[dir="rtl"] body .fa,
body[dir="rtl"] .fa,
body.rtl .fa {
    font-family: FontAwesome;
}

html[dir="rtl"] body .fas,
html[dir="rtl"] body .far,
body[dir="rtl"] .fas,
body[dir="rtl"] .far,
body.rtl .fas,
body.rtl .far {
    font-family: "Font Awesome 5 Free";
}

html[dir="rtl"] body .fab,
body[dir="rtl"] .fab,
body.rtl .fab {
    font-family: "Font Awesome 5 Brands";
}

html[dir="rtl"] body .flaticon,
html[dir="rtl"] body [class^="flaticon-"],
html[dir="rtl"] body [class*=" flaticon-"],
body[dir="rtl"] .flaticon,
body[dir="rtl"] [class^="flaticon-"],
body[dir="rtl"] [class*=" flaticon-"],
body.rtl .flaticon,
body.rtl [class^="flaticon-"],
body.rtl [class*=" flaticon-"] {
    font-family: Flaticon;
}

html[dir="rtl"] body .glyphicon,
html[dir="rtl"] body [class^="glyphicon-"],
html[dir="rtl"] body [class*=" glyphicon-"],
body[dir="rtl"] .glyphicon,
body[dir="rtl"] [class^="glyphicon-"],
body[dir="rtl"] [class*=" glyphicon-"],
body.rtl .glyphicon,
body.rtl [class^="glyphicon-"],
body.rtl [class*=" glyphicon-"] {
    font-family: "Glyphicons Halflings";
}

html[dir="rtl"] .hm_new_theme_product_details,
body.rtl .hm_new_theme_product_details {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .hm_new_theme_product_details .hm_product_info,
body.rtl .hm_new_theme_product_details .hm_product_info,
html[dir="rtl"] .hm_new_theme_product_details .hm_product_info h2,
body.rtl .hm_new_theme_product_details .hm_product_info h2,
html[dir="rtl"] .hm_new_theme_product_details .item_text,
body.rtl .hm_new_theme_product_details .item_text,
html[dir="rtl"] .hm_new_theme_product_details .hm_product_meta,
body.rtl .hm_new_theme_product_details .hm_product_meta,
html[dir="rtl"] .hm_new_theme_product_details .tab-content,
body.rtl .hm_new_theme_product_details .tab-content,
html[dir="rtl"] .hm_new_theme_product_details .sidebar,
body.rtl .hm_new_theme_product_details .sidebar {
    text-align: right;
}

html[dir="rtl"] .hm_new_theme_product_details .quantity-spinner,
body.rtl .hm_new_theme_product_details .quantity-spinner {
    margin-left: 15px;
    margin-right: 0;
}

html[dir="rtl"] .hm_new_theme_product_details a.add-fav,
body.rtl .hm_new_theme_product_details a.add-fav {
    margin-left: 0;
    margin-right: 11px;
}

html[dir="rtl"] .hm_new_theme_product_details .hm_pro_tab .reviews-container .review-box,
body.rtl .hm_new_theme_product_details .hm_pro_tab .reviews-container .review-box {
    padding-left: 0;
    padding-right: 100px;
}

html[dir="rtl"] .hm_new_theme_product_details .hm_pro_tab .reviews-container .rev-thumb,
body.rtl .hm_new_theme_product_details .hm_pro_tab .reviews-container .rev-thumb {
    left: auto;
    right: 0;
}

html[dir="rtl"] .hm_new_theme_product_details .hm_shop_single h1.hm_heading,
body.rtl .hm_new_theme_product_details .hm_shop_single h1.hm_heading {
    text-align: right;
}

html[dir="rtl"] .hm_new_theme_product_details .hm_pro_tab .alert ul,
body.rtl .hm_new_theme_product_details .hm_pro_tab .alert ul {
    padding-left: 0;
    padding-right: 18px;
}

@media (max-width: 480px) {
    html[dir="rtl"] .hm_new_theme_product_details .hm_pro_tab .reviews-container .review-box,
    body.rtl .hm_new_theme_product_details .hm_pro_tab .reviews-container .review-box {
        padding-right: 0;
    }
}

html[dir="rtl"] .nt-error-page,
body.rtl .nt-error-page {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .nt-error-page .error_page form input,
body.rtl .nt-error-page .error_page form input {
    padding-left: 50px;
    padding-right: 20px;
}

html[dir="rtl"] .nt-error-page .error_page form button,
body.rtl .nt-error-page .error_page form button {
    left: 20px;
    right: auto;
}

html[dir="rtl"] .nt-error-page .error_data,
body.rtl .nt-error-page .error_data {
    text-align: right;
}

/* ── Blog sidebar search: RTL overrides ── */

html[dir="rtl"] .sidebar .sidebar_search .form-group input[type="text"],
html[dir="rtl"] .sidebar .sidebar_search .form-group input[type="search"] {
    padding: 12px 20px 12px 50px;
    text-align: right;
}

html[dir="rtl"] .sidebar .sidebar_search .form-group button {
    right: auto;
    left: 4px;
}

/* Sidebar title underline: flip to right side in RTL */
html[dir="rtl"] .sidebar-title h2:after {
    left: auto;
    right: 0;
}

/* Popular posts thumb: flip to right side in RTL */
html[dir="rtl"] .sidebar .popular-posts .post {
    padding-left: 0;
    padding-right: 115px;
}

html[dir="rtl"] .sidebar .popular-posts .post .post-thumb {
    left: auto;
    right: 0;
}
