/*
 * Kundu Hahnemann Homeo Laboratory - Custom Premium Stylesheet (V3 Blue Redesign)
 * Modern scientific blue palette (navy, steel blue, electric cyan).
 * Restored all missing product card layout classes to fix image scaling and alignment.
 */

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

/* --- Premium Color Palette (Modern Blue Shades) --- */
:root {
  --primary: #0a1d37;          /* Deep Navy Blue - clean room authority */
  --primary-hover: #050e1b;
  --primary-light: #f0f4f8;    /* Soft Ice Blue Background Tint */
  --primary-rgb: 10, 29, 55;
  
  --secondary: #1e40af;        /* Classic Steel Blue */
  --secondary-light: #dbeafe;  /* Light Steel Blue */
  
  --accent: #0ea5e9;           /* Electric Cyan/Sky Blue for clean accents */
  --accent-hover: #38bdf8;     /* Radiant sky blue */
  --accent-dark: #0369a1;
  --accent-light: #e0f2fe;     /* Ice Blue highlight */
  
  --text-dark: #0f172a;        /* Slate 900 */
  --text-muted: #475569;       /* Slate 600 */
  --text-light: #94a3b8;       /* Slate 400 */
  
  --bg-main: #fafbfa;          /* Soft warm clinical off-white */
  --bg-offset: #f1f5f9;        /* Cool white/light gray offset */
  --border-light: #f1f5f9;     /* Slate 100 */
  --border-medium: #e2e8f0;    /* Slate 200 */
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 16px rgba(10, 29, 55, 0.04);
  --shadow-lg: 0 16px 32px rgba(10, 29, 55, 0.06);
  --shadow-xl: 0 32px 64px rgba(10, 29, 55, 0.1);
  --shadow-blue: 0 10px 25px -5px rgba(14, 165, 233, 0.15);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-round: 9999px;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Resets & Premium Typography --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  background-color: transparent;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
  background: none;
}

/* --- Dynamic Background Graphics & Blobs (Blue Shades) --- */
@keyframes gridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

@keyframes blobTealDrift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 80px) scale(1.1); }
  66% { transform: translate(-30px, 110px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blobGoldDrift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, -40px) scale(0.9); }
  66% { transform: translate(40px, -90px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes molecularFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes molecularFloatAlt {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(15px) rotate(-4deg); }
}

/* --- Scene Background Styling --- */
.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  perspective: 1300px;
  background:
    radial-gradient(circle at 72% 30%, rgba(48, 185, 220, 0.24), transparent 18%),
    radial-gradient(circle at 84% 68%, rgba(0, 118, 180, 0.26), transparent 24%),
    radial-gradient(circle at 55% 72%, rgba(70, 202, 226, 0.16), transparent 30%),
    linear-gradient(100deg, #f7fbfc 0%, #eef6f8 31%, #dff3f7 50%, #bde8f0 69%, #8bd4e5 100%);
  z-index: -10;
  pointer-events: none;
}

.scene::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 5% 28%, rgba(255,255,255,0.94), transparent 31%),
    radial-gradient(circle at 31% 52%, rgba(255,255,255,0.72), transparent 23%),
    radial-gradient(circle at 64% 18%, rgba(255,255,255,0.48), transparent 15%),
    radial-gradient(circle at 76% 58%, rgba(0,126,184,0.2), transparent 26%);
  animation: fogDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 30%, rgba(255,255,255,0.1) 57%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.molecule {
  position: absolute;
  right: -4%;
  top: -3%;
  width: 58vw;
  height: 112vh;
  opacity: 0.7;
  transform: rotate(-12deg) scale(1.02);
  animation: moleculeMove 16s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px rgba(0, 140, 190, 0.25));
}

.hex {
  position: absolute;
  width: 82px;
  height: 72px;
  border: 1.3px solid rgba(0, 116, 174, 0.32);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  animation: hexPulse 5s ease-in-out infinite;
}

