/*
Theme Name: Forto Research
Theme URI: https://fortoresearch.com
Author: Forto Research
Author URI: https://fortoresearch.com
Description: Premium dark-themed WordPress theme for Forto Research — USA Based Research Peptides. WooCommerce compatible with custom product display, COA pages, and compliance-first design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: forto-theme
Tags: e-commerce, woocommerce, dark, custom-logo, custom-menu
WooCommerce: 8.0
*/

/* ===== CSS VARIABLES (DESIGN TOKENS) — 2026 DARK 3D ===== */
:root {
  --background: 240 33% 3%;            /* #080810 near-black with blue tint */
  --foreground: 0 0% 95%;              /* #F2F2F2 white text */
  --card: 240 20% 6%;                  /* #0f0f18 dark card */
  --card-foreground: 0 0% 95%;
  --popover: 240 20% 8%;               /* #121220 popover bg */
  --popover-foreground: 0 0% 95%;
  --primary: 224 76% 53%;              /* #2563EB electric blue */
  --primary-foreground: 0 0% 100%;
  --secondary: 224 76% 53%;            /* electric blue */
  --secondary-foreground: 0 0% 100%;
  --muted: 240 15% 10%;               /* #16161f dark gray */
  --muted-foreground: 0 0% 55%;       /* #8C8C8C mid-gray */
  --accent: 224 76% 53%;              /* electric blue */
  --accent-foreground: 0 0% 100%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 100%;
  --border: 240 10% 15%;              /* #212130 subtle border */
  --input: 240 10% 15%;
  --ring: 224 76% 53%;                /* blue focus ring */
  --surface: 240 20% 5%;              /* #0c0c16 footer/dark sections */
  --surface-foreground: 0 0% 90%;
  --success: 152 52% 37%;             /* green — keep for stock indicators */
  --success-foreground: 0 0% 100%;
  --gold: 45 93% 47%;                 /* #FACC15 yellow — keep for stars */
  --gold-foreground: 0 0% 10%;
  --blush: 240 20% 8%;
  --ink-blue: 224 76% 53%;
  --badge-bg: 240 15% 12%;
  --badge-fg: 0 0% 90%;
  --radius: 0px;                       /* sharp corners — KillTec style */

  /* Category badge colors — pop well on dark */
  --color-metabolic: #D97706;
  --color-recovery: #2D8F4E;
  --color-hormonal: #D4594E;
  --color-longevity: #3B6DB5;
  --color-support: #7B5EA7;
  --color-cognitive: #3B6DB5;
  --color-anxiolytic: #7B5EA7;

  /* Glow tokens */
  --glow-blue: 224 76% 53%;
  --glow-cyan: 190 100% 50%;

  /* Font stacks */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none;
  -webkit-filter: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Ensure product images always render at full color/quality */
.product-image-main img,
.product-card-image img,
.hero-vial-main img,
.hero-vial-small img,
.pdp-image img,
.pdp-carousel-img img,
.woocommerce-product-gallery img,
.attachment-woocommerce_single,
.attachment-shop_catalog {
  filter: drop-shadow(0 0 0 transparent);
  -webkit-filter: none;
  opacity: 1 !important;
  mix-blend-mode: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== TYPOGRAPHY ===== */
.font-accent {
  font-family: var(--font-display);
}

.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: hsl(var(--foreground));
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p, li, span, label, td, th {
  color: inherit;
}

.entry-content {
  color: hsl(var(--muted-foreground));
  line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: hsl(var(--foreground));
}

.entry-content p,
.entry-content li,
.entry-content blockquote {
  color: hsl(var(--muted-foreground));
}

.entry-content a {
  color: hsl(var(--primary));
}

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

/* ===== LAYOUT ===== */
.container-page {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section-surface {
  background-color: hsl(var(--surface));
  color: hsl(var(--surface-foreground));
}

/* ===== MARQUEE TICKER — KillTec style ===== */
.forto-marquee {
  background: hsl(var(--primary));
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 51;
  height: 32px;
  display: flex;
  align-items: center;
}

.forto-marquee__track {
  display: inline-flex;
  gap: 2rem;
  animation: marquee-scroll 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: white;
  will-change: transform;
}

.forto-marquee__dot {
  opacity: 0.4;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== GLOW CARD — 3D hover with perspective ===== */
.glow-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  will-change: transform;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, hsl(var(--glow-blue) / 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.glow-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px hsl(var(--glow-blue) / 0.15),
    0 0 40px hsl(var(--glow-blue) / 0.08);
}

.glow-card:hover::before {
  opacity: 1;
}

.glow-card > * {
  position: relative;
  z-index: 1;
}

/* ===== HERO ANIMATED BACKGROUND ===== */
.forto-hero-bg {
  position: relative;
  overflow: hidden;
  background: hsl(var(--background));
}

.forto-hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 30% 20%, hsl(var(--glow-blue) / 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, hsl(var(--glow-blue) / 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, hsl(var(--glow-cyan) / 0.04) 0%, transparent 40%);
  animation: hero-gradient-drift 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes hero-gradient-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, 2%) scale(1.05); }
  100% { transform: translate(2%, -1%) scale(1); }
}

.forto-hero-bg > * {
  position: relative;
  z-index: 1;
}

/* ===== SECTION LABEL — monospace uppercase ===== */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

/* ===== GLOW TEXT ===== */
.glow-text {
  text-shadow:
    0 0 40px hsl(var(--glow-blue) / 0.3),
    0 0 100px hsl(var(--glow-blue) / 0.15);
}

/* ===== GLOW LINE DIVIDER ===== */
.glow-line {
  border: none;
  height: 1px;
  background: hsl(var(--primary) / 0.3);
  box-shadow: 0 0 20px hsl(var(--primary) / 0.15), 0 0 60px hsl(var(--primary) / 0.05);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.5;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}
.btn-primary:hover {
  opacity: 0.95;
  box-shadow: 0 0 25px hsl(var(--primary) / 0.4), 0 0 60px hsl(var(--primary) / 0.15);
}

.btn-outline {
  background-color: transparent;
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.4);
}
.btn-outline:hover {
  background-color: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary));
  box-shadow: 0 0 20px hsl(var(--primary) / 0.2);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-accent {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
}

