/**
 * Hyper Water - Apple Signature Light Design System
 * Inspired by Apple.com, iOS & macOS Design Language (WWDC Fluid Interfaces & Emil Design Engineering)
 * شركة هايبر ووتر لتكنولوجيا ومعالجة المياه
 */

@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --font-arabic: 'Readex Pro', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-latin: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;

  /* Apple Signature Light Palette */
  --bg-canvas: #f5f5f7;                /* Apple standard canvas gray */
  --bg-canvas-pure: #ffffff;          /* Pure spotlight white */
  --bg-canvas-subtle: #fbfbfd;        /* Secondary subtle surface */
  --surface-card: #ffffff;            /* Crisp white hardware card */
  --surface-card-elevated: #ffffff;
  --surface-card-hover: #ffffff;
  --surface-floating: rgba(255, 255, 255, 0.85);

  /* Apple Specular Borders & Dividers */
  --border-specular: rgba(0, 0, 0, 0.08);
  --border-specular-bright: rgba(0, 0, 0, 0.14);
  --border-subtle: #e5e5ea;
  --border-accent: rgba(0, 113, 227, 0.35);

  /* Apple Typography Hierarchy */
  --text-primary: #1d1d1f;            /* Apple near-black */
  --text-secondary: #6e6e73;          /* Apple mid-gray */
  --text-muted: #86868b;              /* Apple tertiary caption */
  --text-inverted: #ffffff;

  /* Apple Cupertino Colors & Water Accents */
  --accent-blue: #0071e3;             /* Apple System Blue */
  --accent-blue-hover: #0077ed;
  --accent-blue-active: #0062c4;
  --accent-azure: #0284c7;
  --accent-cyan: #0071e3;             /* Refined pure blue (zero artificial neon) */
  --accent-gradient: linear-gradient(135deg, #0071e3 0%, #0284c7 100%);
  --accent-glow: 0 4px 20px rgba(0, 113, 227, 0.18);

  --success: #1d8348;
  --warning: #b7791f;
  --danger: #d93025;

  /* Apple Physics & Blur */
  --glass-blur: saturate(180%) blur(20px);
  --spring-bounce: cubic-bezier(0.25, 1, 0.5, 1);
  --spring-settle: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* Apple Squircles */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 980px;

  /* Apple Physical Ambient Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

::selection {
  background: #cce4fc;
  color: #0071e3;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-arabic);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.display-1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.display-2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Translucent Apple Navigation */
.hyper-nav, .apple-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-specular);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-sub {
  font-size: 0.72rem;
  color: var(--accent-blue);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s ease;
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.25s var(--spring-bounce);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Fluid Apple Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-arabic);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  user-select: none;
  transition: transform 0.18s var(--ease-out), background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.btn:active {
  transform: scale(0.97);
  transition: transform 80ms ease-out;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #e8e8ed;
  color: var(--text-primary);
  border: 1px solid transparent;
}

.btn-secondary:hover {
  background: #dedee3;
  color: #000;
}

.btn-glass {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-specular);
  box-shadow: var(--shadow-xs);
}

.btn-glass:hover {
  background: #fbfbfd;
  border-color: rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

/* Apple Hardware Cards */
.glass-card, .apple-card {
  background: var(--surface-card);
  border: 1px solid var(--border-specular);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.28s var(--spring-bounce), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.glass-card:hover, .apple-card:hover {
  border-color: rgba(0, 113, 227, 0.22);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Badge Elements */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-cyan, .badge-info {
  background: #f0f4f9;
  color: var(--accent-blue);
  border: 1px solid rgba(0, 113, 227, 0.15);
}

.badge-emerald, .badge-success {
  background: #eefaf3;
  color: var(--success);
  border: 1px solid rgba(29, 131, 72, 0.18);
}

.badge-warning {
  background: #fef8ee;
  color: var(--warning);
  border: 1px solid rgba(183, 121, 31, 0.2);
}

.badge-danger {
  background: #fdf2f2;
  color: var(--danger);
  border: 1px solid rgba(217, 48, 37, 0.2);
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  padding: 4.5rem 1.5rem 3.5rem;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: #f0f4f9;
  border: 1px solid rgba(0, 113, 227, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-visual-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  border: 1px solid var(--border-specular);
  box-shadow: var(--shadow-lg);
}

.hero-visual-img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.08));
  transition: transform 0.4s var(--spring-bounce);
}

.hero-visual-card:hover .hero-visual-img {
  transform: scale(1.03) translateY(-4px);
}

/* Stage Explorer (Apple Style Interactive Component) */
.stages-explorer-wrapper {
  max-width: 1280px;
  width: 100%;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
  overflow: hidden;
}

.stage-pills-nav {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  width: 100%;
  max-width: 100%;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.stage-pills-nav::-webkit-scrollbar {
  display: none;
}

.stage-pill {
  flex-shrink: 0;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-specular);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  user-select: none;
  box-shadow: var(--shadow-xs);
  text-decoration: none;
}

.stage-pill:hover {
  background: #fbfbfd;
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.14);
}