.bond {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 112, 170, 0.34), transparent);
  transform-origin: left center;
  animation: hexPulse 5s ease-in-out infinite;
}

.dot {
  position: absolute;
  width: var(--s, 9px);
  height: var(--s, 9px);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff, #62d6e8 50%, #047eb8 100%);
  box-shadow: 0 0 18px rgba(65,216,236,0.62), 0 0 32px rgba(0,118,180,0.22);
  animation: dotFloat 6s ease-in-out infinite;
}

.blur-spot {
  position: absolute;
  border-radius: 50%;
  background: rgba(26, 167, 203, 0.2);
  filter: blur(9px);
  animation: blurFloat 12s ease-in-out infinite alternate;
}

.pill {
  position: absolute;
  width: var(--w, 148px);
  height: calc(var(--w, 148px) * 0.31);
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.78);
  background:
    linear-gradient(90deg,
      rgba(255,255,255,0.93) 0 46%,
      rgba(255,255,255,0.65) 47%,
      rgba(0,156,209,0.68) 49% 100%),
    linear-gradient(135deg, rgba(255,255,255,0.62), rgba(0,143,202,0.42));
  box-shadow:
    inset 0 0 16px rgba(255,255,255,0.84),
    inset -22px -7px 28px rgba(0,81,149,0.26),
    inset 22px 5px 18px rgba(255,255,255,0.64),
    0 18px 36px rgba(0,92,145,0.22);
  backdrop-filter: blur(2px);
  opacity: var(--o, 0.92);
  transform: rotate(var(--r, 0deg)) scale(var(--sc, 1));
  animation: pillFloat var(--d, 10s) ease-in-out infinite;
  filter: blur(var(--b, 0px));
}

.pill::before {
  content: "";
  position: absolute;
  top: 14%;
  left: 12%;
  width: 36%;
  height: 16%;
  border-radius: 99px;
  background: rgba(255,255,255,0.86);
  filter: blur(3px);
}

.pill::after {
  content: "";
  position: absolute;
  left: 48%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 0 14px rgba(255,255,255,0.72);
}

.p1 { --w: 176px; --r: 43deg; --d: 11s; left: 77%; top: 19%; animation-delay: -3s; }
.p2 { --w: 150px; --r: 9deg; --d: 12s; left: 69%; top: 47%; animation-delay: -7s; }
.p3 { --w: 174px; --r: -50deg; --d: 13s; left: 70%; top: 62%; animation-delay: -1s; }
.p4 { --w: 132px; --r: -62deg; --d: 10s; left: 57%; top: 54%; animation-delay: -5s; }
.p5 { --w: 112px; --r: 8deg; --d: 14s; left: 38%; top: 70%; animation-delay: -9s; }
.p6 { --w: 94px; --r: 68deg; --d: 16s; left: 29%; top: 67%; --o: 0.62; --b: 0.8px; animation-delay: -11s; }
.p7 { --w: 88px; --r: -48deg; --d: 17s; left: 21%; top: 86%; --o: 0.48; --b: 1.1px; animation-delay: -4s; }
.p8 { --w: 78px; --r: 19deg; --d: 14s; left: 67%; top: 0%; --o: 0.72; --b: 0.4px; animation-delay: -6s; }
.p9 { --w: 72px; --r: -8deg; --d: 15s; left: 92%; top: 0%; --o: 0.65; --b: 0.5px; animation-delay: -10s; }
.p10 { --w: 92px; --r: 18deg; --d: 12s; left: 88%; top: 87%; --o: 0.68; --b: 0.5px; animation-delay: -2s; }
.p11 { --w: 102px; --r: 72deg; --d: 18s; left: 93%; top: 54%; --o: 0.42; --b: 1.5px; animation-delay: -8s; }
.p12 { --w: 86px; --r: 75deg; --d: 16s; left: 73%; top: 24%; --o: 0.76; animation-delay: -12s; }

