/* ================================================================
   COVERHIVE — Premium Phone Covers Store
   main.css v1.0
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Cairo:wght@400;500;600;700;800;900&display=swap');

/* ================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ================================================================ */
:root {
  /* Primary palette */
  --primary:        #4F46E5;
  --primary-hover:  #4338CA;
  --primary-dark:   #312E81;
  --primary-light:  #EEF2FF;
  --primary-mid:    #6366F1;

  /* Secondary / accent */
  --secondary:      #7C3AED;
  --secondary-light:#F5F3FF;
  --secondary-mid:  #8B5CF6;

  /* WhatsApp green */
  --green:          #10B981;
  --green-hover:    #059669;
  --green-wa:       #25D366;

  /* Neutral scale */
  --white:     #FFFFFF;
  --gray-50:   #F9FAFB;
  --gray-100:  #F3F4F6;
  --gray-200:  #E5E7EB;
  --gray-300:  #D1D5DB;
  --gray-400:  #9CA3AF;
  --gray-500:  #6B7280;
  --gray-600:  #4B5563;
  --gray-700:  #374151;
  --gray-800:  #1F2937;
  --gray-900:  #111827;

  /* Dark backgrounds (hero/navbar/footer) */
  --dark-900:   #0D0B1E;
  --dark-800:   #1A1831;
  --dark-700:   #1E1B4B;
  --dark-glass: rgba(15,14,26,0.92);
  --dark-border: rgba(255,255,255,0.08);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.05);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-pri: 0 8px 25px rgba(79,70,229,0.35);
  --shadow-grn: 0 6px 20px rgba(16,185,129,0.35);

  /* Radii */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-2xl:  28px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: all 0.15s cubic-bezier(0.4,0,0.2,1);
  --t:      all 0.30s cubic-bezier(0.4,0,0.2,1);
  --t-slow: all 0.50s cubic-bezier(0.4,0,0.2,1);

  /* Layout */
  --max-w:      1280px;
  --pad-x:      24px;
  --section-py: 80px;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: var(--r-full); }

/* ================================================================
   LAYOUT HELPERS
   ================================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section { padding: var(--section-py) 0; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 600;
  transition: var(--t);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-pri);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79,70,229,0.45);
}
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-grn);
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
}
.btn-whatsapp:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16,185,129,0.45);
}
.btn-whatsapp:disabled {
  background: var(--gray-300);
  color: var(--gray-500);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ================================================================
   BADGES
   ================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.5;
}
.badge-new       { background: #D1FAE5; color: #065F46; }
.badge-bestseller{ background: #FEE2E2; color: #991B1B; }
.badge-featured  { background: #FEF3C7; color: #92400E; }
.badge-trending  { background: #EDE9FE; color: #5B21B6; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  /* Explicitly transition only the properties that change — avoids
     backdrop-filter flicker seen with "transition: all" in some browsers */
  transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
/* Clean solid bar at page top — no transparency issues over light content */
.navbar.at-top {
  background: var(--dark-900);
}
/* Elevated state when user scrolls — adds blur depth + shadow */
.navbar.scrolled {
  background: rgba(13,11,30,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--dark-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.35);
}
.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(79,70,229,0.4);
}
.logo-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo-name em {
  font-style: normal;
  background: linear-gradient(90deg, #818CF8, #C084FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--r-full);
  transition: var(--t-fast);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-links a.router-link-active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--r-md);
  transition: var(--t-fast);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: var(--r-full);
  transition: var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--dark-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--dark-border);
  padding: 16px var(--pad-x) 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 999;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  font-weight: 600;
  padding: 13px 16px;
  border-radius: var(--r-lg);
  transition: var(--t-fast);
}
.mobile-menu a:hover,
.mobile-menu a.router-link-active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}
.mobile-menu .btn-whatsapp { margin-top: 8px; width: 100%; justify-content: center; }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, #0D0B1E 0%, #1A1340 20%, #2D1B69 52%, #1E1B4B 78%, #0F172A 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 68px;
}

