/*
Theme Name: Flavor — Boston Molecules Biotech Platform
Theme URI: https://bostonmolecules.com
Author: Boston Molecules Engineering
Author URI: https://bostonmolecules.com
Description: Premium dark-mode biotech ecommerce design system.
Version: 1.0.0
Tested up to: 6.7
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor
Tags: dark, ecommerce, biotech, woocommerce, custom-logo
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* ---- Backgrounds (LIGHT THEME) ---- */
  --bg-main:          #f0f4f7;
  --bg-surface:       #ffffff;
  --bg-surface-solid: #ffffff;
  --border-glass:     rgba(0, 0, 0, 0.1);

  /* ---- Brand palette ---- */
  --primary:          #1a5276;
  --primary-glow:     rgba(26, 82, 118, 0.1);
  --secondary:        #2980b9;
  --accent-warn:      #e65100;
  --accent-error:     #d32f2f;

  /* ---- Typography colors ---- */
  --text-heading:     #111111;
  --text-body:        #222222;
  --text-muted:       #333333;

  /* ---- Temperature tokens ---- */
  --temp-80:          #1565c0;
  --temp-20:          #00838f;
  --temp-4:           #00897b;
  --temp-rt:          #e65100;

  /* ---- Font stack ---- */
  --font-sans:        'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Radii ---- */
  --radius-sm:        4px;
  --radius-md:        8px;
  --radius-lg:        16px;
  --radius-pill:      30px;

  /* ---- Shadows (visible on light bg) ---- */
  --shadow-glow:      0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card:      0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-primary:   0 4px 20px rgba(26, 82, 118, 0.18);

  /* ---- Spacing scale ---- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  /* ---- Transitions ---- */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ==========================================================================
   2. RESET
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-main);
  overflow-x: hidden;
  min-height: 100vh;
}

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

a:hover,
a:focus-visible {
  color: var(--secondary);
  text-decoration: underline;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

fieldset {
  border: none;
}

::selection {
  background: var(--primary-glow);
  color: var(--text-heading);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: var(--sp-6);
}

h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  margin-bottom: var(--sp-5);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-bottom: var(--sp-4);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--sp-3);
}

h5 {
  font-size: 1.1rem;
  margin-bottom: var(--sp-3);
}

h6 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

p {
  margin-bottom: var(--sp-4);
}

.lead {
  font-size: 1.2rem;
  color: var(--text-body);
  line-height: 1.8;
}

.overline {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

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

small,
.small {
  font-size: 0.875rem;
}

strong {
  font-weight: 600;
  color: var(--text-heading);
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--bg-surface-solid);
  border-radius: var(--radius-sm);
  color: var(--secondary);
}

pre code {
  display: block;
  padding: var(--sp-4);
  overflow-x: auto;
}

mark {
  background: var(--primary-glow);
  color: var(--text-heading);
  padding: 1px 4px;
  border-radius: 2px;
}


/* ==========================================================================
   4. CONTAINER
   ========================================================================== */

.bm-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.bm-container--narrow {
  max-width: 960px;
}

.bm-container--wide {
  max-width: 1440px;
}


/* ==========================================================================
   5. GRID SYSTEM
   ========================================================================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--sp-5);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--sp-5);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--sp-5);
}

.grid-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-6);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-4);
}


/* ==========================================================================
   6. GLASS CARD
   ========================================================================== */

.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  padding: var(--sp-6);
  transition: transform var(--transition-base), box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-primary);
  border-color: rgba(0, 150, 136, 0.25);
}

.glass-card--flat {
  background: var(--bg-surface-solid);
  backdrop-filter: none;
}

.glass-card--compact {
  padding: var(--sp-4);
  border-radius: var(--radius-md);
}

.glass-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-glass);
}

/* LIGHT THEME: Force all text in cards/sections to near-black */
.glass-card,
.glass-card p,
.glass-card li,
.glass-card span,
.glass-card small,
.glass-card td,
.bm-section p,
.bm-section li,
.bm-section span,
.bm-section small,
.bm-section td,
.bm-service-card p,
.bm-category-card p,
.bm-feature-card p {
  color: #111111;
}
.glass-card h2,
.glass-card h3,
.glass-card h4,
.bm-section h2,
.bm-section h3,
.bm-section h4 {
  color: #111111;
}

.glass-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-heading);
}

.glass-card__badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-glow);
  color: var(--primary);
}

.glass-card__body {
  color: var(--text-body);
}

.glass-card__footer {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.glass-card__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--sp-4);
}

.glass-card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.glass-card:hover .glass-card__image img {
  transform: scale(1.05);
}


/* ==========================================================================
   7. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.7rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
}

/* Primary CTA — solid teal */
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}

.btn-primary:hover {
  background: #133a6b;
  border-color: #133a6b;
  box-shadow: 0 4px 20px var(--primary-glow);
  transform: translateY(-2px);
  color: #ffffff;
  text-decoration: none;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* Secondary — border-only teal */
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary::after {
  background: var(--primary-glow);
}

.btn-secondary:hover {
  background: var(--primary-glow);
  color: var(--text-heading);
  transform: translateY(-2px);
  text-decoration: none;
}

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

/* Accent — amber */
.btn-accent {
  background: #e67e22;
  color: #ffffff;
  border-color: #e67e22;
  font-size: 1.4rem;
  padding: 1rem 2rem;
}

.btn-accent::after {
  display: none;
}

.btn-accent:hover {
  background: #e67e22;
  border-color: #e67e22;
  color: #ffffff;
  text-decoration: none;
}

/* Ghost — subtle */
.btn-ghost {
  background: transparent;
  color: var(--text-body);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text-heading);
  background: var(--bg-surface);
  text-decoration: none;
}

/* Sizes */
.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
}

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

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

/* Disabled */
.btn:disabled,
.btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* Icon-only */
.btn-icon {
  padding: 0.55rem;
  border-radius: 50%;
  min-width: 40px;
  min-height: 40px;
}


/* ==========================================================================
   8. FORMS
   ========================================================================== */

.bm-form-group {
  margin-bottom: var(--sp-5);
}

.bm-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: var(--sp-2);
}

.bm-form-group .required-indicator {
  color: var(--accent-error);
  margin-left: 2px;
}

.bm-input,
.bm-select,
.bm-textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: var(--text-heading);
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

.bm-input::placeholder,
.bm-textarea::placeholder {
  color: var(--text-muted);
}

.bm-input:focus,
.bm-select:focus,
.bm-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.bm-input:hover,
.bm-select:hover,
.bm-textarea:hover {
  border-color: rgba(0, 191, 166, 0.35);
}

.bm-input.has-error,
.bm-select.has-error,
.bm-textarea.has-error {
  border-color: var(--accent-error);
  box-shadow: 0 0 0 3px rgba(255, 82, 82, 0.2);
}

.bm-textarea {
  min-height: 120px;
  resize: vertical;
}

.bm-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.bm-form-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

.bm-form-error {
  font-size: 0.8rem;
  color: var(--accent-error);
  margin-top: var(--sp-1);
}

/* Checkbox / Radio */
.bm-checkbox,
.bm-radio {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-body);
}

.bm-checkbox input,
.bm-radio input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

/* Input group */
.bm-input-group {
  display: flex;
  gap: 0;
}

.bm-input-group .bm-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  flex: 1;
}

.bm-input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}


/* ==========================================================================
   9. TEMPERATURE BADGES
   ========================================================================== */

.temp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  line-height: 1.4;
  white-space: nowrap;
}

.temp-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.temp-badge.-80 {
  background: rgba(58, 134, 255, 0.15);
  color: var(--temp-80);
}

.temp-badge.-80::before {
  background: var(--temp-80);
  box-shadow: 0 0 6px var(--temp-80);
}

.temp-badge.-20 {
  background: rgba(0, 180, 216, 0.15);
  color: var(--temp-20);
}

.temp-badge.-20::before {
  background: var(--temp-20);
  box-shadow: 0 0 6px var(--temp-20);
}

.temp-badge.c4 {
  background: rgba(144, 224, 239, 0.15);
  color: var(--temp-4);
}

.temp-badge.c4::before {
  background: var(--temp-4);
  box-shadow: 0 0 6px var(--temp-4);
}

.temp-badge.rt {
  background: rgba(255, 183, 3, 0.15);
  color: var(--temp-rt);
}

.temp-badge.rt::before {
  background: var(--temp-rt);
  box-shadow: 0 0 6px var(--temp-rt);
}


/* ==========================================================================
   10. SCIENTIFIC TABS
   ========================================================================== */

.scientific-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-glass);
  margin-bottom: var(--sp-6);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scientific-tabs-nav::-webkit-scrollbar {
  display: none;
}

.sci-tab-trigger {
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.sci-tab-trigger:hover {
  color: var(--text-body);
}

.sci-tab-trigger.active,
.sci-tab-trigger[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.sci-tab-content {
  display: none;
  animation: fadeInUp 0.3s ease;
}

.sci-tab-content.active,
.sci-tab-content[aria-expanded="true"] {
  display: block;
}


/* ==========================================================================
   11. WIZARD / CONFIGURATOR
   ========================================================================== */

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: var(--sp-4) 0;
  margin-bottom: var(--sp-7);
}

/* Connector line behind nodes */
.wizard-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-glass);
  transform: translateY(-50%);
  z-index: 0;
}

.wizard-progress::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: var(--primary);
  transform: translateY(-50%);
  z-index: 1;
  transition: width var(--transition-slow);
  width: var(--wizard-progress, 0%);
}

.wizard-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  position: relative;
  z-index: 2;
}

.wizard-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg-surface-solid);
  border: 2px solid var(--border-glass);
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.wizard-step-node.active .wizard-step-circle {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.wizard-step-node.completed .wizard-step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.wizard-step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
}

.wizard-step-node.active .wizard-step-label {
  color: var(--primary);
}

.wizard-step-node.completed .wizard-step-label {
  color: var(--text-heading);
}

.config-step-panel {
  display: none;
  animation: fadeInUp 0.35s ease;
}

.config-step-panel.active {
  display: block;
}

.config-step-panel__header {
  margin-bottom: var(--sp-6);
}

.config-step-panel__actions {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-glass);
}


/* ==========================================================================
   12. HEADER
   ========================================================================== */

.site-header,
.bm-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition-base);
}

/* -- Grid: Logo spans both rows -- */
.bm-header-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  align-items: center;
}

.bm-logo {
  grid-row: 1 / 3;
  grid-column: 1;
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  margin-right: 2rem;
}

