/**
 * ATON LEATHER GOODS — MASTER STYLESHEET (COMPREHENSIVE FIX & RTL REFINEMENT)
 * Clean, balanced, light modern luxury layout
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Droid+Arabic+Kufi:400,700&display=swap');
@import url('variables.css');
@import url('animations.css');

/* ============================================================
   1. RESET & GLOBAL BOX MODEL
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html, body {
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 100vh;
}

body {
  background-color: var(--bg-main, #FAFAFB);
  color: var(--text-main, #1E293B);
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
  font-size: var(--text-base, 0.9375rem);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex !important;
  flex-direction: column;
}

main, 
.main-content, 
.site-content,
.page-wrapper,
.hero-balanced, 
section,
.container {
  display: block;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
}

html[dir="rtl"],
body[dir="rtl"],
[dir="rtl"] {
  font-family: "Droid Arabic Kufi", sans-serif;
  direction: rtl;
  text-align: right;
  line-height: 1.85;
}

body[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif, "Cormorant Garamond", serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-main, #1E293B);
}

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[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3, body[dir="rtl"] h4, body[dir="rtl"] h5, body[dir="rtl"] h6,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: "Droid Arabic Kufi", sans-serif !important;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow {
  max-width: 980px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================================
   2. GLOBAL LOGO CONSTRAINT (STRICT 48PX PROTECTION)
   ============================================================ */
