/* ========================================
   Rose Sweet - Royal Elegance Theme
   Brand Colors & Variables
   ======================================== */

:root {
  /* Primary Colors */
  --primary: #0F1B6C;
  --primary-rgb: 15, 27, 108;
  --primary-light: #384084;
  --primary-lighter: #444C8B;
  --primary-muted: #646BA0;
  --primary-soft: #545C9C;
  --primary-pale: #A8ACC8;
  --white: #FFFFFF;
  --off-white: #F4F5FB;
  --gold: #C9A84C;
  --gold-light: #E8D5A0;
  --gold-rgb: 201, 168, 76;

  /* Brand Detail Page */
  --brand-detail-bg: #0F1B6C;
  --brand-detail-card-bg: rgba(255, 255, 255, 0.08);
  --brand-detail-card-text: #FFFFFF;

  /* Typography */
  --font-ar-heading: 'Cairo', sans-serif;
  --font-ar-body: 'Cairo', sans-serif;
  --font-ar-sub: 'Tajawal', sans-serif;
  --font-en-heading: 'Playfair Display', serif;
  --font-en-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================================
   Reset & Base
   ======================================== */

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

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

body {
  font-family: var(--font-ar-body);
  background: var(--white);
  color: #333;
  overflow-x: hidden;
  line-height: 1.7;
  direction: rtl;
}

body.en {
  direction: ltr;
  font-family: var(--font-en-body);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Tag */
.section-tag {
  display: inline-block;
  font-family: var(--font-ar-sub);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}

body.en .section-tag {
  font-family: var(--font-en-body);
  letter-spacing: 4px;
}

.section-tag::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

body.en .section-tag::after {
  right: auto;
  left: 0;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-title {
  font-family: var(--font-ar-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

body.en .section-title {
  font-family: var(--font-en-heading);
  font-size: 2.6rem;
}

.section-desc {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  line-height: 1.9;
}

/* ========================================
   Custom Cursor
   ======================================== */

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(var(--gold-rgb), 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transition: all 0.15s ease-out;
  mix-blend-mode: difference;
}

/* ========================================
   Preloader
   ======================================== */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  transition: opacity 0.6s, visibility 0.6s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  color: var(--white);
  font-family: var(--font-en-heading);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 8px;
  position: relative;
  overflow: hidden;
}

.preloader-logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  animation: preloaderLine 1.5s ease-in-out infinite;
}

@keyframes preloaderLine {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(var(--primary-rgb), 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-en-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 3px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo span {
  font-family: var(--font-en-body);
  font-size: 0.55rem;
  letter-spacing: 8px;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

body.en .nav-links a::after {
  right: auto;
  left: 0;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.nav-login-btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.nav-login-btn svg {
  flex-shrink: 0;
}

body.en .nav-login-btn .nav-login-text {
  font-family: var(--font-en-body);
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  font-family: var(--font-en-body);
  letter-spacing: 1px;
}

.lang-toggle:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--primary-rgb), 0.97);
  backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 999;
}

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

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-menu-links a {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease;
}

.mobile-menu.active .mobile-menu-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-menu-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-links a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-links a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu-links a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu-links a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active .mobile-menu-links a:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-menu-links a:nth-child(8) { transition-delay: 0.45s; }

.mobile-login-btn {
  background: var(--gold);
  color: var(--primary) !important;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 700;
  margin-top: 8px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--hero-bg, linear-gradient(135deg, #080E3A 0%, var(--primary) 40%, var(--primary-light) 100%));
  background-size: cover;
  background-position: center;
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--white);
}

.hero-shape:nth-child(1) {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  animation: floatShape 20s ease-in-out infinite;
}

.hero-shape:nth-child(2) {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
  animation: floatShape 25s ease-in-out infinite reverse;
}

.hero-shape:nth-child(3) {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 10%;
  animation: floatShape 18s ease-in-out infinite 2s;
}

.hero-shape:nth-child(4) {
  width: 150px;
  height: 150px;
  top: 20%;
  right: 20%;
  background: var(--gold);
  opacity: 0.04;
  animation: floatShape 22s ease-in-out infinite 4s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(10px, -10px) scale(1.02); }
}

/* Gold Lines Decoration */
.hero-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-line {
  position: absolute;
  background: linear-gradient(180deg, transparent, rgba(var(--gold-rgb), 0.15), transparent);
  width: 1px;
  height: 100%;
}

.hero-line:nth-child(1) { left: 20%; animation: lineMove 8s ease-in-out infinite; }
.hero-line:nth-child(2) { left: 40%; animation: lineMove 12s ease-in-out infinite 2s; }
.hero-line:nth-child(3) { left: 60%; animation: lineMove 10s ease-in-out infinite 4s; }
.hero-line:nth-child(4) { left: 80%; animation: lineMove 14s ease-in-out infinite 1s; }

@keyframes lineMove {
  0%, 100% { opacity: 0; transform: translateY(-100%); }
  50% { opacity: 1; transform: translateY(0); }
}

/* Particles */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(var(--gold-rgb), 0.6);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* Hero Content */
.hero-content {
  text-align: center;
  z-index: 10;
  position: relative;
  max-width: 900px;
  padding: 0 24px;
}

.hero-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 60px;
  backdrop-filter: blur(10px);
}

.hero-logo-text {
  font-family: var(--font-en-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 6px;
}

.hero-subtitle {
  font-family: var(--font-en-body);
  font-size: 0.75rem;
  letter-spacing: 8px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-ar-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s ease forwards 0.5s;
}

body.en .hero-title {
  font-family: var(--font-en-heading);
  font-size: 3.8rem;
  line-height: 1.2;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.9;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s ease forwards 0.7s;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 1s ease forwards 0.9s;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--gold);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 400px;
  height: 400px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(var(--gold-rgb), 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: transparent;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 60px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator .mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--gold);
  border-radius: 3px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scrollWheel {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ========================================
   About Section
   ======================================== */

.about {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content {
  opacity: 0;
  transform: translateX(40px);
}

body.en .about-content {
  transform: translateX(-40px);
}

.about-content.animate {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-text {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-visual {
  position: relative;
  opacity: 0;
  transform: translateX(-40px);
}

body.en .about-visual {
  transform: translateX(40px);
}

.about-visual.animate {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  background: var(--off-white);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.stat-card:hover {
  border-color: rgba(var(--primary-rgb), 0.1);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.08);
}

.stat-number {
  font-family: var(--font-en-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: #888;
  font-weight: 500;
}

/* About Visual Card */
.about-image-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 24px;
  padding: 48px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.about-image-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.1), transparent);
  border-radius: 50%;
}

.about-image-card .decorative-icon {
  font-size: 5rem;
  margin-bottom: 24px;
  opacity: 0.9;
}

.about-image-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: var(--font-en-heading);
  letter-spacing: 4px;
}

.about-image-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  letter-spacing: 6px;
  text-transform: uppercase;
}

/* ========================================
   Products Section
   ======================================== */

.products {
  padding: var(--section-padding);
  background: var(--off-white);
  position: relative;
}

.products .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.products .section-desc {
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid rgba(var(--primary-rgb), 0.06);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
}

.product-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

body.en .product-card::before {
  transform-origin: right;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.1);
}

.product-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.03));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  transition: var(--transition-smooth);
}