.particle {
  position: absolute;
  width: var(--s, 8px);
  height: var(--s, 8px);
  border-radius: 50%;
  background: rgba(38, 178, 213, 0.3);
  box-shadow: 0 0 14px rgba(0, 161, 213, 0.42);
  filter: blur(var(--b, 0px));
  animation: particleRise linear infinite;
}

@keyframes fogDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(4%, 3%, 0) scale(1.07); }
}

@keyframes moleculeMove {
  from { transform: rotate(-13deg) translate3d(-12px, -8px, 0) scale(1.02); }
  to { transform: rotate(-10deg) translate3d(16px, 13px, 0) scale(1.06); }
}

@keyframes hexPulse {
  0%, 100% { opacity: 0.28; filter: brightness(0.95); }
  50% { opacity: 0.72; filter: brightness(1.25); }
}

@keyframes dotFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.88); opacity: 0.48; }
  50% { transform: translate3d(10px, -14px, 0) scale(1.14); opacity: 0.88; }
}

@keyframes blurFloat {
  from { transform: translate3d(-20px, -12px, 0) scale(1); opacity: 0.45; }
  to { transform: translate3d(28px, 20px, 0) scale(1.16); opacity: 0.75; }
}

@keyframes pillFloat {
  0%, 100% { translate: 0 0; }
  40% { translate: 15px -22px; }
  72% { translate: -10px -7px; }
}

@keyframes particleRise {
  from { transform: translate3d(0, 108vh, 0) scale(0.5); opacity: 0; }
  12% { opacity: 0.55; }
  76% { opacity: 0.35; }
  to { transform: translate3d(var(--x, 20px), -14vh, 0) scale(1.28); opacity: 0; }
}

/* Molecular elements floating animation */
.decorative-molecule {
  animation: molecularFloat 14s infinite ease-in-out;
}

.decorative-molecule:nth-of-type(2) {
  animation: molecularFloatAlt 18s infinite ease-in-out;
}

/* Decorative Background scroll containers to prevent mobile overflow */
.scroll-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* --- Utility Components --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 5;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-round);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--secondary);
  border: 1px solid rgba(30, 64, 175, 0.1);
}

.badge-accent {
  background-color: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.6rem;
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 29, 55, 0.15);
}

.btn-primary:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.25);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.35);
}

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--accent-light);
  color: var(--accent-dark);
  transform: translateY(-2px);
}

/* --- Sticky Header & Navbar --- */
.global-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.utility-bar {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  padding: 0.5rem 0;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}

.utility-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-bar-left {
  display: flex;
  gap: 1.5rem;
}

.utility-bar-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.utility-bar a {
  color: var(--accent-hover);
}

.utility-bar a:hover {
  color: #ffffff;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

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

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(10, 29, 55, 0.2);
}

.logo-text-animated {
  background: linear-gradient(
    to right,
    var(--primary) 20%,
    var(--accent) 40%,
    var(--secondary) 60%,
    var(--primary) 80%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 200% auto;
  animation: logoShine 4s linear infinite;
  display: block;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.05em;
  font-weight: 900;
}

@keyframes logoShine {
  to {
    background-position: 200% center;
  }
}

/* --- Search Bar & Suggestions --- */
.search-container {
  flex: 0 1 450px;
  position: relative;
  margin: 0 1.5rem;
}

.mobile-search-section {
  display: none;
}

.search-bar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1.25rem 0.75rem 3rem;
  background-color: var(--bg-offset);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-round);
  font-size: 0.85rem;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.search-input:focus {
  background-color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-medium);
  margin-top: 0.5rem;
  max-height: 380px;
  overflow-y: auto;
  z-index: 110;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.search-suggestions.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.suggestion-group-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-dark);
  padding: 0.4rem 1.25rem;
  letter-spacing: 0.08em;
  background-color: var(--accent-light);
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.suggestion-item:hover {
  background-color: var(--primary-light);
}

