/* ==========================================================================
   Oasis Shower Filter - Israel Launch - Custom Design System (CSS)
   ========================================================================== */

/* --- CSS Variables & Design System Tokens --- */
:root {
  --color-primary: #0ea5e9;       /* Water Blue */
  --color-primary-dark: #0284c7;  /* Deep Water Blue */
  --color-secondary: #14b8a6;    /* Soft Teal */
  --color-dark: #0f172a;         /* Slate 900 (Text/Dark UI) */
  --color-dark-muted: #334155;   /* Slate 700 */
  --color-light: #f8fafc;        /* Slate 50 (Backgrounds) */
  --color-light-blue: #f0f9ff;   /* Soft blue tint */
  --color-accent: #f43f5e;       /* Hot Pink/Coral for urgency/badges */
  --color-success: #10b981;      /* Green for checkmarks */
  --color-border: #e2e8f0;       /* Border grey */
  --color-glass: rgba(255, 255, 255, 0.75);
  
  --font-primary: 'Rubik', sans-serif;
  --font-secondary: 'Assistant', sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* --- Scroll-Triggered Reveals --- */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Live Viewing Counter --- */
.live-viewers-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-dark-muted);
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}
.pulse-dot-green {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- Sticky Mobile Add-to-Cart --- */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.sticky-cta-bar.visible {
  transform: translateY(0);
}
@media (min-width: 768px) {
  .sticky-cta-bar {
    display: none; /* Mobile only usually, or keep for desktop but wider */
  }
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-light);
  color: var(--color-dark-muted);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.25rem;
}

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
}

