select { appearance: none !important; -webkit-appearance: none !important; -moz-appearance: none !important; background-image: none !important; }
/* =============================================
   FURNHOME - Modern Furniture Store CSS
   Dark/Light Mode + RTL/LTR + Animations
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500;600&family=Tajawal:wght@300;400;500;700&display=swap');

/* Dubai font is loaded via CDN in HTML */


/* ---- CSS Variables ---- */
:root {
  --gold: #b39b7d;
  --gold-light: #f5eedc;
  --dark: #2a2c2b;
  --charcoal: #3c3f3e;
  --text: #333333;
  --text-muted: #777777;
  --bg: #faf9f6;
  --bg-2: #f2efe9;
  --bg-3: #eae5de;
  --border: #e0dbd5;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Dubai', sans-serif;
  --font-display: 'Dubai', sans-serif;
  --font-ar: 'Dubai', sans-serif;
}

[data-theme="dark"] {
  --text: #e0dbd5;
  --text-muted: #a09d98;
  --bg: #1c1d1d;
  --bg-2: #242525;
  --bg-3: #2d2f2e;
  --border: #3c3f3e;
  --white: #242525;
  --shadow: 0 4px 24px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.35);
}

/* Logo Styling */
.header-inner .logo { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo-img { height: 85px; width: auto; object-fit: contain; }
[lang="ar"] .logo-img { transform: scaleX(1); } /* Ensure no flip if RTL */

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html { 
  scroll-behavior: smooth; 
  background: var(--bg);
  height: 100%;
}

body {
  font-family: 'Dubai', sans-serif !important;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* Global Font Override with Icon Exception */
*:not(i):not([class*="fa-"]) {
  font-family: 'Dubai', 'Tajawal', sans-serif !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-transform: none !important;
}


i, .fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'Font Awesome 6 Brands', 'FontAwesome' !important;
  font-style: normal !important;
}


html[lang="ar"] body, body[dir="rtl"] {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-12px); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spinGrow {
  from { transform: rotate(0) scale(0); opacity: 0; }
  to   { transform: rotate(360deg) scale(1); opacity: 1; }
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive Mobile Queries ---- */
/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}
::-webkit-scrollbar-button {
  display: none;
}


@media (max-width: 991px) {
  .container { padding: 0 15px; }
  .header-top { display: block !important; background: var(--dark) !important; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .top-bar { justify-content: flex-end; padding: 8px 0; gap: 10px; }
  .top-info { display: none; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
}

/* Loader handled in animations.css */
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo-static {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 20px;
}
.loader-logo-static span { color: var(--text); }

.section-loader {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* From Uiverse.io by vinodjangid07 */ 
.loader {
  width: 250px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.truckWrapper {
  width: 250px;
  height: 120px;
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  justify-content: center;
}
/* truck upper body */
.truckBody {
  width: 140px;
  height: auto;
  margin-bottom: -1px;
  animation: motion 1s linear infinite;
}
/* truck suspension animation*/
@keyframes motion {
  0% { transform: translateY(0px); }
  50% { transform: translateY(2px); }
  100% { transform: translateY(0px); }
}
/* truck's tires */
.truckTires {
  width: 110px;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
}
.truckTires svg {
  width: 24px;
  height: 24px;
}

.road {
  width: 100%;
  height: 1.5px;
  background-color: var(--charcoal);
  position: absolute;
  bottom: 22px;
  border-radius: 3px;
}

/* Color Overrides for SVG elements */
.truckBody path, 
.truckTire circle:nth-child(odd), 
.lampSvg path { 
  fill: var(--charcoal) !important; 
}

.road::before, .road::after {
  background-color: var(--charcoal) !important;
}
.road::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 100%;
  background-color: #282828;
  right: -50%;
  border-radius: 3px;
  animation: roadAnimation 1.4s linear infinite;
  border-left: 10px solid white;
}
.road::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 100%;
  background-color: #282828;
  right: -65%;
  border-radius: 3px;
  animation: roadAnimation 1.4s linear infinite;
  border-left: 4px solid white;
}

.lampPost {
  position: absolute;
  bottom: 22px;
  left: 250px;
  height: 90px;
  animation: roadAnimation 1.4s linear infinite;
}

@keyframes roadAnimation {
  0% {
    transform: translateX(0px);
  }
  100% {
    transform: translateX(-350px);
  }
}


.circle:nth-child(2) { animation-delay: 0.3s; }
.circle:nth-child(3) { animation-delay: 0.6s; }
.circle:nth-child(4) { animation-delay: 0.9s; }
.circle:nth-child(5) { animation-delay: 1.2s; }

.circle:nth-child(2) .dot { animation-delay: 0.3s; }
.circle:nth-child(3) .dot { animation-delay: 0.6s; }
.circle:nth-child(4) .dot { animation-delay: 0.9s; }
.circle:nth-child(5) .dot { animation-delay: 1.2s; }

.circle:nth-child(1) .outline { animation-delay: 0.9s; }
.circle:nth-child(2) .outline { animation-delay: 1.2s; }
.circle:nth-child(3) .outline { animation-delay: 1.5s; }
.circle:nth-child(4) .outline { animation-delay: 1.8s; }
.circle:nth-child(5) .outline { animation-delay: 2.1s; }

@keyframes circle-keys {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes dot-keys {
  0% { transform: scale(1); }
  50% { transform: scale(0); }
  100% { transform: scale(1); }
}

@keyframes outline-keys {
  0% { transform: scale(0); outline: solid 14px var(--color); outline-offset: 0; opacity: 1; }
  100% { transform: scale(1); outline: solid 0 transparent; outline-offset: 14px; opacity: 0; }
}

/* ---- Header ---- */
#header {
  position: sticky;
  top: 0;
  z-index: 3000; /* Must be above overlay (2099) so nav-list inside can appear on top */
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

[data-theme="dark"] #header {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.header-top {
  background: var(--dark);
  padding: 8px 0;
  font-size: 0.82rem;
}

[data-theme="dark"] .header-top {
  background: #111312;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-info {
  display: flex;
  gap: 20px;
  color: rgba(255,255,255,0.7);
}
.top-info span { display: flex; align-items: center; gap: 6px; }
.top-info i { color: var(--gold); }

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  transition: var(--transition);
  font-family: inherit;
}
.lang-btn:hover { color: #fff; border-color: var(--gold); background: rgba(179,155,125,0.1); }

/* â”€â”€â”€ Premium Theme Toggle â”€â”€â”€ */
/* ---- Theme Toggle (Night/Day) ---- */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 28px;
  cursor: pointer;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.slider {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 30px;
  overflow: hidden;
  transition: background 0.5s ease;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.35), 0 1px 3px rgba(255,255,255,0.06);
}

/* Sky (light mode) */
.switch input:checked + .slider {
  background: linear-gradient(135deg, #74b9ff, #a8d8f0);
}

/* The orb (moon â†’ sun) */
.slider:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  left: 4px;
  top: 4px;
  background: #d4c9b2;
  box-shadow:
    inset -4px -2px 0 0 #b8a89a,
    0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.45s cubic-bezier(0.68,-0.55,0.27,1.55),
              background 0.4s ease,
              box-shadow 0.4s ease;
  z-index: 3;
}

.switch input:checked + .slider:before {
  transform: translateX(26px);
  background: #FFD93D;
  box-shadow:
    0 0 12px 3px rgba(255,220,50,0.55),
    0 2px 8px rgba(0,0,0,0.2);
}

/* Stars (dark mode) */
.star {
  position: absolute;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 2;
}
.star_1 { width: 3px; height: 3px; right: 10px; top: 6px; }
.star_2 { width: 2px; height: 2px; right: 16px; top: 14px; }
.star_3 { width: 2px; height: 2px; right: 8px; top: 18px; }

.switch input:checked ~ .slider .star {
  opacity: 0;
  transform: scale(0);
}

/* Clouds (light mode) */
.cloud {
  position: absolute;
  bottom: 5px;
  left: 6px;
  width: 22px;
  height: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}
.cloud::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  top: -6px;
  left: 4px;
}
.switch input:checked ~ .slider .cloud {
  opacity: 1;
}

[data-theme="dark"] .logo-img { filter: brightness(0) invert(1); }
[data-theme="dark"] .footer-logo-img { filter: none; }

.header-main-bar { padding: 14px 0; }

/* Hide mobile-only logo from desktop nav */
.mobile-menu-logo { display: none !important; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Header logo only */
.header-inner .logo img {
  height: 50px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}
.header-inner .logo:hover img {
  transform: scale(1.05);
}

.search-bar {
  flex: 1;
  max-width: 500px;
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
  background: var(--bg-2);
}
.search-bar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(179,155,125,0.12);
}
.search-bar input {
  flex: 1;
  padding: 10px 18px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button {
  padding: 0 18px;
  background: var(--gold);
  color: #fff;
  transition: var(--transition);
  font-size: 0.9rem;
}
.search-bar button:hover { background: #836e52; }

.header-icons {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
html[lang="ar"] .header-icons { margin-left: 0; margin-right: auto; }

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
}
.icon-btn:hover { color: var(--gold); background: var(--bg-3); }

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, var(--gold), #836e52);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(179,155,125,0.4);
  border: 1.5px solid var(--bg);
}

.cart-btn-modern {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  width: 46px;
  height: 46px;
  color: var(--text);
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}

.cart-btn-modern:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  transform: translateY(-2px) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(179,155,125,0.3);
}

.cart-btn-modern:hover .badge {
  background: #fff;
  color: var(--gold);
  border-color: var(--gold);
}

.menu-toggle {
  display: none;
  font-size: 1.3rem;
  color: var(--text);
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* Nav */
#mainNav {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-list > li > a {
  display: block;
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  transform: translateX(-50%);
}
.nav-list > li:hover > a,
.nav-list > li > a.active {
  color: var(--gold);
}
.nav-list > li:hover > a::after,
.nav-list > li > a.active::after {
  width: 70%;
}

.nav-list li a i {
  display: none; /* Hidden on desktop by default */
  font-size: 1.1rem;
  color: var(--gold);
}

/* Mobile Nav Specific Icon Styling */
@media (max-width: 991px) {
  .nav-list li a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(179, 155, 125, 0.1);
    border-radius: 8px;
    margin-right: 12px;
    font-size: 1rem;
    transition: var(--transition);
  }
  [lang="ar"] .nav-list li a i {
    margin-right: 0;
    margin-left: 12px;
  }
  .nav-list li a:hover i, .nav-list li a.active i {
    background: var(--gold);
    color: #fff;
  }
}