.bm-logo img {
  height: 120px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.bm-header-row1 {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  gap: 1.5rem;
}

.bm-nav {
  display: flex;
  align-items: center;
  flex: 1;
}

.bm-nav-list {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.bm-nav-list li { margin: 0; }

.bm-nav-list a {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111111;
  text-decoration: none;
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.bm-nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s;
}

.bm-nav-list a:hover::after { width: 100%; }

/* ── Mega Dropdown ── */
.bm-has-dropdown {
  position: relative;
}
.bm-has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bm-dd-chevron {
  transition: transform 0.25s;
  margin-top: 1px;
}
.bm-has-dropdown:hover .bm-dd-chevron {
  transform: rotate(180deg);
}
.bm-mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 680px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  padding: 1.5rem 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 9999;
}
.bm-has-dropdown:hover .bm-mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Invisible bridge so hover doesn't break between link and dropdown */
.bm-mega-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.bm-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 1.5rem;
}
.bm-mega-col {}
.bm-mega-heading {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f2f5;
}
.bm-mega-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bm-mega-links li {
  margin: 0;
}
.bm-mega-links a {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: #444 !important;
  padding: 0.3rem 0.5rem !important;
  display: block;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.bm-mega-links a:hover {
  background: #f0f7f5;
  color: var(--primary) !important;
}
.bm-mega-links a::after {
  display: none !important;
}
.bm-mega-footer {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #f0f2f5;
  text-align: center;
}
.bm-mega-footer a {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
}
.bm-mega-footer a::after {
  display: none !important;
}

/* ── Services Mega Dropdown ── */
.bm-mega-services {
  min-width: 720px;
}
.bm-mega-grid-3eq {
  grid-template-columns: 1fr 1fr 1fr;
}
.bm-svc-card {
  display: block;
  padding: 1.2rem 1rem;
  border-radius: 10px;
  border: 1px solid #f0f2f5;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.bm-svc-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,191,166,0.1);
  transform: translateY(-2px);
}
.bm-svc-card::after {
  display: none !important;
}
.bm-svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
}
.bm-svc-card h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.3rem 0;
}
.bm-svc-card p {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.45;
  margin: 0 0 0.6rem 0;
}
.bm-svc-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

.bm-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* -- Row 2: Prominent Search Bar -- */
.bm-header-row2 {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 0.5rem 1.5rem;
}

.bm-search-hero {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(0,0,0,0.03);
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.bm-search-hero:focus-within {
  border-color: rgba(0,191,166,0.6);
  box-shadow: 0 0 20px rgba(0,191,166,0.15), 0 0 4px rgba(0,191,166,0.1);
}

.bm-search-icon {
  flex-shrink: 0;
  margin-left: 1rem;
}

.bm-search-hero-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #111111;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}

.bm-search-hero-input::placeholder {
  color: #999999;
  font-size: 0.9rem;
}

.bm-search-hero-btn {
  flex-shrink: 0;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.7rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}

.bm-search-hero-btn:hover {
  background: #00d4b8;
}

/* -- Shared -- */
.bm-cart-link {
  color: #111111;
  position: relative;
  text-decoration: none;
  flex-shrink: 0;
}

.bm-cart-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--primary);
  color: #000;
  font-size: 0.65rem; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.bm-mobile-toggle { display: none; }

/* -- Timeline / Our Process -- */
.bm-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.bm-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.bm-timeline-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,191,166,0.15);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-timeline-content {
  flex: 1;
}

.bm-timeline-content h3 {
  font-size: 1.2rem;
  color: #111111;
  margin: 0 0 0.4rem 0;
}

.bm-timeline-content p {
  font-size: 1rem;
  color: var(--text-body, #222222);
  margin: 0;
  line-height: 1.6;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--sp-5);
}

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: 36px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.header-nav a {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-body);
  transition: color var(--transition-fast);
  padding: var(--sp-2) 0;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.header-nav a:hover,
.header-nav a.current-menu-item {
  color: var(--primary);
  text-decoration: none;
}

.header-nav a:hover::after,
.header-nav a.current-menu-item::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.header-search-form {
  position: relative;
}

.header-search-form input {
  width: 360px;
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  color: var(--text-heading);
  font-size: 0.85rem;
  transition: width var(--transition-base), border-color var(--transition-fast);
}

.header-search-form input:focus {
  width: 480px;
  outline: none;
  border-color: var(--primary);
}

.header-search-form .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.header-cart-count {
  position: relative;
}

.header-cart-count .cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: var(--accent-error);
  border-radius: 50%;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger */
.hamburger-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  cursor: pointer;
}

.hamburger-toggle span {
  display: block;
  height: 2px;
  background: var(--text-body);
  border-radius: 2px;
  transition: all var(--transition-fast);
}


/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-surface-solid);
  border-top: 1px solid var(--border-glass);
  padding: var(--sp-8) 0 var(--sp-6);
  margin-top: var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-heading);
  margin-bottom: var(--sp-4);
}

.footer-col ul li {
  margin-bottom: var(--sp-2);
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
  text-decoration: none;
}

.footer-brand-logo {
  margin-bottom: var(--sp-4);
}

.footer-brand-logo img {
  height: 32px;
}

.footer-brand-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-iso-badges {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  flex-wrap: wrap;
}

.iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.iso-badge svg,
.iso-badge img {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-glass);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.footer-bottom-links {
  display: flex;
  gap: var(--sp-4);
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
}

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


/* ==========================================================================
   13.5 SECTION SYSTEM — Consistent spacing, dividers, titles
   ========================================================================== */

.bm-section {
  padding: 1.5rem 0;
  position: relative;
}
.bm-section + .bm-section {
  border-top: 1px solid rgba(0,0,0,0.06);
}
.bm-section-alt {
  background: #ffffff;
}
.section-title {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-heading);
  text-align: center;
  margin: 0 0 2rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.section-title + p {
  text-align: center;
  color: var(--text-body);
  margin-top: -1.2rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Card spacing uniformity */
.bm-section .grid-3,
.bm-section .grid-4 {
  gap: 1rem;
}
.bm-section .glass-card {
  display: flex;
  flex-direction: column;
}
.bm-section .glass-card .btn {
  margin-top: 0.75rem;
  align-self: flex-start;
}

/* Category / service card: compact horizontal header */
.bm-category-card,
.bm-service-card,
.bm-feature-card {
  padding: 1.2rem 1.5rem;
}
.bm-category-card .bm-card-icon,
.bm-service-card .bm-card-icon,
.bm-feature-card .bm-card-icon {
  display: inline-flex;
  align-items: center;
  float: left;
  margin-right: 0.75rem;
  margin-top: 0.1rem;
}
.bm-category-card .bm-card-icon svg,
.bm-service-card .bm-card-icon svg,
.bm-feature-card .bm-card-icon svg {
  width: 32px;
  height: 32px;
}
.bm-category-card h3,
.bm-service-card h3,
.bm-feature-card h3 {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin: 0 0 0.3rem;
}
.bm-category-card p,
.bm-service-card p,
.bm-feature-card p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.5;
  clear: both;
  margin: 0;
}

@media (max-width: 768px) {
  .bm-section {
    padding: 1.75rem 0;
  }
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
}

/* ==========================================================================
   14. HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 3rem 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  overflow: visible;
  background: linear-gradient(135deg, #0a1e3d 0%, #133a6b 40%, #1a5276 100%);
  color: #fff;
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section p,
.hero-section span,
.hero-section strong,
.hero-section li,
.hero-section .hero-subtitle,
.hero-section .stat-number,
.hero-section .stat-label {
  color: #fff !important;
}
.hero-section .hero-subtitle {
  color: rgba(255,255,255,0.85) !important;
}
.hero-section .stat-label {
  color: rgba(255,255,255,0.7) !important;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(19,58,107,0.3), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-content h1 {
  margin-bottom: var(--sp-4);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: var(--sp-6);
}

.hero-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--sp-7);
  margin-top: var(--sp-7);
}

.hero-media {
  position: relative;
  z-index: 1;
}


/* ==========================================================================
   15. SEARCH SUGGESTIONS
   ========================================================================== */

#bm-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

#bm-search-suggestions.is-visible {
  display: block;
  animation: fadeInUp 0.2s ease;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid rgba(0, 191, 166, 0.06);
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover,
.search-suggestion-item.is-highlighted {
  background: var(--bg-surface);
}

.search-suggestion-item__title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #111111;
}

.search-suggestion-item__meta {
  font-size: 0.78rem;
  color: #555555;
}

.search-suggestion-item__catalog {
  font-size: 0.78rem;
  color: #1a5276;
  font-weight: 600;
}

.search-no-results {
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  color: #555555;
  font-size: 0.9rem;
}

/* Search Results Dropdown */
.search-result-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.search-result-link:hover {
  background: #f5f7fa;
}

.search-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f2f5;
}

.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8ecf0;
}

.search-result-thumb-placeholder svg {
  stroke: #999999;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.search-result-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #111111 !important;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-title em,
.search-result-title mark {
  color: #1a5276;
  font-style: normal;
  font-weight: 700;
}

.search-result-catalog {
  font-size: 0.78rem;
  color: #1a5276;
  font-weight: 600;
}

.search-result-category {
  font-size: 0.75rem;
  color: #777777;
}

.bm-search-hero .search-results,
.bm-header .search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1000;
}

.search-results-header {
  padding: 8px 16px;
  font-size: 0.8rem;
  color: #555555;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: #f8f9fa;
}

/* ==========================================================================
   16. FACETED FILTER SIDEBAR
   ========================================================================== */

.faceted-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding-right: var(--sp-3);
  scrollbar-width: thin;
  scrollbar-color: var(--border-glass) transparent;
}

.faceted-sidebar::-webkit-scrollbar {
  width: 4px;
}

.faceted-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 2px;
}

.facet-group {
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border-glass);
}

.facet-group:last-child {
  border-bottom: none;
}

.facet-group__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.facet-group__title .facet-toggle-icon {
  transition: transform var(--transition-fast);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.facet-group.collapsed .facet-toggle-icon {
  transform: rotate(-90deg);
}

.facet-group.collapsed .facet-group__list {
  display: none;
}

.facet-group__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.facet-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) 0;
  font-size: 0.85rem;
  color: var(--text-body);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.facet-item:hover {
  color: var(--primary);
}

.facet-item input[type="checkbox"] {
  accent-color: var(--primary);
}

.facet-item__count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: var(--radius-pill);
}

.active-filter-tag .remove-filter {
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.active-filter-tag .remove-filter:hover {
  opacity: 1;
}


/* ==========================================================================
   17. SPEC / DATA TABLES
   ========================================================================== */

.woo-scientific-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0;
}

.woo-scientific-table th {
  text-align: left;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
  background: var(--bg-surface-solid);
  border-bottom: 2px solid var(--border-glass);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.woo-scientific-table td {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--text-body);
  border-bottom: 1px solid rgba(0, 191, 166, 0.07);
}

.woo-scientific-table tr:nth-child(even) td {
  background: rgba(13, 25, 43, 0.4);
}

.woo-scientific-table tr:hover td {
  background: var(--bg-surface);
}

.woo-scientific-table .spec-label {
  font-weight: 600;
  color: var(--text-heading);
  white-space: nowrap;
  width: 200px;
}

.woo-scientific-table .spec-value {
  color: var(--text-body);
}


/* ==========================================================================
   18. CITATION BLOCKQUOTES
   ========================================================================== */

.bm-citation {
  position: relative;
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-4) 0;
  border-left: 3px solid var(--primary);
  background: var(--bg-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.bm-citation__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--sp-2);
}

.bm-citation__authors {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: var(--sp-1);
}