.header-logo, 
.header-logo img, 
.header-logo svg, 
.logo-wrapper img, 
.site-logo, 
.brand-logo-img, 
.header-logo-wrap img {
  max-height: 48px !important;
  height: 48px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

/* ============================================================
   3. FIXED / STICKY HEADER & NAVBAR
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle, #E6E6E6);
  box-shadow: 0 2px 12px rgba(0, 33, 26, 0.05);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: 24px;
  gap: 20px;
}

.header-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 32px);
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-main, #00211a);
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color, #dfbc6b);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color, #dfbc6b);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-action-btn {
  color: var(--text-main, #00211a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.header-action-btn:hover {
  color: var(--accent-color, #dfbc6b);
  transform: translateY(-1px);
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background-color: var(--accent-color, #dfbc6b);
  color: #00211a;
  font-size: 0.625rem;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle {
  display: none;
}

/* ============================================================
   3.1 THEME TOGGLE BUTTON COMPONENT
   ============================================================ */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle, #E2E8F0);
  background: var(--bg-surface, #FFFFFF);
  color: var(--text-main, #1E293B);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-color, #dfbc6b);
  color: var(--accent-color, #dfbc6b);
  transform: rotate(15deg);
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: block;
  color: var(--accent-color, #D4AF37);
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

/* ============================================================
   3.2 DARK MODE OVERRIDES ([data-theme="dark"])
   ============================================================ */
[data-theme="dark"] body {
  background-color: var(--bg-main, #121212);
  color: var(--text-main, #E0E0E0);
}

[data-theme="dark"] .site-header {
  background-color: var(--bg-surface, #1E1E1E);
  border-bottom-color: var(--border-subtle, #333333);
}

[data-theme="dark"] .site-footer {
  background-color: var(--bg-surface, #1E1E1E);
  border-top-color: var(--border-subtle, #333333);
}

[data-theme="dark"] .hero-balanced {
  background: linear-gradient(135deg, #181818 0%, #121212 100%);
  border-bottom-color: var(--border-subtle, #333333);
}

[data-theme="dark"] .hero-showcase-card {
  background: var(--bg-card, #1E1E1E);
  border-color: var(--border-subtle, #333333);
}

[data-theme="dark"] .product-card,
[data-theme="dark"] .journal-card {
  background-color: var(--bg-card, #1E1E1E);
  border-color: var(--border-subtle, #333333);
}

[data-theme="dark"] .product-media {
  background-color: #262626;
}

[data-theme="dark"] .product-card img,
[data-theme="dark"] .product-img {
  background-color: #262626;
}

[data-theme="dark"] .product-quick-add {
  background: #262626;
  border-color: var(--border-subtle, #333333);
  color: var(--text-main, #E0E0E0);
}

[data-theme="dark"] .product-quick-add:hover {
  background: var(--accent-color, #D4AF37);
  color: #121212;
  border-color: var(--accent-color, #D4AF37);
}

[data-theme="dark"] .product-wishlist-btn {
  background-color: #262626;
  border-color: var(--border-subtle, #333333);
  color: var(--text-muted, #888888);
}

[data-theme="dark"] .floating-social-rail {
  background: var(--bg-surface, #1E1E1E);
  border-color: var(--border-subtle, #333333);
}

[data-theme="dark"] .floating-social-icon {
  color: var(--text-secondary, #B0B0B0);
}

[data-theme="dark"] .floating-social-icon:hover {
  background-color: var(--accent-color, #D4AF37);
  color: #121212;
}

[data-theme="dark"] .mobile-nav-drawer {
  background: #1E1E1E !important;
  color: #E0E0E0 !important;
}

/* ============================================================
   4. BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-primary, .btn-gold {
  background-color: var(--accent-color, #dfbc6b);
  color: #00211a;
  border: 1px solid var(--accent-color, #dfbc6b);
}

.btn-primary:hover, .btn-gold:hover {
  background-color: var(--brand-gold-hover, #c9a84c);
  border-color: var(--brand-gold-hover, #c9a84c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(223, 188, 107, 0.35);
}

.btn-espresso {
  background-color: var(--primary-color, #00211a);
  color: #FFFFFF;
  border: 1px solid var(--primary-color, #00211a);
}

.btn-espresso:hover {
  background-color: var(--brand-secondary, #003500);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  border: 1.5px solid var(--accent-color, #dfbc6b);
  color: var(--accent-color, #dfbc6b);
}

.btn-outline-gold:hover {
  background-color: var(--accent-color, #dfbc6b);
  color: #00211a;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   5. HERO SECTION (FLEXBOX / BALANCED PADDING 60PX 5%)
   ============================================================ */
.hero-balanced {
  background: linear-gradient(150deg, #f5f9f7 0%, #eaf3ef 50%, #f0f7f5 100%);
  padding: 60px 5%;
  border-bottom: 1px solid var(--border-subtle, #E6E6E6);
  width: 100%;
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  flex: 1.1;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-color, #dfbc6b);
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-family: var(--font-serif, "Cormorant Garamond", serif);
  font-weight: 700;
  color: var(--text-main, #00211a);
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-family: var(--font-serif, "Cormorant Garamond", serif);
  font-style: italic;
  color: var(--brand-teal, #1c4446);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 0.9375rem;
  color: var(--text-muted, #727272);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-showcase-card {
  flex: 0.9;
  background: #FFFFFF;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle, #E2E8F0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-showcase-card img {
  max-height: 340px;
  width: 100%;
  object-fit: contain;
}

/* ============================================================
   6. PRODUCT GRID & CARDS (ASPECT-RATIO 1/1 & CONTAINED)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  width: 100%;
}

.product-card, 
.journal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.product-card:hover,
.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 33, 26, 0.10);
  border-color: var(--border-gold, rgba(223,188,107,0.35));
}

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F8F9FA;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.product-card img, 
.product-img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  background-color: #F8F9FA;
  padding: 14px;
  transition: transform 0.4s ease;
}

.product-img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-card:hover .product-img-hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Discount Badge */
.product-badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #16A34A;
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 5;
}

body[dir="rtl"] .product-badge-discount {
  left: auto;
  right: 10px;
}

/* Wishlist Button */
.product-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 32px;
  height: 32px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

body[dir="rtl"] .product-wishlist-btn {
  right: auto;
  left: 10px;
}

.product-wishlist-btn:hover, .product-wishlist-btn.is-active {
  background: var(--accent-color, #dfbc6b);
  border-color: var(--accent-color, #dfbc6b);
  color: #00211a;
}

.product-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-teal, #1c4446);
  font-weight: 600;
  margin-bottom: 4px;
}

.product-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main, #00211a);
  margin-bottom: 8px;
  line-height: 1.35;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.product-price {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main, #00211a);
}

.product-price-old {
  font-size: 0.8125rem;
  color: #94A3B8;
  text-decoration: line-through;
}

.product-quick-add {
  width: 100%;
  padding: 9px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  border: 1px solid var(--border-subtle, #E2E8F0);
  background: #FAFAFB;
  color: var(--text-main, #1E293B);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.product-card:hover .product-quick-add {
  background: var(--primary-color, #00211a);
  color: #FFFFFF;
  border-color: var(--primary-color, #00211a);
}

/* ============================================================
   7. FLOATING ACTIONS (ICONIC CIRCULAR WHATSAPP & SOCIAL BAR)
   ============================================================ */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  width: 55px;
  height: 55px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  animation: subtlePulse 2.5s infinite;
  transition: transform 0.2s ease;
}

body[dir="rtl"] .floating-whatsapp-btn {
  right: auto;
  left: 25px;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1);
  color: #FFFFFF;
}

.floating-social-rail {
  position: fixed;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-surface, #FFFFFF);
  padding: 8px 6px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle, #E2E8F0);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body[dir="rtl"] .floating-social-rail {
  left: auto;
  right: 15px;
}

.floating-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #475569);
  transition: all 0.2s ease;
}

.floating-social-icon:hover {
  background-color: var(--primary-color, #00211a);
  color: #FFFFFF;
  transform: scale(1.1);
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--brand-primary, #00211a);
  color: rgba(255,255,255,0.8);
  padding-top: 48px;
  padding-bottom: 24px;
  border-top: none;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand-logo {
  height: auto;
  max-height: 42px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 320px;
  margin-bottom: 16px;
}

.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-gold, #dfbc6b);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-nav-list li {
  margin-bottom: 8px;
}

.footer-nav-list a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
}

.footer-nav-list a:hover {
  color: var(--brand-gold, #dfbc6b);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   8.1 AUTHENTICATION & LOGIN/REGISTER CARD LAYOUT
   ============================================================ */
.auth-page-wrapper {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  width: 100%;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.auth-card .form-group {
  margin-bottom: 16px;
  text-align: left;
}

body[dir="rtl"] .auth-card .form-group {
  text-align: right;
}

.auth-card .form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main, #1E293B);
  margin-bottom: 6px;
}

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"],
.auth-card input[type="tel"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  margin-top: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--border-medium, #CBD5E1);
  border-radius: 6px;
  background-color: var(--bg-surface, #FFFFFF);
  color: var(--text-main, #1E293B);
  outline: none;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.auth-card input:focus {
  border-color: var(--accent-color, #dfbc6b);
  box-shadow: 0 0 0 3px rgba(223, 188, 107, 0.15);
}

[data-theme="dark"] .auth-card {
  background: #1E1E1E;
  border-color: #333333;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .auth-card input[type="email"],
[data-theme="dark"] .auth-card input[type="password"],
[data-theme="dark"] .auth-card input[type="text"],
[data-theme="dark"] .auth-card input[type="tel"] {
  background-color: #262626;
  border-color: #444444;
  color: #E0E0E0;
}

/* ============================================================
   9. RESPONSIVE BREAKPOINTS & STRICT DRAWER CLEANUP
   ============================================================ */
/* Global Horizontal Overflow Protection */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* 1. Strict Desktop Isolation (>= 992px) */
@media (min-width: 992px) {
  .mobile-nav-drawer,
  .mobile-menu-overlay,
  .mobile-menu-toggle,
  .hamburger-btn {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* 2. Tablet & Mobile Viewports (<= 991px) */
@media (max-width: 991px) {
  .header-nav-center {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
  }

  .floating-social-rail {
    display: none !important;
  }

  /* Smooth Overlay */
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Mobile Nav Drawer Fullscreen Solid Layer (<= 991px) */
  .mobile-nav-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: var(--bg-surface, #FFFFFF) !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 24px 20px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translateX(-100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: none !important;
  }

  .mobile-nav-drawer.active {
    transform: translateX(0) !important;
  }

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

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

  [data-theme="dark"] .mobile-nav-drawer {
    background-color: #121212 !important;
    color: #E0E0E0 !important;
  }

  .hero-grid {
    flex-direction: column;
    text-align: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 3. Small Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  /* Strict 60px height & 32px logo */
  .site-header {
    height: 60px;
    padding: 0 16px;
    display: flex;
    align-items: center;
  }

  .header-inner {
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .site-logo, 
  .header-logo img,
  .header-logo-wrap img {
    max-height: 32px !important;
    height: 32px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .desktop-only {
    display: none !important;
  }

  .header-actions {
    gap: 10px;
  }

  /* Mobile Hero Section */
  .hero-balanced {
    padding: 36px 16px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 12px;
  }

  .hero-desc {
    font-size: 0.875rem;
    margin-bottom: 20px;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-showcase-card {
    margin: 24px auto 0;
    width: 90%;
    max-width: 380px;
    padding: 16px;
  }

  .hero-showcase-card img {
    max-height: 240px;
  }

  /* Products Grid on Mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    padding: 10px;
  }

  .product-title {
    font-size: 0.8125rem;
  }

  .product-price {
    font-size: 0.9375rem;
  }

  /* Mobile Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Mobile Floating WhatsApp */
  .floating-whatsapp-btn {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    z-index: 9999;
  }

  body[dir="rtl"] .floating-whatsapp-btn {
    right: auto;
    left: 16px;
  }
}

/* ============================================================
   10. STRICT GLOBAL ARABIC TYPOGRAPHY ENFORCEMENT
   ============================================================ */
html[dir="rtl"],
body[dir="rtl"],
[dir="rtl"],
html[dir="rtl"] body {
  font-family: "Droid Arabic Kufi", sans-serif !important;
}

html[dir="rtl"] *:not(code):not(pre):not(i):not(svg):not(path),
body[dir="rtl"] *:not(code):not(pre):not(i):not(svg):not(path),
[dir="rtl"] *:not(code):not(pre):not(i):not(svg):not(path) {
  font-family: "Droid Arabic Kufi", sans-serif !important;
}

/* Mixed Content Support: Preserve English Font for explicit LTR containers */
html[dir="rtl"] [dir="ltr"],
html[dir="rtl"] [dir="ltr"] *,
body[dir="rtl"] [dir="ltr"],
body[dir="rtl"] [dir="ltr"] *,
[dir="rtl"] [dir="ltr"],
[dir="rtl"] [dir="ltr"] * {
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif) !important;
}

/* Specific Recalibrations for Droid Arabic Kufi */
body[dir="rtl"] .nav-link,
body[dir="rtl"] .btn,
body[dir="rtl"] button,
body[dir="rtl"] input,
body[dir="rtl"] select,
body[dir="rtl"] textarea,
body[dir="rtl"] label,
body[dir="rtl"] table,
body[dir="rtl"] th,
body[dir="rtl"] td,
body[dir="rtl"] .hero-title,
body[dir="rtl"] .hero-subtitle,
body[dir="rtl"] .hero-desc,
body[dir="rtl"] .product-title,
body[dir="rtl"] .product-card-name,
body[dir="rtl"] .footer-heading {
  font-family: "Droid Arabic Kufi", sans-serif !important;
}

body[dir="rtl"] .hero-title {
  line-height: 1.45;
  font-weight: 700;
}

body[dir="rtl"] .hero-subtitle {
  line-height: 1.55;
  font-style: normal;
}

body[dir="rtl"] .hero-desc {
  line-height: 1.9;
}

body[dir="rtl"] .btn {
  line-height: 1.8;
  font-weight: 700;
}

body[dir="rtl"] .nav-link {
  line-height: 1.7;
  font-weight: 600;
}

/* Print and Invoices Typography */
@media print {
  html[dir="rtl"],
  body[dir="rtl"],
  [dir="rtl"],
  body[dir="rtl"] * {
    font-family: "Droid Arabic Kufi", sans-serif !important;
  }
}