.stage-pill.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28);
}

.stage-detail-card {
  margin-top: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-specular);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.stage-num-badge {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0071e3 0%, #0284c7 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.25);
}

.stage-num-badge span {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.8rem;
  max-width: 1280px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-specular);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--spring-bounce), box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 113, 227, 0.25);
}

.product-img-box {
  position: relative;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfbfd;
  border-radius: var(--radius-lg);
  margin-bottom: 1.2rem;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--spring-bounce);
}

.product-card:hover .product-img-box img {
  transform: scale(1.06) translateY(-2px);
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.8rem 0 1.2rem;
}

.price-current {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-blue);
  font-family: var(--font-latin);
}

.price-old {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-family: var(--font-latin);
}

/* Forms & Clean Apple Inputs */
.form-control, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #d2d2d7;
  color: var(--text-primary);
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* Mobile Bottom Navigation Bar (iOS Safe Area Ready) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--border-specular);
  padding: 0.6rem 0.5rem calc(0.6rem + env(safe-area-inset-bottom));
  z-index: 999;
}

.mobile-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.mobile-nav-link i {
  font-size: 1.2rem;
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  color: var(--accent-blue);
}

/* Drawer & Modal Overlays */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-right: 1px solid var(--border-subtle);
  box-shadow: 15px 0 45px rgba(0, 0, 0, 0.1);
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.35s var(--spring-settle);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