.bm-citation__journal {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

.bm-citation__doi {
  font-size: 0.8rem;
  color: var(--primary);
  margin-top: var(--sp-2);
}

.bm-citation__doi a {
  color: var(--primary);
  font-weight: 500;
}


/* ==========================================================================
   19. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .grid-sidebar {
    grid-template-columns: 1fr;
  }

  .faceted-sidebar {
    position: static;
    max-height: none;
    padding-right: 0;
    margin-bottom: var(--sp-5);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-5);
  }

  .header-search-form input {
    width: 280px;
  }

  .header-search-form input:focus {
    width: 360px;
  }

  .hero-stats {
    gap: var(--sp-5);
  }
}

@media (max-width: 768px) {
  :root {
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-7: 2rem;
    --sp-8: 3rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .header-nav {
    display: none;
  }

  .hamburger-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .hero-section {
    min-height: auto;
    padding: var(--sp-7) 0;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .scientific-tabs-nav {
    gap: 0;
  }

  .sci-tab-trigger {
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
  }

  .wizard-progress {
    overflow-x: auto;
    gap: var(--sp-1);
    padding-bottom: var(--sp-5);
  }

  .wizard-step-label {
    font-size: 0.65rem;
  }

  .config-step-panel__actions {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .config-step-panel__actions .btn {
    width: 100%;
  }

  .header-search-form {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .bm-container {
    padding-inline: var(--sp-4);
  }

  .glass-card {
    padding: var(--sp-4);
  }

  .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   RESPONSIVE: New Header (bm-header-grid) + Mobile Nav
   ========================================================================== */

/* -- Hamburger Button (hidden on desktop) -- */
.bm-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.bm-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-body, #222222);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.bm-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.bm-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.bm-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* -- Mobile Nav Overlay (hidden on desktop) -- */
.bm-mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 998;
  padding: 100px 2rem 2rem;
  overflow-y: auto;
}

.bm-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bm-mobile-nav li {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.bm-mobile-nav a {
  display: block;
  padding: 1rem 0;
  color: #111111;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

body.bm-mobile-open {
  overflow: hidden;
}

body.bm-mobile-open .bm-mobile-nav {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* -- Tablet: 1024px -- */
@media (max-width: 1024px) {
  .bm-nav-list {
    gap: 1rem;
  }

  .bm-nav-list a {
    font-size: 0.88rem;
  }

  .bm-logo img {
    height: 65px;
  }

  .bm-mega-dropdown {
    display: none !important;
  }
}

/* -- Mobile: 768px -- */
@media (max-width: 768px) {
  /* Header: single row, no grid */
  .bm-header-grid {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .bm-logo {
    margin-right: auto;
  }

  .bm-logo img {
    height: 50px;
  }

  /* Hide desktop nav row */
  .bm-header-row1 {
    display: none;
  }

  /* Show hamburger */
  .bm-hamburger {
    display: flex;
  }

  /* Search bar: smaller */
  .bm-header-row2 {
    padding: 0.4rem 0.75rem;
  }

  .bm-search-hero-input {
    font-size: 0.85rem;
    padding: 0.6rem;
  }

  .bm-search-hero-input::placeholder {
    font-size: 0.75rem;
  }

  .bm-search-hero-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  /* Hero CTA buttons: stack */
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  /* Hero quote menu: responsive width */
  #bm-hero-quote-menu {
    width: calc(100vw - 2rem) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 360px;
  }

  /* Front-page section grids */
  .bm-category-grid,
  .bm-featured-grid {
    grid-template-columns: 1fr !important;
  }
}

/* -- Small phone: 480px -- */
@media (max-width: 480px) {
  .bm-logo img {
    height: 40px;
  }

  .bm-header-actions {
    gap: 0.5rem;
  }

  .bm-search-icon {
    display: none;
  }

  .bm-search-hero-input::placeholder {
    font-size: 0.7rem;
  }
}


/* ==========================================================================
   20. ANIMATIONS
   ========================================================================== */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

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

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-surface-solid) 25%, var(--bg-surface) 50%, var(--bg-surface-solid) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}


/* ==========================================================================
   21. UTILITIES
   ========================================================================== */

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Text colors */
.text-primary   { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent    { color: var(--accent-warn); }
.text-error     { color: var(--accent-error); }
.text-heading   { color: var(--text-heading); }
.text-muted     { color: var(--text-muted); }
.text-body      { color: var(--text-body); }

/* Spacing — margins */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--sp-2); }
.mb-2 { margin-bottom: var(--sp-4); }
.mb-3 { margin-bottom: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-8); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--sp-2); }
.mt-2 { margin-top: var(--sp-4); }
.mt-3 { margin-top: var(--sp-6); }
.mt-4 { margin-top: var(--sp-8); }

.mx-auto { margin-inline: auto; }

/* Spacing — padding */
.p-1 { padding: var(--sp-2); }
.p-2 { padding: var(--sp-4); }
.p-3 { padding: var(--sp-6); }
.p-4 { padding: var(--sp-8); }

/* Flexbox */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-end  { justify-content: flex-end; }

/* Gap */
.gap-1 { gap: var(--sp-2); }
.gap-2 { gap: var(--sp-4); }
.gap-3 { gap: var(--sp-6); }

/* Display */
.hidden       { display: none !important; }
.block        { display: block; }
.inline-block { display: inline-block; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }

/* Border */
.border-glass {
  border: 1px solid var(--border-glass);
}

.border-top-glass {
  border-top: 1px solid var(--border-glass);
}

.border-bottom-glass {
  border-bottom: 1px solid var(--border-glass);
}

/* Radius */
.rounded    { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

/* Width */
.w-full { width: 100%; }

/* Position */
.relative { position: relative; }

/* Truncation */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ==========================================================================
   22. WOOCOMMERCE OVERRIDES
   ========================================================================== */

/* Prices */
.woocommerce .price,
.woocommerce .amount {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
}

.woocommerce del .amount {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.woocommerce ins .amount {
  color: var(--primary);
}

/* Add to cart button */
.woocommerce .add_to_cart_button,
.woocommerce .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.7rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--primary);
  color: #ffffff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.woocommerce .add_to_cart_button:hover,
.woocommerce .single_add_to_cart_button:hover {
  background: #00d4b8;
  border-color: #00d4b8;
  box-shadow: 0 4px 20px var(--primary-glow);
  transform: translateY(-2px);
}

/* Notices */
.woocommerce-message,
.woocommerce-info {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--primary);
  color: var(--text-body);
  padding: var(--sp-4);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--sp-4);
}

.woocommerce-error {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 82, 82, 0.3);
  border-left: 4px solid var(--accent-error);
  color: var(--text-body);
  padding: var(--sp-4);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--sp-4);
}

.woocommerce-message a,
.woocommerce-info a {
  color: var(--primary);
  font-weight: 600;
}

/* Cart table */
.woocommerce table.shop_table {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.woocommerce table.shop_table th {
  background: var(--bg-surface);
  color: var(--text-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.woocommerce table.shop_table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 191, 166, 0.07);
  color: var(--text-body);
  vertical-align: middle;
}

.woocommerce table.shop_table td.product-name a {
  color: var(--text-heading);
  font-weight: 500;
}

.woocommerce table.shop_table td.product-name a:hover {
  color: var(--primary);
}

/* Quantity */
.woocommerce .quantity .qty {
  width: 70px;
  padding: 0.45rem 0.5rem;
  text-align: center;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  font-weight: 600;
}

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

/* Product loop items */
.woocommerce ul.products li.product {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-primary);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--text-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 0;
}

.woocommerce ul.products li.product a img {
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-3);
}

/* Star rating */
.woocommerce .star-rating {
  color: var(--accent-warn);
}

/* Checkout */
.woocommerce form .form-row label {
  color: var(--text-heading);
  font-weight: 500;
  font-size: 0.875rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  padding: 0.7rem 1rem;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

/* Tabs override */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 var(--sp-6);
  border-bottom: 2px solid var(--border-glass);
  display: flex;
  gap: 0;
  list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: var(--primary);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--primary);
  font-weight: 600;
}

.woocommerce div.product .woocommerce-tabs .panel {
  background: transparent;
  padding: 0;
}

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--text-muted);
}

.woocommerce .woocommerce-breadcrumb a:hover {
  color: var(--primary);
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
  border: none;
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span,
.shop-pagination .page-numbers li a,
.shop-pagination .page-numbers li span,
ul.page-numbers li a,
ul.page-numbers li span.page-numbers {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  color: #374151 !important;
  padding: 0.6rem 1rem !important;
  min-width: 40px;
  text-align: center;
  font-size: 1rem !important;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
nav.woocommerce-pagination ul li a:hover,
.shop-pagination .page-numbers li a:hover,
ul.page-numbers li a:hover {
  background: #f0fdf4 !important;
  border-color: #00bfa6 !important;
  color: #00897b !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
nav.woocommerce-pagination ul li span.current,
.shop-pagination .page-numbers li span.current,
ul.page-numbers li span.current {
  background: #00bfa6 !important;
  border-color: #00bfa6 !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* Coupon */
.woocommerce #coupon_code {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--text-heading);
  padding: 0.6rem 1rem;
}

.woocommerce .coupon .button {
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}

/* Sale badge */
.woocommerce span.onsale {
  background: var(--accent-warn);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  min-width: auto;
  min-height: auto;
  line-height: 1.4;
}


/* ==========================================================================
   23. PRINT STYLES
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .site-header,
  .site-footer,
  .header-nav,
  .header-actions,
  .hamburger-toggle,
  .faceted-sidebar,
  .hero-section::before,
  .btn,
  #bm-search-suggestions {
    display: none !important;
  }

  a {
    text-decoration: underline;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.85em;
    color: #555;
  }

  .bm-container {
    max-width: 100%;
    padding: 0;
  }

  .glass-card {
    border: 1px solid #ccc;
    backdrop-filter: none;
    page-break-inside: avoid;
  }

  .woo-scientific-table {
    page-break-inside: avoid;
  }

  .woo-scientific-table th,
  .woo-scientific-table td {
    border: 1px solid #ccc;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}


/* ==========================================================================
   24. MOBILE NAV
   ========================================================================== */

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 19, 0.7);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-nav-active .mobile-nav-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--bg-surface-solid);
  border-left: 1px solid var(--border-glass);
  z-index: 999;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

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

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5);
  border-bottom: 1px solid var(--border-glass);
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mobile-nav-close:hover {
  background: var(--bg-surface);
}

.mobile-nav-menu {
  flex: 1;
  padding: var(--sp-4);
}

.mobile-nav-menu a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-body);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.current-menu-item {
  background: var(--bg-surface);
  color: var(--primary);
  text-decoration: none;
}

.mobile-nav-actions {
  padding: var(--sp-5);
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Body lock when nav is open */
body.mobile-nav-active {
  overflow: hidden;
}

/* Hamburger animation */
.mobile-nav-active .hamburger-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-nav-active .hamburger-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ==========================================================================
   25. STAT COUNTERS
   ========================================================================== */

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

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-number .stat-suffix {
  font-size: 0.6em;
  font-weight: 600;
  color: var(--secondary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--sp-2);
  font-weight: 500;
}

.stat-row {
  display: flex;
  justify-content: center;
  gap: var(--sp-7);
  flex-wrap: wrap;
}

.stat-row .stat-counter {
  min-width: 120px;
}

/* Stat with dividers */
.stat-row--divided .stat-counter {
  position: relative;
  padding-right: var(--sp-7);
}

.stat-row--divided .stat-counter:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border-glass);
}

