/* ===================================================================
   DUBAI PEPTIDES — Design System & Global Styles
   Premium dark theme with green/blue luxury accents
   =================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #060a14;
  --bg-secondary: #0c1220;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(12, 18, 32, 0.85);

  --accent-green: #98c93c;
  --accent-green-light: #aedb57;
  --accent-green-dark: #7da530;
  --accent-blue: #1a7fd4;
  --accent-blue-light: #3a9fe8;
  --accent-blue-dark: #0d5a9e;

  --text-primary: #f0f0f2;
  --text-secondary: #8a92a6;
  --text-muted: #5a6278;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(152, 201, 60, 0.3);

  --gradient-hero: linear-gradient(135deg, #060a14 0%, #0c1a2e 40%, #0a1628 70%, #060a14 100%);
  --gradient-green: linear-gradient(135deg, #98c93c, #aedb57, #98c93c);
  --gradient-cta: linear-gradient(135deg, #98c93c 0%, #7da530 100%);
  --gradient-cta-hover: linear-gradient(135deg, #aedb57 0%, #98c93c 100%);
  --gradient-blue: linear-gradient(135deg, #1a7fd4, #3a9fe8);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(152, 201, 60, 0.15);
  --shadow-glow-green: 0 0 30px rgba(152, 201, 60, 0.15);
  --shadow-glow-blue: 0 0 30px rgba(26, 127, 212, 0.15);
  --shadow-btn: 0 4px 16px rgba(152, 201, 60, 0.3);
  --shadow-btn-hover: 0 8px 32px rgba(152, 201, 60, 0.45);

  /* Typography */
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: 'Cairo', 'Inter', sans-serif;
  --font-body: var(--font-en);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
}

/* --- RTL / Arabic Language --- */
[dir="rtl"] {
  --font-body: var(--font-ar);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-green-light);
}

ul, ol {
  list-style: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(152, 201, 60, 0.3);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(152, 201, 60, 0.5);
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===================================================================
   HEADER / NAVIGATION
   =================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-subtle), 0 4px 24px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--bg-primary);
  letter-spacing: -1px;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text-primary {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.logo-text-secondary {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-green);
  transition: width var(--transition-base);
  border-radius: 1px;
}

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  padding: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.lang-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 1;
  font-family: var(--font-en);
}

.lang-btn.active {
  color: var(--bg-primary);
}

.lang-toggle-slider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: calc(50% - 3px);
  background: var(--gradient-green);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
}

[dir="rtl"] .lang-toggle-slider {
  transform: translateX(-100%);
}

[dir="ltr"] .lang-toggle-slider {
  transform: translateX(0);
}

.lang-toggle[data-active="ar"] .lang-toggle-slider {
  transform: translateX(100%);
}

[dir="rtl"] .lang-toggle[data-active="en"] .lang-toggle-slider {
  transform: translateX(0);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(26, 127, 212, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroGlow1 8s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(152, 201, 60, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroGlow2 10s ease-in-out infinite alternate;
}

@keyframes heroGlow1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 40px) scale(1.1); }
}

@keyframes heroGlow2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.15); }
}

/* Animated grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(152, 201, 60, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 201, 60, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(152, 201, 60, 0.1);
  border: 1px solid rgba(152, 201, 60, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease-out;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out 0.1s both;
  letter-spacing: -0.03em;
}

.hero-title-gradient {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.6s ease-out 0.2s both;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  animation: fadeInUp 0.6s ease-out 0.3s both;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-green);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeInUp 0.6s ease-out 0.5s both;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-green), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--bg-primary);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--gradient-cta-hover);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-2px);
  color: var(--bg-primary);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(152, 201, 60, 0.3);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.btn-messenger {
  background: linear-gradient(135deg, #0084ff, #0066cc);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 132, 255, 0.3);
}

.btn-messenger:hover {
  box-shadow: 0 8px 32px rgba(0, 132, 255, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===================================================================
   PRODUCTS GRID
   =================================================================== */
.products-section {
  background: var(--bg-secondary);
  position: relative;
}

.products-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(152, 201, 60, 0.2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-card-hover);
  color: inherit;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #0e1525, #131b2e);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.product-card-image img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

