/* ============================================
   SHIKO GAME STORE - RTL SUPPORT
   For Arabic language via TranslatePress
   ============================================ */

[dir="rtl"] body,
html[lang="ar"] body {
    direction: rtl;
    text-align: right;
}

/* Header */
[dir="rtl"] .shiko-header-inner { flex-direction: row-reverse; }
[dir="rtl"] .shiko-nav { flex-direction: row-reverse; }
[dir="rtl"] .shiko-header-actions { flex-direction: row-reverse; }

/* Cart count badge */
[dir="rtl"] .shiko-cart-count { right: auto; left: 4px; }

/* Breadcrumbs */
[dir="rtl"] .shiko-breadcrumbs { text-align: right; }
[dir="rtl"] .shiko-breadcrumbs .separator { margin: 0 8px; transform: scaleX(-1); }

/* Product Grid */
[dir="rtl"] .shiko-product-badge { left: auto; right: 10px; }
[dir="rtl"] .shiko-product-actions { right: auto; left: 10px; transform: translateX(-8px); }
[dir="rtl"] .shiko-product-card:hover .shiko-product-actions { transform: translateX(0); }

/* Section headers */
[dir="rtl"] .shiko-section-header { flex-direction: row-reverse; }

/* Plans */
[dir="rtl"] .shiko-plan-features li { flex-direction: row-reverse; }
[dir="rtl"] .shiko-plan-features li::before { margin-left: 8px; margin-right: 0; }

/* Cart */
[dir="rtl"] .shiko-cart-item { direction: rtl; }
[dir="rtl"] .shiko-cart-row { flex-direction: row-reverse; }

/* Forms */
[dir="rtl"] .shiko-form-row label { text-align: right; }
[dir="rtl"] .shiko-form-row input,
[dir="rtl"] .shiko-form-row select,
[dir="rtl"] .shiko-form-row textarea { text-align: right; }

/* Account nav */
[dir="rtl"] .shiko-account-nav a { flex-direction: row-reverse; text-align: right; }

/* Footer */
[dir="rtl"] .shiko-footer-grid { direction: rtl; }
[dir="rtl"] .shiko-footer-links { text-align: right; }

/* Mobile menu */
[dir="rtl"] .shiko-mobile-menu-header { flex-direction: row-reverse; }
[dir="rtl"] .shiko-mobile-menu nav a { text-align: right; }

/* Hero */
[dir="rtl"] .shiko-hero { text-align: center; }

/* Trust badges */
[dir="rtl"] .shiko-trust-item { text-align: center; }

/* Blog */
[dir="rtl"] .shiko-post-content { text-align: right; }

/* Search */
[dir="rtl"] .shiko-search-form { flex-direction: row-reverse; }

/* WooCommerce overrides */
[dir="rtl"] .woocommerce-notices-wrapper .woocommerce-message,
[dir="rtl"] .woocommerce-notices-wrapper .woocommerce-error,
[dir="rtl"] .woocommerce-notices-wrapper .woocommerce-info {
    border-left: none;
    border-right: 3px solid;
    text-align: right;
}
[dir="rtl"] .woocommerce-notices-wrapper .woocommerce-message { border-right-color: #10B981; }
[dir="rtl"] .woocommerce-notices-wrapper .woocommerce-error { border-right-color: var(--shiko-accent); }
[dir="rtl"] .woocommerce-notices-wrapper .woocommerce-info { border-right-color: #3B82F6; }

/* WooCommerce tables */
[dir="rtl"] .shiko-orders-table th,
[dir="rtl"] .shiko-orders-table td { text-align: right; }

/* Coupon form */
[dir="rtl"] .shiko-coupon-form { flex-direction: row-reverse; }

/* Quantity */
[dir="rtl"] .shiko-quantity { flex-direction: row-reverse; }

/* Flash sale */
[dir="rtl"] .shiko-flash-sale-bar { flex-direction: row-reverse; }

/* Single product */
[dir="rtl"] .shiko-product-meta-row { flex-direction: row-reverse; }
[dir="rtl"] .shiko-single-price del { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .shiko-product-gallery-thumbs { flex-direction: row-reverse; }

/* 3.3.63: FlexSlider initializes slides with inline style
   `float: right` when the document is in RTL mode, which parks
   slide 0 (the active product image) at the FAR-right edge of the
   wrapper — outside the visible viewport. Force LTR layout for the
   gallery internals AND override the inline float. The rest of the
   page keeps its RTL flow. */
[dir="rtl"] .shiko-pdp-gallery,
[dir="rtl"] .shiko-pdp-gallery .woocommerce-product-gallery,
[dir="rtl"] .shiko-pdp-gallery .flex-viewport,
[dir="rtl"] .shiko-pdp-gallery .woocommerce-product-gallery__wrapper,
[dir="rtl"] .shiko-pdp-gallery .flex-control-thumbs {
    direction: ltr;
}
[dir="rtl"] .shiko-pdp-gallery .woocommerce-product-gallery__image {
    float: left !important;
}

/* Tabs */
[dir="rtl"] .shiko-tabs-nav { flex-direction: row-reverse; }

/* Popular tag in account cards */
[dir="rtl"] .shiko-popular-tag { right: auto; left: 10px; }

/* Phone number LTR in RTL context */
[dir="rtl"] .shiko-phone-ltr {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* Payment methods — flip radio margin for RTL */
[dir="rtl"] #payment li.wc_payment_method > input[type="radio"] { margin: 0 0 0 10px; }

/* General spacing fixes */
[dir="rtl"] .shiko-hero-actions { flex-direction: row-reverse; }
[dir="rtl"] .shiko-add-to-cart-wrap { flex-direction: row-reverse; }