/* ===== CARDS ===== */
.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-body {
  padding: 1.25rem;
  color: hsl(var(--card-foreground));
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  background-color: hsl(var(--badge-bg));
  color: hsl(var(--badge-fg));
}

.badge-success {
  background-color: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
}

/* Badge - matches React: px-2.5 py-[3px] rounded text-[9px] font-bold uppercase tracking-[1.2px] */
.badge-category {
  padding: 3px 0.625rem;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-family: 'Inter', system-ui, sans-serif;
  border-radius: 0.25rem;
  color: white;
  line-height: 1.4;
}

.badge-metabolic { background-color: var(--color-metabolic); }
.badge-recovery { background-color: var(--color-recovery); }
.badge-hormonal { background-color: var(--color-hormonal); }
.badge-longevity { background-color: var(--color-longevity); }
.badge-cognitive { background-color: var(--color-cognitive); }
.badge-support { background-color: var(--color-support); }

/* ===== NAVIGATION ===== */
.site-header {
  position: sticky;
  top: 32px; /* below marquee */
  z-index: 50;
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

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

.nav-logo img {
  height: 2rem;
  width: auto;
}

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

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: hsl(var(--foreground));
}

.nav-links .active a {
  font-weight: 600;
}

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

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: hsl(var(--popover));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.nav-dropdown-menu a:hover {
  background-color: hsl(var(--muted));
}

/* Mobile menu */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--foreground));
}

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

.mobile-menu {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #080810 !important;
  background: hsl(240 33% 3%) !important;
  z-index: 99999 !important;
  padding: calc(32px + 4rem + 1rem) 1.5rem 1.5rem 1.5rem !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box !important;
}

.mobile-menu.active {
  display: block !important;
}

body.mobile-menu-open {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none;
}

html.mobile-menu-open {
  overflow: hidden !important;
}

