/* ============================================
   ZAIN WATER HEATERS - IRAQ
   Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Noto+Kufi+Arabic:wght@300;400;600;700&family=Bebas+Neue&display=swap');

:root {
  /* Real Zain brand colors, sampled from the logo (orange/red/olive) and the
     Grohee Khaleej product labels (blue). Nothing guessed here. */
  --primary: #ffffff;
  --bg-alt: #f7f6f3;
  --accent: #f19c11;       /* Zain orange — primary CTA/brand color */
  --accent2: #da2125;      /* red — sparing use: badges, urgency */
  --gold: #f19c11;         /* kept as an alias so existing rules referencing --gold still work */
  --olive: #9bae2d;        /* third logo color — secondary accent, badges */
  --surface: #ffffff;
  --surface2: #f7f6f3;
  --glass: rgba(241, 156, 17, 0.06);
  --glass-border: rgba(20, 20, 20, 0.10);
  --white: #ffffff;
  --white-glass: rgba(20, 20, 20, 0.03);
  --white-border: rgba(20, 20, 20, 0.10);
  --text: #1a1a1a;
  --text-muted: #6b6b68;
  --zain-color: #f19c11;
  --grohee-color: #005596; /* real Grohee Khaleej blue, sampled from product labels */
  --glow: 0 0 30px rgba(241, 156, 17, 0.25);
  --glow-warm: 0 0 24px rgba(218, 33, 37, 0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--primary);
  color: var(--text);
  font-family: 'Rajdhani', 'Noto Kufi Arabic', sans-serif;
  overflow-x: hidden;
}

/* Custom glow-cursor removed for a more professional, standard-UX feel —
   JS still moves these harmlessly, just not rendered. */
.cursor, .cursor-ring { display: none; }
.cursor {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.2s;
  box-shadow: 0 0 15px var(--accent);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(241,156,17,0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.2s, height 0.2s;
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ===================== LOADER ===================== */
#loader {
  position: fixed; inset: 0;
  background: var(--primary);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.loader-bar-wrap {
  width: 200px; height: 2px;
  background: rgba(20,20,20,0.08);
  margin-top: 24px; border-radius: 2px; overflow: hidden;
}
.loader-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  animation: loadProgress 2s ease forwards;
}
@keyframes loadProgress { to { width: 100%; } }

/* ===================== NAVBAR ===================== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.brand-mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-emblem { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.nav-wordmark { height: 26px; width: auto; object-fit: contain; }
.footer-brand .nav-emblem { width: 44px; height: 44px; }
.footer-brand .nav-wordmark { height: 30px; }
.loader-emblem { width: 84px; height: 84px; object-fit: contain; }
.loader-wordmark { width: clamp(160px, 30vw, 280px); height: auto; object-fit: contain; margin-top: 6px; }
.logo-emblem {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px dashed var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--text-muted); background: var(--white-glass);
  flex-shrink: 0; text-align: center; line-height: 1.1;
}
.logo-emblem img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.loader-logo-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loader-logo-wrap .logo-emblem { width: 84px; height: 84px; font-size: 0.7rem; border-width: 2px; }
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}
.nav-links {
  display: flex; gap: 2.5rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transition: transform 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ===================== LANGUAGE SWITCHER ===================== */
.lang-switcher {
  display: flex; align-items: center; gap: 2px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 3px;
}
.lang-btn {
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted);
  padding: 6px 14px; border-radius: 16px;
  font-family: 'Noto Kufi Arabic', 'Rajdhani', sans-serif;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
  transition: background 0.25s, color 0.25s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #061020;
}
.lang-switcher-mobile { margin-top: 1rem; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 5px;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; top: 70px;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); display: flex; }
.mobile-menu a {
  font-size: 1.6rem; font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.15em; color: var(--text); text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ===================== HERO SECTION ===================== */
/* ===================== HERO SLIDER =====================
   True sliding-carousel motion: all slides sit side by side in a flex
   track, and the track translates horizontally. No max-height clamp —
   the container is a pure 16:9 box driven by width, so it can never
   mismatch the real 16:9 source images and crop them via object-fit. */
.hero-slider {
  position: relative;
  width: 100%;
  /* padding-top percentage trick instead of aspect-ratio: the modern
     aspect-ratio property has patchy/buggy support on some budget-Android
     browsers (notably MIUI/Mi Browser), where it can compute the box
     height wrong and make object-fit:cover crop far more than it should.
     padding-top:% has worked identically in every browser since the
     early 2000s because percentage padding is always resolved against
     the containing block's WIDTH, even for top/bottom - that's the trick. */
  padding-top: 56.25%; /* 9/16 */
  overflow: hidden;
  background: var(--bg-alt);
  direction: ltr; /* always LTR regardless of page language - it's an
    image carousel, not text; flex row order + translateX math both
    assume LTR, and dir="rtl" on the page would silently reverse the
    flex row and break the slide index math otherwise */
  touch-action: pan-y; /* let the browser handle vertical page scroll
    normally, but leave horizontal gestures to our own drag handler
    instead of the two fighting each other */
}
.hero-slider .slider-track.dragging { transition: none; }
.hero-slider .slider-track {
  position: absolute; inset: 0; /* fills the padding-top box above */
  display: flex; width: 100%; height: 100%;
  transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
  /* will-change:transform removed - on some budget-Android GPU/driver
     combos (Mali GPUs common in this price range) it can force a
     compositing layer that tears/seams at its edge during the slide
     transition, which matches the light vertical strip in the
     screenshot. Modern browsers animate transform efficiently without
     this hint; it's not worth the risk on hardware we can't test on. */
}
.hero-slider .slide {
  flex: 0 0 100%; width: 100%; min-width: 100%; height: 100%;
}
.hero-slider .slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider .slider-track { transition: none; }
}
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.85); border: none;
  color: #1a1a1a; font-size: 1.6rem; line-height: 1;
  cursor: pointer; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }
.slider-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 4;
}
.slider-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.55); border: none; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}
.slider-dot.active { background: #fff; transform: scale(1.3); }

/* ===================== HERO INTRO ===================== */
#hero {
  position: relative;
  padding: 5rem 6% 4rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--primary);
}

/* 3D SVG heater inline styles handled in JS */

.hero-content {
  position: relative; z-index: 3;
  max-width: 720px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--glass-border);
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--glass);
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.8s ease 0.5s both;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  animation: fadeSlideUp 0.8s ease 0.7s both;
}
.line1-wordmark {
  display: block;
  width: clamp(220px, 34vw, 460px);
  height: auto;
  margin: 0 auto 0.15em;
}
.hero-title .line2 {
  display: block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .line3 {
  display: block; font-size: 0.4em;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text), var(--text-muted));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 0.8s ease 0.9s both;
}

.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  animation: fadeSlideUp 0.8s ease 1.1s both;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0090c0);
  color: #fff; border: none;
  padding: 14px 32px; border-radius: 4px;
  font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--glow);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(241,156,17,0.6); }

.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--glass-border);
  padding: 14px 32px; border-radius: 4px;
  font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  transition: all 0.3s; backdrop-filter: blur(5px);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: var(--glass); border-color: var(--accent); color: var(--accent); }

.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; animation: fadeIn 1s ease 1.5s both;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===================== SECTION BASE ===================== */
section { padding: clamp(60px, 8vw, 120px) 5%; }

.section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ''; width: 30px; height: 1px; background: var(--accent);
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.05em; line-height: 1;
  margin-bottom: 1rem;
  color: var(--text);
}
.section-sub { color: var(--text-muted); font-size: 1rem; line-height: 1.7; max-width: 560px; }

/* ===================== CATEGORIES SECTION ===================== */
#products {
  background: linear-gradient(180deg, var(--primary) 0%, var(--surface) 100%);
  position: relative; overflow: hidden;
}
#products::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.categories-intro { text-align: center; margin-bottom: 5rem; }
.categories-intro .section-label { justify-content: center; }
.categories-intro .section-label::before { display: none; }

.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-width: 1400px; margin: 0 auto;
}