.suggestion-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.suggestion-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.suggestion-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--secondary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* --- Mega Menu & Navigation Dropdowns --- */
.mega-menu-bar {
  background-color: rgba(240, 244, 248, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-medium);
  position: relative;
}

.mega-menu-bar-content {
  display: flex;
  justify-content: center;
  list-style: none;
}

.mega-menu-trigger {
  display: block;
  padding: 0.9rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 2.5px solid transparent;
}

.mega-menu-item:hover .mega-menu-trigger {
  color: var(--secondary);
  border-bottom-color: var(--accent);
}

/* Mega dropdown layout */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 820px;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 2rem;
  display: none; /* Changed from display: grid to prevent DOM layout overflow */
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  z-index: 99;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition-smooth);
}

.mega-menu-item:hover .mega-dropdown {
  display: grid; /* Display grid on hover */
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-dropdown-column h4 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-medium);
  padding-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.mega-dropdown-links {
  list-style: none;
}

.mega-dropdown-links li {
  margin-bottom: 0.5rem;
}

.mega-dropdown-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mega-dropdown-links a:hover {
  color: var(--secondary);
  padding-left: 6px;
}

/* Numbered Grid Dropdown for Biochemic Salts */
.biochemic-nav-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.biochemic-nav-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-offset);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.biochemic-nav-cell span {
  font-size: 0.52rem;
  font-weight: 500;
  color: var(--text-muted);
}

.biochemic-nav-cell:hover {
  background-color: var(--primary);
  color: var(--accent-hover);
  border-color: var(--primary);
}

.biochemic-nav-cell:hover span {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Hero Section & Hand Mask Window --- */
.hero-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background: transparent;
  border-bottom: 1px solid var(--border-medium);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
}

.hero-title-group h3 {
  font-family: 'Outfit';
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.hero-title-group h1 {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--primary);
}

.hero-title-group span.highlight-gold {
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.hero-title-group span.highlight-gold::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 14px;
  background-color: rgba(14, 165, 233, 0.15);
  z-index: -1;
  border-radius: var(--radius-sm);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
}

/* Certification Slider & Arrow Button */
.certifications-slider-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  background-color: #ffffff;
  padding: 1.1rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--accent);
  max-width: 480px;
  box-shadow: var(--shadow-md);
}

.slider-btn-next {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-round);
  background-color: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(10, 29, 55, 0.15);
  flex-shrink: 0;
}

.slider-btn-next:hover {
  background-color: var(--secondary);
  color: #ffffff;
  transform: rotate(360deg) scale(1.05);
}

.slider-text-wrapper {
  overflow: hidden;
  height: 46px;
  position: relative;
  flex-grow: 1;
}

.slider-text-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slider-text-item.active {
  opacity: 1;
  transform: translateY(0);
}

