/*
Theme Name: Urartu
Theme URI: https://urartutheme.com/
Author: Urartu Theme
Author URI: https://urartutheme.com/
Description: RTL stylesheet for the Urartu theme.
Version: 1.0.0
License: GPL v2 or later
Text Domain: urartu

WordPress loads this file IN ADDITION to the theme's other stylesheets
when the site language is right-to-left -- core's locale_stylesheet() on
wp_head picks up rtl.css by name. It does not replace style.css; the
earlier note here claiming otherwise was wrong, and reading it that way
would suggest 36 rules were meant to stand in for 654.

So this is an override layer, applied last: hand-written corrections for
elements that flex/grid order does not already mirror. The generated
mirrors do the bulk of the work -- woocommerce-rtl.css and
css/main.min-rtl.css, both swapped in by wp_style_add_data() in
inc/parts-enqueue.php.
*/

/* ── Base direction ─────────────────────────────────────────── */

body.rtl {
    direction: rtl;
    unicode-bidi: embed;
}

body.rtl,
.rtl .site,
.rtl .header-section,
.rtl .site-header__general,
.rtl .site-header__container {
    text-align: right;
}

.rtl input,
.rtl textarea,
.rtl select {
    direction: rtl;
}

/* ── Header & navigation ────────────────────────────────────── */

.rtl .site-header__container {
    flex-direction: row-reverse;
}

.rtl .site-branding {
    float: right;
}

.rtl .main-navigation {
    float: right;
}

.rtl .main-navigation .menu-toggle {
    float: right;
}

.rtl .main-navigation ul {
    padding-right: 0;
}

.rtl .main-navigation .menu-item-has-children > a:after {
    margin-right: 4px;
    margin-left: 0;
}

.rtl .main-navigation .sub-menu {
    left: auto;
    right: 0;
    text-align: right;
}

.rtl .main-navigation .sub-menu .sub-menu {
    left: auto;
    right: 100%;
}

.rtl .mini-cart-container {
    float: left;
}

/* ── WooCommerce ─────────────────────────────────────────────── */

.rtl.woocommerce .woocommerce-breadcrumb,
.rtl.woocommerce-page .woocommerce-breadcrumb {
    text-align: right;
}

.rtl.woocommerce .woocommerce-result-count {
    float: right;
}

.rtl.woocommerce .woocommerce-ordering {
    float: left;
}

.rtl.woocommerce ul.products li.product {
    float: right;
    margin: 0 0 2.992em 2.992em;
}

.rtl.woocommerce div.product .product_title {
    text-align: right;
}

.rtl.woocommerce div.product div.images {
    float: right;
}

.rtl.woocommerce div.product div.summary {
    float: left;
}

.rtl.woocommerce table.shop_table {
    text-align: right;
}

.rtl.woocommerce .woocommerce-message,
.rtl.woocommerce .woocommerce-info,
.rtl.woocommerce .woocommerce-error {
    padding: 1em 3.5em 1em 2em !important;
}

.rtl.woocommerce .woocommerce-message:before,
.rtl.woocommerce .woocommerce-info:before,
.rtl.woocommerce .woocommerce-error:before {
    left: auto;
    right: 1.5em;
}

/* ── General content ─────────────────────────────────────────── */

.rtl .alignleft {
    float: right;
    margin-right: 0;
    margin-left: 1.5em;
}

.rtl .alignright {
    float: left;
    margin-left: 0;
    margin-right: 1.5em;
}

.rtl .comment-navigation .nav-previous,
.rtl .posts-navigation .nav-previous,
.rtl .post-navigation .nav-previous {
    float: right;
}

.rtl .comment-navigation .nav-next,
.rtl .posts-navigation .nav-next,
.rtl .post-navigation .nav-next {
    float: left;
    text-align: left;
}

.rtl .comment-list .comment-author .avatar {
    float: right;
    margin-right: 0;
    margin-left: 1em;
}

.rtl .comment-body {
    padding: 1em 3em 0 0;
}

.rtl .comment-content {
    margin-right: 3em;
    margin-left: 0;
}

/* ── Forms & widgets ─────────────────────────────────────────── */

.rtl .widget ul {
    padding-right: 0;
}

.rtl .widget_search .search-submit {
    right: auto;
    left: 0;
}

.rtl .widget_calendar table td#prev {
    text-align: right;
}

.rtl .widget_calendar table td#next {
    text-align: left;
}

/* ── Screen Reader ───────────────────────────────────────────── */

.rtl .screen-reader-text:focus {
    left: auto;
    right: 5px;
}

/* ── Top header ──────────────────────────────────────────────── */

.rtl .top__header {
    direction: rtl;
    text-align: right;
}

.rtl .site-header-background {
    direction: rtl;
}
