/* ==========================================================================
   DECO ALGERIE - RTL (Right-to-Left) Stylesheet for Arabic Layout
   Loaded strictly when Arabic / RTL mode is active:
   <html lang="ar" dir="rtl"> / <body class="rtl">
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Arabic Web Typography & Base Direction
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

html[dir="rtl"],
body.rtl {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Tajawal', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  max-width: 100%;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6 {
  font-family: 'Cairo', 'Playfair Display', serif;
  letter-spacing: normal;
}

/* Calligraphic Script text in Arabic */
html[dir="rtl"] .hero-script-gold,
html[dir="rtl"] .contact-hero-script,
html[dir="rtl"] .priority-script-quote,
body.rtl .hero-script-gold,
body.rtl .contact-hero-script,
body.rtl .priority-script-quote {
  font-family: 'Tajawal', 'Alex Brush', cursive, sans-serif;
  letter-spacing: 0;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   1. Header, Top Bar & Navigation Menu
   -------------------------------------------------------------------------- */
html[dir="rtl"] .top-bar .container,
html[dir="rtl"] .main-header .container,
body.rtl .top-bar .container,
body.rtl .main-header .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

html[dir="rtl"] .top-bar-left,
body.rtl .top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

html[dir="rtl"] .top-bar-right,
body.rtl .top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Brand Logo (Logo Icon on the right of text in RTL) */
html[dir="rtl"] .brand-logo,
body.rtl .brand-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-align: right;
}

html[dir="rtl"] .logo-text,
body.rtl .logo-text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

/* Main Navigation Menu */
html[dir="rtl"] .nav-menu,
body.rtl .nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
}

html[dir="rtl"] .nav-link,
body.rtl .nav-link {
  font-family: 'Cairo', var(--font-sans) !important;
  font-size: var(--navbar-link-size, 0.9375rem) !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  text-align: right;
}

/* Nav Item Dropdown arrow spacing */
html[dir="rtl"] .nav-link .dropdown-arrow,
body.rtl .nav-link .dropdown-arrow {
  margin-right: 2px;
  margin-left: 0;
  display: inline-block;
}

/* Nav active indicator bar: anchor from the right in RTL */
html[dir="rtl"] .nav-link.active::after,
body.rtl .nav-link.active::after {
  left: auto;
  right: 0;
  width: 100%;
}

/* Header Actions Row (Cart, Lang Selector, CTA) */
html[dir="rtl"] .header-actions,
body.rtl .header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

/* Language Selector Dropdown Placement */
body.rtl .lang-selector-btn,
html[dir="rtl"] .lang-selector-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

body.rtl .lang-menu,
html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
  text-align: right;
}

body.rtl .lang-option,
html[dir="rtl"] .lang-option {
  display: flex;
  flex-direction: row;
  text-align: right;
  justify-content: flex-start;
  gap: 8px;
}

body.rtl .lang-arrow,
html[dir="rtl"] .lang-arrow {
  margin-left: 0;
  margin-right: 4px;
}

/* Header Cart Badge Counter */
html[dir="rtl"] .cart-badge-count,
html[dir="rtl"] .favorite-badge-count,
body.rtl .cart-badge-count,
body.rtl .favorite-badge-count {
  right: auto;
  left: -4px;
}