.mobile-menu a {
  display: block !important;
  padding: 0.75rem 0 !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: hsl(var(--foreground)) !important;
  color: #F2F2F2 !important;
  border-bottom: 1px solid hsl(var(--border)) !important;
}

/* Cart icon */
.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.625rem;
  font-weight: 700;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 4rem 0;
  background-color: hsl(var(--background));
}

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

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

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

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.hero-subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 28rem;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

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

.hero-image img {
  max-width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

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

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

/* ===== PRODUCT CARD — matches FeaturedProducts.tsx ===== */
.forto-card-wrap {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.forto-card-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Old .forto-card__* classes removed — cards now use Tailwind utility classes directly */

/* Legacy star-rating (kept for other pages) */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}

.star-rating svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: #FACC15;
  color: #FACC15;
}

.star-rating .review-count {
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  margin-left: 0.25rem;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* .product-image-main — base styles defined in the PDP section below */

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.variation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variation-btn {
  padding: 0.5rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.variation-btn.active,
.variation-btn:hover {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}

.quantity-selector button {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-selector span {
  width: 2.5rem;
  text-align: center;
  font-weight: 600;
}

/* ===== FEATURED GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.feature-card {
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  text-align: center;
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
}

.feature-card h4,
.feature-card p {
  color: inherit;
}

.feature-card .text-muted {
  color: hsl(var(--muted-foreground));
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsl(var(--muted));
}

/* ===== VIAL INFOGRAPHIC ===== */
.vial-infographic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .vial-infographic {
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
  }
}

.vial-callout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vial-callout-card {
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  position: relative;
}

.vial-callout-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 700;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.vial-center {
  display: none;
}

@media (min-width: 768px) {
  .vial-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }
}

.vial-center-img {
  max-height: 420px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px hsl(var(--primary) / 0.2));
}

/* ===== GUARANTEE / WHY CHOOSE SECTION ===== */
.guarantee-section {
  padding: 4rem 0;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

/* ===== QUALITY STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--secondary));
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 2.5rem;
  }
}

.stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
}

.testimonial-quote {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ===== ACCORDION / FAQ ===== */
.accordion-item {
  border-bottom: 1px solid hsl(var(--border));
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  color: hsl(var(--foreground));
}

.accordion-trigger svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.accordion-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.accordion-content.open {
  max-height: 500px;
}

.accordion-body {
  padding-bottom: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: hsl(var(--surface));
  color: hsl(var(--surface-foreground));
}

.footer-newsletter {
  padding: 2rem 0;
  border-bottom: 1px solid hsl(var(--surface-foreground) / 0.1);
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 28rem;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--surface-foreground) / 0.2);
  background: transparent;
  color: hsl(var(--surface-foreground));
  font-size: 0.875rem;
}

.footer-newsletter-form input::placeholder {
  color: hsl(var(--surface-foreground) / 0.5);
}

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

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

.footer-column h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--surface-foreground));
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  font-size: 0.875rem;
  color: hsl(var(--surface-foreground) / 0.7);
  transition: color 0.2s;
}