.text-center h2::after {
  right: 50%;
  transform: translateX(50%);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

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

/* --- Layout Elements --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

section {
  padding-block: 4rem;
}

@media (min-width: 768px) {
  section { padding-block: 6rem; }
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* --- Buttons & UI Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.6);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--color-dark);
  color: #ffffff;
}

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

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Floating Announcement Bar --- */
.announcement-bar {
  background: linear-gradient(90deg, var(--color-primary-dark), #0369a1);
  color: #ffffff;
  padding-block: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Header / Navigation --- */
.main-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 36px; /* Below announcement bar */
  z-index: 90;
  transition: background-color var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.logo {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

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

.main-nav ul {
  display: none; /* Desktop only */
  list-style: none;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .main-nav ul {
    display: flex;
  }
}

.main-nav a {
  color: var(--color-dark-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: block;
  }
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--color-dark);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-nav-menu {
  display: none;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem;
  position: fixed;
  top: 106px; /* 36 + 70 */
  left: 0;
  right: 0;
  z-index: 85;
  box-shadow: var(--shadow-lg);
}

.mobile-nav-menu.open {
  display: block;
}

.mobile-nav-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-menu a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-dark);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background-image: url('images/bathroom.png');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding-block: 6rem;
  overflow: hidden;
}

.hero-bg-overlay {
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 40%, rgba(14, 165, 233, 0.35) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-content h1 {
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.badge-trust {
  display: inline-block;
  background-color: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.hero-subtext {
  font-size: 1.125rem;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: rgba(20, 184, 166, 0.2);
  border: 1px solid rgba(20, 184, 166, 0.4);
  color: #2dd4bf;
  font-size: 0.75rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-guarantee {
  font-size: 0.875rem;
  color: #cbd5e1;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper {
  position: relative;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
}

.hero-image {
  max-width: 320px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}

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

.floating-stat {
  position: absolute;
  bottom: 2rem;
  right: -1rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-xl);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* --- Section Titles --- */
.section-title {
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--color-dark-muted);
}

/* --- Value Propositions / Benefits Section --- */
.benefits-section {
  background-color: #ffffff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}

.benefit-card {
  background-color: var(--color-light);
  border: 1px solid var(--color-border);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 165, 233, 0.3);
  background-color: var(--color-light-blue);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.benefit-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.benefit-card p {
  font-size: 0.95rem;
  color: var(--color-dark-muted);
  flex-grow: 1;
}

/* --- City Hardness Checker Section --- */
.checker-section {
  background-color: var(--color-light-blue);
}

.checker-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .checker-container {
    grid-template-columns: 1fr 1fr;
  }
}

.checker-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.checker-info p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.city-selector-wrapper {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 450px;
}

.city-selector-wrapper label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  background-color: var(--color-light);
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-primary);
  background-color: #ffffff;
}

.checker-result {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.result-placeholder {
  text-align: center;
  color: #94a3b8;
}

.water-drop-animation {
  font-size: 3rem;
  display: inline-block;
  animation: drip 2s ease-in-out infinite;
}

@keyframes drip {
  0% { transform: translateY(-5px); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 1; }
  100% { transform: translateY(-5px); opacity: 0.5; }
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.result-header h3 {
  font-size: 1.6rem;
  margin-bottom: 0;
}

.badge-status {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  background-color: rgba(244, 63, 94, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.badge-status.moderate {
  background-color: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.2);
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .stat-row {
    flex-direction: row;
    gap: 2rem;
  }
}

.stat-col {
  flex: 1;
}

.stat-title {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-dark);
}

.text-red {
  color: var(--color-accent);
}

.result-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.result-recommendation {
  background-color: rgba(20, 184, 166, 0.08);
  border-inline-start: 4px solid var(--color-secondary);
  padding: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.rec-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* --- Quiz Section --- */
.quiz-section {
  background-color: #ffffff;
}

.quiz-container {
  background-color: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 750px;
  margin-inline: auto;
  box-shadow: var(--shadow-lg);
}

.quiz-progress-wrapper {
  margin-bottom: 2rem;
}

.quiz-progress-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
  margin-bottom: 0.5rem;
}

.quiz-progress-text {
  font-size: 0.875rem;
  color: #64748b;
}

.quiz-step h3 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.quiz-opt {
  background-color: #ffffff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.5rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-dark-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: right;
  width: 100%;
}

.quiz-opt:hover {
  border-color: var(--color-primary);
  background-color: var(--color-light-blue);
  transform: translateX(-3px);
}

.quiz-opt.selected {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(20, 184, 166, 0.08));
  color: var(--color-primary-dark);
  font-weight: 500;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-result-card {
  padding-block: 1rem;
}

.risk-score-wrapper {
  background-color: rgba(244, 63, 94, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(244, 63, 94, 0.15);
}

.risk-label {
  font-weight: 600;
}

.risk-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.quiz-result-text {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.quiz-recommendation-box {
  background-color: var(--color-light-blue);
  border: 2px dashed rgba(14, 165, 233, 0.3);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.quiz-recommendation-box h4 {
  color: var(--color-primary-dark);
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.quiz-rec-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.quiz-rec-desc {
  font-size: 0.975rem;
  margin-bottom: 1.5rem;
  color: var(--color-dark-muted);
}

/* --- Filtration Science Section --- */
.tech-section {
  background-color: var(--color-light);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .tech-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.tech-image-col {
  display: flex;
  justify-content: center;
}

.tech-image-wrapper {
  position: relative;
  max-width: 320px;
}

.tech-image {
  width: 100%;
}

.tech-stage-pointer {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tech-stage-pointer:hover,
.tech-stage-pointer.active {
  background-color: var(--color-secondary);
  box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.4);
  transform: scale(1.1);
}

.stage-1 { top: 12%; right: 40%; }
.stage-2 { top: 38%; right: 42%; }
.stage-3 { top: 62%; right: 43%; }
.stage-4 { top: 82%; right: 45%; }

.tech-details-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stage-detail-box {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.stage-detail-box.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #ffffff 60%, rgba(14, 165, 233, 0.03) 100%);
}

.stage-number {
  display: inline-block;
  background-color: var(--color-light-blue);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.stage-detail-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.stage-detail-box p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--color-dark-muted);
}

/* --- Interactive Comparison Table --- */
.comparison-section {
  background-color: #ffffff;
}

.table-responsive {
  overflow-x: auto;
  margin-top: 2rem;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  min-width: 650px;
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  text-align: right;
}

.comparison-table th {
  font-family: var(--font-secondary);
  font-weight: 700;
  background-color: var(--color-light);
  color: var(--color-dark);
  font-size: 1rem;
}

.comparison-table td {
  font-size: 0.95rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.highlight-column {
  background-color: rgba(14, 165, 233, 0.03);
  font-weight: 600;
}

th.highlight-column {
  background-color: var(--color-light-blue) !important;
  color: var(--color-primary-dark) !important;
  border-bottom: 2px solid var(--color-primary);
}

.table-feature {
  font-weight: 600;
  color: var(--color-dark);
}

.text-green {
  color: var(--color-success);
}

/* --- Packages / Offer Cards --- */
.packages-section {
  background-color: var(--color-light-blue);
}

.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .packages-grid { grid-template-columns: repeat(3, 1fr); }
}

.package-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.package-card.popular {
  border: 2px solid var(--color-primary);
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}

.package-badge-popular {
  position: absolute;
  top: -15px;
  right: 50%;
  transform: translateX(50%);
  background: linear-gradient(90deg, var(--color-accent), #e11d48);
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 8px rgba(244, 63, 94, 0.3);
  white-space: nowrap;
}

.package-header {
  margin-bottom: 1.5rem;
}

.package-header h3 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.package-sub {
  font-size: 0.875rem;
  color: #64748b;
}

.package-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

.price-val {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1;
}

.price-original {
  font-size: 1.125rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.package-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: bold;
  flex-shrink: 0;
}

.btn-buy {
  margin-top: auto;
}

.packages-trust-footer {
  font-size: 0.875rem;
  color: #64748b;
}

/* --- Review Slider (Testimonials) --- */
.reviews-section {
  background-color: #ffffff;
}

.testimonials-slider {
  max-width: 800px;
  margin-inline: auto;
  position: relative;
  background-color: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .testimonials-slider {
    padding: 4rem 3rem;
  }
}

.slides-container {
  display: flex;
  position: relative;
  min-height: 220px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-slow) ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.testimonial-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.review-stars {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.review-text {
  font-size: 1.125rem;
  color: var(--color-dark);
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.author-details h4 {
  font-size: 1rem;
  margin-bottom: 0;
}

.author-details p {
  font-size: 0.825rem;
  color: #64748b;
  margin-bottom: 0;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.control-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 5px 15px;
}

.control-btn:hover {
  color: var(--color-secondary);
  transform: scale(1.2);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #cbd5e1;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
}

.dot.active {
  background-color: var(--color-primary);
  width: 24px;
}

/* --- FAQ Accordion --- */
.faq-section {
  background-color: var(--color-light);
}

.faq-accordion {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.faq-item[open] {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: var(--shadow-md);
}

.faq-question {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-dark);
  cursor: pointer;
  list-style: none; /* Hide default triangle */
  position: relative;
  padding-inline-end: 2rem;
}

.faq-question::-webkit-details-marker {
  display: none; /* Hide Safari triangle */
}

/* Custom indicator symbol positioning */
.faq-question::after {
  content: '+';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform var(--transition-normal);
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
  color: var(--color-secondary);
}

.faq-answer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.975rem;
  line-height: 1.6;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* --- Dialog Modal (Checkout Popup) --- */
dialog {
  border: none;
  background: transparent;
  width: 92%;
  max-width: 600px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 150;
  margin: 0;
  padding: 0;
  overflow: visible;
  outline: none;
}

dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
}

.modal-content {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  font-size: 1.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--color-light);
  color: var(--color-dark);
}

.modal-body {
  padding: 2.5rem;
}

.modal-body h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: #64748b;
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

.order-summary-box {
  background-color: var(--color-light-blue);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.summary-label {
  font-size: 0.875rem;
}

.summary-name {
  color: var(--color-primary-dark);
  font-size: 1.05rem;
}

.summary-price {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-dark);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.col-6 {
  flex: 1;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-primary);
}

/* Form styling using modern CSS error hooks */
.form-control.invalid {
  border-color: var(--color-accent);
  background-color: rgba(244, 63, 94, 0.02);
}

.error-msg {
  display: none;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-top: 0.25rem;
}

.form-control.invalid + .error-msg {
  display: block;
}

.payment-method-selector {
  margin-top: 0.5rem;
}

.selector-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.payment-options {
  display: flex;
  gap: 1rem;
}

.payment-opt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-opt input {
  display: none;
}

.payment-opt:hover {
  border-color: var(--color-primary);
}

.payment-opt.active {
  border-color: var(--color-primary);
  background-color: var(--color-light-blue);
  font-weight: 600;
  color: var(--color-primary-dark);
}

.credit-card-inputs {
  background-color: var(--color-light);
  border: 1px solid var(--color-border);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Success Screen Styles */
#modal-success-step {
  text-align: center;
}

.success-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.success-intro {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.success-details {
  background-color: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: right;
  max-width: 400px;
  margin-inline: auto;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.success-details p {
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 0.5rem;
}

.success-details p:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.success-note {
  font-size: 0.875rem;
  color: #64748b;
  max-width: 450px;
  margin-inline: auto;
}

/* --- Footer Section --- */
.main-footer {
  background-color: var(--color-dark);
  color: #94a3b8;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand h3 {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-inline-start: 5px;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  background-color: #0b0f19;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: 0.825rem;
}

@media (min-width: 768px) {
  .footer-bottom-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-legal a {
  color: #64748b;
}

.footer-legal a:hover {
  color: #cbd5e1;
}

/* ==========================================================================
   Oasis Shower Filter - Israel Launch - Gamification & UX Additions
   ========================================================================== */

/* --- Stock Scarcity Bar --- */
.stock-progress-wrapper {
  margin-block: 1rem 1.5rem;
  max-width: 480px;
}
.stock-progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}
.pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #f43f5e;
  font-weight: 600;
}
.pulse-indicator::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #f43f5e;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite ease-in-out;
}
@keyframes pulse-dot {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}
.stock-progress-bar {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.stock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  transition: width 1s ease;
  position: relative;
  overflow: hidden;
}
.stock-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  animation: fill-scan 2s infinite linear;
}
@keyframes fill-scan {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* --- Before/After Split Image Slider --- */
.before-after-section {
  background-color: var(--color-light);
}
.slider-outer-wrapper {
  max-width: 750px;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  background-color: #0f172a;
}
.split-slider-container {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
}
@media (max-width: 768px) {
  .split-slider-container {
    height: 340px;
  }
}
.slider-image {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
}
.before-img {
  width: 100%;
  z-index: 1;
}
.after-img {
  width: 50%;
  z-index: 2;
  overflow: hidden;
}
.hair-preview {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.hair-preview.frizzy {
  background-image: url('images/hair_before.png');
}
.hair-preview.silky {
  background-image: url('images/hair_after.png');
}
.slider-label {
  position: absolute;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 5;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
.slider-label.before {
  right: 1rem;
}
.slider-label.after {
  left: 1rem;
}
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #ffffff;
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  font-size: 1.25rem;
  font-weight: bold;
  box-shadow: var(--shadow-lg);
  cursor: ew-resize;
}

/* --- Spin-to-Win Wheel Modal --- */
.wheel-modal {
  border: none;
  background: transparent;
  width: 92%;
  max-width: 460px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 160;
  margin: 0;
  padding: 0;
  overflow: visible;
  outline: none;
}
.wheel-modal::backdrop {
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
}
.wheel-content {
  background-color: var(--color-dark);
  color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}
.wheel-inner-body {
  padding: 3rem 2rem 2.5rem 2rem;
  text-align: center;
}
.wheel-inner-body h2 {
  color: #ffffff;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.wheel-subtitle {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.wheel-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wheel-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  font-size: 2rem;
  color: var(--color-accent);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}
.wheel-canvas {
  position: relative;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  border: 8px solid var(--color-dark-muted);
  overflow: hidden;
  background-color: #1e293b;
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.35);
  transition: transform 5s cubic-bezier(0.1, 0.8, 0.1, 1);
}
.wheel-slice {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 0;
  left: 50%;
  transform-origin: 0% 100%;
  background-color: var(--clr);
  overflow: hidden;
  transform: rotate(calc(60deg * (var(--i) - 1))) skewY(30deg);
}
.wheel-slice span {
  position: absolute;
  display: block;
  width: 85px;
  left: 5px;
  bottom: 20px;
  transform-origin: 0% 100%;
  transform: skewY(-30deg) rotate(15deg);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.825rem;
  text-align: center;
  line-height: 1.25;
}
.wheel-spin-btn {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 4px solid var(--color-dark-muted);
  color: var(--color-dark);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast);
}
.wheel-spin-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}
.wheel-spin-btn:active {
  transform: scale(0.95);
}
.gift-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: gift-bounce 2s infinite ease-in-out;
}
@keyframes gift-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.win-announcement {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.win-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}
.win-coupon-box {
  background-color: rgba(20, 184, 166, 0.1);
  border: 2px dashed var(--color-secondary);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}
.coupon-label {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}
.coupon-code {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: 1.5px;
  margin-bottom: 0.25rem;
}
.copied-indicator {
  display: block;
  font-size: 0.8rem;
  color: #2dd4bf;
  font-weight: 500;
}

/* --- Live Purchase Notification --- */
.live-purchase-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-xl);
  z-index: 120;
  max-width: 320px;
  direction: rtl;
  text-align: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.live-purchase-bubble.hidden {
  display: none !important;
}
.live-purchase-bubble.slide-in {
  animation: slideInBubble 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.live-purchase-bubble.slide-out {
  animation: slideOutBubble 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideInBubble {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes slideOutBubble {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100px); opacity: 0; }
}
.live-notif-icon {
  font-size: 1.85rem;
  background: rgba(14, 165, 233, 0.15);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.live-notif-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.live-notif-text {
  color: #f1f5f9;
  font-size: 0.875rem;
  margin: 0;
}
.live-notif-text strong {
  color: var(--color-primary);
  font-weight: 600;
}
.live-notif-time {
  color: #64748b;
  font-size: 0.75rem;
}
@media (max-width: 480px) {
  .live-purchase-bubble {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

/* --- Checkout Countdown Timer --- */
.checkout-timer-wrapper {
  background-color: rgba(244, 63, 94, 0.08);
  border: 1px dashed rgba(244, 63, 94, 0.3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #e11d48;
  direction: rtl;
  text-align: right;
  line-height: 1.4;
}
.timer-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.timer-countdown {
  font-weight: 700;
  font-size: 1rem;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  min-width: 55px;
  text-align: center;
  display: inline-block;
}

/* ==========================================================================
   Shopify Dawn-Style E-Commerce Grid Layout & Elements
   ========================================================================== */

.shopify-product-section {
  background-color: #ffffff;
  padding-block: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.product-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 992px) {
  .product-grid-container {
    grid-template-columns: 1.1fr 0.9fr; /* Right: Gallery (1.1), Left: Purchase pane (0.9) */
  }
}

/* --- Right Column: Image Gallery --- */
.product-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 120px;
}

.main-image-wrapper {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.main-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.thumb-item {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: all var(--transition-fast);
  background-color: #ffffff;
  padding: 2px;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius-sm) - 2px);
}

.thumb-item:hover, .thumb-item.active {
  border-color: #121212;
  box-shadow: 0 0 0 1px #121212;
}

/* --- Left Column: Product Form Pane --- */
.product-form-container {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.product-reviews-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.product-reviews-badge .stars {
  color: var(--color-gold, #ffb800);
  font-size: 1.15rem;
  letter-spacing: 1px;
}

.product-reviews-badge .badge-text {
  font-size: 0.85rem;
  color: var(--color-dark-muted);
  font-weight: 500;
}

.product-title {
  font-family: var(--font-secondary);
  font-size: 2.25rem;
  font-weight: 700;
  color: #121212;
  margin-bottom: 0.25rem;
}

.product-brand {
  font-size: 0.85rem;
  color: var(--color-dark-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.product-price-panel {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e8e8e8;
}

.product-price-panel .price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: #121212;
}

.product-price-panel .price-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: #121212;
  line-height: 1;
}

.product-price-panel .price-original {
  font-size: 1.35rem;
  color: var(--color-dark-muted);
  text-decoration: line-through;
  margin-inline-start: 0.25rem;
}

.product-price-panel .discount-badge {
  background-color: var(--color-accent, #f43f5e);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-inline-start: 0.5rem;
}

.scarcity-box {
  background-color: #fcf6f5;
  border: 1px solid #f2dfdd;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.scarcity-box .stock-progress-wrapper {
  margin-bottom: 0.75rem;
}

.scarcity-box .stock-progress-text {
  font-size: 0.875rem;
  color: #7a3a32;
  font-weight: 600;
}

.scarcity-box .stock-progress-bar {
  background-color: #ebd1ce;
}

.scarcity-box .stock-progress-fill {
  background: linear-gradient(90deg, #d02e2e, #f43f5e);
}

.scarcity-box .live-viewers-wrapper {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-top: 0.25rem;
  font-size: 0.85rem;
}

/* --- Coupon Banner --- */
.product-form-container .coupon-banner-box {
  background-color: rgba(20, 184, 166, 0.06);
  border: 1px dashed var(--color-secondary);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-dark-muted);
  line-height: 1.4;
}

.product-form-container .coupon-banner-icon {
  font-size: 1.25rem;
}

/* --- Dynamic Packages Selector --- */
.packages-selector-container {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8e8e8;
}

.packages-selector-container h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #121212;
  margin-bottom: 0.75rem;
}

.packages-grid-vertical,
.packages-selector-container .packages-grid {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 0.75rem !important;
}

.package-card-horizontal {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
  background-color: #ffffff;
  position: relative;
  gap: 1rem;
}

.package-card-horizontal:hover {
  border-color: #121212;
}

.package-card-horizontal.active {
  border-color: #121212;
  border-width: 2px;
  background-color: #f9fafb;
  padding: calc(1rem - 1px); /* Keep box layout stable */
}

.selector-radio {
  display: flex;
  align-items: center;
  justify-content: center;
}

.selector-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #121212;
  cursor: pointer;
}

.package-details-info {
  flex-grow: 1;
}

.package-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.pkg-title {
  font-weight: 700;
  font-size: 1rem;
  color: #121212;
}

.pkg-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  background-color: #f0f0f0;
  color: var(--color-dark-muted);
}

.pkg-tag.popular {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.pkg-tag.discount {
  background-color: #d4edda;
  color: #155724;
}

.package-summary {
  font-size: 0.8rem;
  color: var(--color-dark-muted);
}

.package-price-info {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.pkg-current-price {
  font-weight: 700;
  font-size: 1.15rem;
  color: #121212;
}

.pkg-compare-price {
  font-size: 0.85rem;
  color: var(--color-dark-muted);
  text-decoration: line-through;
}

/* --- Checkout Action Elements --- */
.product-purchase-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quantity-selector-block {
  display: flex;
  align-items: center;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  height: 48px;
}

.qty-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 100%;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: #121212;
  transition: background-color var(--transition-fast);
}

.qty-btn:hover {
  background-color: #f5f5f5;
}

.qty-input {
  width: 40px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #121212;
  background: transparent;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-shopify-buy {
  flex-grow: 1;
  background-color: #121212 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  height: 48px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color var(--transition-fast) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-shopify-buy:hover {
  background-color: #333333 !important;
  transform: none !important;
}

/* --- Trust Badging --- */
.purchase-trust-badges {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8e8e8;
  flex-wrap: wrap;
}

.trust-badge-item {
  font-size: 0.8rem;
  color: var(--color-dark-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* --- Highlights Bullet list --- */
.product-highlights h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #121212;
  margin-bottom: 0.75rem;
}

.product-highlights ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.product-highlights li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-dark-muted);
  line-height: 1.5;
}

.product-highlights li::before {
  content: "✔";
  position: absolute;
  right: 0;
  color: var(--color-success, #10b981);
  font-weight: bold;
}

/* --- Clean Override: Hide Old Sections --- */
.hero-section {
  display: none !important;
}

.packages-section {
  display: none !important;
}

/* Clean body background for premium shopify feel */
body {
  background-color: #ffffff !important;
}

/* Recommended badge style inside horizontal package cards */
.package-card-horizontal .package-badge-popular {
  background-color: #d1ecf1 !important;
  color: #0c5460 !important;
  border: 1px solid #bee5eb !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.5rem !important;
  display: inline-block !important;
  width: fit-content !important;
}



/* ==========================================================================
   MOBILE-FIRST OVERRIDES — max-width: 767px
   ========================================================================== */
@media (max-width: 767px) {

  /* --- Base typography --- */
  html { font-size: 15px; }

  h1 { font-size: 1.65rem !important; line-height: 1.25 !important; }
  h2 { font-size: 1.35rem !important; line-height: 1.3 !important; }
  h3 { font-size: 1.1rem !important; }

  .container { padding-inline: 1rem !important; }

  /* --- Announcement bar --- */
  .announcement-bar p { font-size: 0.75rem; padding: 0.4rem 0.5rem; }

  /* --- Header --- */
  .site-header { padding: 0.6rem 1rem; }
  .header-cta { display: none; }

  /* --- Hero product section --- */
  .shopify-product-section { padding-block: 1.5rem; }
  .product-grid-container { gap: 1.5rem; }
  .product-gallery-container { position: static; }
  .thumbnail-grid { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
  .product-title { font-size: 1.5rem !important; }
  .product-price-panel { flex-wrap: wrap; gap: 0.4rem; }
  .price-val { font-size: 2rem !important; }

  /* --- Waitlist inline form --- */
  #waitlist-inline-form { flex-direction: column; }
  #waitlist-inline-form input,
  #waitlist-inline-form button { width: 100%; min-width: unset; }

  /* --- Package cards --- */
  .package-card-horizontal { flex-direction: column; gap: 0.5rem; padding: 0.75rem; }
  .package-price-info { display: flex; flex-direction: row; gap: 0.5rem; align-items: center; }

  /* --- Before/After slider --- */
  .before-after-section { padding-block: 1.5rem; }
  .slider-outer-wrapper { border-radius: var(--radius-md); }

  /* --- Water hardness checker --- */
  .checker-section { padding-block: 2rem; }
  .checker-grid,
  .checker-results-grid { grid-template-columns: 1fr !important; gap: 1rem; }

  /* --- Quiz section --- */
  .quiz-section { padding-block: 2rem; }
  .quiz-options-grid { grid-template-columns: 1fr 1fr !important; gap: 0.5rem; }
  .quiz-option { padding: 0.6rem 0.4rem; font-size: 0.8rem; }
  .quiz-progress-bar-wrap { margin-bottom: 1rem; }

  /* --- Comparison table — make it scrollable, smaller padding --- */
  .comparison-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comparison-table { min-width: 520px; }
  .comparison-table th,
  .comparison-table td { padding: 0.75rem 0.6rem; font-size: 0.8rem; }

  /* --- Benefits / feature grid --- */
  .benefits-grid { grid-template-columns: 1fr !important; gap: 1rem; }
  .benefit-card { padding: 1.25rem 1rem; }

  /* --- Testimonials --- */
  .reviews-section { padding-block: 2rem; }
  .review-text { font-size: 0.9rem; }

  /* --- Tech spec --- */
  .tech-grid { grid-template-columns: 1fr !important; }

  /* --- FAQ --- */
  .faq-section { padding-block: 2rem; }
  .faq-question { font-size: 0.95rem; padding: 1rem; }
  .faq-answer { font-size: 0.9rem; padding: 0 1rem 1rem; }

  /* --- Modal --- */
  dialog[id="checkoutModal"] {
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 90vh !important;
    margin: auto 0 0 0 !important;
    border-radius: 1.25rem 1.25rem 0 0 !important;
    padding: 1.25rem 1rem !important;
  }
  .modal-body { padding: 0 !important; }
  .checkout-form .form-row { flex-direction: column; }

  /* --- Footer --- */
  .footer-container { grid-template-columns: 1fr !important; gap: 1.5rem; text-align: center; }
  .footer-links ul { padding: 0; list-style: none; }

  /* --- Sticky CTA --- */
  .sticky-cta-bar { display: flex !important; padding: 0.75rem 1rem; gap: 0.75rem; }
  .sticky-cta-info { display: flex; flex-direction: column; text-align: right; }
  .sticky-cta-bar .btn { white-space: nowrap; padding: 0.65rem 1rem; font-size: 0.9rem; }

  /* --- Goal progress section --- */
  #waitlist-goal { padding: 2rem 1rem; }
  #waitlist-goal h2 { font-size: 1.2rem !important; }
}

/* --- Very small screens (≤380px) --- */
@media (max-width: 380px) {
  h1 { font-size: 1.4rem !important; }
  .quiz-options-grid { grid-template-columns: 1fr !important; }
  .thumbnail-grid { grid-template-columns: repeat(3, 1fr); }
  .price-val { font-size: 1.75rem !important; }
}

/* --- Thumbnail clip fix + mobile product section tightening --- */
@media (max-width: 767px) {
  .thumbnail-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.35rem !important;
    overflow: hidden;
  }
  .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .product-gallery-container {
    overflow: hidden;
    width: 100%;
  }
  /* prevent any absolute/sticky elements overlapping the image */
  .product-gallery-container * {
    max-width: 100%;
  }
  .scarcity-box {
    margin-top: 0.75rem;
    font-size: 0.82rem;
  }
  .live-viewers-wrapper {
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
    white-space: normal;
    text-align: center;
  }
  .packages-selector-container h3 {
    font-size: 1rem !important;
    margin-bottom: 0.5rem;
  }
}
