/* ============================================================
   STACKED PEPTIDES — Dark Theme Stylesheet
   Modern · Premium · Dark Laboratory Aesthetic
   Brand Colors: Navy · Teal · Cyan
   ============================================================ */

/* ----- Google Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ----- CSS Custom Properties ----- */
:root {
  /* Brand Palette */
  --brand-navy: #0a1628;
  --brand-navy-light: #0f1f3a;
  --brand-teal: #0d9488;
  --brand-cyan: #06b6d4;
  --brand-cyan-light: #38bdf8;
  --brand-cyan-dim: #0891b2;
  --brand-blue: #2563eb;

  /* Dark Backgrounds */
  --bg-primary: #070b14;
  --bg-secondary: #0a0f1e;
  --bg-tertiary: #0f1729;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --bg-elevated: #1a2335;
  --bg-glass: rgba(17, 24, 39, 0.8);
  --bg-glass-light: rgba(26, 35, 53, 0.6);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  /* Borders */
  --border-subtle: rgba(148, 163, 184, 0.1);
  --border-default: rgba(148, 163, 184, 0.15);
  --border-strong: rgba(148, 163, 184, 0.25);

  /* Accent */
  --accent: var(--brand-cyan);
  --accent-hover: #22d3ee;
  --accent-glow: rgba(6, 182, 212, 0.25);
  --accent-glow-strong: rgba(6, 182, 212, 0.4);
  --teal: var(--brand-teal);
  --teal-glow: rgba(13, 148, 136, 0.2);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--brand-cyan), var(--brand-teal));
  --gradient-hero: linear-gradient(180deg, #0a1628 0%, #070b14 100%);
  --gradient-card: linear-gradient(180deg, rgba(6, 182, 212, 0.05), transparent);
  --gradient-glow: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.15), transparent 70%);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width: 1280px;
  --border-radius-sm: 0.375rem;
  --border-radius: 0.625rem;
  --border-radius-lg: 0.875rem;
  --border-radius-xl: 1.25rem;
  --border-radius-2xl: 1.5rem;
  --border-radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px var(--accent-glow);
  --shadow-glow-lg: 0 0 40px var(--accent-glow);

  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.625;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.375rem, 3vw, 2rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-cyan);
  background: var(--teal-glow);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--border-radius-full);
  margin-bottom: var(--space-4);
}

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }
}

/* ----- Glass Card Base ----- */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  border: none;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
  color: var(--text-inverse);
}

.btn-outline {
  background: transparent;
  color: var(--brand-cyan);
  border-color: rgba(6, 182, 212, 0.3);
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.5);
  color: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* ----- Header / Navigation ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

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

.logo-icon-img {
  height: 32px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass-light);
}

.nav-link.active {
  color: var(--brand-cyan);
  background: rgba(6, 182, 212, 0.1);
}

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

.cart-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cart-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-inverse);
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-btn span + span { margin-top: 5px; }
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 100px var(--space-6) var(--space-8);
    background: rgba(7, 11, 20, 0.98);
    gap: var(--space-1);
    z-index: 2000;
    overflow-y: auto;
  }
  .nav-list.open { display: flex; }
  .mobile-menu-brand {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    width: 100%;
    text-align: center;
    padding-top: 0;
  }
  .nav-link {
    padding: 0.875rem 1.5rem;
    font-size: 1.125rem;
    text-align: center;
    width: 100%;
    max-width: 300px;
    border-radius: var(--border-radius);
  }
  .nav-link:hover { background: var(--bg-glass-light); }
  .mobile-menu-btn { display: flex; z-index: 2001; position: relative; }
  .mobile-menu-btn.open { position: fixed; top: 20px; right: var(--space-4); }
}

/* ----- Hero Section ----- */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(6, 182, 212, 0.08), transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(13, 148, 136, 0.05), transparent 50%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.875rem;
  background: rgba(6, 182, 212, 0.1);
  color: var(--brand-cyan);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--border-radius-full);
  margin-bottom: var(--space-6);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-cyan);
}

.hero h1 {
  margin-bottom: var(--space-6);
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-12);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* Hero Graphic */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: pulse-ring 4s ease-in-out infinite;
}

.hero-graphic-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  border-color: rgba(6, 182, 212, 0.1);
  animation-delay: 0s;
}

.hero-graphic-ring:nth-child(2) {
  width: 75%;
  height: 75%;
  border-color: rgba(6, 182, 212, 0.15);
  animation-delay: 1s;
}

.hero-graphic-ring:nth-child(3) {
  width: 50%;
  height: 50%;
  border-color: rgba(13, 148, 136, 0.2);
  animation-delay: 2s;
}