.product-card:hover .product-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transform: scale(1.1) rotate(5deg);
}

.product-card:hover .product-icon svg {
  color: var(--white);
}

.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.product-desc {
  font-size: 0.95rem;
  color: #888;
  line-height: 1.7;
}

/* ========================================
   Brands Section
   ======================================== */

.brands {
  padding: var(--section-padding);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.brands .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.brands .section-desc {
  margin: 0 auto;
}

/* ---- Brands Grid ---- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.brand-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid rgba(var(--primary-rgb), 0.06);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
}

.brand-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

body.en .brand-card::before {
  transform-origin: right;
}

.brand-card:hover::before {
  transform: scaleX(1);
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.1);
}

.brand-card-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.03));
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.brand-card:hover .brand-card-logo {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.brand-card-logo img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.brand-card-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), rgba(var(--primary-rgb), 0.03));
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  line-height: 1;
  transition: var(--transition-smooth);
}

.brand-card:hover .brand-card-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transform: scale(1.1) rotate(5deg);
}

.brand-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: var(--font-en-heading);
  letter-spacing: 1px;
}

.brand-card-type {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(var(--gold-rgb), 0.1);
  border-radius: 50px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.brand-card-desc {
  font-size: 0.95rem;
  color: #888;
  line-height: 1.7;
}

/* ---- Brand Detail Page Overlay ---- */
.brand-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--brand-detail-bg);
  z-index: 10000;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.brand-detail-overlay.active {
  opacity: 1;
  visibility: visible;
}