/* Ambient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(79,70,229,0.35), transparent 70%);
  top: -200px; right: -150px;
  animation: orbFloat 10s ease-in-out infinite;
}
.orb2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.25), transparent 70%);
  bottom: -100px; left: 5%;
  animation: orbFloat 14s ease-in-out infinite reverse;
}
.orb3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(236,72,153,0.15), transparent 70%);
  top: 40%; right: 32%;
  animation: orbFloat 9s ease-in-out infinite 2s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-25px, 25px) scale(1.08); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
  width: 100%;
}

/* Hero left content */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  color: #A5B4FC;
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  width: fit-content;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  background: #A5B4FC;
  border-radius: 50%;
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(165,180,252,0.4); }
  50%      { opacity: 0.6; transform: scale(0.9); box-shadow: 0 0 0 6px rgba(165,180,252,0); }
}
.hero-h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.07;
  letter-spacing: -2.5px;
  margin-bottom: 22px;
}
.hero-h1 .gradient-text {
  background: linear-gradient(90deg, #818CF8 0%, #C084FC 50%, #F472B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.58);
  line-height: 1.75;
  margin-bottom: 38px;
  max-width: 460px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stat-val {
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
}
.hero-stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  margin-top: 4px;
}

/* Hero right — phone visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.2), transparent 70%);
  pointer-events: none;
}
.hero-phone {
  width: 260px;
  height: 530px;
  background: linear-gradient(180deg, #1A1831 0%, #0D0B1E 100%);
  border-radius: 44px;
  border: 2.5px solid rgba(255,255,255,0.13);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
  animation: phoneFloat 7s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes phoneFloat {
  0%,100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-22px) rotate(1.5deg); }
}
.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 10px;
  background: #0D0B1E;
  border-radius: var(--r-full);
  z-index: 2;
}
.phone-screen-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(99,102,241,0.18) 0%, rgba(139,92,246,0.12) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px 20px;
}
.phone-cover-sim {
  width: 150px;
  height: 300px;
  border: 2px solid rgba(165,180,252,0.3);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(99,102,241,0.25), rgba(139,92,246,0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 30px rgba(99,102,241,0.2);
}
.phone-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.phone-home-bar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: var(--r-full);
}

/* Floating cards around the phone */
.float-card {
  position: absolute;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-xl);
  padding: 12px 16px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  pointer-events: none;
}
.float-card-1 { top: 12%; right: -10px; animation: floatBobA 5s ease-in-out infinite; }
.float-card-2 { bottom: 18%; left: -10px; animation: floatBobB 6s ease-in-out infinite; }
@keyframes floatBobA {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes floatBobB {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}
.float-card-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.float-card-icon.green { background: rgba(16,185,129,0.25); }
.float-card-icon.purple { background: rgba(139,92,246,0.25); }
.float-card-text small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}

/* ================================================================
   SECTION HEADER
   ================================================================ */
.sec-header {
  text-align: center;
  margin-bottom: 48px;
}
.sec-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.sec-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.sec-sub {
  font-size: 16px;
  color: var(--gray-400);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ================================================================
   PRODUCT CARD
   ================================================================ */
.product-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: var(--t);
  position: relative;
}
.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gray-200);
}

/* Category color strip */
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--t);
}
.product-card:hover::before { opacity: 1; }

/* Image area */
.pc-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gray-100);
  cursor: pointer;
}
.pc-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .pc-image img { transform: scale(1.09); }

/* Placeholder gradient when no image */
.pc-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 52px;
}
.pc-placeholder.cat-clear    { background: linear-gradient(145deg, #ECFEFF, #CFFAFE); }
.pc-placeholder.cat-silicone { background: linear-gradient(145deg, #EDE9FE, #DDD6FE); }
.pc-placeholder.cat-leather  { background: linear-gradient(145deg, #FEF3C7, #FDE68A); }
.pc-placeholder.cat-rugged   { background: linear-gradient(145deg, #F1F5F9, #E2E8F0); }
.pc-placeholder.cat-designer { background: linear-gradient(145deg, #FDF4FF, #FAE8FF); }
.pc-placeholder.cat-magsafe  { background: linear-gradient(145deg, #EFF6FF, #DBEAFE); }
.pc-placeholder.cat-default  { background: linear-gradient(145deg, var(--primary-light), var(--secondary-light)); }
.pc-placeholder span { font-size: 11px; font-weight: 700; color: var(--gray-400); letter-spacing: 1px; text-transform: uppercase; }

.pc-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pc-quick-btn {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  color: var(--gray-800);
  padding: 7px 13px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--t);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  letter-spacing: 0.3px;
}
.product-card:hover .pc-quick-btn { opacity: 1; transform: translateY(0); }

/* Card body */
.pc-body { padding: 16px; }
.pc-model-chip {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.pc-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-desc {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  margin-bottom: 12px;
}
.pc-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}
.pc-price sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-400);
  margin-left: 3px;
  vertical-align: middle;
}
.pc-stock-out {
  font-size: 11px;
  font-weight: 700;
  background: #FEE2E2;
  color: #991B1B;
  padding: 3px 8px;
  border-radius: var(--r-full);
}

/* ================================================================
   PRODUCT GRID
   ================================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ================================================================
   HORIZONTAL SCROLL
   ================================================================ */
.scroll-row {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 10px;
  margin: 0 -4px;
  padding: 4px;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-track {
  display: flex;
  gap: 20px;
  width: max-content;
}
.scroll-track .product-card { width: 248px; flex-shrink: 0; }

/* ================================================================
   BENEFITS SECTION
   ================================================================ */
.benefits {
  background: var(--white);
  padding: 56px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 28px 20px;
  border-radius: var(--r-xl);
  transition: var(--t);
}
.benefit-card:hover { background: var(--gray-50); }
.benefit-icon-wrap {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 14px rgba(79,70,229,0.1);
}
.benefit-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}
.benefit-text { font-size: 13px; color: var(--gray-400); line-height: 1.6; }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 40%, #4C1D95 100%);
  border-radius: var(--r-2xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%);
  top: -150px; right: -100px;
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(236,72,153,0.15), transparent 70%);
  bottom: -50px; left: 5%;
  pointer-events: none;
}
.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  position: relative;
}
.cta-text {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  margin-bottom: 34px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ================================================================
   VIEW-ALL LINK
   ================================================================ */
.view-all-wrap { text-align: center; margin-top: 40px; }
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--r-full);
  border: 2px solid var(--primary-light);
  transition: var(--t);
}
.view-all-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ================================================================
   PRODUCTS PAGE
   ================================================================ */
.products-page { min-height: 100vh; padding-top: 68px; }

.page-header {
  background: linear-gradient(145deg, #1E1B4B, #312E81);
  padding: 52px 0;
  text-align: center;
}
.page-header-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -2px;
  margin-bottom: 8px;
}
.page-header-sub { color: rgba(255,255,255,0.55); font-size: 16px; }

/* Filters bar */
.filters-wrap {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 20px 22px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.search-wrap {
  position: relative;
  margin-bottom: 16px;
}
.search-wrap input {
  width: 100%;
  padding: 12px 18px 12px 46px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-lg);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--t-fast);
  outline: none;
}
.search-wrap input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.search-wrap input::placeholder { color: var(--gray-400); }
.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
  font-size: 17px;
}
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  flex-shrink: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--t-fast);
  outline: none;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--white); }