.footer-column a:hover {
  color: hsl(var(--surface-foreground));
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid hsl(var(--surface-foreground) / 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

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

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

.footer-bottom-links a {
  font-size: 0.75rem;
  color: hsl(var(--surface-foreground) / 0.5);
}

.footer-bottom-links a:hover {
  color: hsl(var(--surface-foreground));
}

.footer-copyright {
  font-size: 0.75rem;
  color: hsl(var(--surface-foreground) / 0.5);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: hsl(var(--foreground));
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.1);
}

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

.form-select option {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: hsl(var(--primary));
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: hsl(var(--foreground));
}

.breadcrumb span.separator {
  color: hsl(var(--border));
}

/* WooCommerce sort dropdown override */
.woocommerce-ordering select {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.5rem 0.875rem;
  background: hsl(var(--card));
  outline: none;
  transition: border-color 0.2s;
}

.woocommerce-ordering select:focus {
  border-color: hsl(var(--primary));
}

/* Legacy filter bar (kept for backwards compat) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.375rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

/* ===== CART PAGE ===== */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

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

.cart-item-image {
  width: 5rem;
  height: 5rem;
  background: hsl(var(--card));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-image img {
  max-height: 100%;
  object-fit: contain;
}

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

.cart-item-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.cart-item-variation {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.cart-item-price {
  font-weight: 600;
  white-space: nowrap;
}

.cart-summary {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
}

.cart-summary-total {
  font-weight: 700;
  font-size: 1.125rem;
  border-top: 2px solid hsl(var(--border));
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* ===== DISCLAIMER MODAL ===== */
.disclaimer-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.disclaimer-modal-overlay.active {
  display: flex;
}

.disclaimer-modal {
  background: hsl(var(--background));
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.disclaimer-modal h2 {
  margin-bottom: 1rem;
}

.disclaimer-modal p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.disclaimer-modal-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* ===== PROMO POPUP ===== */
.promo-popup {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 320px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.promo-popup.active {
  display: block;
}

.promo-popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  font-size: 1.25rem;
}

/* ===== COA PAGE ===== */
.coa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.coa-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s;
}

.coa-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* ===== NASAL SPRAY HERO ===== */
.nasal-hero {
  background: linear-gradient(135deg, hsl(var(--surface)), hsl(210 29% 12%));
  color: hsl(var(--surface-foreground));
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .nasal-hero {
    padding: 6rem 0;
  }
}

/* ===== POLICY PAGES ===== */
.policy-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.policy-page h1 {
  margin-bottom: 2rem;
}

.policy-page h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.policy-page p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  line-height: 1.7;
}

.policy-page ul {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  line-height: 1.7;
}

/* ===== PARTNER PROGRAM ===== */
.partner-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

/* ===== CHECKOUT PAGES (Zelle/CashApp) ===== */
.checkout-alt {
  max-width: 36rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.checkout-alt-qr {
  max-width: 200px;
  margin: 1.5rem auto;
  border-radius: var(--radius);
}

/* ===== CHECKOUT SUCCESS ===== */
.success-page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  color: hsl(var(--success));
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-muted { color: hsl(var(--muted-foreground)); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }

.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }

.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid hsl(var(--border)); }
.shadow-lg { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); }

.bg-white { background-color: hsl(var(--card)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-surface { background-color: hsl(var(--surface)); }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

/* ===== ANIMATIONS ===== */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-slow {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-slow {
  animation: fade-in-slow 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Section fade-in on scroll */
.section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce .products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

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

.woocommerce .product {
  margin: 0 !important;
}

.woocommerce .price {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.woocommerce .price del {
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border-radius: var(--radius) !important;
  font-weight: 500 !important;
  padding: 0.625rem 1.5rem !important;
  border: none !important;
  transition: opacity 0.2s !important;
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  opacity: 0.9 !important;
  background-color: hsl(var(--primary)) !important;
}

.woocommerce .button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background-color: hsl(var(--secondary)) !important;
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: hsl(var(--secondary)) !important;
}

.woocommerce-error {
  border-top-color: hsl(var(--destructive)) !important;
}

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* ===== PRINT ===== */
/* ===== WooCommerce My Account — Dark Theme ===== */
.woocommerce-account .woocommerce {
  max-width: 48rem;
  margin: 0 auto;
}

/* Login / Register forms */
.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: 2rem;
  margin-bottom: 2rem;
}

.woocommerce form .form-row label {
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  width: 100%;
  transition: border-color 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.woocommerce form .form-row .button,
.woocommerce .woocommerce-Button {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  padding: 0.625rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.woocommerce form .form-row .button:hover,
.woocommerce .woocommerce-Button:hover {
  box-shadow: 0 0 20px hsl(var(--primary) / 0.4);
}

/* My Account navigation */
.woocommerce-MyAccount-navigation {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.625rem 1.5rem;
  color: hsl(var(--foreground) / 0.6);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-MyAccount-navigation ul li.is-active a {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.05);
}

/* My Account content area */
.woocommerce-MyAccount-content {
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
}

.woocommerce-MyAccount-content p {
  color: hsl(var(--foreground) / 0.7);
}

.woocommerce-MyAccount-content a {
  color: hsl(var(--primary));
}

/* Order history table */
.woocommerce-orders-table,
.woocommerce table.shop_table {
  border: 1px solid hsl(var(--border));
  border-collapse: collapse;
  width: 100%;
}

.woocommerce table.shop_table th {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

.woocommerce table.shop_table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--foreground) / 0.8);
  font-size: 0.875rem;
}

/* Password visibility toggle */
.woocommerce .show-password-input {
  color: hsl(var(--foreground) / 0.5);
}

/* Remember me checkbox */
.woocommerce form .form-row input[type="checkbox"] {
  accent-color: hsl(var(--primary));
}

/* Lost password link */
.woocommerce .woocommerce-LostPassword a {
  color: hsl(var(--primary));
  font-size: 0.8125rem;
}

/* Messages / notices */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--primary));
  color: hsl(var(--foreground));
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-error {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--destructive));
  color: hsl(var(--foreground));
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-error li,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
  list-style: none;
}