/* CTA Register Button in Header */
html[dir="rtl"] .btn-primary-cta,
body.rtl .btn-primary-cta {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   2. Search Boxes & Hero Controls (Index, Categories, Promoteurs, Blog)
   -------------------------------------------------------------------------- */
html[dir="rtl"] .hero-content,
body.rtl .hero-content {
  flex-direction: row;
}

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

/* 3-Step Search Box (Index) */
html[dir="rtl"] .search-field,
body.rtl .search-field {
  border-right: none;
  border-left: 1px solid #ebe5dc;
  text-align: right;
}

html[dir="rtl"] .search-field:last-of-type,
body.rtl .search-field:last-of-type {
  border-left: none;
}

html[dir="rtl"] .search-field-icon,
body.rtl .search-field-icon {
  margin-right: 0;
  margin-left: 8px;
}

html[dir="rtl"] .search-select,
html[dir="rtl"] .search-input,
body.rtl .search-select,
body.rtl .search-input {
  text-align: right;
}

/* Promoteurs Search Bar */
html[dir="rtl"] .promoteurs-search-bar .search-field,
body.rtl .promoteurs-search-bar .search-field {
  border-right: none;
  border-left: 1px solid #ebe5dc;
}

html[dir="rtl"] .promoteurs-search-bar .search-field:last-of-type,
body.rtl .promoteurs-search-bar .search-field:last-of-type {
  border-left: none;
}

html[dir="rtl"] .promoteurs-hero-title .hero-script-gold,
body.rtl .promoteurs-hero-title .hero-script-gold {
  margin-left: 0;
  margin-right: 8px;
}

/* Blog Search Form */
html[dir="rtl"] .blog-search-icon,
body.rtl .blog-search-icon {
  margin-right: 0;
  margin-left: 10px;
}

html[dir="rtl"] .blog-search-input,
body.rtl .blog-search-input {
  text-align: right;
}

/* --------------------------------------------------------------------------
   3. Breadcrumbs & Directional Chevrons
   -------------------------------------------------------------------------- */
html[dir="rtl"] .breadcrumb,
html[dir="rtl"] .pro-breadcrumb,
html[dir="rtl"] .salons-breadcrumb,
html[dir="rtl"] .product-breadcrumb,
html[dir="rtl"] .categories-breadcrumb,
body.rtl .breadcrumb,
body.rtl .pro-breadcrumb,
body.rtl .salons-breadcrumb,
body.rtl .product-breadcrumb,
body.rtl .categories-breadcrumb {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 8px;
}

html[dir="rtl"] .breadcrumb .sep,
html[dir="rtl"] .pro-breadcrumb .sep,
html[dir="rtl"] .salons-breadcrumb .sep,
html[dir="rtl"] .product-breadcrumb .sep,
html[dir="rtl"] .categories-breadcrumb .sep,
body.rtl .breadcrumb .sep,
body.rtl .pro-breadcrumb .sep,
body.rtl .salons-breadcrumb .sep,
body.rtl .product-breadcrumb .sep,
body.rtl .categories-breadcrumb .sep {
  transform: scaleX(-1);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   4. Carousels, Controls & Arrow Buttons
   -------------------------------------------------------------------------- */
/* Swap carousel next and prev button absolute positions in RTL */
html[dir="rtl"] .carousel-nav-prev,
body.rtl .carousel-nav-prev {
  left: auto;
  right: -20px;
}

html[dir="rtl"] .carousel-nav-next,
body.rtl .carousel-nav-next {
  right: auto;
  left: -20px;
}

/* Flip carousel SVGs so arrow glyphs match logical next/previous flow */
html[dir="rtl"] .carousel-nav-prev svg,
html[dir="rtl"] .carousel-nav-next svg,
body.rtl .carousel-nav-prev svg,
body.rtl .carousel-nav-next svg {
  transform: scaleX(-1);
}

/* Category Card Arrow Button (categories.html) */
html[dir="rtl"] .cat-card:hover .cat-card-arrow-btn,
body.rtl .cat-card:hover .cat-card-arrow-btn {
  transform: translateX(-2px);
}

/* Step Arrow Dividers (professionnels.html) */
html[dir="rtl"] .step-arrow-divider,
html[dir="rtl"] .pro-step-arrow-divider,
body.rtl .step-arrow-divider,
body.rtl .pro-step-arrow-divider {
  transform: scaleX(-1);
}

/* Blog hover translation reversals */
html[dir="rtl"] .blog-hero-topic-item:hover,
body.rtl .blog-hero-topic-item:hover {
  transform: translateX(-4px);
}

html[dir="rtl"] .popular-article-item:hover,
body.rtl .popular-article-item:hover {
  transform: translateX(-3px);
}

html[dir="rtl"] .btn-view-all:hover span:last-child,
body.rtl .btn-view-all:hover span:last-child {
  transform: translateX(-4px);
}

/* --------------------------------------------------------------------------
   5. Badges, Icons & Product Cards
   -------------------------------------------------------------------------- */
/* Corner badges: flip from left to right */
html[dir="rtl"] .p-card-badge,
body.rtl .p-card-badge {
  left: auto;
  right: 10px;
}

/* Wishlist heart button: flip from right to left */
html[dir="rtl"] .p-card-heart-btn,
body.rtl .p-card-heart-btn {
  right: auto;
  left: 10px;
}

/* Pricing Card Top Badge (Tarifs) */
html[dir="rtl"] .card-top-badge,
body.rtl .card-top-badge {
  left: auto;
  right: 14px;
}

/* Old Price strike margin */
html[dir="rtl"] .salon-price-old,
body.rtl .salon-price-old {
  margin-left: 0;
  margin-right: 6px;
}

/* --------------------------------------------------------------------------
   6. Forms, Inputs & Text Alignment
   -------------------------------------------------------------------------- */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
body.rtl input,
body.rtl textarea,
body.rtl select {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .contact-form-card,
html[dir="rtl"] .contact-info-item,
body.rtl .contact-form-card,
body.rtl .contact-info-item {
  text-align: right;
}

html[dir="rtl"] .contact-label,
body.rtl .contact-label {
  text-align: right;
  display: block;
}

html[dir="rtl"] .contact-hero-content,
body.rtl .contact-hero-content {
  text-align: right;
}

/* Gold Title Bar & Icons */
html[dir="rtl"] .title-with-bar,
body.rtl .title-with-bar {
  flex-direction: row;
}

html[dir="rtl"] .contact-info-item,
body.rtl .contact-info-item {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

html[dir="rtl"] .contact-icon-bubble,
body.rtl .contact-icon-bubble {
  flex-shrink: 0;
}

html[dir="rtl"] .contact-consent-row,
body.rtl .contact-consent-row {
  flex-direction: row;
  text-align: right;
  gap: 10px;
}

html[dir="rtl"] .contact-trust-bar,
html[dir="rtl"] .contact-trust-item,
body.rtl .contact-trust-bar,
body.rtl .contact-trust-item {
  flex-direction: row;
  text-align: right;
}

html[dir="rtl"] .showroom-content,
body.rtl .showroom-content {
  text-align: right;
  align-items: flex-start;
}

/* --------------------------------------------------------------------------
   7. Modals & Popups
   -------------------------------------------------------------------------- */
html[dir="rtl"] .modal-header,
body.rtl .modal-header {
  flex-direction: row;
  justify-content: space-between;
  text-align: right;
}

html[dir="rtl"] .modal-title,
html[dir="rtl"] .modal-subtitle,
body.rtl .modal-title,
body.rtl .modal-subtitle {
  text-align: right;
}

html[dir="rtl"] .modal-close-btn,
body.rtl .modal-close-btn {
  margin-left: 0;
  margin-right: auto;
}

/* Dedicated positioned close buttons */
html[dir="rtl"] .pro-modal-close,
body.rtl .pro-modal-close {
  right: auto;
  left: 20px;
}

html[dir="rtl"] .gallery-modal-dialog .modal-close-btn,
body.rtl .gallery-modal-dialog .modal-close-btn {
  position: absolute;
  top: 14px;
  right: auto;
  left: 14px;
}

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

/* --------------------------------------------------------------------------
   8. Tarifs & Comparison Table
   -------------------------------------------------------------------------- */
html[dir="rtl"] .tarifs-hero-container,
body.rtl .tarifs-hero-container {
  flex-direction: row;
}

html[dir="rtl"] .tarifs-hero-content,
body.rtl .tarifs-hero-content {
  text-align: right;
}

html[dir="rtl"] .tarifs-hero-badge,
body.rtl .tarifs-hero-badge {
  text-align: right;
  align-items: flex-start;
  transform: rotate(-3deg);
}

html[dir="rtl"] .tarifs-pill-item,
body.rtl .tarifs-pill-item {
  flex-direction: row;
}

html[dir="rtl"] .comparison-layout,
html[dir="rtl"] .priority-layout,
body.rtl .comparison-layout,
body.rtl .priority-layout {
  direction: rtl;
}

html[dir="rtl"] .comparison-side-info,
html[dir="rtl"] .priority-side-info,
body.rtl .comparison-side-info,
body.rtl .priority-side-info {
  text-align: right;
}

html[dir="rtl"] .comparison-table th:first-child,
html[dir="rtl"] .comparison-table td:first-child,
body.rtl .comparison-table th:first-child,
body.rtl .comparison-table td:first-child {
  text-align: right;
  padding-left: 16px;
  padding-right: 24px;
}

html[dir="rtl"] .tier-features-list,
body.rtl .tier-features-list {
  text-align: right;
  padding: 0;
}

html[dir="rtl"] .tier-feature-item,
body.rtl .tier-feature-item {
  flex-direction: row;
  text-align: right;
  gap: 10px;
}

html[dir="rtl"] .why-invest-card,
body.rtl .why-invest-card {
  flex-direction: row;
}

html[dir="rtl"] .why-invest-left,
body.rtl .why-invest-left {
  flex-direction: row;
  text-align: right;
}

/* --------------------------------------------------------------------------
   9. Blog & Promoters Layout Elements
   -------------------------------------------------------------------------- */
html[dir="rtl"] .blog-categories-group,
body.rtl .blog-categories-group {
  align-items: flex-start;
}

html[dir="rtl"] .cta-banner-watermark-house,
body.rtl .cta-banner-watermark-house {
  right: auto;
  left: -20px;
}

html[dir="rtl"] .blog-header,
html[dir="rtl"] .blog-header-row,
body.rtl .blog-header,
body.rtl .blog-header-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

html[dir="rtl"] .section-header,
body.rtl .section-header {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

/* --------------------------------------------------------------------------
   10. Toasts & Feedback Notifications
   -------------------------------------------------------------------------- */
html[dir="rtl"] .toast-container,
body.rtl .toast-container {
  right: auto;
  left: 24px;
}

html[dir="rtl"] .toast,
body.rtl .toast {
  border-left: none;
  border-right: 4px solid var(--color-gold-primary);
  transform: translateX(-120%);
  flex-direction: row;
  text-align: right;
}

html[dir="rtl"] .toast.show,
body.rtl .toast.show {
  transform: translateX(0);
}

/* --------------------------------------------------------------------------
   11. Footer Elements
   -------------------------------------------------------------------------- */
html[dir="rtl"] .footer-top-grid,
html[dir="rtl"] .footer-content,
body.rtl .footer-top-grid,
body.rtl .footer-content {
  text-align: right;
}

html[dir="rtl"] .footer-col,
body.rtl .footer-col {
  text-align: right;
  align-items: flex-start;
}

html[dir="rtl"] .footer-logo,
body.rtl .footer-logo {
  flex-direction: row;
}

html[dir="rtl"] .footer-social-links,
html[dir="rtl"] .footer-socials,
html[dir="rtl"] .footer-social-row,
body.rtl .footer-social-links,
body.rtl .footer-socials,
body.rtl .footer-social-row {
  flex-direction: row;
}

html[dir="rtl"] .footer-nav-link:hover,
html[dir="rtl"] .footer-links-list a:hover,
body.rtl .footer-nav-link:hover,
body.rtl .footer-links-list a:hover {
  padding-left: 0;
  padding-right: 4px;
}

html[dir="rtl"] .footer-bottom,
body.rtl .footer-bottom {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoint Overrides for RTL
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  html[dir="rtl"] .map-wrapper,
  body.rtl .map-wrapper {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   13. Professional Detail Page RTL Overrides
   -------------------------------------------------------------------------- */
html[dir="rtl"] .btn-pro-modal-close,
body.rtl .btn-pro-modal-close {
  right: auto;
  left: 20px;
}

html[dir="rtl"] .pro-info-item,
body.rtl .pro-info-item {
  flex-direction: row;
  justify-content: space-between;
}

html[dir="rtl"] .pro-action-link-item,
body.rtl .pro-action-link-item {
  text-align: right;
}

html[dir="rtl"] .pro-highlight-item,
body.rtl .pro-highlight-item {
  text-align: right;
}

html[dir="rtl"] .pro-stat-item,
body.rtl .pro-stat-item {
  text-align: right;
}

html[dir="rtl"] .pro-quote-signature,
body.rtl .pro-quote-signature {
  text-align: left;
}


/* === RTL MOBILE APP OVERRIDES === */
html[dir="rtl"] .main-header .container,
body.rtl .main-header .container {
  flex-direction: row;
}

html[dir="rtl"] .header-actions,
body.rtl .header-actions {
  flex-direction: row;
}

html[dir="rtl"] .mobile-nav-drawer,
body.rtl .mobile-nav-drawer {
  left: auto !important;
  right: 0 !important;
  transform: translateX(100%) !important;
  box-shadow: -6px 0 28px rgba(0, 0, 0, 0.2) !important;
  visibility: hidden;
  pointer-events: none;
}

html[dir="rtl"] .mobile-nav-drawer.active,
body.rtl .mobile-nav-drawer.active {
  transform: translateX(0) !important;
  visibility: visible;
  pointer-events: auto;
}

html[dir="rtl"] .mobile-drawer-header,
body.rtl .mobile-drawer-header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .mobile-nav-link,
body.rtl .mobile-nav-link {
  text-align: right;
  flex-direction: row-reverse;
  justify-content: space-between;
}

html[dir="rtl"] .mobile-submenu,
body.rtl .mobile-submenu {
  border-left: none !important;
  border-right: 2px solid var(--color-border) !important;
  padding-left: 0 !important;
  padding-right: 18px !important;
}

html[dir="rtl"] .mobile-sub-link,
body.rtl .mobile-sub-link {
  text-align: right;
  justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   Product Listing & Catalogue RTL Styles
   -------------------------------------------------------------------------- */
html[dir="rtl"] .prod-main-grid,
body.rtl .prod-main-grid {
  grid-template-columns: 275px 1fr;
  direction: rtl;
}

html[dir="rtl"] .prod-breadcrumb,
body.rtl .prod-breadcrumb {
  flex-direction: row;
}

html[dir="rtl"] .prod-title-row,
body.rtl .prod-title-row {
  flex-direction: row;
}

html[dir="rtl"] .prod-filter-header,
body.rtl .prod-filter-header {
  flex-direction: row;
}

html[dir="rtl"] .prod-filter-title-box,
body.rtl .prod-filter-title-box {
  flex-direction: row;
  text-align: right;
}

html[dir="rtl"] .nav-link,
body.rtl .nav-link {
  white-space: nowrap;
}

html[dir="rtl"] .prod-cats-carousel-wrap,
body.rtl .prod-cats-carousel-wrap {
  direction: rtl;
}

html[dir="rtl"] .prod-cats-track,
body.rtl .prod-cats-track {
  direction: rtl;
}

html[dir="rtl"] .prod-checkbox-list,
body.rtl .prod-checkbox-list {
  padding-left: 14px;
  padding-right: 4px;
}

html[dir="rtl"] .prod-checkbox-item,
body.rtl .prod-checkbox-item {
  flex-direction: row;
  text-align: right;
  padding: 3px 0;
}

html[dir="rtl"] .prod-checkbox-label,
body.rtl .prod-checkbox-label {
  flex-direction: row;
  text-align: right;
}

html[dir="rtl"] .prod-count-badge,
body.rtl .prod-count-badge {
  margin-right: auto;
  margin-left: 6px;
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

html[dir="rtl"] .prod-brand-search svg,
body.rtl .prod-brand-search svg {
  right: 10px;
  left: auto;
}

html[dir="rtl"] .prod-brand-search input,
body.rtl .prod-brand-search input {
  padding: 8px 32px 8px 12px;
  text-align: right;
}

html[dir="rtl"] .prod-main-search-wrap svg,
body.rtl .prod-main-search-wrap svg {
  right: 14px;
  left: auto;
}

html[dir="rtl"] .prod-main-search-input,
body.rtl .prod-main-search-input {
  padding: 0 42px 0 14px;
  text-align: right;
}

html[dir="rtl"] .prod-top-toolbar,
body.rtl .prod-top-toolbar {
  flex-direction: row;
}

html[dir="rtl"] .prod-toolbar-actions,
body.rtl .prod-toolbar-actions {
  flex-direction: row;
}

html[dir="rtl"] .prod-sort-group,
body.rtl .prod-sort-group {
  flex-direction: row;
}

html[dir="rtl"] .prod-sort-select,
body.rtl .prod-sort-select {
  padding: 0 14px 0 32px;
  background-position: left 12px center;
  text-align: right;
}

html[dir="rtl"] .prod-badge-discount,
body.rtl .prod-badge-discount {
  right: 12px;
  left: auto;
}

html[dir="rtl"] .prod-btn-wishlist,
body.rtl .prod-btn-wishlist {
  left: 12px;
  right: auto;
}

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

html[dir="rtl"] .prod-card-prices,
body.rtl .prod-card-prices {
  flex-direction: row;
}

html[dir="rtl"] .prod-card-footer,
body.rtl .prod-card-footer {
  flex-direction: row;
}

html[dir="rtl"] .prod-results-info-row .results-count span,
body.rtl .prod-results-info-row .results-count span {
  margin-right: 4px;
  margin-left: 0;
}

html[dir="rtl"] .mobile-filter-drawer,
body.rtl .mobile-filter-drawer {
  left: auto;
  right: 0;
  transform: translateX(100%);
}

html[dir="rtl"] .mobile-filter-drawer.open,
body.rtl .mobile-filter-drawer.open {
  transform: translateX(0);
}

html[dir="rtl"] .prod-global-count,
body.rtl .prod-global-count,
html[dir="rtl"] .results-count,
body.rtl .results-count {
  direction: rtl;
  unicode-bidi: embed;
}

html[dir="rtl"] .prod-global-count bdi,
body.rtl .prod-global-count bdi,
html[dir="rtl"] .results-count bdi,
body.rtl .results-count bdi {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* ==========================================================================
   Filter Sidebars RTL - Normal Document Flow (No Sticky / Fixed)
   ========================================================================== */
html[dir="rtl"] .prod-sidebar,
body.rtl .prod-sidebar,
html[dir="rtl"] .cat-sidebar,
body.rtl .cat-sidebar,
html[dir="rtl"] #categories-sidebar,
body.rtl #categories-sidebar,
html[dir="rtl"] .archi-sidebar,
body.rtl .archi-sidebar,
html[dir="rtl"] .archi-sidebar-col,
body.rtl .archi-sidebar-col,
html[dir="rtl"] #archi-sidebar,
body.rtl #archi-sidebar,
html[dir="rtl"] .ateliers-sidebar,
body.rtl .ateliers-sidebar,
html[dir="rtl"] .ateliers-filter-card,
body.rtl .ateliers-filter-card,
html[dir="rtl"] .promoteurs-sidebar-col,
body.rtl .promoteurs-sidebar-col,
html[dir="rtl"] .promoteurs-sidebar-card,
body.rtl .promoteurs-sidebar-card,
html[dir="rtl"] .pro-services-sidebar,
body.rtl .pro-services-sidebar,
html[dir="rtl"] .blog-sidebar,
body.rtl .blog-sidebar,
html[dir="rtl"] .blog-detail-sidebar,
body.rtl .blog-detail-sidebar,
html[dir="rtl"] .atelier-booking-card,
body.rtl .atelier-booking-card {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
}

/* ==========================================================================
   Filter Sidebars RTL - Normal Document Flow (No Sticky / Fixed)
   ========================================================================== */
html[dir="rtl"] .prod-sidebar,
body.rtl .prod-sidebar,
html[dir="rtl"] .cat-sidebar,
body.rtl .cat-sidebar,
html[dir="rtl"] #categories-sidebar,
body.rtl #categories-sidebar,
html[dir="rtl"] .archi-sidebar,
body.rtl .archi-sidebar,
html[dir="rtl"] .archi-sidebar-col,
body.rtl .archi-sidebar-col,
html[dir="rtl"] #archi-sidebar,
body.rtl #archi-sidebar,
html[dir="rtl"] .ateliers-sidebar,
body.rtl .ateliers-sidebar,
html[dir="rtl"] .ateliers-filter-card,
body.rtl .ateliers-filter-card,
html[dir="rtl"] .promoteurs-sidebar-col,
body.rtl .promoteurs-sidebar-col,
html[dir="rtl"] .promoteurs-sidebar-card,
body.rtl .promoteurs-sidebar-card,
html[dir="rtl"] .pro-services-sidebar,
body.rtl .pro-services-sidebar,
html[dir="rtl"] .blog-sidebar,
body.rtl .blog-sidebar,
html[dir="rtl"] .blog-detail-sidebar,
body.rtl .blog-detail-sidebar,
html[dir="rtl"] .atelier-booking-card,
body.rtl .atelier-booking-card {
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
}

/* Audience cards arrow transition in RTL */
html[dir="rtl"] .pro-audience-card:hover .pro-card-arrow-btn {
  transform: translateX(-2px);
}

/* ==========================================================================
   Product Detail Page RTL Enhancements (produit.php)
   ========================================================================== */

/* 1. Hero Banner RTL */
html[dir="rtl"] .product-hero-banner,
body.rtl .product-hero-banner {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .product-hero-overlay,
body.rtl .product-hero-overlay {
  background: linear-gradient(225deg, rgba(14, 36, 27, 0.95) 0%, rgba(22, 50, 39, 0.90) 50%, rgba(12, 30, 22, 0.94) 100%) !important;
}

html[dir="rtl"] .product-hero-container,
body.rtl .product-hero-container {
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-end;
}

html[dir="rtl"] .product-hero-content,
body.rtl .product-hero-content {
  text-align: right;
}

html[dir="rtl"] .product-breadcrumb,
body.rtl .product-breadcrumb {
  flex-direction: row;
  justify-content: flex-start;
  text-align: right;
  gap: 8px;
}

html[dir="rtl"] .product-hero-title,
body.rtl .product-hero-title {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  text-align: right;
  unicode-bidi: isolate;
  direction: rtl;
}

html[dir="rtl"] .product-hero-subtitle,
body.rtl .product-hero-subtitle {
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .product-hero-badges,
body.rtl .product-hero-badges {
  flex-direction: row;
  justify-content: flex-start;
  gap: 20px;
}

html[dir="rtl"] .hero-badge-item,
body.rtl .hero-badge-item {
  flex-direction: row;
  text-align: right;
}

html[dir="rtl"] .hero-badge-texts,
body.rtl .hero-badge-texts {
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .hero-script-decor,
body.rtl .hero-script-decor {
  text-align: left;
  font-family: 'Cairo', 'Tajawal', serif !important;
  font-style: normal;
  line-height: 1.4;
}

/* 2. Main Product Section & Detail Grid */
html[dir="rtl"] .product-main-section,
body.rtl .product-main-section {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .product-detail-grid,
body.rtl .product-detail-grid {
  direction: rtl;
}

/* Gallery Controls in RTL */
html[dir="rtl"] .product-badge-premium,
body.rtl .product-badge-premium {
  right: 14px;
  left: auto;
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .gallery-nav-btn.prev-btn,
body.rtl .gallery-nav-btn.prev-btn {
  right: 14px;
  left: auto;
  transform: translateY(-50%) rotate(180deg);
}
html[dir="rtl"] .gallery-nav-btn.prev-btn:hover,
body.rtl .gallery-nav-btn.prev-btn:hover {
  transform: translateY(-50%) rotate(180deg) scale(1.08);
}

html[dir="rtl"] .gallery-nav-btn.next-btn,
body.rtl .gallery-nav-btn.next-btn {
  left: 14px;
  right: auto;
  transform: translateY(-50%) rotate(180deg);
}
html[dir="rtl"] .gallery-nav-btn.next-btn:hover,
body.rtl .gallery-nav-btn.next-btn:hover {
  transform: translateY(-50%) rotate(180deg) scale(1.08);
}

/* Product Info Panel in RTL */
html[dir="rtl"] .product-info-panel,
body.rtl .product-info-panel {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .product-detail-title,
body.rtl .product-detail-title {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  text-align: right;
  unicode-bidi: isolate;
  direction: rtl;
}

html[dir="rtl"] .product-vendor-badge,
body.rtl .product-vendor-badge {
  text-align: right;
}

html[dir="rtl"] .product-rating-row,
body.rtl .product-rating-row {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

html[dir="rtl"] .product-price-row,
body.rtl .product-price-row {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

html[dir="rtl"] .product-short-desc,
body.rtl .product-short-desc {
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .product-feature-cards,
body.rtl .product-feature-cards {
  direction: rtl;
}

html[dir="rtl"] .p-feature-card,
body.rtl .p-feature-card {
  flex-direction: row;
  text-align: right;
}

html[dir="rtl"] .p-feature-texts,
body.rtl .p-feature-texts {
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .product-option-group,
body.rtl .product-option-group {
  text-align: right;
}

html[dir="rtl"] .option-group-label,
body.rtl .option-group-label {
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .color-swatches-row,
body.rtl .color-swatches-row {
  flex-direction: row;
  justify-content: flex-start;
}

html[dir="rtl"] .size-pills-row,
body.rtl .size-pills-row {
  flex-direction: row;
  justify-content: flex-start;
}

html[dir="rtl"] .quantity-stepper,
body.rtl .quantity-stepper {
  flex-direction: row;
}

html[dir="rtl"] .product-actions-row,
body.rtl .product-actions-row {
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
}

html[dir="rtl"] .btn-add-to-cart-main,
body.rtl .btn-add-to-cart-main,
html[dir="rtl"] .btn-order-whatsapp,
body.rtl .btn-order-whatsapp {
  font-family: 'Cairo', sans-serif !important;
}

html[dir="rtl"] .product-reassurances-row,
body.rtl .product-reassurances-row {
  flex-direction: row;
  justify-content: space-between;
}

html[dir="rtl"] .reassurance-item,
body.rtl .reassurance-item {
  flex-direction: row;
  text-align: right;
  gap: 10px;
}

html[dir="rtl"] .reassurance-texts,
body.rtl .reassurance-texts {
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

/* 3. Product Tabs RTL */
html[dir="rtl"] .product-tabs-section,
body.rtl .product-tabs-section {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .product-tabs-nav,
body.rtl .product-tabs-nav {
  flex-direction: row;
  justify-content: flex-start;
}

html[dir="rtl"] .tab-nav-btn,
body.rtl .tab-nav-btn {
  font-family: 'Cairo', sans-serif !important;
}

html[dir="rtl"] .tab-content-title,
body.rtl .tab-content-title {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  text-align: right;
  unicode-bidi: isolate;
  direction: rtl;
}

html[dir="rtl"] .tab-content-desc,
body.rtl .tab-content-desc {
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .tab-checkmarks-list,
body.rtl .tab-checkmarks-list {
  text-align: right;
  padding-right: 0;
  padding-left: 0;
}

html[dir="rtl"] .tab-checkmarks-list li,
body.rtl .tab-checkmarks-list li {
  flex-direction: row;
  text-align: right;
  gap: 12px;
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .feature-image-overlay-script,
body.rtl .feature-image-overlay-script {
  right: 20px;
  left: auto;
  text-align: right;
  font-family: 'Cairo', 'Amiri', serif !important;
  font-style: normal;
}

html[dir="rtl"] .feature-leaf-decor,
body.rtl .feature-leaf-decor {
  left: 20px;
  right: auto;
}

/* 4. Similar Products Section RTL */
html[dir="rtl"] .similar-products-section,
body.rtl .similar-products-section {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .similar-header-row,
body.rtl .similar-header-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
}

html[dir="rtl"] .similar-section-title,
body.rtl .similar-section-title {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  text-align: right;
}

html[dir="rtl"] .similar-see-all-link,
body.rtl .similar-see-all-link {
  flex-direction: row;
  gap: 8px;
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .p-card-badge,
body.rtl .p-card-badge {
  right: 10px;
  left: auto;
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .p-card-heart-btn,
body.rtl .p-card-heart-btn {
  left: 10px;
  right: auto;
}

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

html[dir="rtl"] .p-card-title,
body.rtl .p-card-title {
  text-align: right;
  font-family: 'Cairo', sans-serif !important;
  unicode-bidi: isolate;
  direction: rtl;
}

html[dir="rtl"] .p-card-rating,
body.rtl .p-card-rating {
  flex-direction: row;
  justify-content: flex-start;
  gap: 6px;
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .p-card-footer,
body.rtl .p-card-footer {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

html[dir="rtl"] .p-card-price-swatches,
body.rtl .p-card-price-swatches {
  text-align: right;
  align-items: flex-start;
}