.slider-text-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slider-text-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Hand Mask Section Styling */
.hero-graphic-mask-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hand-mask-container {
  width: 100%;
  max-width: 460px;
  height: 500px;
  clip-path: url(#hand-mask);
  -webkit-clip-path: url(#hand-mask);
  overflow: hidden;
  position: relative;
  background-color: var(--primary-light);
  box-shadow: var(--shadow-xl);
}

.hand-mask-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hand-mask-container:hover .hand-mask-image {
  transform: scale(1.08);
}

.hand-mask-outline-svg {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 100.5%;
  height: 100.5%;
  pointer-events: none;
  z-index: 10;
}

.hand-mask-outline-svg path {
  filter: drop-shadow(0px 4px 10px rgba(14, 165, 233, 0.4));
}

/* Floating detail box */
.floating-hand-details {
  position: absolute;
  bottom: 2rem;
  right: -0.5rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-medium);
  border-right: 3px solid var(--accent);
  max-width: 220px;
  animation: float-animation 6s ease-in-out infinite;
  z-index: 15;
}

.floating-hand-details h4 {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.floating-hand-details p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

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

/* --- Dynamic Product Grid (STRICT COMPONENT FIXES) --- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: 2.35rem;
  margin-bottom: 0.6rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  border-radius: var(--radius-sm);
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 1rem;
}

.catalog-section {
  padding: 6rem 0;
  background-color: transparent;
  border-bottom: 1px solid var(--border-medium);
  position: relative;
}

.catalog-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
  list-style: none;
}

.catalog-tab {
  padding: 0.65rem 1.6rem;
  background-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-round);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.catalog-tab:hover, .catalog-tab.active {
  background-color: var(--primary);
  color: var(--accent-hover);
  border-color: var(--primary);
  box-shadow: 0 6px 15px rgba(10, 29, 55, 0.15);
}

/* Product Card Grid layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Product Card Styling (RESTORED COMPONENT LAYOUT) */
.product-card {
  background-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 440px;            /* Set exact standard layout height */
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.product-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
}

/* Restored image container size to enforce scaling limits */
.product-image-container {
  height: 180px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;         /* Prevent images overflowing card container height */
}

/* Restored image containment to prevent cropped droppers */
.product-image {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;      /* Enforce contain scaling to show full bottles */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Restored info panel wrapping details */
.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  height: 2.6rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
}

.product-potency-selectors {
  display: flex;
  gap: 0.25rem;
}

.potency-btn {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.3rem 0.5rem;
  background-color: var(--bg-offset);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.product-price-container {
  text-align: right;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
}

.product-price-b2b {
  font-size: 0.72rem;
  color: var(--accent-dark);
  font-weight: 700;
}

/* Glassmorphism Hover Overlay */
.product-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 29, 55, 0.97) 0%, rgba(30, 64, 175, 0.94) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(14, 165, 233, 0.2);
  padding: 2.25rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transform: translateY(25px);
  transition: var(--transition-smooth);
}

.product-card:hover .product-hover-overlay,
.product-card.reveal-overlay .product-hover-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.overlay-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.overlay-indication-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-hover);
  letter-spacing: 0.1em;
  font-weight: 800;
}

.overlay-indication {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-height: 140px;
  overflow-y: auto;
}

.overlay-specs {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 0.75rem;
}

.overlay-specs span {
  display: flex;
  justify-content: space-between;
}

.overlay-specs strong {
  color: #ffffff;
}

.btn-quick-add {
  background-color: var(--accent);
  color: #ffffff;
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(15px);
}

.product-card:hover .btn-quick-add,
.product-card.reveal-overlay .btn-quick-add {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.btn-quick-add:hover {
  background-color: #ffffff;
  color: var(--primary);
  transform: scale(1.02);
}

.mobile-close-overlay {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: #ffffff;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 12;
}

/* --- Biochemic Salts Numbered Section --- */
.biochemic-section {
  padding: 6rem 0;
  background-color: transparent;
  border-bottom: 1px solid var(--border-medium);
  position: relative;
}

.biochemic-full-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.biochemic-cell-card {
  aspect-ratio: 1;
  background-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.biochemic-cell-card:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-4px) scale(1.04);
  box-shadow: var(--shadow-lg);
}

.biochemic-cell-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
}

.biochemic-cell-card:hover .biochemic-cell-num {
  color: #ffffff;
}

.biochemic-cell-name {
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.25;
  color: var(--primary);
}

.biochemic-cell-card:hover .biochemic-cell-name {
  color: var(--accent-hover);
}

.biochemic-cell-formula {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 600;
}

.biochemic-cell-card:hover .biochemic-cell-formula {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Laboratory Inquiry Modal Success Styling --- */
.inquiry-success-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 0;
  animation: modalFadeIn 0.5s ease;
}

