/* ==========================================================================
   FlexyMove (FLX) - Swiss Bio-Clinic Theme
   Clean, Modular, Semantic CSS3
   ========================================================================== */

:root {
  /* Colors */
  --primary: #0f766e;
  --primary-hover: #0d5f58;
  --primary-light: #f0fdfa;
  --primary-border: #99f6e4;
  --primary-glow: rgba(15, 118, 110, 0.16);

  --secondary: #0f172a;
  --secondary-muted: #334155;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --bg-page: #ffffff;
  --bg-section: #f4f8fb;
  --bg-card: #ffffff;
  --bg-alt: #f8fafc;

  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;

  --gold: #d97706;
  --gold-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --success: #16a34a;
  --success-light: #dcfce7;
  --blue: #0284c7;
  --blue-light: #e0f2fe;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Times New Roman', Georgia, serif;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 40px -8px rgba(15, 118, 110, 0.18);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

.section-py {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-bg {
  background-color: var(--bg-section);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-tag-teal {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.badge-tag-gold {
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid #fde68a;
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--secondary);
  margin-top: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-top: 12px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   Strict Mobile-First: Compact 1-line on mobile (<480px)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-brand img {
  height: 42px;
  width: auto;
}

/* Desktop Navigation Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary-muted);
  position: relative;
  padding: 6px 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Header Actions (Language, Cart, Hamburger) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language Toggle Button */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 3px 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 700;
  transition: var(--transition);
  font-size: 0.825rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px var(--primary-glow);
}

/* Header Cart Button */
.header-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.header-cart-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
}

/* Mobile Hamburger */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Header Single Line Rule (<480px) */
@media (max-width: 991px) {
  .header-nav {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
}

@media (max-width: 480px) {
  .site-header {
    height: 64px;
  }
  body {
    padding-top: 64px;
  }
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .header-brand img {
    height: 34px;
  }
  .header-actions {
    gap: 8px;
  }
  .lang-switcher {
    padding: 2px 4px;
  }
  .lang-btn {
    padding: 3px 6px;
    font-size: 0.78rem;
  }
  .header-cart-btn {
    width: 38px;
    height: 38px;
  }
  .hamburger-btn {
    width: 38px;
    height: 38px;
  }
}

/* ==========================================================================
   MOBILE MENU DRAWER & BACKDROP
   ========================================================================== */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #ffffff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.2);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.drawer-close {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--secondary);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.drawer-link:hover, .drawer-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   SIDE CART DRAWER
   ========================================================================== */

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: #ffffff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.25);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.cart-drawer-body {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
}

.cart-empty-state {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}

.cart-drawer-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  padding: 4px;
  object-fit: contain;
  border: 1px solid var(--border-light);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
}

.cart-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: var(--bg-alt);
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--border-light);
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-alt);
}

.cart-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 16px;
}

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  min-height: 48px;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-secondary {
  background: #ffffff;
  color: var(--secondary);
  border: 1.5px solid var(--border-light);
}

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

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  min-height: 38px;
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

.hero-manifesto {
  padding-top: 40px;
  padding-bottom: 60px;
  background: radial-gradient(120% 80% at 50% 0%, #f0fdfa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.18;
  color: var(--secondary);
  letter-spacing: -1px;
  margin-top: 16px;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.highlight-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.highlight-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.highlight-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

.hero-nav-blocks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   SCIENTIFIC ANATOMY & COMPARISON SECTION
   ========================================================================== */

.anatomy-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.anatomy-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.legend-item {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.legend-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.legend-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   GRID CARDS (Features, Story, Formula, Certs)
   ========================================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

.card-white {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card-white:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FORMULA MATRIX SPECIFIC STYLES
   ========================================================================== */

.matrix-ingredient-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.matrix-ingredient-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--primary);
}

.ingredient-purity {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.ingredient-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

.ingredient-mechanism {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.ingredient-clinical-effect {
  background: var(--bg-alt);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-muted);
}

/* Course Package Cards */
.package-card {
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.package-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.package-bottles-img {
  max-height: 180px;
  margin: 16px auto 24px;
}

.package-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 6px;
}

.package-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.package-features {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
  flex: 1;
}

.package-features li {
  font-size: 0.9rem;
  color: var(--secondary-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.package-features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   INTERACTIVE TABS & CALCULATORS
   ========================================================================== */

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 14px 24px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.tab-content-pane {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content-pane.active {
  display: block;
}

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

/* Hydration Calculator */
.calc-card {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.calc-group {
  margin-bottom: 28px;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 10px;
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border-light);
  outline: none;
  accent-color: var(--primary);
}

.radio-pill-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
}

.radio-pill label {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.radio-pill input:checked + label {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.calc-result-box {
  background: var(--primary-light);
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-top: 32px;
}

.water-amount {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.water-schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.schedule-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-light);
}

/* WOMAC Test */
.womac-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 30px;
}

.womac-progress-fill {
  height: 100%;
  background: var(--primary);
  width: 20%;
  transition: width 0.3s ease;
}

.womac-question-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  max-width: 760px;
  margin: 0 auto;
}

.womac-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.womac-option-btn {
  padding: 14px 20px;
  background: var(--bg-alt);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

/* ==========================================================================
   CERTIFICATES GRID & LIGHTBOX
   ========================================================================== */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.cert-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.cert-card-img-wrap {
  position: relative;
  background: #faf5ee;
  padding: 16px;
}

.cert-card-img-wrap img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.cert-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: #ffffff;
  font-weight: 700;
  gap: 8px;
}

.cert-card:hover .cert-zoom-overlay {
  opacity: 1;
}

.cert-info {
  padding: 20px 24px;
}

.cert-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cert-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  margin-top: 4px;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-container {
  position: relative;
  max-width: 800px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: modalPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-img {
  max-height: 80vh;
  width: auto;
  display: block;
}

.lightbox-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
}

/* ==========================================================================
   CHECKOUT PAGE (carrello.html)
   ========================================================================== */

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: flex-start;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--secondary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.payment-method-card {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.payment-method-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.trust-badges-bar {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  margin-top: 32px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-muted);
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 580px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-xl);
  z-index: 2500;
  display: none;
  animation: slideUp 0.3s ease;
}

.cookie-banner.active {
  display: block;
}

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

.cookie-banner-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 6px;
}

.cookie-banner-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--secondary);
  color: #94a3b8;
  padding-top: 60px;
  padding-bottom: 40px;
  border-top: 1px solid #1e293b;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-legal-notice {
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .cert-grid {
    grid-template-columns: 1fr;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .anatomy-legend {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .section-py {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .form-row, .form-row-3 {
    grid-template-columns: 1fr;
  }
  .radio-pill-group {
    grid-template-columns: 1fr;
  }
  .water-schedule-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