/* Stat card variant */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  text-align: center;
  transition: border-color var(--transition-base);
}

.stat-card:hover {
  border-color: var(--primary);
}

.stat-card .stat-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: var(--sp-3);
}


/* ==========================================================================
   26. ADDITIONAL COMPONENTS
   ========================================================================== */

/* Loading spinner */
.bm-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-glass);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.bm-spinner--lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

/* Tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface-solid);
  color: var(--text-heading);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-glass);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* Divider */
.bm-divider {
  border: none;
  border-top: 1px solid var(--border-glass);
  margin: var(--sp-6) 0;
}

/* Tag / pill */
.bm-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-body);
}

.bm-tag--primary {
  background: var(--primary-glow);
  border-color: rgba(0, 191, 166, 0.3);
  color: var(--primary);
}

/* Scroll to top */
.scroll-to-top {
  position: fixed;
  bottom: var(--sp-5);
  right: var(--sp-5);
  width: 44px;
  height: 44px;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 50;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   27. FAQ ACCORDION (SEO Sections)
   ========================================================================== */

.bm-faq-section {
  border-top: 1px solid var(--border-glass);
}

.bm-faq-list details {
  transition: all var(--transition-base);
}

.bm-faq-list details[open] {
  border-color: var(--primary);
}

.bm-faq-list details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bm-faq-list details summary::-webkit-details-marker {
  display: none;
}

.bm-faq-list details summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.bm-faq-list details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.bm-faq-list details p {
  border-top: 1px solid var(--border-glass);
  padding-top: 1rem;
}


/* ==========================================================================
   SCIENTIFIC REVIEW SECTION
   ========================================================================== */

/* ---- Review Dashboard ---- */
.bm-review-dashboard {
  display: flex;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.bm-review-avg {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bm-review-avg__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.bm-review-avg__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sp-1);
}

.bm-review-avg__count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bm-review-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  justify-content: center;
}

.bm-review-bars__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.85rem;
  color: var(--text-body);
}

.bm-review-bars__label {
  flex: 0 0 45px;
  text-align: right;
  white-space: nowrap;
}

.bm-review-bars__track {
  flex: 1;
  height: 8px;
  background: rgba(0,0,0,0.04);
  border-radius: 4px;
  overflow: hidden;
}

.bm-review-bars__fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: width var(--transition-slow);
}

.bm-review-bars__count {
  flex: 0 0 28px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bm-review-apps {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  justify-content: center;
}

.bm-review-apps__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.8rem;
  color: var(--text-body);
}

.bm-review-apps__label {
  flex: 0 0 40px;
  text-align: right;
  font-weight: 600;
  color: var(--text-heading);
}

.bm-review-apps__track {
  flex: 1;
  height: 6px;
  background: rgba(0,0,0,0.04);
  border-radius: 3px;
  overflow: hidden;
}

.bm-review-apps__fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), #00e6c8);
  transition: width var(--transition-slow);
}

/* ---- Review Gallery ---- */
.bm-review-gallery {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-5);
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.bm-review-gallery::-webkit-scrollbar {
  height: 4px;
}

.bm-review-gallery::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

.bm-review-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-glass);
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.bm-review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bm-review-thumb:hover {
  transform: scale(1.1);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* ---- Review Filters ---- */
.bm-review-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-glass);
}

.bm-filter-btn {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-body);
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.bm-filter-btn:hover {
  border-color: var(--primary);
  color: var(--text-heading);
}

.bm-filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 600;
}

.bm-sort-select {
  margin-left: auto;
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-body);
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2364748b' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 10px;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.bm-sort-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ---- Review Cards ---- */
.bm-review-card {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
  transition: border-color var(--transition-base);
}

.bm-review-card:hover {
  border-color: rgba(0, 191, 166, 0.2);
}

.bm-review-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.bm-review-card__author {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.bm-review-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bm-review-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--sp-2);
}

.bm-review-card__body {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
}

.bm-review-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bm-review-badge--verified {
  background: rgba(0, 191, 166, 0.15);
  color: var(--primary);
}

.bm-review-badge--university {
  background: rgba(79, 195, 247, 0.15);
  color: var(--secondary);
}

.bm-review-badge--pharma {
  background: rgba(171, 71, 188, 0.15);
  color: #ce93d8;
}

.bm-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.bm-review-meta__tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.03);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.08);
}

.bm-review-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.bm-review-images img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid var(--border-glass);
  transition: border-color var(--transition-fast), opacity var(--transition-fast);
}

.bm-review-images img:hover {
  border-color: var(--primary);
  opacity: 0.85;
}

.bm-review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-glass);
}

.bm-review-helpful {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.bm-review-helpful:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0, 191, 166, 0.08);
}

.bm-review-helpful.voted {
  color: var(--primary);
  border-color: var(--primary);
  cursor: default;
  opacity: 0.7;
}

.bm-review-report {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.bm-review-report:hover {
  color: var(--accent-error);
}

/* ---- Manufacturer Reply ---- */
.bm-mfr-reply {
  background: rgba(13, 25, 43, 0.4);
  border: 1px solid var(--border-glass);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  margin-top: var(--sp-3);
  margin-left: var(--sp-5);
}

.bm-mfr-reply__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-2);
}

.bm-mfr-reply__body {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ---- Stars ---- */
.bm-stars {
  display: inline-flex;
  gap: 2px;
}

.bm-star {
  color: #999999;
  font-size: 1rem;
  line-height: 1;
}

.bm-star.filled {
  color: #fbbf24;
}

.bm-star-rating {
  display: inline-flex;
  gap: 4px;
  cursor: pointer;
}

.bm-star-rating .bm-star {
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.bm-star-rating .bm-star:hover {
  transform: scale(1.2);
}

.bm-star-rating .bm-star.hovered {
  color: #fbbf24;
}

/* ---- Review Form ---- */
.bm-review-form {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
  padding: var(--sp-6);
}

.bm-review-step {
  display: none;
}

.bm-review-step.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.bm-step-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--sp-6);
}

.bm-step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
}

.bm-step-indicator__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-surface-solid);
  color: var(--text-muted);
  border: 2px solid var(--border-glass);
  transition: all var(--transition-base);
}

.bm-step-indicator.active .bm-step-indicator__circle,
.bm-step-indicator.completed .bm-step-indicator__circle {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.bm-step-indicator__line {
  width: 48px;
  height: 2px;
  background: var(--border-glass);
  transition: background var(--transition-base);
}

.bm-step-indicator.completed + .bm-step-indicator .bm-step-indicator__line,
.bm-step-indicator.completed .bm-step-indicator__line {
  background: var(--primary);
}

/* Form-specific inputs */
.bm-review-form .bm-input,
.bm-review-form .bm-textarea,
.bm-review-form .bm-select {
  background: rgba(6, 11, 19, 0.6);
  border-color: var(--border-glass);
  color: var(--text-heading);
}

.bm-review-form .bm-textarea {
  min-height: 150px;
}

/* File upload area */
.bm-upload-area {
  border: 2px dashed var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.bm-upload-area:hover,
.bm-upload-area.drag-over {
  border-color: var(--primary);
  background: rgba(0, 191, 166, 0.04);
  box-shadow: inset 0 0 20px rgba(0, 191, 166, 0.06);
  color: var(--text-body);
}

.bm-upload-area__icon {
  font-size: 2rem;
  margin-bottom: var(--sp-2);
  color: var(--text-muted);
}

.bm-upload-previews {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: var(--sp-3);
}

.bm-upload-previews__item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.bm-upload-previews__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bm-upload-previews__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.bm-upload-previews__remove:hover {
  background: var(--accent-error);
}

/* Incentive banner */
.bm-review-incentive {
  background: linear-gradient(135deg, rgba(0, 191, 166, 0.08), rgba(79, 195, 247, 0.06));
  border: 1px solid rgba(0, 191, 166, 0.15);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.85rem;
  color: var(--text-body);
  margin-bottom: var(--sp-5);
}

.bm-review-incentive__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Submit button */
.bm-review-submit {
  composes: btn btn-primary btn-lg btn-block;
}

/* ---- Lightbox ---- */
.bm-review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  animation: bmLightboxFadeIn 0.25s ease;
  cursor: zoom-out;
}

.bm-review-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.bm-review-lightbox__close {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #111111;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
}

.bm-review-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

@keyframes bmLightboxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Review Section Responsive ---- */
@media (max-width: 768px) {
  .bm-review-dashboard {
    flex-direction: column;
  }

  .bm-review-avg {
    flex: none;
  }

  .bm-review-apps {
    flex: none;
  }

  .bm-review-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .bm-mfr-reply {
    margin-left: var(--sp-3);
  }

  .bm-review-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }
}

/* -- Review Tab Badge -- */
.tab-review-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
  margin-left: 6px;
}

/* ==========================================================================
   DYNAMIC CATEGORY VIEWPORT & VALIDATION/PROTOCOLS TABS
   ========================================================================== */

/* -- Spec Viewport (Purchase Panel) -- */
.bm-spec-viewport {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.bm-viewport-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555555;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.bm-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  gap: 0.75rem;
}

.bm-spec-label {
  color: var(--text-body, #222222);
  flex-shrink: 0;
}

.bm-spec-val {
  color: #111111;
  text-align: right;
}

/* -- Application Pills (Antibody Viewport) -- */
.bm-app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.bm-app-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(0,191,166,0.1);
  border: 1px solid rgba(0,191,166,0.25);
}

.bm-app-pill:nth-child(2) {
  color: var(--secondary, #4fc3f7);
  background: rgba(79,195,247,0.1);
  border-color: rgba(79,195,247,0.25);
}

.bm-app-pill:nth-child(3) {
  color: #b8860b;
  background: rgba(255,183,3,0.1);
  border-color: rgba(255,183,3,0.25);
}

.bm-app-pill:nth-child(4) {
  color: #e879f9;
  background: rgba(232,121,249,0.1);
  border-color: rgba(232,121,249,0.25);
}

/* -- Modification Tag (Peptide) -- */
.bm-mod-tag {
  background: #000;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #b8860b;
  font-size: 0.75rem;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
}

/* -- Amino Acid Sequence Box -- */
.bm-aa-sequence-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #ffffff; 
  border: 1px solid rgba(0,191,166,0.15);
  border-radius: var(--radius-lg, 12px);
}