.inquiry-success-icon {
  font-size: 3.5rem;
  color: var(--success);
  margin-bottom: 1.25rem;
  display: inline-flex;
  padding: 1rem;
  background-color: rgba(16, 185, 129, 0.08);
  border-radius: var(--radius-round);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  animation: successScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successScale {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

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

/* --- Modals Setup (Login, B2B, Details, Inquiry) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 29, 55, 0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-width: 480px;
  width: 90%;
  overflow: hidden;
  transform: translateY(30px);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent);
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
}

.modal-close-btn {
  font-size: 1.5rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 2.25rem 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
  background-color: var(--bg-offset);
}

.form-control:focus {
  background-color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.modal-footer-info {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  background-color: var(--bg-offset);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-medium);
}

.modal-footer-info strong {
  color: var(--secondary);
}

/* --- B2B Doctor Dashboard Modal --- */
.b2b-modal {
  max-width: 920px;
}

.b2b-grid-split {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.25rem;
  padding: 2rem;
}

.b2b-sidebar {
  border-right: 1px solid var(--border-medium);
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.b2b-profile-card {
  text-align: center;
  background-color: var(--primary-light);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(10, 29, 55, 0.05);
}

.b2b-profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-round);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 auto 0.85rem auto;
  box-shadow: 0 4px 10px rgba(10, 29, 55, 0.15);
}

.b2b-profile-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
}

.b2b-profile-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.b2b-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.b2b-action-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--bg-offset);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  border-left: 3px solid transparent;
}

.b2b-action-item:hover, .b2b-action-item.active {
  background-color: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--accent);
}

.b2b-main-panel {
  display: flex;
  flex-direction: column;
  height: 480px;
}

.b2b-tab-content {
  display: none;
  flex-direction: column;
  height: 100%;
}

.b2b-tab-content.active {
  display: flex;
}

.b2b-bulk-table-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.b2b-bulk-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.b2b-bulk-table th {
  background-color: var(--bg-offset);
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
  border-bottom: 1.5px solid var(--border-medium);
  position: sticky;
  top: 0;
  z-index: 10;
  letter-spacing: 0.05em;
}

.b2b-bulk-table td {
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.b2b-bulk-input {
  width: 64px;
  padding: 0.4rem;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
  background-color: var(--bg-offset);
}

.b2b-bulk-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-medium);
}

/* --- Detail Modal Layout --- */
.detail-modal-card {
  max-width: 760px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.25rem;
}

.detail-img-box {
  background-color: var(--bg-offset);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-medium);
}

.detail-img {
  max-height: 250px;
  max-width: 100%;
  object-fit: contain;
}

.detail-info-box {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.detail-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
}

.detail-price {
  font-size: 1.5rem;
  color: var(--secondary);
  font-weight: 800;
}

.detail-indication-box h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-dark);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.detail-indication-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.detail-potency-selectors {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-potency-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
}

.detail-potency-list {
  display: flex;
  gap: 0.5rem;
}