.category-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.5s;
  background: var(--surface2);
  border: 1px solid var(--glass-border);
}
.category-card:hover { transform: scale(1.01); z-index: 2; border-color: var(--white-border); }

.cat-bg {
  position: absolute; inset: 0;
  transition: transform 0.6s ease, opacity 0.4s;
}
.category-card:hover .cat-bg { transform: scale(1.05); }

.cat-zain .cat-bg {
  background: radial-gradient(ellipse at 30% 60%, rgba(241,156,17,0.15) 0%, transparent 70%),
              linear-gradient(135deg, #0a0a0a, #0d2545);
}
.cat-grohee .cat-bg {
  background: radial-gradient(ellipse at 70% 40%, rgba(0,85,150,0.15) 0%, transparent 70%),
              linear-gradient(135deg, #0a0a0a, #0d2535);
}

.cat-inner {
  position: relative; z-index: 2;
  padding: clamp(40px, 6vw, 80px) clamp(30px, 5vw, 70px);
  min-height: clamp(350px, 45vw, 600px);
  display: flex; flex-direction: column; justify-content: flex-end;
}

.cat-icon-3d {
  position: absolute; top: 30px; right: 30px;
  width: clamp(120px, 16vw, 220px);
  height: clamp(160px, 24vw, 320px);
  transition: transform 0.5s ease;
  filter: drop-shadow(0 14px 26px rgba(241,156,17,0.25));
}
.cat-grohee .cat-icon-3d {
  filter: drop-shadow(0 14px 26px rgba(0,85,150,0.25));
}
.cat-photo { width: 100%; height: 100%; object-fit: contain; }
.category-card:hover .cat-icon-3d { transform: translateY(-8px) scale(1.04); }

.cat-badge {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px;
  margin-bottom: 16px; width: fit-content;
}
.cat-zain .cat-badge { background: rgba(241,156,17,0.15); color: var(--zain-color); border: 1px solid rgba(241,156,17,0.3); }
.cat-grohee .cat-badge { background: rgba(0,85,150,0.12); color: var(--grohee-color); border: 1px solid rgba(0,85,150,0.3); }

.cat-name-en {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  letter-spacing: 0.06em; line-height: 1;
  margin-bottom: 4px;
}
.cat-zain .cat-name-en { color: var(--zain-color); }
.cat-grohee .cat-name-en { color: var(--grohee-color); }

.cat-name-ar {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700; color: rgba(255,255,255,0.6);
  margin-bottom: 20px; direction: rtl;
}

.cat-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 28px; max-width: 340px; }

.cat-sizes {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
}
.size-pill {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 12px; border-radius: 3px;
  border: 1px solid; transition: all 0.3s;
}
.cat-zain .size-pill { border-color: rgba(241,156,17,0.3); color: var(--zain-color); background: rgba(241,156,17,0.07); }
.cat-grohee .size-pill { border-color: rgba(0,85,150,0.3); color: var(--grohee-color); background: rgba(0,85,150,0.07); }
.category-card:hover .size-pill { background: rgba(241,156,17,0.15); }
.cat-grohee:hover .size-pill { background: rgba(0,85,150,0.12); }

.cat-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  transition: gap 0.3s;
}
.cat-zain .cat-cta { color: var(--zain-color); }
.cat-grohee .cat-cta { color: var(--grohee-color); }
.cat-cta:hover { gap: 16px; }

.cat-divider {
  position: absolute; top: 0; right: 0; width: 2px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

/* ===================== PRODUCT MODAL / GRID ===================== */
#product-grid {
  background: var(--surface);
  position: relative;
}

.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 3rem; justify-content: center;
}
.filter-btn {
  background: transparent; border: 1px solid var(--glass-border);
  color: var(--text-muted); padding: 8px 22px; border-radius: 4px;
  font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(241,156,17,0.12);
  border-color: var(--accent); color: var(--accent);
}
.filter-btn.grohee-active {
  background: rgba(0,85,150,0.1);
  border-color: var(--grohee-color); color: var(--grohee-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5px;
  max-width: 1400px; margin: 0 auto;
}

.product-card {
  background: var(--surface2);
  border: 1px solid var(--glass-border);
  overflow: hidden; position: relative;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.4s, border-color 0.4s;
  animation: cardReveal 0.5s ease both;
}
.product-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, var(--white-border), transparent);
  opacity: 0; transition: opacity 0.4s;
}
@keyframes cardReveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border-color: var(--white-border);
  z-index: 2;
}
.product-card:hover::before { opacity: 1; }