.hero-graphic-center {
  width: 120px;
  height: 120px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 0 60px var(--accent-glow);
  position: relative;
  z-index: 1;
}

.hero-graphic-center img {
  width: 64px;
  height: 64px;
  filter: brightness(0) invert(1);
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.6; }
}

@media (max-width: 768px) {
  .hero { padding: 100px 0 60px; }
  .hero-layout { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: var(--space-6); flex-wrap: wrap; }
  .hero-visual { order: -1; }
  .hero-graphic { max-width: 240px; }
  .hero-graphic-center { width: 80px; height: 80px; }
  .hero-graphic-center img { width: 40px; height: 40px; }
}

/* ----- Sections ----- */
.section {
  padding: var(--space-20) 0;
  position: relative;
}

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

.section-dark-alt {
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary), var(--bg-primary));
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

/* ----- Features Grid ----- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.feature-card {
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: rgba(6, 182, 212, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

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

/* ----- Products Grid ----- */
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.products-filter {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}

.filter-btn:hover {
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--brand-cyan);
  background: rgba(6, 182, 212, 0.05);
}

.filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--text-inverse);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-cyan-dim);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.08);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-link:hover .product-card-title {
  color: var(--brand-cyan);
}

.product-card-image {
  aspect-ratio: 1;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--border-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.badge-popular { background: rgba(6, 182, 212, 0.2); color: var(--brand-cyan); }
.badge-new { background: rgba(13, 148, 136, 0.2); color: var(--brand-teal); }

.product-card-body {
  padding: var(--space-5);
}

.product-card-category {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-cyan);
  margin-bottom: var(--space-1);
}

.product-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-cyan);
}

.product-card-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } }

/* ----- Product Detail ----- */
.product-detail {
  padding: 120px 0 var(--space-20);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery-main {
  aspect-ratio: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery-thumbs {
  display: flex;
  gap: var(--space-3);
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.gallery-thumb:hover,
.gallery-thumb.active {
  border-color: var(--brand-cyan);
}

.product-info h1 {
  margin-bottom: var(--space-4);
}

.product-info-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-cyan);
  margin-bottom: var(--space-6);
}

.product-info-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.product-info-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.meta-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.stock-in-stock {
  color: var(--brand-teal);
}

.stock-out-of-stock {
  color: #ef4444;
}

/* ----- Product Tabs ----- */
.product-tabs .tab-btn { transition: all var(--transition-fast); }
.product-tabs .tab-btn:hover { color: var(--text-primary); }
#tab-reviews .commentlist { list-style: none; padding: 0; }
#tab-reviews .comment { margin-bottom: var(--space-6); padding: var(--space-4); background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--border-radius-lg); }
#tab-reviews .comment-text .meta { color: var(--text-muted); font-size: 0.8125rem; }
#tab-reviews .star-rating { color: #fbbf24; }

/* ----- Add to Cart on product detail ----- */
.product-add-to-cart .cart { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.product-add-to-cart .quantity input { width: 72px; padding: var(--space-2) var(--space-3); background: var(--bg-tertiary); border: 1px solid var(--border-subtle); border-radius: var(--border-radius); color: var(--text-primary); font-size: 1rem; text-align: center; }
.product-add-to-cart .single_add_to_cart_button { padding: var(--space-3) var(--space-8); background: var(--brand-cyan); color: #fff; border: none; border-radius: var(--border-radius); font-weight: 600; cursor: pointer; transition: all var(--transition-fast); font-size: 1rem; }
.product-add-to-cart .single_add_to_cart_button:hover { background: var(--brand-cyan-light); transform: translateY(-1px); }


.product-qty {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--bg-card);
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover { background: var(--bg-elevated); color: var(--text-primary); }

.qty-input {
  width: 48px;
  height: 40px;
  border: none;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: transparent;
}

.qty-input:focus { outline: none; }

.product-info-tabs {
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.tab-headers {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.tab-header {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  background: none;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.tab-header:hover { color: var(--text-secondary); }

.tab-header.active {
  color: var(--brand-cyan);
  border-bottom-color: var(--brand-cyan);
}

.tab-content {
  padding: var(--space-6);
  display: none;
}

.tab-content.active { display: block; }
.tab-content p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; }
.tab-content ul { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; list-style: disc; padding-left: 1.25rem; margin-top: 0.75rem; }

@media (max-width: 768px) {
  .product-detail-layout { grid-template-columns: 1fr; gap: var(--space-8); }
  .product-gallery { position: static; }
  .product-info-meta { grid-template-columns: 1fr; }
}

/* ----- Cart Sidebar ----- */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-subtle);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open { transform: translateX(0); }

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

.cart-header h3 { font-size: 1.25rem; }

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

.cart-close:hover { background: var(--bg-elevated); color: var(--text-primary); }

.cart-items { flex: 1; overflow-y: auto; padding: var(--space-4); }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: var(--space-8);
}

.cart-empty-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
}

.cart-empty p { color: var(--text-muted); font-size: 0.9375rem; }

.cart-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-3);
}