.detail-action-row {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

/* --- Laboratory Info Features Section --- */
.lab-features-section {
  padding: 6rem 0;
  background-color: transparent;
  border-bottom: 1px solid var(--border-medium);
  position: relative;
}

.lab-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.lab-feature-card {
  background-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: 3rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.lab-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.lab-feature-icon {
  width: 54px;
  height: 54px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 10px rgba(10, 29, 55, 0.05);
}

.lab-feature-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.lab-feature-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Footer --- */
.global-footer {
  background-color: rgba(10, 29, 55, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.7);
  padding: 6rem 0 2rem 0;
  border-top: 4px solid var(--accent);
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col-about {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-col-about p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  border-bottom: 1.5px solid rgba(14, 165, 233, 0.3);
  padding-bottom: 0.5rem;
  display: inline-block;
}

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

.footer-links a {
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-hover);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a:hover {
  color: var(--accent-hover);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  .hero-grid {
    gap: 2rem;
  }
  .hero-title-group h1 {
    font-size: 2.9rem;
  }
  .biochemic-full-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .biochemic-nav-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .global-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95) !important;
  }
  .utility-bar {
    display: none; /* Hide utility bar on mobile to prevent squished text overlap */
  }
  .mobile-menu-toggle {
    display: flex !important;
    grid-row: 1 !important;
    grid-column: 1 !important;
    font-size: 1.6rem;
    color: var(--primary);
  }
  .main-nav {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 0.75rem;
    padding: 0.85rem 0;
    align-items: center;
  }
  .logo {
    grid-row: 1 !important;
    grid-column: 2 !important;
    justify-content: center;
  }
  .header-actions {
    grid-row: 1 !important;
    grid-column: 3 !important;
    width: auto;
    justify-content: flex-end;
    margin: 0;
  }
  #b2b-btn {
    padding: 0 !important;
    border-radius: var(--radius-round) !important;
    width: 38px;
    height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--accent) !important;
    background: rgba(14, 165, 233, 0.08) !important;
    color: var(--accent-dark) !important;
  }
  #b2b-btn .btn-text {
    display: none !important;
  }
  #b2b-btn .btn-icon-only {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .main-nav .search-container {
    display: none !important;
  }
  .mobile-search-section {
    display: block;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-medium);
    padding: 0.65rem 0;
    position: relative;
    z-index: 10;
    margin-top: 70px; /* Offset for fixed header */
  }
  .mobile-search-section .search-container {
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  .mega-menu-bar {
    display: none !important; /* Hide mega menu bar on mobile since we have the side drawer now */
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-description {
    margin: 0 auto;
  }
  .certifications-slider-container {
    display: none !important;
  }
  .hero-graphic-mask-wrapper {
    margin-top: 2.5rem;
  }
  .lab-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .biochemic-full-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .b2b-grid-split {
    grid-template-columns: 1fr;
  }
  .b2b-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-medium);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title-group h1 {
    font-size: 2.35rem;
  }
  .biochemic-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
  .mobile-close-overlay {
    display: block;
  }
}

/* --- Product Highlight Pulse Action --- */
@keyframes cardPulse {
  0% { transform: scale(1); box-shadow: 0 4px 14px rgba(10, 29, 55, 0.1); }
  50% { transform: scale(1.04); box-shadow: 0 0 30px rgba(14, 165, 233, 0.6); border-color: var(--accent); }
  100% { transform: scale(1); box-shadow: 0 4px 14px rgba(10, 29, 55, 0.1); }
}

.product-card.highlight-pulse {
  animation: cardPulse 1.2s ease-in-out 2;
  border: 1.5px solid var(--accent) !important;
}

/* --- Mobile Drawer Navigation Styles --- */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 29, 55, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  left: -290px;
  width: 290px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: left 0.3s ease;
  z-index: 2001;
}

.mobile-drawer-overlay.active .mobile-drawer-content {
  left: 0;
}

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

.mobile-drawer-close {
  font-size: 1.75rem;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

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

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0.4rem 0;
}

.mobile-nav-links ion-icon {
  font-size: 1.25rem;
  color: var(--accent-dark);
}

.mobile-drawer-section h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  font-weight: 800;
  border-bottom: 1px solid var(--border-medium);
  padding-bottom: 0.35rem;
}

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

.mobile-symptom-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-medium);
}

/* Hamburger toggle styling */
.mobile-menu-toggle {
  display: none;
  font-size: 1.75rem;
  color: var(--primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* --- Premium Scroll Up Button --- */
.scroll-up-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--accent-light);
  border: 1.5px solid rgba(14, 165, 233, 0.4);
  box-shadow: 0 8px 24px rgba(10, 29, 55, 0.15), 0 0 0 1px rgba(14, 165, 233, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              color 0.3s ease;
}

.scroll-up-btn:hover {
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.3), 0 0 15px rgba(14, 165, 233, 0.2);
  transform: translateY(-5px) scale(1.08);
}

.scroll-up-btn:active {
  transform: translateY(-1px) scale(0.96);
}

.scroll-up-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
  .scroll-up-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
}
