/* ============================================================
   متجرنا - Landing Page
   تصميم عصري مينيمال + Fluid Typography (clamp)
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  /* الألوان الأساسية */
  --bg: #f8fafc;
  --bg-soft: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f1f5f9;

  /* النصوص */
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #94a3b8;

  /* الألوان المميزة */
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --accent: #f59e0b;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --danger: #ef4444;

  /* حدود وظلال */
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .05);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, .12), 0 4px 12px rgba(15, 23, 42, .08);
  --shadow-primary: 0 10px 24px rgba(16, 185, 129, .28);

  /* شكل */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  /* Fluid Typography */
  --fs-hero: clamp(2.25rem, 5.5vw + 1rem, 4.5rem);
  --fs-h2: clamp(1.6rem, 3vw + .8rem, 2.5rem);
  --fs-h3: clamp(1.15rem, 1.5vw + .7rem, 1.45rem);
  --fs-body: clamp(1rem, .5vw + .9rem, 1.125rem);
  --fs-sm: clamp(.85rem, .3vw + .8rem, .95rem);
  --fs-xs: clamp(.75rem, .2vw + .7rem, .825rem);

  --nav-height: 72px;
  --font: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --transition: all .3s cubic-bezier(.4, 0, .2, 1);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: .8rem;
  letter-spacing: .5px;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: .6rem;
}

.section-subtitle {
  color: var(--text-soft);
  font-size: var(--fs-body);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 700;
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
  padding: .65rem 1.4rem;
  transition: var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-sm { padding: .5rem 1.1rem; font-size: var(--fs-xs); }
.btn-lg { padding: .9rem 2rem; font-size: var(--fs-body); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(16, 185, 129, .36);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-light); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .3);
}

.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }

.btn-light {
  background: #fff;
  color: var(--text);
}

.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-block { width: 100%; }

.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 900;
  font-size: var(--fs-h3);
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: var(--shadow-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-soft);
  padding: .5rem .9rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover { color: var(--primary-dark); background: var(--primary-light); }

.nav-link.active { color: var(--primary-dark); font-weight: 700; }

.nav-cta { margin-inline-start: .75rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.hamburger span {
  width: 20px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
  z-index: -1;
  animation: blobFloat 12s ease-in-out infinite;
}

.hero-blob-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(16, 185, 129, .55), transparent 70%);
  top: -80px;
  right: -80px;
}

.hero-blob-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(245, 158, 11, .35), transparent 70%);
  bottom: -100px;
  left: -60px;
  animation-delay: 4s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.05); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, .2);
  padding: .4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark) 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  font-size: var(--fs-body);
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.5rem);
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-size: var(--fs-h3);
  font-weight: 900;
  color: var(--primary-dark);
  direction: ltr;
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* Hero visual */
.hero-visual { position: relative; }

.hero-card-main {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  animation: cardFloat 6s ease-in-out infinite;
  max-width: 400px;
  margin-inline-start: auto;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-card-img {
  height: 240px;
  background: linear-gradient(135deg, var(--primary-light), var(--surface-2) 60%);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><circle cx="100" cy="100" r="60" fill="none" stroke="%2310b981" stroke-width="3" stroke-dasharray="8 6" opacity="0.6"/><circle cx="100" cy="100" r="32" fill="%2310b981" opacity="0.15"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80%;
}

.hero-card-body { padding: 1.2rem 1.5rem 1.5rem; }

.hero-card-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent);
  background: rgba(245, 158, 11, .12);
  padding: .2rem .7rem;
  border-radius: 999px;
  margin-bottom: .5rem;
}

.hero-card-title { font-size: var(--fs-h3); font-weight: 800; margin-bottom: .2rem; }
.hero-card-price { color: var(--primary-dark); font-weight: 800; }

.hero-badge-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  animation: badgeFloat 4s ease-in-out infinite;
}

.hero-badge-float-1 { top: 12%; left: 4%; }
.hero-badge-float-2 { bottom: 10%; right: -4%; animation-delay: 2s; }

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

/* ---------- Products ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.filter-btn {
  padding: .55rem 1.4rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary-dark); }

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, .3);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card:hover .product-img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: .25rem .7rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.product-body {
  padding: 1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
}

.product-category {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary-dark);
}

.product-name {
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.35;
}

.product-specs {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.product-specs li {
  background: var(--surface-2);
  padding: .15rem .55rem;
  border-radius: 6px;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .6rem;
}

.product-price {
  font-size: var(--fs-h3);
  font-weight: 900;
  color: var(--text);
  direction: ltr;
}

.product-price .currency { font-size: var(--fs-sm); color: var(--text-soft); margin-inline-start: 2px; }

.product-old-price {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-decoration: line-through;
  direction: ltr;
}

.order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: .6rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  box-shadow: var(--shadow-primary);
}

.order-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 185, 129, .38); }

/* Skeleton loading */
.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  height: 320px;
  position: relative;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: shimmer 1.4s infinite;
}

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

.no-results {
  text-align: center;
  font-size: var(--fs-body);
  color: var(--text-soft);
  padding: 2rem 0;
}

/* ---------- Features ---------- */
.features { background: var(--bg-soft); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, .3);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  border-radius: 16px;
  background: var(--primary-light);
}

.feature-card h3 {
  font-size: var(--fs-h3);
  font-weight: 800;
  margin-bottom: .5rem;
}