.results-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.results-count { font-size: 14px; color: var(--gray-400); font-weight: 500; }
.results-count strong { color: var(--gray-800); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon { font-size: 64px; margin-bottom: 20px; }
.empty-title { font-size: 20px; font-weight: 800; color: var(--gray-700); margin-bottom: 8px; }
.empty-text  { font-size: 15px; color: var(--gray-400); margin-bottom: 24px; }

/* Loading state */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.skeleton-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}
.skeleton-img {
  aspect-ratio: 3/4;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-body { padding: 16px; }
.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-full);
  margin-bottom: 10px;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.med   { width: 80%; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ================================================================
   QUICK VIEW MODAL
   ================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: backdropIn 0.2s ease;
}
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--white);
  border-radius: var(--r-2xl);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--t-fast);
  z-index: 5;
  border: none;
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }

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

.modal-img-side {
  background: var(--gray-50);
  border-radius: var(--r-2xl) 0 0 var(--r-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}

/* Main image area — fills all available space above the thumbnail strip */
.modal-img-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
}
.modal-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}
.modal-img-placeholder { font-size: 80px; }

/* Thumbnail strip */
.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.04);
  border-top: 1px solid var(--gray-200);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.modal-thumbs::-webkit-scrollbar { display: none; }

.modal-thumb {
  width: 56px;
  height: 70px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.18s ease, transform 0.18s ease;
  background: none;
  padding: 0;
}
.modal-thumb:hover { transform: translateY(-2px); border-color: var(--gray-300); }
.modal-thumb.active { border-color: var(--primary); }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.modal-details {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.modal-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  line-height: 1.25;
}
.modal-brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.modal-price {
  font-size: 30px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
}
.modal-price span { font-size: 16px; font-weight: 500; color: var(--gray-400); margin-left: 4px; }

.modal-divider { height: 1px; background: var(--gray-100); }

.modal-desc { font-size: 14px; color: var(--gray-600); line-height: 1.75; }

.modal-model-section { display: flex; flex-direction: column; gap: 10px; }
.modal-model-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.modal-model-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.model-chip {
  padding: 6px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--t-fast);
  background: transparent;
}
.model-chip:hover { border-color: var(--primary); color: var(--primary); }
.model-chip.selected { background: var(--primary); border-color: var(--primary); color: var(--white); }

.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-page { min-height: 100vh; padding-top: 68px; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  padding: 64px 0;
}
.contact-cards { display: flex; flex-direction: column; gap: 14px; }