.product-card.hidden { display: none; }

.product-img-wrap {
  height: 220px; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-img-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, #e8e6e1 0%, #c9c6bf 100%);
}
.product-img-wrap .img-heater {
  width: 70%; height: 90%; object-fit: contain;
  position: relative; z-index: 1;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.product-card:hover .img-heater { transform: scale(1.08) translateY(-5px); }

/* Placeholder SVG heater for missing images */
.heater-placeholder {
  width: 80px; height: 150px; position: relative; z-index: 1;
  transition: transform 0.5s ease;
}
.product-card:hover .heater-placeholder { transform: scale(1.1) translateY(-5px); }

.product-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 3px; text-transform: uppercase;
}
.badge-zain { background: rgba(241,156,17,0.2); color: var(--zain-color); border: 1px solid rgba(241,156,17,0.4); }
.badge-grohee { background: rgba(0,85,150,0.15); color: var(--grohee-color); border: 1px solid rgba(0,85,150,0.35); }

.orientation-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 3px; text-transform: uppercase;
  background: rgba(255,255,255,0.9); color: var(--text);
  border: 1px solid rgba(20,20,20,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-info { padding: 20px; }
.product-brand { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 6px; }
.brand-zain { color: var(--zain-color); }
.brand-grohee { color: var(--grohee-color); }

.product-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.06em; margin-bottom: 4px; }
.product-price { font-size: 1.05rem; font-weight: 700; color: var(--accent); margin-top: 10px; letter-spacing: 0.02em; }

.product-specs {
  display: flex; gap: 16px; margin-bottom: 16px;
}
.spec { display: flex; flex-direction: column; gap: 2px; }
.spec-label { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.spec-value { font-size: 1rem; font-weight: 700; color: var(--text); }

.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-alt);
}
.product-detail-btn {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: gap 0.3s;
}
.product-detail-btn:hover { gap: 10px; }
.product-detail-btn .arrow { font-size: 0.9rem; }

/* ===================== MODAL ===================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(5, 12, 25, 0.92);
  backdrop-filter: blur(15px);
  z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--surface2);
  border: 1px solid var(--glass-border);
  max-width: 900px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  transform: scale(0.93) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(20,20,20,0.06); border: 1px solid rgba(20,20,20,0.12);
  color: var(--text); width: 36px; height: 36px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
  z-index: 5;
}
.modal-close:hover { background: rgba(20,20,20,0.12); }

.modal-layout { display: grid; grid-template-columns: 1fr 1fr; }

.modal-visual {
  position: relative; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #f7f6f3 0%, #e9e7e1 100%);
  overflow: hidden;
}
.modal-visual .heater-3d-view {
  width: 60%; max-height: 340px; object-fit: contain;
  animation: heaterFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 15px 40px rgba(241,156,17,0.3));
}
.modal-visual canvas { display: block; }

.modal-glow {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 160px; height: 22px; border-radius: 50%;
  background: rgba(20,20,20,0.18);
  filter: blur(14px);
}

.modal-info { padding: 40px; }
.modal-brand { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 10px; }
.modal-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.8rem; letter-spacing: 0.06em; line-height: 1; margin-bottom: 6px; }
.modal-price { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; letter-spacing: 0.02em; }

.modal-specs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 24px;
}
.modal-spec-item {
  background: var(--bg-alt);
  border: 1px solid var(--glass-border);
  padding: 14px;
}
.modal-spec-label { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.modal-spec-value { font-size: 1.05rem; font-weight: 700; }

.modal-features { margin-bottom: 28px; }
.modal-feature-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--text-muted); padding: 8px 0;
  border-bottom: 1px solid var(--glass-border);
}
.modal-feature-item:last-child { border-bottom: none; }
.feature-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.feature-dot-zain { background: var(--zain-color); }
.feature-dot-grohee { background: var(--grohee-color); }

.modal-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===================== ABOUT SECTION ===================== */
#about {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--primary) 100%);
  overflow: hidden;
}
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; max-width: 1300px; margin: 0 auto; }
.about-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.about-photo-frame {
  width: min(360px, 80%);
  aspect-ratio: 3 / 4;
  background: radial-gradient(ellipse at center, #f7f6f3 0%, #e9e7e1 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.about-photo { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 20px rgba(0,0,0,0.15)); }
.about-heater-scene {
  width: 280px; height: 420px; position: relative;
  animation: heaterFloat 4s ease-in-out infinite;
}

.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 3rem;
}
.stat-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 20px;
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

.about-features { margin-top: 2.5rem; }
.about-feature {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--glass-border);
}
.about-feature:last-child { border-bottom: none; }
.feature-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--glass); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; border-radius: 4px;
}
.feature-text h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.feature-text p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.5; }