.bm-aa-sequence-box h4 {
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.bm-aa-sequence {
  display: block;
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #111111;
  word-break: break-all;
  letter-spacing: 0.12em;
  background: transparent;
}

/* -- Validation Data Tab -- */
.bm-validation-intro {
  color: var(--text-body, #222222);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.bm-validation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.bm-validation-card {
  padding: 1.5rem;
}

.bm-validation-card h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #111111;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.bm-validation-card p {
  color: var(--text-body, #222222);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.bm-validation-img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.1);
  margin-top: 0.5rem;
}

.bm-validation-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  border: 1px dashed rgba(0,0,0,0.1);
  border-radius: 8px;
  text-align: center;
}

.bm-validation-placeholder span {
  color: #777777;
  font-size: 0.8rem;
}

/* -- Protocols & Support Tab -- */
.bm-protocols-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.bm-protocol-card {
  padding: 1.5rem;
}

.bm-protocol-icon {
  margin-bottom: 0.75rem;
}

.bm-protocol-card h4 {
  color: #111111;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.bm-protocol-card p {
  color: var(--text-body, #222222);
  font-size: 0.85rem;
  line-height: 1.6;
}

.bm-protocol-steps p {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.bm-protocol-steps p:last-child {
  border-bottom: none;
}

.bm-protocol-steps strong {
  color: var(--primary);
}

.bm-protocol-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: rgba(0,191,166,0.1);
  border: 1px solid rgba(0,191,166,0.25);
  border-radius: 8px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bm-protocol-download:hover {
  background: rgba(0,191,166,0.2);
  border-color: var(--primary);
}

/* ==========================================================================
   PROTEIN SIZE SELECTOR PILLS & BULK QUOTE MODAL
   ========================================================================== */

/* -- Size Selector -- */
.bm-size-selector {
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.bm-size-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111111;
  margin-bottom: 0.5rem;
}

.bm-size-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.bm-size-pill {
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: 2px solid rgba(0,0,0,0.15);
  background: #ffffff;
  color: #111111;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bm-size-pill:hover {
  border-color: #1a5276;
  color: #111111;
  background: rgba(26,82,118,0.06);
}

.bm-size-pill.is-active {
  border-color: #1a5276;
  background: rgba(26,82,118,0.1);
  color: #111111;
  box-shadow: 0 0 0 2px rgba(26,82,118,0.2);
}

.bm-size-pill--bulk {
  border-color: rgba(230,126,34,0.4);
  color: #b8860b;
  background: rgba(255,183,3,0.05);
}

.bm-size-pill--bulk:hover {
  border-color: #e67e22;
  background: rgba(255,183,3,0.12);
  color: #b8860b;
}

.bm-size-sku {
  font-size: 0.9rem;
  color: #333333;
}

.bm-size-sku strong {
  color: #111111;
  font-family: monospace;
}

/* -- Bulk Quote Modal -- */
.bm-quote-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bm-quote-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  animation: bm-modal-in 0.25s ease-out;
}

@keyframes bm-modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bm-quote-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #555555;
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.bm-quote-close:hover {
  color: #111111;
  background: rgba(0,0,0,0.06);
}

.bm-quote-modal h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #111111;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.bm-quote-product-name {
  color: #111111;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.bm-quote-catalog {
  color: #666666;
  font-size: 0.8rem;
  font-family: monospace;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* -- Form -- */
.bm-quote-row {
  margin-bottom: 1rem;
}

.bm-quote-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #444444;
  margin-bottom: 0.35rem;
}

.bm-quote-row .req {
  color: #ef4444;
}

.bm-quote-row input,
.bm-quote-row textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: #ffffff; 
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  color: #111111;
  font-size: 0.85rem;
  transition: border-color 0.2s;
  font-family: inherit;
}

.bm-quote-row input:focus,
.bm-quote-row textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.bm-quote-row input::placeholder,
.bm-quote-row textarea::placeholder {
  color: #999999;
}

.bm-quote-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.bm-quote-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  background: #e67e22 !important;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.bm-quote-submit:hover {
  background: #d35400 !important;
}

.bm-quote-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bm-quote-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
}

.bm-quote-status.success {
  color: var(--primary);
}

.bm-quote-status.error {
  color: #ef4444;
}

/* -- Hide WC variation dropdown for protein products (pills replace it) -- */
.bm-variants-hidden .variations {
  display: none !important;
}
.bm-variants-hidden .reset_variations {
  display: none !important;
}
.bm-variants-hidden .woocommerce-variation-price {
  display: none !important;
}

/* -- Size info row (SKU + Price) -- */
.bm-size-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.bm-size-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.bm-size-price .woocommerce-Price-amount {
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   SCROLL-TO-SECTION NAV (replaces tab switching)
   ========================================================================== */

/* All sections always visible */
.bm-content-section {
  display: block;
  padding-top: 1.5rem;
  margin-bottom: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #222222;
}

.bm-content-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.8rem;
}

.bm-content-section h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.6rem;
}

.bm-content-section h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 0.5rem;
}

.bm-content-section p,
.bm-content-section li,
.bm-content-section td,
.bm-content-section th {
  font-size: 1.05rem;
  color: #222222;
  line-height: 1.8;
}

.bm-content-section ul,
.bm-content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.bm-content-section strong {
  color: #111111;
}

.bm-content-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* Sticky nav bar */
.bm-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 0 !important;
  margin-bottom: 1.5rem;
}

/* Override old tab-panel hide/show — all visible now */
.tab-panel,
.tab-panel-content {
  display: block !important;
}

/* ==========================================================================
   PEPTIDE ORDER CONFIGURATOR
   ========================================================================== */

.bm-peptide-configurator {
  padding: 1.25rem;
  background: rgba(255,183,3,0.03);
  border: 1px solid rgba(255,183,3,0.12);
  border-radius: var(--radius-lg, 12px);
  margin-bottom: 1.25rem;
}

.bm-peptide-cfg-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b8860b;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,183,3,0.1);
}

/* Steps */
.bm-cfg-step {
  margin-bottom: 1rem;
}

.bm-cfg-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #444444;
  margin-bottom: 0.5rem;
}

.bm-cfg-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,183,3,0.15);
  color: #b8860b;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Sequence input */
.bm-pep-seq-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: #ffffff; 
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  color: #111111;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  resize: vertical;
  transition: border-color 0.2s;
}

.bm-pep-seq-input:focus {
  outline: none;
  border-color: #b8860b;
}

.bm-pep-seq-info {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #666666;
}

.bm-pep-seq-info strong {
  color: #b8860b;
}

.bm-pep-range-note {
  font-style: italic;
}

/* Purity pills */
.bm-purity-pills,
.bm-qty-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bm-purity-pill,
.bm-qty-pill {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.02);
  color: #444444;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bm-purity-pill:hover,
.bm-qty-pill:hover {
  border-color: rgba(255,183,3,0.3);
  color: #222222;
}

.bm-purity-pill.is-active {
  border-color: #b8860b;
  background: rgba(255,183,3,0.12);
  color: #b8860b;
  box-shadow: 0 0 8px rgba(255,183,3,0.12);
}

.bm-qty-pill.is-active {
  border-color: var(--primary);
  background: rgba(0,191,166,0.12);
  color: var(--primary);
  box-shadow: 0 0 8px rgba(0,191,166,0.12);
}

/* Price Summary */
.bm-cfg-price-summary {
  padding: 1rem;
  background: rgba(0,0,0,0.03);
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid rgba(0,0,0,0.06);
}

.bm-cfg-price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-size: 0.8rem;
  color: #555555;
}

.bm-cfg-price-row span:last-child {
  color: #222222;
  font-weight: 600;
  font-family: monospace;
}

.bm-cfg-total-row {
  display: flex;
  justify-content: space-between;
  padding-top: 0.6rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 0.9rem;
  color: #333333;
  font-weight: 600;
}

.bm-cfg-total-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffb703 !important;
  font-family: monospace;
}

.bm-cfg-discount-note {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: #777777;
  text-align: center;
  font-style: italic;
}

/* Place Order button */
.bm-pep-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ffb703, #fb8500);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.bm-pep-order-btn:hover {
  box-shadow: 0 4px 24px rgba(255,183,3,0.3);
  transform: translateY(-1px);
}

.bm-pep-order-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.bm-pep-order-status {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  text-align: center;
}

.bm-pep-order-status.success {
  color: var(--primary);
}

.bm-pep-order-status.error {
  color: #ef4444;
}

/* ==========================================================================
   PEPTIDE — Modifications Toggle & Quote Mode
   ========================================================================== */

.bm-cfg-optional {
  font-weight: 400;
  font-size: 0.7rem;
  color: #777777;
  font-style: italic;
}

/* Switch toggle */
.bm-mod-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.bm-mod-toggle-label {
  font-size: 0.8rem;
  color: #555555;
}

.bm-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.bm-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.bm-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(0,0,0,0.05);
  border-radius: 20px;
  transition: 0.2s;
}

.bm-switch-slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transition: 0.2s;
}

.bm-switch input:checked + .bm-switch-slider {
  background: rgba(255,183,3,0.25);
}

.bm-switch input:checked + .bm-switch-slider::before {
  transform: translateX(16px);
  background: #ffb703;
}

.bm-mod-details {
  margin-top: 0.5rem;
}

/* Quote notice banner */
.bm-quote-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.75rem;
  background: rgba(255,183,3,0.06);
  border: 1px solid rgba(255,183,3,0.15);
  border-radius: 8px;
  font-size: 0.78rem;
  color: #b8860b;
  line-height: 1.4;
}

.bm-quote-notice svg {
  flex-shrink: 0;
}

/* Quote contact fields */
.bm-pep-quote-fields {
  margin-bottom: 1rem;
}

.bm-quote-row {
  margin-bottom: 0.6rem;
}

.bm-quote-row label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #555555;
  margin-bottom: 0.25rem;
}

.bm-quote-row .req {
  color: #ef4444;
}

.bm-quote-row input,
.bm-quote-row textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  background: #ffffff; 
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  color: #111111;
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.bm-quote-row input:focus,
.bm-quote-row textarea:focus {
  outline: none;
  border-color: #b8860b;
}

/* Quote mode button style */
.bm-pep-order-btn--quote {
  background: linear-gradient(135deg, rgba(255,183,3,0.15), rgba(251,133,0,0.15)) !important;
  color: #ffb703 !important;
  border: 1px solid rgba(255,183,3,0.3) !important;
}

.bm-pep-order-btn--quote:hover {
  background: linear-gradient(135deg, rgba(255,183,3,0.25), rgba(251,133,0,0.25)) !important;
  box-shadow: 0 4px 24px rgba(255,183,3,0.15) !important;
}

/* ==========================================================================
   SPECIFICATIONS TABLE & GROUP TITLES
   ========================================================================== */
.bm-overview-specs h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: var(--text-heading, #fff);
}

.bm-spec-group-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 1.5rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0,191,166,0.15);
}

.bm-spec-group-title:first-of-type {
  margin-top: 0;
}

.specifications-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.specifications-table th,
.specifications-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: top;
}