/* Toast Message Pill */
.toast-container {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-pill {
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  background: rgba(29, 29, 31, 0.94);
  backdrop-filter: var(--glass-blur);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  animation: slideDownFade 0.32s var(--spring-settle);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Admin Suite Table & Styles */
.admin-table, .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th, .data-table th {
  text-align: right;
  padding: 1rem 1.2rem;
  background: #fbfbfd;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
}

.admin-table td, .data-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.admin-table tr:hover td, .data-table tr:hover td {
  background: #fafafc;
}

/* Mobile Slide-Over Navigation Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-left: 1px solid var(--border-subtle);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.12);
  z-index: 2501;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 0.5rem 0.25rem;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
  min-height: 48px;
}

.mobile-menu-item:hover, .mobile-menu-item.active {
  background: #f5f5f7;
  color: var(--accent-blue);
}

.mobile-menu-item i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  color: var(--text-secondary);
}

.mobile-menu-item:hover i, .mobile-menu-item.active i {
  color: var(--accent-blue);
}

.mobile-only-btn {
  display: none !important;
}

.desktop-only-btn {
  display: inline-flex;
}

/* Hardware Spotlight Card */
.hero-hardware-card {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(0, 113, 227, 0.08) 0%, rgba(255, 255, 255, 0) 70%), #ffffff;
  border: 1px solid var(--border-specular);
  border-radius: var(--radius-xl);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.hero-hardware-img {
  max-height: 350px;
  width: auto;
  max-width: 88%;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.hero-hardware-card:hover .hero-hardware-img {
  transform: scale(1.03) translateY(-4px);
}

/* Desktop Category Circles Ribbon */
.desktop-categories-bar {
  display: block;
  max-width: 1280px;
  margin: 0 auto 3.5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 5;
}

.desktop-cat-container {
  background: #ffffff;
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 24px;
  padding: 1.25rem 1.6rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.8rem;
  flex-wrap: nowrap;
}

.desktop-cat-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  border-radius: 16px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
  min-width: 95px;
  position: relative;
}

.desktop-cat-circle {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fbfbfd;
  border: 1.5px solid #e5e5ea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.desktop-cat-circle img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

.desktop-cat-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1d1d1f;
  text-align: center;
  line-height: 1.3;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.desktop-cat-badge {
  font-size: 0.68rem;
  color: var(--accent-blue);
  background: rgba(0, 113, 227, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  line-height: 1.2;
}

.desktop-cat-bubble:hover .desktop-cat-circle {
  border-color: var(--accent-blue);
  background: #f0f7ff;
  box-shadow: 0 8px 22px rgba(0, 113, 227, 0.22);
  transform: translateY(-4px);
}

.desktop-cat-bubble:hover .desktop-cat-circle img {
  transform: scale(1.12);
}

.desktop-cat-bubble:hover .desktop-cat-name {
  color: var(--accent-blue);
}

/* Responsive Rules */
@media (max-width: 992px) {
  .desktop-categories-bar {
    display: none !important;
  }
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 2rem;
    gap: 2rem;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .desktop-nav, .desktop-only-btn {
    display: none !important;
  }
  .mobile-only-btn {
    display: inline-flex !important;
  }
  .mobile-bottom-nav {
    display: block;
  }
  body {
    padding-bottom: 75px;
  }
  .stage-detail-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .stage-num-badge {
    margin: 0 auto;
  }
  .hero-visual-card {
    min-height: 380px;
  }
}

@media (max-width: 768px) {
  .display-1 {
    font-size: 1.85rem !important;
    line-height: 1.3 !important;
  }
  .display-2 {
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
  }
  .hero-wrapper {
    padding: 2.2rem 1.2rem 2rem !important;
  }
  .nav-container {
    padding: 0.75rem 1.2rem !important;
  }
  .mobile-nav-drawer {
    width: 320px !important;
    max-width: 86% !important;
  }
  .glass-card {
    padding: 1.5rem !important;
  }
}



/* ==========================================================================
   Hyper Water Signature UI Components (Performance & Taste Certified)
   ========================================================================== */

/* 1. Category Horizontal Slider / Carousel */
.hyper-slider-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto 2rem;
  padding: 0 0.5rem;
}

.hyper-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.hyper-slider-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.6rem 0.8rem 1rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  width: 100%;
}

.hyper-slider-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.hyper-slider-pill {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.hyper-slider-pill i {
  font-size: 0.95rem;
  color: var(--accent-blue);
  transition: transform 0.2s ease, color 0.2s ease;
}

.hyper-slider-pill:hover {
  transform: translateY(-2px);
  color: var(--text-primary);
  border-color: rgba(0, 113, 227, 0.35);
  background: #fbfbfd;
  box-shadow: var(--shadow-sm);
}

.hyper-slider-pill:hover i {
  transform: scale(1.1);
}

.hyper-slider-pill.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.32);
  transform: translateY(-1px);
}

.hyper-slider-pill.active i {
  color: #ffffff;
}

.hyper-slider-pill .cat-count {
  font-size: 0.75rem;
  padding: 0.12rem 0.55rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  font-family: var(--font-latin);
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hyper-slider-pill.active .cat-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.hyper-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-65%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-specular-bright);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hyper-slider-arrow:hover {
  background: #fbfbfd;
  color: var(--accent-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-65%) scale(1.08);
}

.hyper-slider-arrow:active {
  transform: translateY(-65%) scale(0.95);
}

.hyper-slider-arrow.prev {
  right: -14px;
}

.hyper-slider-arrow.next {
  left: -14px;
}

@media (max-width: 768px) {
  .hyper-slider-arrow {
    display: none;
  }
}

/* 2. Product Share Button & Notification Toast */
.product-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-specular);
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s var(--ease-out), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-share-btn:hover {
  color: var(--accent-blue);
  border-color: rgba(0, 113, 227, 0.3);
  transform: scale(1.08);
  box-shadow: var(--shadow-sm);
}

.product-share-btn:active {
  transform: scale(0.92);
}

.hyper-share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate3d(-50%, 80px, 0);
  opacity: 0;
  background: #1d1d1f;
  color: #ffffff;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-arabic);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  z-index: 10000;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.hyper-share-toast.show {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
}

.hyper-share-toast i {
  color: #34c759;
  font-size: 1.1rem;
}

/* 3. Interactive Hero Chart & Floating Product Notifications */
.hero-chart-container {
  position: relative;
  width: 100%;
  min-height: 440px;
  background: #ffffff;
  border: 1px solid var(--border-specular);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.hero-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-chart-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-chart-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.hero-chart-svg-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  margin: 0.5rem 0;
}

.chart-curve-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawChartCurve 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawChartCurve {
  to {
    stroke-dashoffset: 0;
  }
}

.chart-node-point {
  cursor: pointer;
  transition: transform 0.2s ease, fill 0.2s ease;
  transform-origin: center;
}

.chart-node-point:hover, .chart-node-point.active {
  transform: scale(1.4);
}

/* Floating Interactive Product Micro-Cards */
.hero-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 113, 227, 0.1);
  text-decoration: none;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.hero-floating-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 16px 36px rgba(0, 113, 227, 0.22);
  z-index: 15;
}

.hero-floating-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: #fbfbfd;
  padding: 3px;
  border: 1px solid var(--border-subtle);
  transition: transform 0.25s ease;
}

.hero-floating-card:hover img {
  transform: scale(1.08);
}