.has-dropdown { position: relative; }

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  padding: 24px;
  display: none;
  gap: 32px;
  min-width: 420px;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 500;
  animation: fadeInDown 0.25s ease;
}
html[lang="ar"] .mega-menu { left: auto; right: 0; }

.has-dropdown:hover .mega-menu { display: flex; }

.mega-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.mega-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 5px 0;
  transition: var(--transition);
}
.mega-col a:hover { color: var(--gold); padding-left: 6px; }
html[lang="ar"] .mega-col a:hover { padding-left: 0; padding-right: 6px; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 2px solid var(--gold);
  white-space: nowrap;
}
.btn-primary:hover {
  background: #836e52;
  border-color: #836e52;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(179,155,125,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ---- About Us Section ---- */
.about-us-section {
  padding: 80px 0;
  background: var(--bg-2);
}
.about-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.about-text {
  flex: 1;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.2;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}
.about-image {
  flex: 1;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-image:hover img {
  transform: scale(1.05);
}
@media (max-width: 991px) {
  .about-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---- Section Headers ---- */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}

html[lang="ar"] .section-header { text-align: center; }

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: rgba(179,155,125,0.12);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 15px;
  border: 1.5px solid var(--gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  order: 1;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--text);
  line-height: 1.2;
  order: 2;
}

/* ---- Hero Section ---- */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
}

.hero-slider { position: relative; min-height: 90vh; }

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.1); /* Start slightly larger for transition */
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  min-height: 90vh;
  overflow: hidden;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
  position: relative;
}


/* Background Image and Overlay */
.slide-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5; /* Above slide background, below content */
}



@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.slide-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  display: block;
}

.slide.active .slide-bg-img img {
  animation: slideInRight 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, 
             kenBurns 15s linear 1.5s infinite alternate;
}

[lang="ar"] .slide.active .slide-bg-img img {
  animation: slideInLeft 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, 
             kenBurns 15s linear 1.5s infinite alternate;
}



.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  z-index: 6; /* On top of image */
  transition: opacity 1s ease;
}


[lang="ar"] .slide-overlay {
  background: linear-gradient(to left, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}



/* Content over background */
.slide .container {
  position: relative;
  z-index: 10; /* Above images and overlay */
  display: flex;
  align-items: center;
  min-height: 90vh;
}


.slide-content {
  position: relative;
  z-index: 30;
  max-width: 650px;
  padding: 80px 0;
  animation: fadeInLeft 1s ease 0.4s both;
}


html[lang="ar"] .slide-content {
  animation: fadeInRight 1s ease 0.4s both;
  text-align: right;
}

html[lang="ar"] .slide-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem); /* Slightly smaller for Arabic to prevent overlap */
  line-height: 1.4; /* More breathing room for Arabic script */
}
html[lang="ar"] .slide-content p {
  margin-left: 0;
  margin-right: auto; /* Push to right */
}
html[lang="ar"] .slide-actions {
  justify-content: flex-start;
}