/* ===== HERO SPLIT LAYOUT ===== */
.hero-split {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-split {
    flex-direction: row;
    gap: 3rem;
    align-items: center;
  }
  .hero-text {
    flex: 1 1 55%;
  }
  .hero-vials {
    flex: 1 1 45%;
  }
}

.hero-text {
  max-width: 34rem;
}

.hero-vials {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.hero-vial-main {
  position: relative;
}

.hero-vial-main img {
  max-height: 340px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px hsl(var(--primary) / 0.25));
  animation: vial-float 6s ease-in-out infinite;
}

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

.hero-vial-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-vial-small {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: 0.5rem;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-vial-small:hover {
  border-color: hsl(var(--primary) / 0.4);
  box-shadow: 0 0 20px hsl(var(--primary) / 0.15);
}

.hero-vial-small img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

.hero-vial-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: hsl(var(--foreground) / 0.5);
  margin-bottom: 0.25rem;
}

@media (max-width: 767px) {
  .hero-vial-main img {
    max-height: 220px;
  }
  .hero-vial-small img {
    max-height: 70px;
  }
}

/* ===== PRODUCT DETAIL PAGE — ruo.bio-inspired layout ===== */

/* Top section: 3-column on desktop */
.pdp-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .pdp-top {
    grid-template-columns: 1fr 1fr auto;
    gap: 2.5rem;
    align-items: start;
  }
}

/* Image column */
.pdp-image {
  position: relative;
}

/* Info column */
.pdp-info {
  position: relative;
}

.pdp-info-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Stock indicator */
.pdp-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.625rem;
  border: 1px solid;
  border-radius: 9999px;
}

.pdp-stock--in {
  color: hsl(var(--success));
  border-color: hsl(var(--success) / 0.3);
  background: hsl(var(--success) / 0.08);
}

.pdp-stock--out {
  color: hsl(var(--destructive));
  border-color: hsl(var(--destructive) / 0.3);
  background: hsl(var(--destructive) / 0.08);
}

.pdp-stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Research disclaimer banner */
.pdp-disclaimer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  margin-top: 0.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-left: 3px solid hsl(var(--destructive));
}

.pdp-disclaimer-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.pdp-disclaimer p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.7);
}

/* PASSED badges — floating right column */
.pdp-passed {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .pdp-passed {
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 6rem;
  }
}

.pdp-passed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  min-width: 120px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pdp-passed-card:hover {
  border-color: hsl(var(--success) / 0.4);
  box-shadow: 0 0 20px hsl(var(--success) / 0.1);
}

.pdp-passed-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--foreground));
  margin-top: 0.5rem;
}

.pdp-passed-desc {
  display: block;
  font-size: 0.6875rem;
  color: hsl(var(--foreground) / 0.5);
  margin-top: 0.125rem;
  line-height: 1.3;
}

/* ===== Description / Properties Section ===== */
.pdp-description-section {
  padding: 3rem 0;
  border-top: 1px solid hsl(var(--border));
}