.product-card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background: rgba(152, 201, 60, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(152, 201, 60, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[dir="rtl"] .product-card-badge {
  left: auto;
  right: var(--space-md);
}

.product-card-info {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.product-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.product-card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-green);
}

.product-card-price-currency {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

[dir="rtl"] .product-card-price-currency {
  margin-left: 0;
  margin-right: 4px;
}

.product-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
  transition: gap var(--transition-base);
}

.product-card:hover .product-card-action {
  gap: 10px;
}

.product-card-action-arrow {
  transition: transform var(--transition-base);
}

[dir="rtl"] .product-card-action-arrow {
  transform: scaleX(-1);
}

.product-card:hover .product-card-action-arrow {
  transform: translateX(4px);
}

[dir="rtl"] .product-card:hover .product-card-action-arrow {
  transform: scaleX(-1) translateX(4px);
}

/* ===================================================================
   FEATURES SECTION
   =================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  background: rgba(152, 201, 60, 0.08);
  border: 1px solid rgba(152, 201, 60, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: rgba(152, 201, 60, 0.15);
  border-color: rgba(152, 201, 60, 0.3);
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.feature-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================================================================
   CONTACT / CTA SECTION
   =================================================================== */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(152, 201, 60, 0.06) 0%, transparent 70%);
}

.cta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.cta-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* ===================================================================
   FLOATING WHATSAPP BUTTON
   =================================================================== */
.float-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  text-decoration: none;
  animation: floatBounce 3s ease-in-out infinite;
}

[dir="rtl"] .float-whatsapp {
  right: auto;
  left: 28px;
}

.float-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 36px rgba(37, 211, 102, 0.5);
}

.float-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.float-whatsapp-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: pulseBorder 2s infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulseBorder {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.footer-link {
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-green);
}

.footer-disclaimer {
  width: 100%;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: center;
}

/* ===================================================================
   PRODUCT DETAIL PAGE
   =================================================================== */
.product-detail {
  padding-top: calc(var(--header-height) + var(--space-2xl));
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.product-detail-image {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
  background: linear-gradient(135deg, #0e1525, #131b2e);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  overflow: hidden;
}

.product-detail-image img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.product-detail-image:hover img {
  transform: scale(1.05);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.product-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-detail-breadcrumb a {
  color: var(--text-secondary);
}

.product-detail-breadcrumb a:hover {
  color: var(--accent-green);
}

.product-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background: rgba(152, 201, 60, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(152, 201, 60, 0.2);
  width: fit-content;
}

.product-detail-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.product-detail-price-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-green);
}

.product-detail-price-currency {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.product-detail-specs {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-detail-spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.product-detail-spec:last-child {
  border-bottom: none;
}

.product-detail-spec-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.product-detail-spec-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.product-detail-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.product-detail-actions .btn {
  flex: 1;
  min-width: 200px;
}

/* Description tabs */
.product-tabs {
  margin-top: var(--space-xl);
}

.product-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: var(--space-xl);
}

.product-tab-btn {
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.product-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-green);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.product-tab-btn.active {
  color: var(--accent-green);
}

.product-tab-btn.active::after {
  transform: scaleX(1);
}

.product-tab-btn:hover {
  color: var(--text-primary);
}

.product-tab-content {
  display: none;
}

.product-tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.product-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 2;
}

.product-description h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-xl) 0 var(--space-md);
}

.product-description p {
  margin-bottom: var(--space-md);
}

.product-description ul {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

[dir="rtl"] .product-description ul {
  padding-left: 0;
  padding-right: var(--space-xl);
}

.product-description li {
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: var(--space-md);
}

[dir="rtl"] .product-description li {
  padding-left: 0;
  padding-right: var(--space-md);
}

.product-description li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--accent-green);
  border-radius: 50%;
}

[dir="rtl"] .product-description li::before {
  left: auto;
  right: 0;
}

/* Related Products */
.related-section {
  border-top: 1px solid var(--border-subtle);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* ===================================================================
   ANIMATIONS
   =================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }
.animate-on-scroll:nth-child(7) { transition-delay: 0.6s; }
.animate-on-scroll:nth-child(8) { transition-delay: 0.7s; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .products-grid,
  .features-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-image {
    position: static;
    max-height: 400px;
  }

  .hero-stats {
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .products-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .hero-stat {
    min-width: 80px;
  }

  .cta-card {
    padding: var(--space-2xl) var(--space-lg);
  }

  .product-detail-actions .btn {
    min-width: 100%;
  }

  .logo-text {
    display: none;
  }

  .float-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }

  [dir="rtl"] .float-whatsapp {
    right: auto;
    left: 20px;
  }
}

@media (max-width: 480px) {
  .products-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .product-tabs-nav {
    overflow-x: auto;
  }
}

/* ===================================================================
   UTILITY
   =================================================================== */