.slide-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(179,155,125,0.4);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  background: rgba(179,155,125,0.08);
}

.slide-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}


.slide-content h1 em {
  font-style: normal;
  color: #ffffff;
}

html[lang="ar"] .slide-content h1 em {
  font-style: normal; /* Arabic italics often look broken */
}

.slide-content p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 440px;
  line-height: 1.7;
}

.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Removing old slide-image styles as they are replaced by bg-img */
.slide-image { display: none; }




.hero-img-wrapper {
  position: relative;
  animation: float 4s ease-in-out infinite;
}

.hero-img-wrapper img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  object-fit: cover;
  max-height: 480px;
}

.floating-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  animation: float 3.5s ease-in-out infinite;
}

[data-theme="dark"] .floating-card {
  background: rgba(30,30,50,0.95);
  border: 1px solid var(--border);
}

.card-1 { bottom: -20px; left: -20px; animation-delay: 0.5s; }
.card-2 { top: 20px; right: -20px; animation-delay: 1s; }

.card-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}
.stars { color: var(--gold); font-size: 0.85rem; }
.price-tag {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.slider-controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.slider-prev, .slider-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.3);
}
.slider-prev:hover, .slider-next:hover { background: var(--gold); border-color: var(--gold); }

.slider-dots { display: flex; gap: 8px; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ---- Stats ---- */
.stats-section {
  padding: 48px 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }

.stat-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ---- Categories ---- */
.categories-section { padding: 80px 0; }

.categories-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 16px;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.cat-card.large { grid-row: 1 / 3; }
.cat-card.large img { height: 100%; }

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.cat-card:hover img { transform: scale(1.08); }

/* Shimmer Light Effect (Restored) */
.cat-card::after, .prod-img::after, .slide-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 5;
}

.cat-card:hover::after, .product-card:hover .prod-img::after, .slide:hover .slide-image::after {
  animation: shimmer-light 1.2s ease-in-out forwards;
}

@keyframes shimmer-light {
  0% { left: -150%; }
  100% { left: 200%; }
}

/* Integrated Look */
.cat-card {
  border: 1px solid var(--border);
}



.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Move to top */
  padding: 24px;
  transition: var(--transition);
}



.cat-tag {
  display: inline-block;
  background: var(--gold); /* Changed from blue */
  color: #fff !important;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


.cat-overlay h3 {
  display: none; /* Removed redundant old text */
}


.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  background: var(--gold);
  padding: 8px 16px;
  border-radius: 20px;
  width: fit-content;
}

.cat-card:hover .cat-btn {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Products ---- */
/* Fixed accidental HTML removal */
.filter-tabs-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}
.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 768px) {
  .filter-tabs-wrapper { justify-content: center; }
}

.products-section { padding: 80px 0; background: var(--bg-2); }

.filter-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 9px 22px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: var(--bg);
  transition: var(--transition);
  font-family: inherit;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(179,155,125,0.3);
}

/* Sort Select Styling to match Filter Tabs */
.sort-select {
  padding: 9px 22px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: var(--bg);
  transition: var(--transition);
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.sort-select:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  animation: scaleIn 0.5s ease both;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.prod-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-3);
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .prod-img img { transform: scale(1.07); }

.prod-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
}
html[lang="ar"] .prod-badge { left: auto; right: 12px; }

.prod-badge.sale { background: #8a6a3e; }
.prod-badge.new { background: #6d8e72; }

.prod-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(50px);
  transition: var(--transition);
}
html[lang="ar"] .prod-actions { right: auto; left: 12px; transform: translateX(-50px); }

.product-card:hover .prod-actions { transform: translateX(0); }
html[lang="ar"] .product-card:hover .prod-actions { transform: translateX(0); }

.prod-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.prod-action-btn:hover { background: var(--gold); color: #fff; }

.prod-body { padding: 16px; }

.prod-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 4px;
}

.prod-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}

.prod-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.prod-stars { color: var(--gold); font-size: 0.8rem; }
.prod-count { font-size: 0.75rem; color: var(--text-muted); }

.prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prod-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}
.prod-old-price {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
  font-family: var(--font-display);
}

.prod-cart-btn {
  padding: 8px 12px;
  border-radius: 10px; /* Matching the badge style */
  background: var(--gold);
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  border: none;
}
.prod-cart-btn:hover {
  background: #836e52;
  transform: translateY(-2px);
}



/* ---- Promo ---- */
.promo-section { padding: 80px 0; }

.promo-inner {
  background: linear-gradient(135deg, var(--charcoal) 0%, #4a3f35 60%, #2d2520 100%);
  border-radius: 20px;
  padding: 60px;
  display: flex;
  align-items: center;
  gap: 60px;
  overflow: hidden;
  position: relative;
}

.promo-inner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(179,155,125,0.12);
  pointer-events: none;
}

.promo-inner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 30%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(179,155,125,0.07);
  pointer-events: none;
}

.promo-text { flex: 1; }

.promo-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  border: 2px solid var(--gold);
  background: rgba(179, 155, 125, 0.15);
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.promo-text h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: #f5eedc;
  margin-bottom: 12px;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.promo-text p {
  color: rgba(245,238,220,0.85);
  margin-bottom: 24px;
}
.promo-text strong { color: var(--gold); }

.promo-image {
  flex: 0 0 360px;
  border-radius: var(--radius);
  overflow: hidden;
}
.promo-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.5s ease;
  animation: floatImage 6s ease-in-out infinite;
}
.promo-image:hover img { transform: scale(1.04); animation-play-state: paused; }

@keyframes floatImage {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ---- Features ---- */
.features-section {
  padding: 80px 0;
  background: var(--bg-2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold);
  opacity: 0;
  transition: 0.3s;
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(179,155,125,0.12);
  border-color: var(--gold);
}
.feature-card:hover::before {
  opacity: 1;
}

.feat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(179,155,125,0.1);
  color: var(--gold);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: var(--transition);
}
.feature-card:hover .feat-icon {
  background: var(--gold);
  color: #fff;
  animation: spinGrow 0.4s ease;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Gallery ---- */
.gallery-section { padding: 80px 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 14px;
}

.gal-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gal-item.tall { grid-row: 1 / 3; }
.gal-item.wide { grid-column: 2 / 4; }

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gal-item:hover img { transform: scale(1.07); }

.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gal-item:hover .gal-overlay { opacity: 1; }

.gal-overlay span {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(179,155,125,0.85);
  padding: 6px 14px;
  border-radius: 20px;
}

/* ---- Testimonials ---- */
.testimonials-section { padding: 80px 0; background: var(--bg-2); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testi-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}
.testi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.testi-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(179,155,125,0.05), var(--bg));
}