.cart-item-image {
  width: 72px;
  height: 72px;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details { flex: 1; min-width: 0; }

.cart-item-title { font-size: 0.875rem; font-weight: 600; margin-bottom: var(--space-1); }
.cart-item-price { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: var(--space-2); }

.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }

.cart-item-qty { display: flex; align-items: center; border: 1px solid var(--border-subtle); border-radius: var(--border-radius-sm); overflow: hidden; }
.cart-item-qty button { width: 28px; height: 28px; background: transparent; border: none; cursor: pointer; font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.cart-item-qty span { width: 32px; text-align: center; font-size: 0.8125rem; font-weight: 500; }

.cart-item-remove { font-size: 0.75rem; color: var(--text-muted); background: none; border: none; cursor: pointer; padding: var(--space-1); transition: color var(--transition-fast); }
.cart-item-remove:hover { color: #ef4444; }

/* Cart item quantity controls */
.cart-item-actions { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.cart-qty-minus,
.cart-qty-plus {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  line-height: 1;
}
.cart-qty-minus:hover,
.cart-qty-plus:hover { background: var(--bg-card-hover); border-color: var(--brand-cyan); }
.cart-qty-value { font-size: 0.9375rem; font-weight: 600; min-width: 24px; text-align: center; color: var(--text-primary); }

.cart-footer { padding: var(--space-6); border-top: 1px solid var(--border-subtle); }
.cart-totals { margin-bottom: var(--space-4); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2) 0; font-size: 0.875rem; color: var(--text-secondary); }
.cart-total-row.total { font-size: 1.0625rem; font-weight: 700; color: var(--text-primary); padding-top: var(--space-3); margin-top: var(--space-2); border-top: 1px solid var(--border-subtle); }

/* ----- FAQ ----- */
.faq-search { position: relative; max-width: 480px; margin: 0 auto var(--space-10); }

.faq-search input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.faq-search input:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.faq-search input::placeholder { color: var(--text-muted); }

.faq-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.faq-categories {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover { border-color: rgba(6, 182, 212, 0.2); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.faq-question:hover { background: var(--bg-glass-light); }

.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--transition); stroke: var(--text-muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: all var(--transition); }
.faq-item.open .faq-answer { padding: 0 1.5rem 1.125rem; max-height: 500px; }
.faq-answer p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* ----- Contact ----- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info-list { display: flex; flex-direction: column; gap: var(--space-6); }

.contact-info-item { display: flex; gap: var(--space-4); align-items: flex-start; }

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.contact-info-text h4 { font-size: 0.9375rem; margin-bottom: var(--space-1); }
.contact-info-text p { font-size: 0.8125rem; color: var(--text-muted); margin: 0; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-xl);
  padding: var(--space-8);
}

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

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-input::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: var(--space-8); }
  .form-row { grid-template-columns: 1fr; }
}

/* ----- Page Header ----- */
.page-header {
  padding: 120px 0 var(--space-12);
  text-align: center;
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06), transparent 70%);
  pointer-events: none;
}

.page-header h1 { margin-bottom: var(--space-3); position: relative; z-index: 1; }
.page-header p { color: var(--text-secondary); font-size: 1.0625rem; max-width: 560px; margin: 0 auto; position: relative; z-index: 1; }

/* ----- Breadcrumbs ----- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--brand-cyan); }

/* ----- Footer ----- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: var(--space-4);
}

.footer-brand .logo { margin-bottom: var(--space-2); }
.footer-brand .logo img { height: 28px; }

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.footer-links li { margin-bottom: var(--space-2); }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--brand-cyan); }

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-social { display: flex; gap: var(--space-3); }

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--border-radius);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-social a:hover { background: rgba(6, 182, 212, 0.2); color: var(--brand-cyan); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; gap: var(--space-4); text-align: center; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ----- Toast ----- */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  animation: slideIn var(--transition) ease;
  min-width: 300px;
  max-width: 420px;
}