.hero-floating-card .card-texts {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.hero-floating-card .card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.hero-floating-card .card-badge {
  font-size: 0.72rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Floating Drift Animations (Animate only transform: translate3d) */
@keyframes floatDriftA {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -9px, 0);
  }
}

@keyframes floatDriftB {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 8px, 0);
  }
}

@keyframes floatDriftC {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -7px, 0);
  }
}

.drift-a {
  animation: floatDriftA 4.5s ease-in-out infinite;
}

.drift-b {
  animation: floatDriftB 5.2s ease-in-out infinite;
}

.drift-c {
  animation: floatDriftC 4.8s ease-in-out infinite;
}

.hero-floating-card:hover {
  animation-play-state: paused;
}

@media (max-width: 992px) {
  .hero-floating-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 0.75rem;
    animation: none !important;
  }
  .hero-floating-cards-tray {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
  }
}

/* ==========================================================================
   4. Hyper CardSwap Perspective Showcase (Hero 3D Animated Cascade)
   ========================================================================== */
.hero-cardswap-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-height: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  -webkit-perspective: 1200px;
}

.hero-cardswap-stage {
  position: relative;
  width: 440px;
  height: 350px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
}

.cardswap-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 350px;
  border-radius: 24px;
  border: 1px solid var(--border-specular);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.16);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: pointer;
  overflow: hidden;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  user-select: none;
  background: #ffffff;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.cardswap-item:hover {
  box-shadow: 0 32px 75px -10px rgba(0, 113, 227, 0.28);
}

/* Card 1: Hyper Water H8 Pro (Royal Ocean Theme) */
.cardswap-item.theme-ocean {
  background: linear-gradient(135deg, #ffffff 40%, #f0f7ff 100%);
  border-color: rgba(0, 113, 227, 0.28);
}
.cardswap-item.theme-ocean::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #0071e3, #0284c7);
}

/* Card 2: Compact Smart (Emerald Forest Theme) */
.cardswap-item.theme-emerald {
  background: linear-gradient(135deg, #ffffff 40%, #f0fdf4 100%);
  border-color: rgba(5, 150, 105, 0.28);
}
.cardswap-item.theme-emerald::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #059669, #10b981);
}

/* Card 3: Hyper Water H7 (Indigo Purple Theme) */
.cardswap-item.theme-indigo {
  background: linear-gradient(135deg, #ffffff 40%, #f5f3ff 100%);
  border-color: rgba(99, 102, 241, 0.28);
}
.cardswap-item.theme-indigo::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

/* Card 4: Cartridges 140g (Sunset Amber Theme) */
.cardswap-item.theme-amber {
  background: linear-gradient(135deg, #ffffff 40%, #fffbeb 100%);
  border-color: rgba(217, 119, 6, 0.28);
}
.cardswap-item.theme-amber::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

/* Card Content Structure */
.cardswap-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cardswap-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
}

.badge-ocean {
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  border: 1px solid rgba(0, 113, 227, 0.2);
}

.badge-emerald {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge-indigo {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-amber {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.cardswap-serial-verified {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cardswap-serial-verified i {
  color: #059669;
}

.cardswap-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0;
  position: relative;
  z-index: 2;
}

.cardswap-info {
  flex: 1;
}

.cardswap-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.cardswap-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.cardswap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cardswap-tag-pill {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
  font-weight: 600;
}

.cardswap-img-box {
  width: 145px;
  height: 145px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cardswap-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
  transition: transform 0.4s var(--spring-bounce);
}

.cardswap-item:hover .cardswap-img-box img {
  transform: scale(1.08) translateY(-4px);
}

.cardswap-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 2;
}

.cardswap-price-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-latin);
}

.cardswap-price-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: block;
}

.cardswap-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* CardSwap Controls / Indicator */
.cardswap-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.8rem;
  z-index: 10;
  position: relative;
}

.cardswap-ctrl-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-specular);
  background: #ffffff;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cardswap-ctrl-btn:hover {
  background: var(--accent-blue);
  color: #ffffff;
  transform: scale(1.08);
}

.cardswap-indicators {
  display: flex;
  gap: 0.5rem;
}

.cardswap-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #d2d2d7;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.cardswap-dot.active {
  width: 24px;
  background: var(--accent-blue);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-cardswap-wrapper {
    min-height: 390px;
    max-width: 100%;
  }
  .hero-cardswap-stage {
    width: 320px;
    height: 320px;
  }
  .cardswap-item {
    width: 320px;
    height: 320px;
    padding: 1.1rem;
  }
  .cardswap-img-box {
    width: 100px;
    height: 100px;
  }
  .cardswap-title {
    font-size: 1.05rem;
  }
  .cardswap-desc {
    display: none;
  }
}