.testi-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testi-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.testi-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.testi-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- Newsletter ---- */
.newsletter-section {
  padding: 80px 0;
  background: var(--bg);
}

.newsletter-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  justify-content: space-between;
}

.newsletter-text h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 8px;
}
.newsletter-text p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

.newsletter-form {
  display: flex;
  gap: 0;
  min-width: 400px;
  border-radius: 50px;
  overflow: hidden;
  border: 1.5px solid rgba(179,155,125,0.4);
  background: rgba(255,255,255,0.08);
}
.newsletter-form input {
  flex: 1;
  padding: 14px 22px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form button {
  padding: 14px 28px;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.newsletter-form button:hover { background: #836e52; }

/* ---- Footer ---- */
#footer { background: var(--dark); color: rgba(255,255,255,0.7); }
[data-theme="dark"] #footer { background: #111312; }

.footer-body { padding: 64px 0 40px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.3fr;
  gap: 48px;
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 16px;
}
.footer-brand .logo-furn { color: #fff; }
.footer-brand .logo-home { color: var(--gold); }

.footer-brand p {
  font-size: 0.87rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover {
  transform: translateY(-3px);
}
.footer-social a[title="Facebook"]:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.footer-social a[title="Instagram"]:hover { background: #E4405F; border-color: #E4405F; color: #fff; }
.footer-social a[title="TikTok"]:hover { background: #000000; border-color: #000000; color: #fff; }

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--gold); padding-left: 4px; }
html[lang="ar"] .footer-col ul a:hover { padding-left: 0; padding-right: 4px; }

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}
.footer-contact-list i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,0.5); }
.footer-contact-list a:hover { color: var(--gold); }

.payment-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.payment-icons img {
  height: 24px;
  opacity: 0.6;
  filter: brightness(2);
  transition: var(--transition);
}
.payment-icons img:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 25px 0;
  text-align: center;
}
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.footer-bottom p { 
  font-size: 0.88rem; 
  color: #8b92a5; 
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 0.82rem;
  color: #8b92a5;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }

/* Floating Buttons Base Position */
#backToTop {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 4000;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  visibility: hidden;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

.wa-fixed-btn {
  position: fixed;
  bottom: 30px;
  right: 24px;
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#backToTop:hover {
  background: #836e52;
  transform: translateY(-5px);
}

/* --- Floating Cart Button --- */
.cart-fixed-container {
  position: fixed;
  bottom: 160px;
  right: 24px;
  z-index: 999;
  transition: var(--transition);
}

[dir="rtl"] .cart-fixed-container {
  right: auto;
  left: 24px;
}

[dir="rtl"] #backToTop {
  right: auto;
  left: 24px;
}

[dir="rtl"] .whatsapp-fixed-container {
  right: auto;
  left: 24px;
}

.cart-fixed-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.cart-fixed-btn:hover {
  background: #836e52;
  transform: scale(1.1);
}

.cart-fixed-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: #fff;
  font-size: 0.7rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

@media (max-width: 768px) {
  .cart-fixed-container {
    bottom: 135px;
    right: 15px;
  }
  .cart-fixed-btn {
    width: 45px !important;
    height: 45px !important;
  }
  [dir="rtl"] .cart-fixed-container {
    right: auto;
    left: 15px;
  }
}

/* --- WhatsApp Button Mobile --- */

/* New WhatsApp Button (Uiverse.io Style) */
.whatsapp-fixed-container {
  position: fixed;
  bottom: 40px;
  right: 24px;
  z-index: 4000;
  transition: all 0.3s ease;
}

.whatsapp-fixed-container .Btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition-duration: 0.3s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
  background-color: #25D366;
}