.brand-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.brand-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.brand-detail-site-name {
  font-family: var(--font-en-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-gold);
  text-decoration: none;
  letter-spacing: 2px;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.brand-detail-site-name:hover {
  opacity: 1;
}

.brand-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-detail-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 20px;
  color: var(--brand-detail-card-text);
  opacity: 0.8;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.brand-detail-back:hover {
  filter: brightness(1.3);
  opacity: 1;
}

[dir="rtl"] .brand-detail-back svg {
  transform: scaleX(-1);
}

.brand-detail-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 60px;
  padding: 40px 24px;
  background: var(--brand-detail-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.brand-detail-logo {
  width: 160px;
  height: 160px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.brand-detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-detail-icon {
  font-size: 4rem;
  line-height: 1;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 3px solid rgba(201, 168, 76, 0.2);
}

.brand-detail-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.brand-detail-name {
  color: var(--brand-detail-card-text);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
}

.brand-detail-name-ar {
  font-family: var(--font-ar-heading);
}

.brand-detail-name-en {
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 600;
  font-family: var(--font-en-heading);
  letter-spacing: 2px;
  margin: 0;
  opacity: 0.9;
}

.brand-detail-type {
  display: inline-block;
  padding: 6px 24px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
}

.brand-detail-descriptions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 700px;
  margin-top: 8px;
}

.brand-detail-desc {
  color: var(--brand-detail-card-text);
  opacity: 0.75;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

.brand-detail-desc-en {
  font-family: var(--font-en-body);
  opacity: 0.6;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

/* ---- Brand Products Grid ---- */
.brand-detail-products-title {
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}

.bp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.bp-card {
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  text-align: center;
  transition: transform 0.3s ease;
}

.bp-card:hover {
  transform: translateY(-4px);
}

.bp-card-name {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 16px;
  text-align: center;
}

.bp-card-image {
  width: 80%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(201, 168, 76, 0.2);
}

.bp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bp-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.3;
  background: rgba(255, 255, 255, 0.05);
}

.bp-card-desc {
  color: var(--brand-detail-card-text);
  opacity: 0.65;
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
  margin: 0;
}

/* ---- Footer inside Brand Detail ---- */
.brand-detail-footer {
  margin-top: 80px;
}

.brand-detail-footer .footer {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px 20px 0 0;
}

/* ========================================
   Vision & Mission
   ======================================== */

.vision {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9ff 0%, #eef0f8 100%);
}

.vision .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.vision-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--primary-rgb), 0.08);
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(40px);
}

.vision-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.vision-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--gold-rgb), 0.2);
}

.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.1), transparent);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.vision-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--white);
  font-size: 1.5rem;
}

.vision-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.vision-card p {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.9;
}

/* ========================================
   Values Section
   ======================================== */

.values {
  padding: var(--section-padding);
  background: var(--white);
}

.values .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 20px;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(30px);
}

.value-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.value-card:hover {
  background: var(--off-white);
  transform: translateY(-6px);
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: rgba(var(--primary-rgb), 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  transition: var(--transition-smooth);
}

.value-card:hover .value-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.value-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.value-desc {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.7;
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
  padding: var(--section-padding);
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.06);
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 0;
  border: none;
  border-bottom: 2px solid #e0e0e0;
  background: transparent;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  transition: var(--transition-smooth);
  outline: none;
  direction: inherit;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group label {
  position: absolute;
  top: 16px;
  right: 0;
  font-size: 1rem;
  color: #aaa;
  transition: var(--transition-smooth);
  pointer-events: none;
}

body.en .form-group label {
  right: auto;
  left: 0;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -8px;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--primary);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 48px;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
  position: relative;
  overflow: hidden;
  width: 100%;
  justify-content: center;
}

.btn-submit:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
}

/* Contact Info */
.contact-info {
  padding: 20px 0;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
}

.contact-info-card:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
}

.contact-info-text h4 {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-info-text p {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--primary);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .nav-logo {
  margin-bottom: 20px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: var(--transition-bounce);
}

.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--primary);
  transform: translateY(-4px);
}

.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--gold);
  padding-right: 8px;
}