.pdp-desc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pdp-desc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.pdp-properties-card,
.pdp-content-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: 1.5rem;
}

/* 2D Structure display box */
.pdp-structure-box {
  background: hsl(0 0% 96%);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border: 1px solid hsl(var(--border));
}

.pdp-structure-placeholder {
  flex-direction: column;
  text-align: center;
}

.pdp-structure-placeholder p {
  font-size: 0.8125rem;
  color: hsl(var(--foreground) / 0.3);
}

/* ── 2D structure: error state (PubChem returned nothing) ── */
.pdp-structure-box.pdp-structure-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.pdp-structure-box.pdp-structure-error::after {
  content: '2D Structure not available.';
  font-size: 0.8125rem;
  color: hsl(var(--foreground) / 0.3);
}

/* ── 2D structure source attribution ── */
.pdp-structure-source {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin-top: 0.5rem;
}
.pdp-structure-source a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

/* ── PDP image: ensure vial photos fill the square nicely ── */
.product-image-main {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
}
.product-image-main img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-image-main:hover img {
  transform: scale(1.03);
}

/* ── PDP gallery thumbnails ── */
.pdp-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.pdp-thumb {
  width: 72px;
  height: 72px;
  padding: 0.375rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.pdp-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pdp-thumb:hover {
  border-color: hsl(var(--primary) / 0.5);
}

.pdp-thumb.is-active {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary));
}

/* About section spacing */
.pdp-about-section {
  padding-bottom: 3rem;
}

/* Properties table */
.pdp-properties-table {
  width: 100%;
  border-collapse: collapse;
}

.pdp-properties-table tr {
  border-bottom: 1px solid hsl(var(--border));
}

.pdp-properties-table tr:last-child {
  border-bottom: none;
}

.pdp-properties-table td {
  padding: 0.625rem 0;
  font-size: 0.8125rem;
  vertical-align: top;
}

.pdp-prop-key {
  color: hsl(var(--foreground) / 0.5);
  font-weight: 500;
  width: 35%;
  padding-right: 1rem;
}

.pdp-prop-val {
  color: hsl(var(--foreground));
}

/* ===== Related Products Carousel ===== */
.pdp-related {
  padding: 3rem 0 0;
  border-top: 1px solid hsl(var(--border));
}

.pdp-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdp-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0;
  flex: 1;
}

.pdp-carousel::-webkit-scrollbar {
  display: none;
}

.pdp-carousel-btn {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.pdp-carousel-btn:hover {
  background: hsl(var(--muted));
  border-color: hsl(var(--primary) / 0.4);
  color: hsl(var(--primary));
}

.pdp-carousel-card {
  flex: 0 0 calc(25% - 0.75rem);
  min-width: 180px;
  scroll-snap-align: start;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pdp-carousel-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: 0 0 20px hsl(var(--primary) / 0.1);
}

.pdp-carousel-img {
  position: relative;
  aspect-ratio: 1;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.pdp-carousel-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.pdp-carousel-oos {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: hsl(var(--foreground) / 0.7);
  color: hsl(var(--background));
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.375rem 0;
}

.pdp-carousel-sale {
  position: absolute;
  top: 2rem;
  right: 0.5rem;
  background: hsl(var(--destructive));
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
}

.pdp-carousel-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pdp-carousel-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.pdp-carousel-price {
  font-size: 0.8125rem;
  color: hsl(var(--foreground) / 0.7);
}

.pdp-carousel-readmore {
  display: block;
  text-align: center;
  padding: 0.5rem;
  margin: 0 0.75rem 0.75rem;
  border: 1px solid hsl(var(--border));
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: all 0.2s ease;
}

.pdp-carousel-card:hover .pdp-carousel-readmore {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

@media (max-width: 767px) {
  .pdp-carousel-card {
    flex: 0 0 calc(50% - 0.5rem);
    min-width: 150px;
  }
  .pdp-carousel-btn {
    display: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .mobile-menu,
  .disclaimer-modal-overlay,
  .promo-popup {
    display: none !important;
  }
}