.toast.success { border-left: 3px solid var(--brand-cyan); }
.toast.error { border-left: 3px solid #ef4444; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ----- Utilities ----- */
@media (max-width: 768px) {
  .hidden-mobile { display: none !important; }
}

/* ----- Mobile Responsive (comprehensive) ----- */
@media (max-width: 768px) {
  body.menu-open { overflow: hidden; }
  body.cart-open { overflow: hidden; }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.125rem; }
  
  .site-main { padding-top: 72px; }
  
  .section { padding: var(--space-12) 0; }
  .section-header { margin-bottom: var(--space-8); }
  
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-stats { gap: var(--space-4); flex-wrap: wrap; justify-content: center; }
  .hero-layout { gap: var(--space-6); }
  
  /* Big logo scaling on mobile */
  .hero img[style*="max-width"],
  .hero img[alt="Stacked Peptides"] {
    max-width: 100% !important;
    height: auto !important;
  }

  .container { padding: 0 var(--space-4); }
  
  .page-header { padding: 100px 0 var(--space-8); }
  .page-header h1 { font-size: 1.75rem; }
  .page-header p { font-size: 0.9375rem; padding: 0 var(--space-4); }
  
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { padding: var(--space-6); }
  
  /* Subscribe / Newsletter */
  .subscribe-form { flex-direction: column; }
  .subscribe-form input { width: 100%; }
  .subscribe-form .btn { width: 100%; }
  
  /* Buttons - prevent cutoff */
  .btn-lg { padding: 0.875rem 1.5rem; }
  .hero-actions .btn, 
  .page-header .btn,
  .section .btn { white-space: normal; height: auto; min-height: 48px; }
  
  /* Prevent content from being hidden behind fixed header */
  #primary.site-main { padding-top: 72px; }
  main { padding-top: 72px; }
  
  /* Content area safety */
  .woocommerce-content,
  .entry-content,
  .page-content { padding: 0; }
  .contact-layout { gap: var(--space-6); }
}

/* Small phones */
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  
  .hero { padding: 80px 0 40px; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.9375rem; }
  .hero-stats { flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); }
  
  .section { padding: var(--space-10) 0; }
  
  .cart-sidebar { width: 100vw; }
  .cart-item { flex-direction: column; align-items: flex-start; }
  .cart-item-image { width: 100%; height: auto; aspect-ratio: 1; max-width: 120px; }
  
  .products-grid { grid-template-columns: 1fr; }
  .product-detail { padding: 90px 0 var(--space-10); }
  .product-info-meta { grid-template-columns: 1fr; }
  .product-info h1 { font-size: 1.375rem; }
  .product-info-price { font-size: 1.5rem; }
  .product-add-to-cart .cart { flex-direction: column; align-items: stretch; }
  .product-add-to-cart .quantity input { width: 100%; }
  .product-add-to-cart .single_add_to_cart_button { width: 100%; }
  
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; gap: var(--space-4); text-align: center; }
  
  .tabs-nav { flex-direction: column; }
  .tab-btn { width: 100%; text-align: left; }
}

/* ----- Checkout Page Fixes ----- */
.woocommerce-checkout .product-name .product-quantity { font-weight: 500; }
.woocommerce-checkout .product-name strong { font-weight: 600; }
.woocommerce-checkout .wc-proceed-to-checkout a { width: 100%; text-align: center; }
#order_review .product-name { white-space: normal; font-size: 0.9375rem; }

/* Hide any product description/excerpt in checkout */
.woocommerce-checkout-review-order .product-description,
.woocommerce-checkout-review-order .wc-block-components-product-metadata,
.woocommerce-checkout-review-order .wc-block-cart-item__description,
#order_review .product-description,
.checkout .product-description { display: none !important; }

/* Keep checkout product names clean */
.woocommerce-checkout .cart_item .product-name { font-size: 0.9375rem; font-weight: 500; }
.woocommerce-checkout .cart_item .product-name a { color: var(--text-primary); text-decoration: none; }

/* Aggressive: hide ALL description text in checkout order summary */
.woocommerce-checkout-review-order table.shop_table td.product-name > *:not(a):not(.product-quantity),
.woocommerce-checkout .product-name br,
.woocommerce-checkout .product-name strong,
.woocommerce-checkout #order_review .product-name > span,
.checkout .wc-block-components-product-metadata,
.wc-block-checkout__order-summary .wc-block-components-product-metadata { display: none !important; }

/* Block checkout specific: hide description below product name */
.wc-block-components-product-name + *,
.wc-block-cart-item__description,
.wc-block-checkout__order-summary .wc-block-components-product-details { display: none !important; }

/* Force product name to normal size in block checkout */
.wc-block-components-product-name { font-size: 0.9375rem !important; font-weight: 500 !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.text-center { text-align: center; }
.hidden { display: none; }

@media (max-width: 768px) {
  .hidden-mobile { display: none !important; }
}