.specifications-table th {
  width: 40%;
  color: var(--text-body, #222222);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.specifications-table td {
  color: var(--text-heading, #fff);
  font-weight: 500;
}

.specifications-table tr:hover {
  background: rgba(0,191,166,0.03);
}

.specifications-table tr:last-child th,
.specifications-table tr:last-child td {
  border-bottom: none;
}

.bm-spec-background,
.bm-spec-references {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-body, #222222);
  padding: 0.5rem 0;
}

.bm-spec-background p,
.bm-spec-references p {
  margin-bottom: 0.8rem;
}

.bm-spec-references {
  font-size: 0.82rem;
  opacity: 0.85;
}

/* Auto-generated Peptide Image */
.bm-peptide-auto-image {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.3s ease;
}

.bm-peptide-auto-image:hover {
  box-shadow: 0 12px 48px rgba(0, 191, 166, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.product-gallery-wrapper .bm-peptide-auto-image {
  max-width: 100%;
  height: auto;
}

/* Hide WC gallery wrapper default styles when using auto-image */
.product-gallery-wrapper:has(.bm-peptide-auto-image) .woocommerce-product-gallery,
.product-gallery-wrapper:has(.bm-peptide-svg-gallery) .woocommerce-product-gallery {
  display: none;
}

/* Ensure the auto-image fills the gallery space */
.product-gallery-wrapper .bm-peptide-auto-image {
  min-height: 400px;
}

/* Peptide Sequence Visualization SVG Gallery */
.bm-peptide-svg-gallery {
  width: 100%;
  background: linear-gradient(145deg, #0a1628 0%, #0d1f3c 40%, #0a1628 100%);
  border-radius: var(--radius-lg, 12px);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-peptide-svg-gallery:hover {
  box-shadow: 0 12px 48px rgba(0, 191, 166, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bm-peptide-svg-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .bm-peptide-auto-image {
    aspect-ratio: 4/3 !important;
    min-height: 300px !important;
    padding: 1.2rem !important;
  }

  .bm-peptide-svg-gallery {
    padding: 1rem;
  }
}

/* ==========================================================================
   Z-ACTIVE™ TECHNOLOGY — Branding & Showcase
   ========================================================================== */

/* -- Section background -- */
.bm-zactive-section {
  background: linear-gradient(180deg, rgba(0,150,136,0.04) 0%, transparent 100%);
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-top: 0;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* -- Grid layout -- */
.bm-zactive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

/* -- Eyebrow label -- */
.bm-zactive-eyebrow {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: rgba(0,191,166,0.1);
  border: 1px solid rgba(0,191,166,0.2);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  margin-bottom: 1rem;
}

/* -- Logo image -- */
.bm-zactive-logo {
  display: inline-block;
  height: 2.2rem;
  width: auto;
  vertical-align: middle;
  margin: 0 0.4rem 0 0;
}

/* -- Text side -- */
.bm-zactive-text h2,
.bm-zactive-subtitle {
  font-size: 1.3rem;
  color: #111111;
  margin: 0 0 0.5rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.bm-zactive-subtitle-sub {
  font-size: 1rem;
  color: #444444;
  margin: 0 0 1.2rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.bm-zactive-lead {
  font-size: 1.05rem;
  color: #222222;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.bm-zactive-lead strong {
  color: #00695c;
}

/* -- Feature list -- */
.bm-zactive-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bm-zactive-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.bm-zactive-check {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.bm-zactive-features li strong {
  display: block;
  color: #111111;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.bm-zactive-features li span:last-child {
  font-size: 0.82rem;
  color: #555555;
  line-height: 1.4;
}

/* -- Chart card -- */
.bm-zactive-chart {
  padding: 2rem !important;
}

.bm-zactive-chart-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  color: #111111;
  margin: 0 0 0.25rem;
}

.bm-zactive-chart-sub {
  font-size: 1rem;
  color: #666666;
  margin: 0 0 1.5rem;
}

/* -- Bar chart -- */
.bm-zactive-bars {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.bm-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 45px;
  align-items: center;
  gap: 0.75rem;
}

.bm-bar-label {
  font-size: 1.05rem;
  color: #222222;
  white-space: nowrap;
}

.bm-bar-label em {
  font-style: normal;
  color: var(--primary);
  font-weight: 600;
}

.bm-bar-track {
  height: 24px;
  background: rgba(0,0,0,0.06);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.bm-bar-fill {
  height: 100%;
  border-radius: 6px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bm-bar-fill.animated {
  width: var(--bar-width);
}

.bm-bar-hero {
  background: linear-gradient(90deg, #00bfa6, #00e5cc, #00bfa6);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(0,191,166,0.3);
}

.bm-bar-dim {
  background: rgba(0,0,0,0.1);
}

.bm-bar-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #444444;
  text-align: right;
}

.bm-bar-val-hero {
  color: var(--primary);
  font-size: 1.15rem;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.bm-zactive-chart-note {
  font-size: 0.85rem;
  color: #777777;
  margin: 1.25rem 0 0;
  font-style: italic;
}

/* -- Z-Active Badge (product cards & detail page) -- */
.bm-z-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: linear-gradient(135deg, #00bfa6, #00e5cc);
  border-radius: 4px;
  padding: 3px 8px;
  position: relative;
  overflow: hidden;
}

.bm-z-active-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

/* Badge on shop product cards */
.bm-z-active-badge-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

/* -- Z-Active Advantage Panel (product detail page) -- */
.bm-zactive-panel {
  background: rgba(0,191,166,0.06);
  border: 1px solid rgba(0,191,166,0.18);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.bm-zactive-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.bm-zactive-panel-desc {
  font-size: 0.9rem;
  color: var(--text-body, #222222);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.bm-zactive-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.bm-zactive-panel-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #111111;
  font-weight: 500;
}

.bm-zactive-panel-bars {
  margin-top: 1rem;
}

.bm-zactive-panel-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.bm-zactive-panel-bar-label {
  font-size: 0.75rem;
  color: var(--text-body);
  width: 80px;
  flex-shrink: 0;
}

.bm-zactive-panel-bar-track {
  flex: 1;
  height: 14px;
  background: rgba(0,0,0,0.03);
  border-radius: 4px;
  overflow: hidden;
}

.bm-zactive-panel-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.bm-zactive-panel-bar-fill.hero {
  background: linear-gradient(90deg, #00bfa6, #00e5cc);
}

.bm-zactive-panel-bar-fill.dim {
  background: rgba(0,0,0,0.06);
}

.bm-zactive-panel-bar-pct {
  font-size: 0.75rem;
  font-weight: 700;
  width: 35px;
  text-align: right;
}

/* -- Responsive -- */
@media (max-width: 768px) {
  .bm-zactive-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bm-zactive-text h2 {
    font-size: 1.5rem;
  }

  .bm-bar-row {
    grid-template-columns: 100px 1fr 40px;
  }

  .bm-bar-label {
    font-size: 0.75rem;
  }

  .bm-zactive-panel-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ORGANOID CULTURE PAGE
   ========================================================================== */

.bm-organoid-hero {
  background: linear-gradient(180deg, rgba(0,191,166,0.05) 0%, transparent 100%);
  border-bottom: 1px solid rgba(0,191,166,0.08);
}

/* Pathway pills */
.bm-org-pathways {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bm-org-pathway-tag {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.bm-org-pathway-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.bm-org-pill {
  padding: 0.45rem 1.1rem;
  background: rgba(0,191,166,0.08);
  border: 1px solid rgba(0,191,166,0.18);
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

/* Organoid card grid */
.bm-org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.bm-org-card {
  padding: 1.25rem !important;
}

.bm-org-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.bm-org-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.bm-org-name {
  font-size: 1.25rem;
  color: #111111;
  margin: 0;
  line-height: 1.3;
}

.bm-org-code {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Protein tags */
.bm-org-proteins {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bm-org-protein {
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  line-height: 1.4;
}

.bm-org-protein.catalog {
  background: rgba(0,191,166,0.1);
  border: 1px solid rgba(0,191,166,0.2);
  color: var(--primary);
  font-weight: 600;
}

.bm-org-protein.other {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--text-muted);
}

.bm-org-note {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255,183,3,0.08);
  border: 1px solid rgba(255,183,3,0.15);
  border-radius: 6px;
  font-size: 0.88rem;
  color: #b8860b;
  font-weight: 600;
}

/* Catalog table */
.bm-org-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
}

.bm-org-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}

.bm-org-table thead {
  background: rgba(0,191,166,0.08);
}

.bm-org-table th {
  text-align: left;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1px solid rgba(0,191,166,0.15);
}

.bm-org-table td {
  padding: 0.9rem 1.2rem;
  color: var(--text-body);
  font-size: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: middle;
}

.bm-org-table tbody tr:hover {
  background: rgba(0,191,166,0.04);
}

.bm-org-table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
  .bm-org-grid {
    grid-template-columns: 1fr;
  }

  .bm-org-pathways {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .bm-section .glass-card[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   PEPTIDE LANDING PAGES (shared styles)
   ========================================================================== */

.bm-pep-hero {
  background: linear-gradient(180deg, rgba(79,195,247,0.06) 0%, transparent 100%);
  border-bottom: 1px solid rgba(79,195,247,0.08);
}

/* Hero description & eyebrow */
.bm-pep-hero p,
.bm-pep-desc {
  font-size: 1.35rem !important;
  line-height: 1.7;
  color: var(--text-body);
}

.bm-pep-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem) !important;
}

.bm-pep-eyebrow {
  font-size: 1.1rem !important;
}

/* All section body text in peptide landing pages */
.bm-section p {
  font-size: 1.2rem;
  line-height: 1.7;
}

.bm-pep-subtitle {
  font-size: 1.5rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

/* Peptide product cards grid */
.bm-pep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.bm-pep-card {
  padding: 1.5rem !important;
  transition: border-color 0.3s, transform 0.2s;
}

.bm-pep-card:hover {
  border-color: rgba(79,195,247,0.25) !important;
  transform: translateY(-2px);
}

.bm-pep-card-name {
  font-size: 1.6rem;
  color: #111111;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.bm-pep-card-seq {
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  color: var(--primary);
  background: rgba(0,191,166,0.06);
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  display: inline-block;
  margin: 0.5rem 0;
  word-break: break-all;
  line-height: 1.5;
  max-width: 100%;
}

.bm-pep-card-mech {
  font-size: 1.2rem;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0.6rem 0 0;
}

.bm-pep-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.75rem;
}

.bm-pep-tag {
  font-size: 1rem;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  font-weight: 600;
}

.bm-pep-tag.organ { background: rgba(79,195,247,0.1); border: 1px solid rgba(79,195,247,0.2); color: #4fc3f7; }
.bm-pep-tag.mech { background: rgba(0,191,166,0.08); border: 1px solid rgba(0,191,166,0.15); color: var(--primary); }
.bm-pep-tag.hot { background: rgba(255,183,3,0.1); border: 1px solid rgba(255,183,3,0.2); color: #b8860b; }

/* Organ system cards for Khavinson */
.bm-organ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.bm-organ-card {
  padding: 1.25rem !important;
  border-left: 3px solid var(--secondary) !important;
}

.bm-organ-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.bm-organ-card-icon {
  font-size: 2.2rem;
}

.bm-organ-card-sys {
  font-size: 1.4rem;
  color: #111111;
  font-weight: 700;
  margin: 0;
}

.bm-organ-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bm-organ-card-list li {
  font-size: 1.15rem;
  color: var(--text-body);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bm-organ-card-list li:last-child { border: none; }

.bm-organ-card-list .pep-name { color: #111111; font-weight: 700; font-size: 1.15rem; }
.bm-organ-card-list .pep-seq { font-family: monospace; font-size: 1.05rem; color: var(--primary); font-weight: 600; }

/* Peptide name links in organ cards */
.bm-organ-card-list a {
  color: #00897b !important;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.bm-organ-card-list a:hover {
  color: #00695c !important;
  text-decoration: underline;
}
.bm-organ-card-list a .pep-name {
  color: inherit !important;
}

/* Comparison tables */
.bm-pep-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.15rem;
}

.bm-pep-compare thead {
  background: rgba(79,195,247,0.08);
}

.bm-pep-compare th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  font-weight: 700;
  border-bottom: 1px solid rgba(79,195,247,0.15);
}

.bm-pep-compare td {
  padding: 0.75rem 1rem;
  color: var(--text-body);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  vertical-align: middle;
  font-size: 1.1rem;
}

.bm-pep-compare tbody tr:hover {
  background: rgba(79,195,247,0.04);
}

/* Category nav pills */
.bm-pep-cats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.bm-pep-cat-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--bg-surface);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  color: var(--text-body);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.2s;
}

.bm-pep-cat-pill:hover {
  border-color: rgba(79,195,247,0.3);
  color: #111111;
  transform: translateY(-1px);
}

.bm-pep-cat-pill .cat-icon { font-size: 1.6rem; }
.bm-pep-cat-pill .cat-count { font-size: 0.9rem; color: var(--primary); }

@media (max-width: 768px) {
  .bm-pep-grid { grid-template-columns: 1fr; }
  .bm-organ-grid { grid-template-columns: 1fr; }
}

/* ============================================
   BOSTON MOLECULES - UI/UX 深度优化补丁 (Phase 1.5)
   兼容性: Flavor 深色主题 | WooCommerce 8.x+
   ============================================ */

/* (Dark-theme WCAG patch removed — replaced by light theme root vars) */

/* --- 2. 卡片呼吸感 & CTA 流光微交互 (P0) --- */
.glass-card,
.products .product {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    will-change: transform;
}
.glass-card:hover,
.products .product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 191, 166, 0.08),
                0 0 0 1px rgba(0, 191, 166, 0.12);
    border-color: rgba(0, 191, 166, 0.15);
}

/* 按钮流光扫过特效 (不影响布局) */
.btn-primary,
button.alt,
.button.alt {
    position: relative;
    overflow: hidden;
}
.btn-primary::after,
button.alt::after,
.button.alt::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.btn-primary:hover::after,
button.alt:hover::after,
.button.alt:hover::after {
    transform: translateX(100%);
}

/* --- 3. 库存脉冲点 + 货期标签 (P1) --- */
.bm-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0,0,0,0.03);
    border: 1px solid transparent;
    letter-spacing: 0.3px;
}
.bm-stock-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    transition: all 0.3s;
}

/* 不同状态的配色 */
.bm-stock-badge.in-stock { border-color: rgba(22, 163, 74, 0.3); color: #15803d; background: rgba(22, 163, 74, 0.08); }
.bm-stock-badge.made-to-order { border-color: rgba(202, 138, 4, 0.3); color: #a16207; background: rgba(202, 138, 4, 0.08); }
.bm-stock-badge.made-to-order .bm-stock-dot { background: #ca8a04; }
.bm-stock-badge.custom { border-color: rgba(234, 88, 12, 0.3); color: #c2410c; background: rgba(234, 88, 12, 0.08); }
.bm-stock-badge.custom .bm-stock-dot { background: #ea580c; }

/* 脉冲动画 (仅在无偏好减少动画时启用) */
@media (prefers-reduced-motion: no-preference) {
    .in-stock .bm-stock-dot {
        animation: bm-pulse-dot 2s infinite ease-in-out;
    }
    @keyframes bm-pulse-dot {
        0% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.3; transform: scale(0.6); }
        100% { opacity: 1; transform: scale(1); }
    }
}

/* --- 4. 数据可视化：温度标签 & MW 气泡 (P1) --- */
.bm-temp-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(0,0,0,0.04);
    letter-spacing: 0.5px;
}
/* 温度颜色编码 */
.bm-temp--80 { color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.2); }
.bm-temp--20 { color: #34d399; border: 1px solid rgba(52, 211, 153, 0.2); }
.bm-temp-4   { color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.2); }
.bm-temp-rt  { color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.2); }

.bm-mw-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 2px 12px 2px 8px;
    border-radius: 16px;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.1);
    color: #a78bfa;
}
.bm-mw-chip::before {
    content: "⚛";
    font-size: 0.7rem;
    opacity: 0.7;
}

/* --- 5. 纯度环形图 (纯CSS Conic-Gradient) (P1) --- */
.bm-purity-ring {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.bm-purity-ring .ring {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) var(--purity, 0%), rgba(0,0,0,0.06) var(--purity, 0%));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    color: #111111;
    position: relative;
}
/* 内圈镂空效果 */
.bm-purity-ring .ring::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--bg-body, #0a0e17);
}
.bm-purity-ring .ring span {
    position: relative;
    z-index: 1;
}
.bm-purity-ring .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- 6. 配置器步骤指示器 (P2) --- */
.bm-wizard-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
    padding: 0 10px;
}
.bm-wizard-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: rgba(0,0,0,0.04);
    z-index: 0;
}
.bm-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    flex: 1;
}
.bm-wizard-step .step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.12);
    background: var(--bg-card, #141b24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.bm-wizard-step .step-label {
    margin-top: 6px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
}
.bm-wizard-step.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #111111;
    box-shadow: 0 0 20px rgba(0, 191, 166, 0.25);
    transform: scale(1.05);
}
.bm-wizard-step.active .step-label {
    color: #111111;
    font-weight: 600;
}
.bm-wizard-step.completed .step-circle {
    background: rgba(0, 191, 166, 0.12);
    border-color: var(--primary);
    color: var(--primary);
}

/* --- 7. 骨架屏加载 (P2) --- */
.bm-skeleton {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.03) 25%,
        rgba(255,255,255,0.07) 50%,
        rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    min-height: 20px;
}
@media (prefers-reduced-motion: no-preference) {
    .bm-skeleton {
        animation: bm-skeleton-shimmer 1.5s infinite ease-in-out;
    }
    @keyframes bm-skeleton-shimmer {
        0% { background-position: -200% 0; }
        100% { background-position: 200% 0; }
    }
}

/* 骨架屏卡片预设尺寸 */
.bm-skeleton-card { height: 200px; margin-bottom: 1rem; }
.bm-skeleton-line { height: 14px; margin-bottom: 8px; }
.bm-skeleton-line.short { width: 60%; }
.bm-skeleton-line.medium { width: 80%; }
.bm-skeleton-circle { width: 40px; height: 40px; border-radius: 50%; }

/* --- 修复 1: 配置器步骤条移动端适配 --- */
@media (max-width: 640px) {
    .bm-wizard-steps {
        padding: 0 4px;
        gap: 4px;
    }
    .bm-wizard-steps::before {
        left: 16px;
        right: 16px;
        top: 14px;
    }
    .bm-wizard-step .step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
    .bm-wizard-step .step-label {
        display: none;
    }
}

/* --- Checkout: Place Order 按钮增强 --- */
#place_order,
.woocommerce-checkout #place_order {
    display: block;
    width: 100%;
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #111111 !important;
    background: linear-gradient(135deg, var(--primary) 0%, #009e8b 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 16px rgba(0, 191, 166, 0.25);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}
#place_order:hover,
.woocommerce-checkout #place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 191, 166, 0.35);
    background: linear-gradient(135deg, #00d4b8 0%, #00bfa6 100%);
}
#place_order:active,
.woocommerce-checkout #place_order:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 191, 166, 0.2);
}
/* 流光效果 */
#place_order::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
#place_order:hover::after {
    transform: translateX(100%);
}

/* --- WC Blocks Checkout: Place Order 按钮增强 (Block-based checkout) --- */
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-checkout-actions-block .wc-block-components-button,
.wc-block-checkout__actions_row .wc-block-components-button,
.wc-block-components-checkout-place-order-button.wc-block-components-button {
    display: block !important;
    width: 100% !important;
    padding: 18px 32px !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #111111 !important;
    background: linear-gradient(135deg, var(--primary) 0%, #009e8b 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 16px rgba(0, 191, 166, 0.25) !important;
    margin-top: 1rem !important;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    min-height: 60px !important;
    line-height: 1.4 !important;
}
.wc-block-components-checkout-place-order-button:hover,
.wp-block-woocommerce-checkout-actions-block .wc-block-components-button:hover,
.wc-block-checkout__actions_row .wc-block-components-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(0, 191, 166, 0.35) !important;
    background: linear-gradient(135deg, #00d4b8 0%, #00bfa6 100%) !important;
}
.wc-block-components-checkout-place-order-button:active,
.wp-block-woocommerce-checkout-actions-block .wc-block-components-button:active {
    transform: translateY(0) !important;
}
/* 按钮内文字确保白色可见 */
.wc-block-components-checkout-place-order-button .wc-block-components-button__text,
.wp-block-woocommerce-checkout-actions-block .wc-block-components-button__text {
    color: #111111 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
}
/* Return to cart 链接也优化 */
.wc-block-components-checkout-return-to-cart-button,
.wp-block-woocommerce-checkout-actions-block a {
    color: var(--text-body, #222222) !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}
.wc-block-components-checkout-return-to-cart-button:hover,
.wp-block-woocommerce-checkout-actions-block a:hover {
    color: #111111 !important;
}


/* --- Logo: Clean, no filters --- */
.bm-logo {
    padding: 0.5rem 0 !important;
}
.bm-logo img {
    transition: opacity 0.3s ease;
}
.bm-logo:hover img {
    opacity: 0.85;
}



/* --- Footer Logo: Clean --- */
.bm-footer-logo-link {
    display: inline-block;
    text-decoration: none;
}
.bm-footer-logo {
    height: 70px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}
.bm-footer-logo-link:hover .bm-footer-logo {
    opacity: 0.85;
}

/* --- Blog: 文章标题缩小 --- */
.bm-blog-title {
    font-size: 1.25rem !important;
    line-height: 1.4;
    font-weight: 600;
}
.bm-blog-title a {
    color: #e8edf2;
    text-decoration: none;
    transition: color 0.2s;
}
.bm-blog-title a:hover {
    color: var(--primary);
}

/* --- Z-Active® Logo: Clean, no filters --- */
.bm-zactive-logo {
    transition: opacity 0.3s ease;
}
.bm-zactive-logo:hover {
    opacity: 0.85;
}

/* --- Footer Legal Links --- */
.bm-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 0.8rem;
}
.bm-footer-legal a {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}
.bm-footer-legal a:hover {
  color: var(--primary);
}

/* --- FAQ Accordion --- */
.bm-faq-section details {
  background: var(--bg-surface, rgba(13, 25, 43, 0.75));
  border: 1px solid var(--border-glass, rgba(0,191,166,0.15));
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.bm-faq-section summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: #111111;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bm-faq-section summary::-webkit-details-marker { display: none; }
.bm-faq-section summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s;
}
.bm-faq-section details[open] summary::after {
  content: '−';
}
.bm-faq-section details > div {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-body, #222222);
  line-height: 1.6;
}

/* --- Policy Pages --- */
.bm-policy-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}
.bm-policy-content h2 {
  color: #111111;
  font-size: 1.3rem;
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-glass, rgba(0,191,166,0.15));
}
.bm-policy-content h3 {
  color: #111111;
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}
.bm-policy-content p,
.bm-policy-content li {
  color: var(--text-body, #222222);
}
.bm-policy-content ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}
.bm-policy-content strong {
  color: #111111;
}
.bm-policy-content a {
  color: var(--primary);
}

/* --- Featured Products: Horizontal Scroll Carousel --- */
.bm-featured-scroll {
  overflow: visible;
}
.bm-featured-scroll .woocommerce {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,191,166,0.3) transparent;
  padding-bottom: 0.75rem;
}
.bm-featured-scroll .woocommerce::-webkit-scrollbar {
  height: 4px;
}
.bm-featured-scroll .woocommerce::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.03);
  border-radius: 2px;
}
.bm-featured-scroll .woocommerce::-webkit-scrollbar-thumb {
  background: rgba(0,191,166,0.25);
  border-radius: 2px;
}
.bm-featured-scroll ul.products {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 1rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.bm-featured-scroll ul.products::before,
.bm-featured-scroll ul.products::after {
  display: none !important;
}
.bm-featured-scroll .product-card,
.bm-featured-scroll ul.products > .product {
  flex: 0 0 200px !important;
  max-width: 200px !important;
  width: 200px !important;
  scroll-snap-align: start;
  margin: 0 !important;
  float: none !important;
  height: auto !important;
}
.bm-featured-scroll .product-card-image {
  height: 120px;
  overflow: hidden;
}
.bm-featured-scroll .product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .bm-featured-scroll .product-card,
  .bm-featured-scroll ul.products > .product {
    flex: 0 0 200px !important;
    max-width: 200px !important;
    width: 200px !important;
  }
  .bm-featured-scroll .product-card-image {
    height: 100px;
  }
}