.contact-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 22px 20px;
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: var(--t);
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-mid);
}
.cc-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.cc-icon.wa    { background: #D1FAE5; }
.cc-icon.email { background: var(--primary-light); }
.cc-icon.insta { background: #FDF4FF; }
.cc-icon.fb    { background: #EFF6FF; }
.cc-icon.tiktok{ background: var(--gray-100); }

.cc-label { font-size: 11px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 3px; }
.cc-value { font-size: 15px; font-weight: 700; color: var(--gray-800); }

/* Contact form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 36px;
  border: 1px solid var(--gray-100);
}
.form-title { font-size: 22px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.5px; margin-bottom: 26px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 800; color: var(--gray-600); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.8px; }
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-lg);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--t-fast);
  outline: none;
  resize: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.form-textarea { height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #D1FAE5;
  color: #065F46;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 700;
  margin-top: 14px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--dark-900);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand-desc { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,0.42); max-width: 260px; }
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: var(--t-fast);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--white); transform: translateY(-2px); }
.footer-col-title { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 18px; letter-spacing: 0.3px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.42); transition: var(--t-fast); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-txt { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-bottom-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

/* ================================================================
   FLOATING WHATSAPP BUTTON
   ================================================================ */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 1500;
}
.wa-float-btn {
  width: 58px; height: 58px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  cursor: pointer;
  transition: var(--t);
  border: none;
  animation: waPop 4s ease-in-out infinite;
  position: relative;
}
.wa-float-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.35);
  animation: waRing 4s ease-in-out infinite;
}
@keyframes waPop {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@keyframes waRing {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0; }
}
.wa-float-btn:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 10px 38px rgba(37,211,102,0.65);
}
.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-900);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--r-lg);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--t-fast);
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right: none;
  border-left-color: var(--gray-900);
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ================================================================
   SCROLL REVEAL ANIMATION
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.19s; }
.reveal-d4 { transition-delay: 0.26s; }

/* Page transition */
.page-enter-active, .page-leave-active {
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.page-enter-from { opacity: 0; transform: translateY(12px); }
.page-leave-to   { opacity: 0; transform: translateY(-12px); }

/* ================================================================
   RESPONSIVE — TABLET (≤1024px)
   ================================================================ */
@media (max-width: 1024px) {
  .products-grid  { grid-template-columns: repeat(3, 1fr); }
  .skeleton-grid  { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .hero-grid { gap: 40px; }
}

/* ================================================================
   RESPONSIVE — MOBILE (≤768px)
   ================================================================ */
@media (max-width: 768px) {
  :root { --section-py: 56px; --pad-x: 16px; }

  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 0;
    gap: 48px;
  }
  .hero-eyebrow, .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .hero-visual  { order: -1; }
  .hero-phone   { width: 200px; height: 410px; }
  .float-card   { display: none; }

  .products-grid  { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .skeleton-grid  { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .benefits-grid  { grid-template-columns: repeat(2, 1fr); }

  .modal-layout    { grid-template-columns: 1fr; }
  .modal-img-side  { border-radius: var(--r-2xl) var(--r-2xl) 0 0; min-height: 280px; }
  .modal-img-main  { min-height: 240px; }

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

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }

  .cta-banner { padding: 44px 24px; border-radius: var(--r-xl); }
  .form-row   { grid-template-columns: 1fr; }

  .modal-details { padding: 24px 20px; }
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ================================================================ */
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .skeleton-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-grid   { grid-template-columns: 1fr; }
  .filter-row    { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .chip          { flex-shrink: 0; }
}

/* ================================================================
   LANGUAGE SWITCHER BUTTON
   ================================================================ */
.lang-btn {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t-fast);
  font-family: inherit;
  white-space: nowrap;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.18);
}
.lang-btn-mobile {
  color: rgba(255,255,255,0.75);
  background: transparent;
  border-color: rgba(255,255,255,0.15);
  width: 100%;
  text-align: center;
  padding: 13px 16px;
  border-radius: var(--r-lg);
  font-size: 15px;
}
.lang-btn-mobile:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ================================================================
   ARABIC FONT + RTL LAYOUT OVERRIDES
   ================================================================ */

/* Switch to Cairo for better Arabic typography */
[dir="rtl"] body {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Search icon — flip to right side in RTL */
[dir="rtl"] .search-icon {
  left:  auto;
  right: 15px;
}
[dir="rtl"] .search-wrap input {
  padding: 12px 46px 12px 18px;
}

/* WA tooltip — flip to the left of the button in RTL */
[dir="rtl"] .wa-tooltip {
  right: auto;
  left:  calc(100% + 12px);
}
[dir="rtl"] .wa-tooltip::after {
  right:            auto;
  left:             -5px;
  border-left:      none;
  border-right:     5px solid transparent;
  border-right-color: var(--gray-900);
}

/* Modal image panel — rounded corners swap side in RTL */
[dir="rtl"] .modal-img-side {
  border-radius: 0 var(--r-2xl) var(--r-2xl) 0;
}
@media (max-width: 768px) {
  [dir="rtl"] .modal-img-side {
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  }
}

/* Ensure filter-row chips scroll naturally in RTL */
[dir="rtl"] .filter-row {
  direction: rtl;
}

/* Logo name gradient stays readable in RTL */
[dir="rtl"] .logo-name em {
  background: linear-gradient(270deg, #818CF8, #C084FC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