/* ===================== LOCATION SECTION ===================== */
#location {
  background: var(--primary);
  padding: clamp(60px, 8vw, 120px) 5%;
}
.location-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; max-width: 1300px; margin: 0 auto; }

.map-container {
  position: relative; height: 400px; overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
}
.map-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  background: linear-gradient(135deg, #f0efe9, #e3e1d9);
}
.map-pin { font-size: 3rem; animation: pinBounce 2s ease-in-out infinite; }
@keyframes pinBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.map-label { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 0.1em; color: var(--accent); }

.contact-info { }
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.location-card {
  background: var(--white-glass);
  border: 1px solid var(--white-border);
  border-radius: 6px;
  padding: 20px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.coming-soon-badge {
  position: absolute; top: -10px; right: 16px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #0a0a0a; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 12px;
}
html[dir="rtl"] .coming-soon-badge { right: auto; left: 16px; }
.location-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.location-card .contact-item { padding: 12px 0; border-bottom: 1px solid var(--glass-border); }
.location-card .contact-item:last-child { border-bottom: none; }
.location-phone-link { color: var(--text); text-decoration: none; transition: color 0.3s; }
.location-phone-link:hover { color: var(--accent); }
.cat-price-from { margin-top: 14px; font-size: 0.95rem; font-weight: 700; color: var(--gold); letter-spacing: 0.02em; }
.contact-item {
  display: flex; gap: 16px; padding: 20px 0;
  border-bottom: 1px solid var(--glass-border);
  align-items: flex-start;
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--glass); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; border-radius: 4px;
  color: var(--accent);
}
.contact-text h4 { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.contact-text p { font-size: 0.95rem; color: var(--text); }

/* ===================== FOOTER =====================
   Footer intentionally keeps a dark band (common, high-contrast pattern)
   even though the rest of the site is now light — so text colors here are
   scoped overrides, not the global --text/--text-muted tokens. */
footer {
  background: #14100a;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 5%;
  color: rgba(255,255,255,0.55);
}
.footer-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-brand .nav-logo {
  display: inline-block; margin-bottom: 14px; font-size: 2.2rem;
  background: none; -webkit-text-fill-color: #fff; color: #fff;
}
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 280px; }
.footer-col h5 { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li a {
  text-decoration: none; color: rgba(255,255,255,0.5); font-size: 0.88rem;
  display: block; padding: 5px 0; transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1300px; margin: 2rem auto 0;
  padding-top: 1.5rem; position: relative;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: rgba(255,255,255,0.4);
}
.footer-bottom::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

/* ===================== CANVAS PARTICLES ===================== */
#particles-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none; display: block;
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===================== GLITCH EFFECT ===================== */
.glitch {
  position: relative;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.glitch::before { left: 2px; animation: glitch1 4s infinite; color: #ff004c; }
.glitch::after { left: -2px; animation: glitch2 4s infinite; color: var(--accent); }
@keyframes glitch1 {
  0%,90%,100% { clip-path: none; transform: none; }
  92% { clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%); transform: translate(-2px, -1px); }
  94% { clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); transform: translate(2px, 1px); }
}
@keyframes glitch2 {
  0%,90%,100% { clip-path: none; transform: none; }
  91% { clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%); transform: translate(2px, 1px); }
  95% { clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%); transform: translate(-2px, -1px); }
}