/* Hide add-to-cart / select-options / overlays in featured scroll carousel */
.bm-featured-scroll .add_to_cart_button,
.bm-featured-scroll .ajax_add_to_cart,
.bm-featured-scroll .product_type_variable,
.bm-featured-scroll .product_type_simple,
.bm-featured-scroll a.button,
.bm-featured-scroll .product-card-overlay,
.bm-featured-scroll .quick-view-btn,
.bm-featured-scroll .product-card-badges,
.bm-featured-scroll .product-card-specs,
.bm-featured-scroll .bm-stock-badge {
  display: none !important;
}

/* === LIGHT THEME: Product card & category fixes === */
.product-card.glass-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.product-card .product-card-body,
.product-card .product-card-title a,
.product-card .product-card-category a,
.product-card .spec-label,
.product-card .spec-value,
.product-card .product-card-price,
.product-card .product-card-price .woocommerce-Price-amount {
  color: #222222 !important;
}
.product-card .product-card-placeholder {
  background: #f0f4f7;
}
.product-card .product-card-placeholder svg {
  stroke: rgba(0,0,0,0.15);
}

/* Category card h3 (Peptides, Proteins, Antibodies) - darker */
.bm-category-card h3 {
  color: #111111 !important;
}

/* Compact product card body */
.product-card .product-card-body {
  padding: 0.6rem 0.8rem 0.8rem;
}
.product-card .product-card-title {
  font-size: 0.85rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.product-card .product-card-footer {
  padding: 0.5rem 0.8rem;
}
.bm-featured-scroll .product-card .product-card-body {
  padding: 0.5rem 0.6rem;
}
.bm-featured-scroll .product-card .product-card-title {
  font-size: 0.78rem;
}
.bm-featured-scroll .product-card .product-card-footer {
  padding: 0.4rem 0.6rem;
}

/* ══════════════════════════════════════════════════════
   GLOBAL TEXT COLOR FIX — force dark text sitewide
   ══════════════════════════════════════════════════════ */
body,
body.search,
body.archive,
body.search-results,
body.woocommerce-page {
  color: #222 !important;
}

/* Shop page product titles */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product a,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .woocommerce-Price-amount {
  color: #222 !important;
}

/* Shop page headings & results count */
.woocommerce-result-count,
.woocommerce-ordering select,
.woocommerce-products-header__title,
.page-title,
.archive-title,
.woocommerce-products-header h1 {
  color: #111 !important;
}

/* Filter sidebar */
.widget-title,
.widget_price_filter .price_label,
.widget ul li a {
  color: #222 !important;
}

/* Breadcrumb */
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a {
  color: #555 !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
}

/* Stock status */
.product-card .stock,
.product-card .in-stock {
  color: #27ae60 !important;
}

/* Footer stays as-is (dark bg) — skip */

/* ══════════════════════════════════════════════════════
   ORGANOID BUNDLE CARDS
   ══════════════════════════════════════════════════════ */
.bm-bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 2rem;
}
.bm-bundle-card {
  padding: 2rem 2.2rem !important;
  border: 1px solid rgba(0,191,166,0.2) !important;
  display: flex;
  flex-direction: column;
}
.bm-bundle-header {
  margin-bottom: 1rem;
}
.bm-bundle-title {
  font-size: 1.35rem !important;
  color: #111 !important;
  margin: 0.5rem 0 0.4rem !important;
  line-height: 1.35 !important;
}
.bm-bundle-code {
  display: inline-block;
  background: rgba(0,191,166,0.08);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.88rem;
  font-weight: 600;
}
.bm-bundle-target {
  background: rgba(0,191,166,0.05);
  border-left: 3px solid var(--primary);
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.98rem;
  color: #333;
  line-height: 1.55;
}
.bm-bundle-desc {
  font-size: 1rem !important;
  color: #444 !important;
  line-height: 1.7 !important;
  margin-bottom: 1.2rem !important;
}
.bm-bundle-components {
  margin-bottom: 1.2rem;
}
.bm-bundle-components h4 {
  font-size: 1.05rem;
  color: #111;
  margin: 0 0 0.6rem;
  font-weight: 700;
}
.bm-bundle-components ul {
  margin: 0 0 0.8rem;
  padding-left: 1.2rem;
}
.bm-bundle-components li {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 0.35rem;
}
.bm-bundle-components p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}
.bm-bundle-proteins {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.bm-bundle-advantage {
  background: rgba(26,82,118,0.05);
  border: 1px solid rgba(26,82,118,0.12);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: #333;
  line-height: 1.6;
}
.bm-bundle-btn {
  width: 100%;
  text-align: center;
  font-size: 1.05rem !important;
  margin-top: auto;
}
@media (max-width: 768px) {
  .bm-bundle-grid {
    grid-template-columns: 1fr;
  }
}

/* Bundle price */
.bm-bundle-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 1rem;
}
.bm-bundle-price-note {
  font-size: 0.85rem;
  font-weight: 500;
  color: #777;
}