.whatsapp-fixed-container .sign {
  width: 100%;
  transition-duration: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-fixed-container .sign svg {
  width: 25px;
}

.whatsapp-fixed-container .sign svg path {
  fill: white;
}

.whatsapp-fixed-container .text {
  position: absolute;
  right: 0%;
  width: 0%;
  opacity: 0;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  transition-duration: 0.3s;
  white-space: nowrap;
}

.whatsapp-fixed-container .Btn:hover {
  border-radius: 50%;
  transition-duration: 0.3s;
}

.whatsapp-fixed-container .text {
  display: none !important;
}

.whatsapp-fixed-container .Btn:hover .sign {
  width: 30%;
  transition-duration: 0.3s;
  padding-left: 10px;
}

.whatsapp-fixed-container .Btn:hover .text {
  opacity: 1;
  width: 70%;
  transition-duration: 0.3s;
  padding-right: 15px;
}

.whatsapp-fixed-container .Btn:active {
  transform: translate(2px, 2px);
}





/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  #mainNav .nav-list { display: none; flex-direction: column; padding: 16px 0; }
  #mainNav .nav-list.open { display: flex; }
  .nav-list > li > a { padding: 10px 16px; }
  .mega-menu { position: static; min-width: unset; padding: 12px 24px; flex-direction: column; gap: 16px; border: none; box-shadow: none; background: var(--bg-3); }
  .has-dropdown:hover .mega-menu { display: none; }
  .has-dropdown.open .mega-menu { display: flex; }

  .header-main-bar .search-bar { display: none; }
  .slide .container { flex-direction: column; padding: 130px 24px 60px; gap: 32px; }
  .slide-content { max-width: 100%; padding: 0; text-align: center; }
  .slide-actions { justify-content: center; }
  .slide-image { max-width: 100%; }
  .floating-card { display: none; }
  .hero-section, .hero-slider, .slide { min-height: 80vh; }

  .categories-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .cat-card.large { grid-column: 1 / 3; grid-row: auto; }

  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gal-item.tall, .gal-item.wide { grid-column: auto; grid-row: auto; }
  .gal-item { height: 200px; }

  .promo-inner { flex-direction: column; padding: 40px 28px; gap: 32px; }
  .promo-image { flex: none; width: 100%; }

  .newsletter-inner { flex-direction: column; text-align: center; gap: 24px; }
  .newsletter-form { min-width: 100%; max-width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .section-header h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .cat-card.large { grid-column: auto; }
  .top-info { display: none; }
}

/* ---- Product Details Modal ---- */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.product-modal.visible {
  visibility: visible;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-modal.visible .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: 1px solid var(--border);
  transition: var(--transition);
}
html[lang="ar"] .modal-close { right: auto; left: 20px; }

.modal-close:hover {
  background: var(--gold);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

@media (max-width: 768px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-content { max-height: 90vh; overflow-y: auto; }
}

.modal-image {
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.modal-image img {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: contain;
}

.modal-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-category {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.modal-info h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.modal-price {
  margin-bottom: 20px;
  display: flex;
  align-items: center; gap: 12px;
}

.modal-price .current-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-display);
}

.modal-price .old-price {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.modal-rating {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-rating .stars {
  color: #ffc107;
  font-size: 1.1rem;
}

.modal-rating .count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

[data-theme="dark"] .modal-content {
  background: var(--bg-2);
}
[data-theme="dark"] .modal-image {
  background: var(--bg-3);
}

/* WhatsApp Styles moved to consolidated section above */

.Btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition-duration: 0.3s;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  background-color: #25D366 !important;
  z-index: 10;
}
.sign {
  width: 100%;
  transition-duration: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sign svg {
  width: 24px;
  height: 24px;
}
.sign svg path {
  fill: white;
}
.text {
  position: absolute;
  right: 0%;
  width: 0%;
  opacity: 0;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  transition-duration: 0.3s;
  white-space: nowrap;
}
html[lang="ar"] .text {
  right: auto;
  left: 0%;
}
/* Stable WhatsApp Button (No width expansion near edge) */
.wa-fixed-btn .Btn {
  width: 50px !important;
  border-radius: 50% !important;
}
.wa-fixed-btn .Btn:hover {
  width: 50px !important;
  transform: scale(1.1);
  background-color: #20b358 !important;
}
.wa-fixed-btn .text {
  display: none !important;
}
.Btn:active {
  transform: translate(2px, 2px);
}


/* ---- Side Cart ---- */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 4999; opacity: 0; visibility: hidden; transition: all 0.4s; backdrop-filter: blur(4px); }
.cart-overlay.active { opacity: 1; visibility: visible; }

.side-cart { position: fixed; top: 0; right: -450px; width: 420px; height: 100%; background: var(--bg); z-index: 5000; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: -10px 0 30px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.side-cart.active { right: 0; }
[lang="ar"] .side-cart { right: auto; left: -450px; }
[lang="ar"] .side-cart.active { left: 0; }

.cart-header { padding: 25px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-header h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.close-cart { font-size: 1.4rem; color: var(--text-muted); cursor: pointer; transition: color 0.3s; }
.close-cart:hover { color: var(--gold); }

.cart-items-list { flex: 1; overflow-y: auto; padding: 20px; }
.cart-item-mini { display: flex; gap: 15px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--bg-3); animation: fadeInUp 0.4s ease forwards; }
.cart-item-mini img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.item-info-mini { flex: 1; }
.item-info-mini h4 { font-size: 0.95rem; margin-bottom: 4px; color: var(--text); }
.item-price-mini { color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.item-qty-mini { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }
.remove-mini { color: #ff5e5e; font-size: 0.8rem; cursor: pointer; margin-top: 8px; display: inline-block; }

.cart-footer-mini { padding: 25px; background: var(--bg-2); border-top: 1px solid var(--border); }
.cart-total-mini { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cart-total-mini span:first-child { font-weight: 600; color: var(--text-muted); }
.cart-total-mini span:last-child { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--gold); }

.wa-order-btn { width: 100%; padding: 16px; background: #25D366; color: #fff; border-radius: 50px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s; cursor: pointer; border: none; font-family: inherit; font-size: 1rem; }
.wa-order-btn:hover { background: #128C7E; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37,211,102,0.3); }

@media (max-width: 480px) {
  .side-cart { width: 100%; right: -100%; }
}


/* RTL Pagination Arrow Flip */
[lang="ar"] .pagination .fa-chevron-right { transform: scaleX(-1); display: inline-block; }

.item-qty-mini { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--border); background: var(--bg); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; font-size: 0.75rem; }
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.remove-mini-icon { position: absolute; top: 10px; right: 10px; color: #ff4d4d; cursor: pointer; transition: all 0.2s; font-size: 0.9rem; }
.remove-mini-icon:hover { transform: scale(1.1); color: #ff0000; }
[dir="rtl"] .remove-mini-icon { right: auto; left: 10px; }
.item-info-mini { position: relative; width: 100%; }
/* ============ MOBILE RESPONSIVENESS ============ */
@media (max-width: 991px) {
  .header-main-bar .container { padding: 10px 20px; }
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%; /* Responsive width for phones */
    max-width: 350px; /* Cap for tablets */
    height: 100vh;
    background: var(--bg);
    isolation: isolate;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 0; /* Add top/bottom padding */
    z-index: 3100;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -15px 0 45px rgba(0,0,0,0.2);
    overflow-y: auto;
    border-left: 1px solid var(--border);
  }
  [lang="ar"] .nav-list { 
    right: auto; 
    left: -100%; 
    border-left: none; 
    border-right: 1px solid var(--border); 
  }
  .nav-list.open { left: 0; right: auto; }
  [lang="ar"] .nav-list.open { left: 0; right: auto; }

  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2099;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
  }
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-logo {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu-logo img {
    height: 40px !important;
    width: auto !important;
    object-fit: contain;
  }
  .close-menu {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
  }
  .close-menu:hover {
    background: var(--gold);
    color: #fff;
    transform: rotate(90deg);
  }

  .nav-list li { 
    width: 100%; 
    padding: 0 15px; 
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  [lang="ar"] .nav-list li { transform: translateX(-30px); }
  .nav-list.open li {
    opacity: 1;
    transform: translateX(0);
  }
  .nav-list.open li:nth-child(2) { transition-delay: 0.05s; }
  .nav-list.open li:nth-child(3) { transition-delay: 0.1s; }
  .nav-list.open li:nth-child(4) { transition-delay: 0.15s; }
  .nav-list.open li:nth-child(5) { transition-delay: 0.2s; }
  .nav-list.open li:nth-child(6) { transition-delay: 0.25s; }
  .nav-list.open li:nth-child(7) { transition-delay: 0.3s; }
  .nav-list.open li:nth-child(8) { transition-delay: 0.35s; }
  .nav-list.open li:nth-child(9) { transition-delay: 0.4s; }
  .nav-list.open li:nth-child(10) { transition-delay: 0.45s; }
  .nav-list.open li:nth-child(n+11) { transition-delay: 0.5s; }

  .nav-list li a { 
    padding: 14px 20px; 
    font-size: 0.95rem; 
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    width: 100%;
    color: var(--text);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  }
  .nav-list li a::after { display: none !important; }


  .nav-list li a:hover, .nav-list li a.active {
    border-color: var(--gold);
    background: var(--gold-light);
    color: var(--gold);
    box-shadow: 0 4px 12px rgba(179,155,125,0.08);
  }
  
  .menu-toggle { display: flex !important; }
  .search-bar { display: none; }
  
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .features-grid { 
    grid-template-columns: 1fr; 
    gap: 20px; 
    padding: 0 10px; /* Add some breathing room */
  }
  .feature-card {
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 10px;
  }
  .feat-icon {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
    margin-bottom: 16px;
    background: var(--gold-light);
    color: var(--gold);
    border-radius: 50%;
  }
  .feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text);
  }
  .feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
  }
  .testi-grid { grid-template-columns: repeat(1, 1fr); gap: 20px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gal-item.wide { grid-column: auto; }
  
  .promo-content { flex-direction: column; text-align: center; gap: 30px; }
  .promo-image { flex: 0 0 auto; width: 100%; }
  
  .footer-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-brand, .footer-contact-list { align-items: center; }
  .footer-social { justify-content: center; }
}

@media (max-width: 576px) {
  .top-bar { justify-content: flex-end; padding: 6px 0; }
  .top-info { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { min-height: 70vh; }
  .slide { min-height: 70vh; }
  .slide-content h1 { font-size: 2.2rem; }
  .logo-img { height: 48px; max-width: 160px; }
  .prod-name { font-size: 0.82rem; }
  .prod-price { font-size: 0.9rem; }
}

/* Fix for horizontal scroll on mobile and layout shifting */
body, html { overflow-x: hidden; width: 100%; position: relative; }
.container { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.header-inner, .top-bar, .hero-slider, .slide { max-width: 100%; overflow: hidden; }


.blue-link {
    color: var(--gold) !important; /* Ø¯Ø±Ø¬Ø© Ø§Ù„Ù„ÙˆÙ† Ø§Ù„Ø°Ù‡Ø¨ÙŠ Ù„Ù„Ø±Ø§Ø¨Ø· */
    text-decoration: none !important; /* Ø¥Ø²Ø§Ù„Ø© Ø§Ù„Ø®Ø· Ù…Ù† ØªØ­Øª Ø§Ù„Ø±Ø§Ø¨Ø· */
    font-weight: 700;
    transition: all 0.3s ease;
}

.blue-link:hover {
    color: #967f63 !important; /* Ù„ÙˆÙ† Ø§Ù„Ø±Ø§Ø¨Ø· Ù…Ù† ØªÙ…Ø±Ø± Ø§Ù„Ù…Ø§ÙˆØ³ Ø¹Ù„ÙŠÙ‡ */
    text-decoration: underline !important; /* ÙŠØ±Ø¬Ø¹ Ø§Ù„Ø®Ø· Ù…Ù† ØªÙ…Ø±Ø± Ø§Ù„Ù…Ø§ÙˆØ³ */
}

/* Mobile Categories Bar Styles */
.mobile-categories-nav {
  display: none;
  background: var(--bg);
  padding: 5px 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

@media (max-width: 991px) {
  .mobile-categories-nav {
    display: block !important;
  }
  .menu-toggle {
    display: flex !important;
  }
  .stats-section {
    margin-top: 20px !important;
  }
}

.categories-scroll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  overflow-x: auto !important;
  padding: 8px 10px 12px !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.categories-scroll::-webkit-scrollbar {
  display: none !important;
}

.mobile-cat-item {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 80px !important;
  text-decoration: none;
  transition: var(--transition);
}

.mcat-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.mobile-cat-item span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.mobile-cat-item:hover .mcat-icon,
.mobile-cat-item.active .mcat-icon {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(179,155,125,0.25);
}

.mobile-cat-item:hover span,
.mobile-cat-item.active span {
  color: var(--gold);
}

/* =============================================
   CRITICAL RTL OVERRIDES (FORCE TO LEFT)
   ============================================= */
[dir="rtl"] #backToTop,
html[lang="ar"] #backToTop,
[dir="rtl"] .whatsapp-fixed-container,
html[lang="ar"] .whatsapp-fixed-container {
  right: auto !important;
  left: 24px !important;
}

[dir="rtl"] .whatsapp-fixed-container .Btn:hover .sign {
  padding-left: 0;
  padding-right: 10px;
}

[dir="rtl"] .whatsapp-fixed-container .Btn:hover .text {
  padding-right: 0;
  padding-left: 15px;
}
[dir="rtl"] .wa-fixed-btn, 
[dir="rtl"] .whatsapp-float {
  left: 30px !important;
  right: auto !important;
}

.wa-fixed-btn, .whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 5000;
}

[dir="rtl"] .wa-fixed-btn .Btn,
[dir="rtl"] .whatsapp-float .Btn {
  transform-origin: left center !important;
}

/* =============================================
   NEW E-COMMERCE STYLES (Flash Deals, Best Sellers, Newsletter, Reviews)
   ============================================= */

/* Flash Deals Section */
.flash-deals-section {
  padding: 60px 0;
  background: var(--bg-2);
}
.flash-header-left {
  display: flex;
  flex-direction: column;
}
.flash-timer {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 15px;
}
.flash-timer .time-box {
  background: var(--gold);
  color: #fff;
  border-radius: 8px;
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.flash-timer .time-box span {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.flash-timer .time-box small {
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-top: 4px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Best Sellers */
.best-sellers-section {
  padding: 60px 0;
}

/* Newsletter Section */
.newsletter-section {
  padding: 60px 0;
}
.newsletter-card {
  background: linear-gradient(135deg, #3c3f3e 0%, #4a3f35 60%, #2d2520 100%);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.newsletter-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.newsletter-content h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.newsletter-content p {
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}
.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}
.newsletter-form input {
  flex: 1;
  padding: 15px 25px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  outline: none;
}
.newsletter-form button {
  border-radius: 50px;
  padding: 15px 35px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .newsletter-form { flex-direction: column; }
  .section-header { flex-direction: column; align-items: center; text-align: center; }
}

/* Reviews Slider */
.reviews-section {
  padding: 60px 0;
  background: var(--bg-2);
}
.reviews-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 5px;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
.reviews-slider::-webkit-scrollbar { display: none; }
.review-card {
  min-width: 300px;
  max-width: 400px;
  background: var(--bg);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
  border: 1px solid var(--border);
}
.review-card .stars {
  color: #f59e0b;
  margin-bottom: 15px;
}
.review-card p {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.review-card h4 {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--gold);
  color: #fff;
  padding: 10px 0;
  position: relative;
  overflow: hidden;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.announcement-track {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}
.announcement-track span {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ann-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}
[dir="rtl"] .ann-close { right: auto; left: 15px; }

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
[dir="rtl"] .announcement-track {
  animation: marqueeRTL 20s linear infinite;
}
@keyframes marqueeRTL {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---- Toast Notification ---- */
.fh-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-main);
}
.fh-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
html[lang="ar"] .fh-toast {
  right: auto;
  left: 20px;
}

/* ---- Wishlist Active State ---- */
.prod-action-btn.wished i {
  color: #ff4757;
}
.prod-action-btn.wished {
  background: rgba(255, 71, 87, 0.1);
}

/* ---- Text Logo Styling ---- */
.text-logo {
  font-family: 'Syne', 'Playfair Display', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--charcoal);
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1;
}
.text-logo span {
  color: var(--gold);
  font-weight: 800;
}
[data-theme="dark"] .text-logo {
  color: #f0ece6;
}
/* Logo on dark backgrounds (footer, hero, loader) always white */
#footer .text-logo,
.loader-logo-static .text-logo,
.page-banner .text-logo {
  color: #fff;
}
#footer .text-logo span,
.loader-logo-static .text-logo span,
.page-banner .text-logo span {
  color: var(--gold);
}
.header-inner .text-logo {
  font-size: 1.8rem;
}
.footer-brand .text-logo {
  font-size: 2rem;
  margin-bottom: 15px;
}
.loader-logo-static .text-logo {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .header-inner .text-logo { font-size: 1.4rem; }
  .footer-brand .text-logo { font-size: 1.8rem; }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
  background: var(--bg);
  font-family: inherit;
}

.page-btn:hover,
.page-btn.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* ============ PAGE TRANSITIONS ============ */
body {
  opacity: 1;
  transition: opacity 0.25s ease;
}
body.page-exit {
  opacity: 0;
  pointer-events: none;
}

/* ============ MOBILE HEADER FIX ============ */
.header-top {
  display: block !important;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 480px) {
  .top-bar {
    padding: 7px 0;
    gap: 8px;
    justify-content: flex-end;
  }
  .lang-btn {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
  .switch {
    transform: scale(0.85);
  }
}

/* ============ CATEGORIES SECTION HEADER FIX ============ */
.categories-section .section-header,
.flash-deals-section .section-header {
  /* Ensure these headers are always visible */
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

/* Re-enable animation only if not already revealed */
.categories-section .section-header[data-reveal]:not(.revealed),
.flash-deals-section .section-header[data-reveal]:not(.revealed) {
  opacity: 0;
  transform: translateY(40px);
}

/* ============================================================
   MOBILE COMPLETE FIX v4.2
   ÙŠØµÙ„Ø­: Ø§Ù„Ø£ÙŠÙ‚ÙˆÙ†Ø§ØªØŒ Ø§Ù„ØªØµÙ…ÙŠÙ…ØŒ Ø§Ù„Ø´Ø±ÙŠØ· Ø§Ù„Ø¹Ù„ÙˆÙŠØŒ ÙƒÙ„ Ø§Ù„ØµÙØ­Ø§Øª
   ============================================================ */

/* --- Header Mobile --- */
@media (max-width: 991px) {
  /* Ø§Ù„Ø´Ø±ÙŠØ· Ø§Ù„Ø¹Ù„ÙˆÙŠ ÙŠØ¸Ù‡Ø± Ø¯Ø§Ø¦Ù…Ø§Ù‹ */
  .header-top { 
    display: block !important; 
    background: var(--dark) !important;
  }
  [data-theme="dark"] .header-top { background: #111312 !important; }
  
  .top-bar { 
    display: flex !important; 
    justify-content: flex-end !important; 
    align-items: center !important;
    gap: 10px !important;
    padding: 7px 0 !important;
  }
  
  /* Ø²Ø± Ø§Ù„Ù‚Ø§Ø¦Ù…Ø© ÙŠØ¸Ù‡Ø± */
  .menu-toggle { 
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  
  /* Ø³Ù„Ø© Ø§Ù„Ù…Ø´ØªØ±ÙŠØ§Øª */
  .header-icons { display: flex !important; }
  
  /* Ø­Ø¬Ù… Ø§Ù„Ù„ÙˆØ¬Ùˆ */
  .header-inner .text-logo { font-size: 1.35rem !important; }
  
  /* ØªØ¬Ù†Ø¨ Ø£ÙŠ overflow */
  .header-inner { 
    gap: 10px !important;
    flex-wrap: nowrap !important;
  }
}

/* --- Mobile Categories Bar --- */
.mobile-categories-nav {
  display: none;
  overflow: hidden;
}
@media (max-width: 991px) {
  .mobile-categories-nav {
    display: block !important;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
  }
}

/* ØªØ­Ø³ÙŠÙ† Ø´Ø±ÙŠØ· Ø§Ù„Ø£ÙŠÙ‚ÙˆÙ†Ø§Øª Ù„Ù„Ø¬ÙˆØ§Ù„ */
.categories-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding: 15px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.mobile-cat-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 65px;
}

.mcat-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.mobile-cat-item span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: center;
  transition: all 0.3s ease;
}

/* Ø­Ø§Ù„Ø© Ø§Ù„Ù†Ø´Ø§Ø· */
.mobile-cat-item.active .mcat-icon {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(179, 155, 125, 0.3);
}

.mobile-cat-item.active span {
  color: var(--gold);
  font-weight: 700;
}

/* Ø¥Ø®ÙØ§Ø¡ Ø§Ù„Ù‚Ø§Ø¦Ù…Ø© Ø§Ù„Ø¬Ø§Ù†Ø¨ÙŠØ© ÙˆØ²Ø± Ø§Ù„Ù…Ù†ÙŠÙˆ Ù†Ù‡Ø§Ø¦ÙŠØ§Ù‹ */
.menu-toggle, .mobile-menu-logo .close-menu {
  display: none !important;
}

/* --- Products Grid Mobile --- */
@media (max-width: 768px) {
  .products-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 12px !important;
  }
  .product-card { border-radius: 10px; }
  .prod-img { border-radius: 10px 10px 0 0; }
  .prod-body { padding: 10px !important; }
  .prod-name { font-size: 0.8rem !important; line-height: 1.3 !important; }
  .prod-price { font-size: 0.9rem !important; }
  .prod-category { font-size: 0.68rem !important; }
  .prod-cart-btn { width: 28px !important; height: 28px !important; font-size: 0.75rem !important; }
  .prod-footer { gap: 6px !important; }
}

@media (max-width: 480px) {
  .products-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 9px !important;
  }
  .prod-name { font-size: 0.76rem !important; }
  .prod-price { font-size: 0.85rem !important; }
}

/* --- Hero Section Mobile --- */
@media (max-width: 768px) {
  .hero-section, .hero-slider { min-height: 60vh !important; }
  .slide { min-height: 60vh !important; }
  .slide-content { padding: 20px 0 !important; }
  .slide-content h1 { font-size: 1.9rem !important; line-height: 1.2 !important; }
  .slide-content p { font-size: 0.9rem !important; }
  .slide-actions { gap: 10px !important; flex-wrap: wrap; }
  .slide-actions .btn-primary, .slide-actions .btn-outline {
    padding: 10px 18px !important;
    font-size: 0.88rem !important;
  }
  .slider-controls { display: none !important; }
  .slider-dots { gap: 6px; }
}

/* --- Categories Grid Mobile --- */
@media (max-width: 768px) {
  .categories-grid { 
    grid-template-columns: 1fr 1fr !important; 
    gap: 10px !important;
  }
  .cat-card.large { grid-column: 1 / -1 !important; height: 220px !important; }
  .cat-card { height: 160px !important; }
}

/* --- Sections Mobile Padding --- */
@media (max-width: 768px) {
  .products-section,
  .categories-section,
  .flash-deals-section,
  .features-section,
  .testimonials-section,
  .newsletter-section,
  .stats-section { 
    padding: 50px 0 !important; 
  }
  .section-header { margin-bottom: 28px !important; }
  .section-header h2 { font-size: 1.7rem !important; }
}

/* --- Features Grid Mobile --- */
@media (max-width: 768px) {
  .features-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 12px !important;
  }
  .feature-card { padding: 22px 16px !important; }
  .feature-icon { 
    width: 48px !important; 
    height: 48px !important; 
    font-size: 1.2rem !important; 
    margin-bottom: 12px !important;
  }
  .feature-card h3 { font-size: 0.9rem !important; }
  .feature-card p { font-size: 0.8rem !important; }
}

/* --- Flash Deals Mobile --- */
@media (max-width: 768px) {
  .flash-header-left { flex-direction: column; gap: 4px; }
  .flash-timer { gap: 6px !important; }
  .time-box { 
    min-width: 50px !important; 
    padding: 8px !important;
  }
  .time-box span { font-size: 1.4rem !important; }
  .time-box small { font-size: 0.6rem !important; }
}

/* --- Footer Mobile --- */
@media (max-width: 768px) {
  .footer-grid { 
    grid-template-columns: 1fr !important; 
    gap: 28px !important;
  }
  .footer-body { padding: 40px 0 20px !important; }
  .footer-social { justify-content: center !important; }
  .footer-brand { text-align: center !important; }
}

/* --- Cart Sidebar Mobile --- */
@media (max-width: 480px) {
  .side-cart { 
    width: 100% !important; 
    right: -100% !important;
  }
  [lang="ar"] .side-cart {
    left: -100% !important;
    right: auto !important;
  }
  .side-cart.active { 
    right: 0 !important;
  }
  [lang="ar"] .side-cart.active {
    left: 0 !important;
    right: auto !important;
  }
}

/* --- Modal Mobile --- */
@media (max-width: 768px) {
  .modal-content {
    margin: 10px !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
  }
  .modal-body { 
    flex-direction: column !important; 
    gap: 16px !important;
  }
  .modal-image { 
    min-height: 220px !important; 
    max-height: 260px !important;
  }
}

/* --- Contact Page Mobile --- */
@media (max-width: 768px) {
  .contact-main-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .contact-form-box { padding: 24px 18px !important; }
  .contact-info-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .contact-card { padding: 20px 14px !important; }
  .map-container { min-height: 280px !important; }
}

/* --- Back to Top Button --- */
@media (max-width: 768px) {
  #backToTop { 
    bottom: 75px !important; 
    right: 14px !important;
    width: 45px !important;
    height: 45px !important;
    bottom: 75px !important;
    right: 15px !important;
    font-size: 0.85rem !important;
  }
  [dir="rtl"] #backToTop {
    right: auto !important;
    left: 15px !important;
  }
}

/* --- WhatsApp Button Mobile --- */
@media (max-width: 768px) {
  .whatsapp-fixed-container {
    bottom: 15px !important;
    right: 15px !important;
  }
  .whatsapp-fixed-container .Btn {
    width: 45px !important;
    height: 45px !important;
  }
  [dir="rtl"] .whatsapp-fixed-container {
    right: auto !important;
    left: 15px !important;
  }
}

/* --- Announcement Bar Mobile --- */
@media (max-width: 768px) {
  .announcement-bar { font-size: 0.78rem !important; padding: 7px 35px 7px 10px !important; }
}

/* --- Stats Grid Mobile --- */
@media (max-width: 768px) {
  .stats-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 12px !important;
  }
  .stat-item { padding: 20px 12px !important; }
  .stat-num { font-size: 2rem !important; }
}

/* --- Testimonials / Reviews Mobile --- */
@media (max-width: 768px) {
  .testimonials-grid, .reviews-grid { 
    grid-template-columns: 1fr !important; 
    gap: 14px !important;
  }
}

/* --- Gallery Mobile --- */
@media (max-width: 768px) {
  .gallery-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 8px !important;
  }
}

/* --- Newsletter Mobile --- */
@media (max-width: 768px) {
  .newsletter-box { 
    padding: 30px 18px !important; 
    border-radius: 16px !important;
  }
  .newsletter-form { flex-direction: column !important; gap: 10px !important; }
  .newsletter-form input { width: 100% !important; border-radius: 10px !important; }
  .newsletter-form button { width: 100% !important; border-radius: 10px !important; }
}

/* --- Shop Page Mobile --- */
@media (max-width: 768px) {
  .shop-layout { padding: 24px 0 !important; }
  .shop-products-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 10px !important;
  }
  .shop-main-header { gap: 8px !important; }
  .sort-select { font-size: 0.8rem !important; padding: 6px 10px !important; }
}

/* --- Promo Section Mobile --- */
@media (max-width: 768px) {
  .promo-section { padding: 0 !important; }
  .promo-content { 
    flex-direction: column !important; 
    gap: 20px !important;
    padding: 30px 18px !important;
  }
  .promo-image { max-height: 200px !important; overflow: hidden !important; }
  .promo-image img { height: 200px !important; object-fit: cover !important; }
}

/* --- Make sure text stays readable --- */
@media (max-width: 480px) {
  .container { padding: 0 12px !important; }
  body { font-size: 14px; }
}