body.en .footer-links a:hover {
  padding-right: 0;
  padding-left: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* ========================================
   Scroll Animations
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
  .section-title { font-size: 2.2rem; }
  body.en .section-title { font-size: 2rem; }

  .hero-title { font-size: 2.8rem; }
  body.en .hero-title { font-size: 3rem; }

  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .bp-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links { display: none; }
  .nav-login-btn { display: none; }
  .hamburger { display: flex; }

  .section-title { font-size: 1.8rem; }
  body.en .section-title { font-size: 1.7rem; }

  .hero-title { font-size: 2.2rem; }
  body.en .hero-title { font-size: 2.4rem; }

  .hero-desc { font-size: 1rem; }

  .hero-buttons { flex-direction: column; gap: 16px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }

  .brands-grid { grid-template-columns: 1fr; }
  .bp-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-form-wrapper { padding: 32px 24px; }

  .cursor-dot, .cursor-ring { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  body.en .hero-title { font-size: 1.9rem; }

  .section-title { font-size: 1.5rem; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-card { padding: 20px 16px; }
  .stat-number { font-size: 2rem; }

  .values-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: 1fr; }
  .bp-grid { grid-template-columns: 1fr; }
  .brand-detail-name { font-size: 1.6rem; }
  .brand-detail-name-en { font-size: 1.1rem; }
  .brand-detail-logo, .brand-detail-icon { width: 110px; height: 110px; }
  .brand-detail-info { padding: 24px 16px; }
  .brand-detail-site-name { font-size: 1rem; letter-spacing: 1px; }

  .hero-logo-badge { padding: 10px 20px; }
  .hero-logo-text { font-size: 1.1rem; letter-spacing: 4px; }
}

/* ========================================
   WhatsApp Chat Widget
   ======================================== */
.wa-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

[dir="rtl"] .wa-widget {
  right: auto;
  left: 28px;
  align-items: flex-start;
}

/* Toggle Button */
.wa-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #25D366;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.wa-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.wa-toggle-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: waPulse 2s ease-in-out infinite;
}

.wa-widget.open .wa-toggle-btn::after {
  animation: none;
}

.wa-toggle-btn .wa-icon-chat,
.wa-toggle-btn .wa-icon-close {
  width: 28px;
  height: 28px;
  transition: opacity 0.2s, transform 0.2s;
  position: absolute;
}

.wa-toggle-btn .wa-icon-close {
  opacity: 0;
  transform: rotate(-90deg);
}

.wa-widget.open .wa-toggle-btn .wa-icon-chat {
  opacity: 0;
  transform: rotate(90deg);
}

.wa-widget.open .wa-toggle-btn .wa-icon-close {
  opacity: 1;
  transform: rotate(0);
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Chat Box */
.wa-chat-box {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 340px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

[dir="rtl"] .wa-chat-box {
  right: auto;
  left: 0;
}

.wa-widget.open .wa-chat-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Chat Header */
.wa-chat-header {
  background: #075E54;
  padding: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary, #0F1B6C);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.wa-chat-name {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.wa-chat-status {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  margin: 2px 0 0;
}

.wa-chat-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.wa-chat-close:hover {
  color: #fff;
}

/* Chat Body */
.wa-chat-body {
  background: #E5DDD5;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4ccc4' fill-opacity='0.3'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/svg%3E");
  padding: 20px 16px;
  min-height: 100px;
}

.wa-chat-bubble {
  background: #fff;
  padding: 12px 16px;
  border-radius: 0 12px 12px 12px;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

[dir="rtl"] .wa-chat-bubble {
  border-radius: 12px 0 12px 12px;
}

.wa-chat-bubble p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
  margin: 0 0 4px;
}

.wa-chat-bubble p:last-child {
  margin-bottom: 0;
}

.wa-chat-time {
  display: block;
  font-size: 0.7rem;
  color: #999;
  text-align: left;
  margin-top: 4px;
}

[dir="rtl"] .wa-chat-time {
  text-align: right;
}

/* Chat Footer */
.wa-chat-footer {
  background: #F0F0F0;
  padding: 14px 16px;
}

.wa-chat-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.wa-chat-send:hover {
  background: #1DA855;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.wa-chat-send svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(15, 27, 108, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

[dir="rtl"] .back-to-top {
  left: auto;
  right: 96px;
}

/* ========================================
   Product Detail Popup
   ======================================== */
.product-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-popup {
  background: linear-gradient(145deg, #fff, #f8f9ff);
  border-radius: 24px;
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 48px 36px 36px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-popup-overlay.active .product-popup {
  transform: translateY(0) scale(1);
}

.product-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.5);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.product-popup-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
}

.product-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.product-popup-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.product-popup-icon svg {
  width: 40px;
  height: 40px;
}

.product-popup-image {
  width: 100%;
  max-height: 240px;
  border-radius: 16px;
  overflow: hidden;
}

.product-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-popup-name {
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.product-popup-desc {
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  max-width: 420px;
}

[dir="rtl"] .product-popup-close {
  right: auto;
  left: 16px;
}

@media (max-width: 480px) {
  .product-popup {
    width: 95%;
    padding: 40px 24px 28px;
  }

  .wa-widget {
    bottom: 16px;
    right: 16px;
  }

  [dir="rtl"] .wa-widget {
    right: auto;
    left: 16px;
  }

  .wa-toggle-btn {
    width: 52px;
    height: 52px;
  }

  .wa-chat-box {
    width: 300px;
    right: -8px;
  }

  [dir="rtl"] .wa-chat-box {
    right: auto;
    left: -8px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
  }
}