/* ===================== WATER RIPPLE EFFECT ===================== */
.water-btn {
  position: relative; overflow: hidden;
}
.water-btn::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
}
.water-btn:active::after { width: 300px; height: 300px; opacity: 0; }

/* ===================== GRID LINES BG ===================== */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(241,156,17,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,156,17,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ===================== RTL SUPPORT (Arabic / Kurdish Sorani) ===================== */
/* Text reads right-to-left and right-aligns; decorative/structural positioning
   (hero heater canvas, nav layout, product grid) stays fixed to protect the
   custom animations. Flag if you want a full mirrored layout instead. */
html[dir="rtl"] body { font-family: 'Noto Kufi Arabic', 'Rajdhani', sans-serif; }
html[dir="rtl"] .hero-tag,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-sub,
html[dir="rtl"] .section-label,
html[dir="rtl"] .section-title,
html[dir="rtl"] .section-sub,
html[dir="rtl"] .cat-desc,
html[dir="rtl"] .about-feature .feature-text,
html[dir="rtl"] .contact-text,
html[dir="rtl"] .footer-brand p,
html[dir="rtl"] .product-info,
html[dir="rtl"] .modal-info {
  text-align: right; direction: rtl;
}
html[dir="rtl"] .section-label { justify-content: flex-end; }
html[dir="rtl"] .section-label::before { order: 2; }
html[dir="rtl"] .hero-btns,
html[dir="rtl"] .product-specs,
html[dir="rtl"] .footer-inner { direction: rtl; }
html[dir="rtl"] .nav-links { direction: rtl; }
html[dir="rtl"] .lang-btn { font-family: 'Noto Kufi Arabic', sans-serif; }
html[dir="rtl"] .cat-sizes,
html[dir="rtl"] .categories-intro,
html[dir="rtl"] .filter-bar { direction: ltr; } /* numeric/pill rows stay LTR for readability */

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: 1fr; }
  .cat-divider { display: none; }
  .about-layout, .location-layout { grid-template-columns: 1fr; gap: 3rem; }
  .modal-layout { grid-template-columns: 1fr; }
  .modal-visual { min-height: 250px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .hero-content { margin-right: 0; max-width: 100%; text-align: center; }
  .hero-btns { justify-content: center; }
  .heater-sketch-container { display: none; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .modal-specs-grid { grid-template-columns: 1fr 1fr; }
  .locations-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 6px 16px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 3rem; }
  .categories-grid { gap: 2px; }
  .cat-inner { padding: 30px 24px; min-height: 300px; }
  .cat-icon-3d { top: 24px; right: 24px; width: 96px; height: 130px; }
  .about-stats { grid-template-columns: 1fr; }
  .modal-specs-grid { grid-template-columns: 1fr; }
  .lang-btn { padding: 5px 10px; font-size: 0.72rem; }
  .nav-emblem { width: 30px; height: 30px; }
  .nav-wordmark { height: 20px; }
  .line1-wordmark { width: clamp(180px, 60vw, 280px); }
  nav { padding: 0 4%; gap: 6px; }
  .product-img-wrap { height: 170px; }
  .filter-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .filter-btn { flex-shrink: 0; }
  .modal-info { padding: 20px; }
  .coming-soon-badge { font-size: 0.6rem; padding: 3px 9px; }
}

/* ===================== WHATSAPP FLOATING BUTTON ===================== */
.whatsapp-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.55);
}
.whatsapp-fab::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: whatsappPulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab::before { animation: none; }
}
/* Mirror to bottom-left in Arabic/Kurdish so it doesn't sit under a
   thumb reaching from the RTL-natural side, and doesn't collide with
   anything mirrored on the right in RTL layouts. */
html[dir="rtl"] .whatsapp-fab { right: auto; left: 24px; }

@media (max-width: 480px) {
  .whatsapp-fab { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  html[dir="rtl"] .whatsapp-fab { left: 16px; }
}