.text-center { text-align: center; }
.text-green { color: var(--accent-green); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===================================================================
   SHOPPING CART & DRAWER
   =================================================================== */
.header-cart-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  margin: 0 var(--space-xs);
}

.header-cart-btn:hover {
  background: rgba(152, 201, 60, 0.1);
  border-color: rgba(152, 201, 60, 0.3);
  color: var(--accent-green);
  transform: translateY(-1px);
}

.header-cart-btn .cart-icon {
  width: 20px;
  height: 20px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gradient-green);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--transition-base);
}

.cart-badge.active {
  opacity: 1;
  transform: scale(1);
}

/* Bounce animation when item added */
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.bounce-animation {
  animation: cartBounce 0.4s ease-out;
}

/* Backdrop */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cart-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-card);
  z-index: 1100;
  transition: right var(--transition-base);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

[dir="rtl"] .cart-drawer {
  right: auto;
  left: -400px;
  border-left: none;
  border-right: 1px solid var(--border-card);
  transition: left var(--transition-base);
}

.cart-drawer.active {
  right: 0;
}

[dir="rtl"] .cart-drawer.active {
  right: auto;
  left: 0;
}

.cart-drawer-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-drawer-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.cart-drawer-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-empty-message {
  text-align: center;
  margin: auto 0;
  color: var(--text-secondary);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  align-items: center;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.cart-item-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--accent-green);
  font-weight: 600;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-xs);
}

.qty-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.qty-btn {
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.qty-val {
  padding: 0 var(--space-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.cart-item-remove:hover {
  color: #ff4d4d;
  background: rgba(255, 77, 77, 0.08);
}

.cart-drawer-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  background: rgba(12, 18, 32, 0.95);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.cart-drawer-subtotal span:first-child {
  color: var(--text-secondary);
}

.cart-drawer-subtotal .subtotal-val {
  font-size: 1.15rem;
  color: var(--accent-green);
  font-weight: 700;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* ===================================================================
   CHECKOUT PAGE
   =================================================================== */
.checkout-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: calc(var(--header-height) + var(--space-md));
  margin-bottom: var(--space-xl);
}

[dir="rtl"] .checkout-breadcrumb {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.checkout-breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.checkout-breadcrumb a:hover {
  color: var(--accent-green);
}

.checkout-breadcrumb span {
  padding: 0 4px;
}

.checkout-empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: var(--space-4xl) auto;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
}

.checkout-empty-state h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.checkout-empty-state p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-2xl);
  align-items: start;
  margin-bottom: var(--space-4xl);
}

.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.checkout-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-md);
}

[dir="rtl"] .checkout-card-title {
  text-align: right;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

[dir="rtl"] .checkout-form {
  text-align: right;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.required-star {
  color: #ff4d4d;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea {
  text-align: right;
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(152, 201, 60, 0.15);
}

.form-group input.input-error,
.form-group textarea.input-error {
  border-color: #ff4d4d;
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.15);
}

.error-message {
  color: #ff4d4d;
  font-size: 0.8rem;
  margin-top: 2px;
  display: none;
}

/* Summary styles */
.checkout-summary-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  max-height: 350px;
  overflow-y: auto;
  padding-right: var(--space-xs);
}

[dir="rtl"] .checkout-summary-list {
  padding-right: 0;
  padding-left: var(--space-xs);
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

[dir="rtl"] .checkout-summary-item {
  flex-direction: row-reverse;
}

.summary-item-left {
  display: flex;
  gap: var(--space-sm);
}

[dir="rtl"] .summary-item-left {
  flex-direction: row-reverse;
}

.summary-item-qty {
  font-weight: 700;
  color: var(--accent-green);
}

.summary-item-name {
  color: var(--text-primary);
}

.summary-item-price {
  font-weight: 600;
}

.checkout-summary-totals {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

[dir="rtl"] .checkout-total-row {
  flex-direction: row-reverse;
}

.checkout-total-separator {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-xs) 0;
}

.grand-total {
  font-size: 1.15rem;
  color: var(--text-primary);
}

.checkout-disclaimer {
  margin-top: var(--space-xl);
  padding: var(--space-md);
  background: rgba(152, 201, 60, 0.04);
  border: 1px solid rgba(152, 201, 60, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

[dir="rtl"] .checkout-disclaimer {
  text-align: right;
  direction: rtl;
}

.checkout-disclaimer p {
  margin: 0;
}

.sticky-card {
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
}

@media (max-width: 991px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .sticky-card {
    position: static;
  }
}