/* ==========================================================================
   FIX: Product grid layout — WC default uses li.product float layout,
   but our content-product.php outputs div.product-card.
   Override with CSS grid so all child elements lay out correctly.
   ========================================================================== */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 2rem 0 !important;
}
ul.products > .product {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}
@media (max-width: 1024px) {
  ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 768px) {
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 550px) {
  ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* Related products on single product page: 4 columns in wide container */
.related-products-section ul.products {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 1024px) {
  .related-products-section ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 550px) {
  .related-products-section ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   FIX: Pagination — force visible colors
   ========================================================================== */
nav.woocommerce-pagination ul {
  display: flex !important;
  gap: 0.5rem;
  justify-content: center;
  list-style: none !important;
  padding: 1.5rem 0 !important;
  margin: 0 !important;
}
nav.woocommerce-pagination ul li {
  border: none !important;
}
nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  color: #374151 !important;
  padding: 0.6rem 1rem !important;
  min-width: 40px !important;
  text-align: center;
  font-size: 1rem !important;
  font-weight: 500;
  text-decoration: none !important;
  display: inline-block;
  transition: all 0.2s;
}
nav.woocommerce-pagination ul li a:hover {
  background: #f0fdf4 !important;
  border-color: #00bfa6 !important;
  color: #00897b !important;
}
nav.woocommerce-pagination ul li span.current {
  background: #00bfa6 !important;
  border-color: #00bfa6 !important;
  color: #ffffff !important;
  font-weight: 700;
}

/* ==========================================================================
   FIX: Override WordPress global styles (Hostinger theme.json)
   Prevents content from being constrained to 700px
   ========================================================================== */
:root {
  --wp--style--global--content-size: 100% !important;
  --wp--style--global--wide-size: 100% !important;
  --wp--style--root--padding-right: 0px !important;
  --wp--style--root--padding-left: 0px !important;
  --wp--style--root--padding-top: 0px !important;
  --wp--style--root--padding-bottom: 0px !important;
}
body.home .wp-site-blocks,
body.page .wp-site-blocks,
body.single .wp-site-blocks,
body.archive .wp-site-blocks,
body .wp-site-blocks {
  padding: 0 !important;
  max-width: 100% !important;
}
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100% !important;
}
.has-global-padding {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* ==========================================================================
   FIX: My Account — Login / Register form alignment
   ========================================================================== */
.woocommerce-account .woocommerce {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}
/* Side-by-side login + register */
.woocommerce-account .u-columns,
.woocommerce-account #customer_login {
  display: flex !important;
  flex-wrap: wrap;
  gap: 3rem;
}
.woocommerce-account .u-columns .u-column1,
.woocommerce-account .u-columns .u-column2,
.woocommerce-account .u-columns .col-1,
.woocommerce-account .u-columns .col-2 {
  flex: 1;
  min-width: 300px;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}
/* Form row — the <p> that wraps label+input */
.woocommerce-account p.woocommerce-form-row,
.woocommerce-account p.form-row {
  display: block !important;
  float: none !important;
  width: 100% !important;
  text-align: left !important;
  margin-bottom: 1.2rem !important;
  padding: 0 !important;
}
/* Labels */
.woocommerce-account .woocommerce-form-row label,
.woocommerce-account .form-row label {
  display: block !important;
  float: none !important;
  width: 100% !important;
  text-align: left !important;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333 !important;
}
/* Inputs */
.woocommerce-account .woocommerce-form-row input[type="text"],
.woocommerce-account .woocommerce-form-row input[type="email"],
.woocommerce-account .woocommerce-form-row input[type="password"],
.woocommerce-account .form-row input.input-text,
.woocommerce-account .woocommerce-Input {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 10px 14px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  box-sizing: border-box !important;
  text-align: left !important;
  margin: 0 !important;
  transition: border-color 0.2s;
}
.woocommerce-account .woocommerce-Input:focus {
  border-color: #00bfa6 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0,191,166,0.1) !important;
}
/* Buttons */
.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register__submit,
.woocommerce-account .woocommerce-button,
.woocommerce-account button[name="login"],
.woocommerce-account button[name="register"] {
  background: #00bfa6 !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 32px !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
  float: none !important;
}
.woocommerce-account button[name="login"]:hover,
.woocommerce-account button[name="register"]:hover {
  background: #00a693 !important;
}
/* Remember me checkbox */
.woocommerce-account .woocommerce-form-login__rememberme {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
}
@media (max-width: 768px) {
  .woocommerce-account .u-columns,
  .woocommerce-account #customer_login {
    flex-direction: column;
  }
}