.feature-card p { font-size: var(--fs-sm); color: var(--text-soft); }

/* ---------- Reviews ---------- */
.reviews-slider {
  overflow: hidden;
  max-width: 720px;
  margin-inline: auto;
  direction: rtl;
}

.reviews-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.review-card {
  min-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.review-stars {
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.review-text {
  font-size: var(--fs-body);
  color: var(--text-soft);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.9;
}

.review-author { display: flex; align-items: center; justify-content: center; gap: .8rem; }

.review-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.review-name { font-weight: 800; font-size: var(--fs-sm); text-align: start; }
.review-city { font-size: var(--fs-xs); color: var(--text-muted); text-align: start; }

.reviews-controls {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
}

.review-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--border);
  transition: var(--transition);
}

.review-dot.active { background: var(--primary); width: 28px; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding-block: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: -120px;
  right: -80px;
}

.cta-banner::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  bottom: -90px;
  left: -60px;
}

.cta-title { font-size: var(--fs-h2); font-weight: 900; margin-bottom: .8rem; }
.cta-text { font-size: var(--fs-body); opacity: .92; max-width: 560px; margin: 0 auto 1.8rem; }

/* ---------- Footer ---------- */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding-top: 3.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer .logo-text { color: #fff; }
.footer .logo-icon { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }

.footer-about { font-size: var(--fs-sm); color: #94a3b8; margin-top: 1rem; max-width: 320px; }

.footer-col h4 {
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: var(--fs-sm);
  color: #94a3b8;
  margin-bottom: .5rem;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--primary); }

.footer-col p { font-size: var(--fs-sm); color: #94a3b8; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1.2rem;
  text-align: center;
}

.footer-bottom p { font-size: var(--fs-xs); color: #64748b; }

/* ---------- Checkout Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
  transform: translateY(24px) scale(.97);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-soft);
  transition: var(--transition);
}

.modal-close:hover { background: var(--danger); color: #fff; }

.modal-header { margin-bottom: 1.2rem; }

.modal-badge {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: .25rem .8rem;
  border-radius: 999px;
  margin-bottom: .5rem;
  display: inline-block;
}

.modal-title { font-size: var(--fs-h3); font-weight: 900; }

/* Order summary */
.order-summary {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.4rem;
}

.order-item {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.order-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: #fff center/cover no-repeat;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.order-item-info { flex: 1; min-width: 0; }
.order-item-info h4 { font-size: var(--fs-sm); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-item-info p { font-size: var(--fs-xs); color: var(--text-muted); }

.order-item-price { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.order-item-price span { font-size: var(--fs-sm); font-weight: 800; color: var(--primary-dark); direction: ltr; }

.order-item-price input {
  width: 62px;
  padding: .3rem .5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: var(--fs-sm);
  background: #fff;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group.full { grid-column: 1 / -1; }

.form-group label { font-size: var(--fs-xs); font-weight: 700; color: var(--text-soft); }

.form-group input,
.form-group select {
  padding: .7rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: var(--transition);
  font-size: var(--fs-sm);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
}

.form-group input.invalid,
.form-group select.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--danger);
  min-height: 1em;
}

/* Shipping rows */
.shipping-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--text-soft);
  padding: .5rem 0;
}

.shipping-row.total {
  border-top: 1.5px dashed var(--border);
  margin-top: .3rem;
  padding-top: .8rem;
  font-size: var(--fs-body);
  font-weight: 800;
  color: var(--text);
}

.shipping-cost { font-weight: 800; direction: ltr; }
.shipping-row.total .shipping-cost { color: var(--primary-dark); font-size: var(--fs-h3); }

.shipping-note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
  margin: .6rem 0 1rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 90px;
  right: 50%;
  transform: translate(50%, 20px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.4rem;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  max-width: 90vw;
}

.toast.show { opacity: 1; visibility: visible; transform: translate(50%, 0); }

.toast-icon { font-size: 1.6rem; }

.toast strong { font-size: var(--fs-sm); display: block; }
.toast p { font-size: var(--fs-xs); color: var(--text-soft); }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .4);
  z-index: 90;
  transition: var(--transition);
  animation: pulse 2.5s infinite;
}

.whatsapp-float:hover { transform: scale(1.1); background: var(--whatsapp-dark); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Mobile CTA Bar ---------- */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 95;
  transform: translateY(110%);
  transition: var(--transition);
  box-shadow: 0 -6px 24px rgba(15, 23, 42, .08);
}

.mobile-cta.show { transform: translateY(0); }

.mobile-cta-total { display: flex; flex-direction: column; line-height: 1.3; }

.mobile-cta-label { font-size: var(--fs-xs); color: var(--text-muted); }
.mobile-cta-price { font-size: var(--fs-h3); font-weight: 900; color: var(--primary-dark); direction: ltr; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-card-main { margin-inline: auto; }
  .hero-badge-float-2 { right: 4%; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: .25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-link { padding: .9rem 1rem; font-size: var(--fs-body); }
  .nav-cta { margin: .5rem 0 0; justify-content: center; }

  .hamburger { display: flex; }

  .form-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }

  .whatsapp-float { bottom: 90px; right: 16px; width: 52px; height: 52px; }

  .toast { bottom: 120px; }

  .hero { min-height: auto; padding-top: 2.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
}
