:root {
  /* Color Palette - Calm & Reassuring */
  --bg-primary: #ffffff;
  --bg-secondary: #fdfbf7; /* Soft beige / muted sand */
  --bg-tertiary: #f2f5f1; /* Very soft greenish gray */
  --accent-primary: #6c8a7b; /* Sage / muted blue-gray */
  --accent-hover: #5a7366;
  --text-primary: #2d3136; /* Elegant charcoal */
  --text-secondary: #5a6268;
  --text-light: #8c959d;
  --border-light: #e8ebed;
  --bg-dark: #1a1e23;
  --text-on-dark: #f8f9fa;
  --promo-bg: #f9f9f9;
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Spacing & Layout */
  --container-width: 1140px;
  --container-narrow: 800px;
  --section-padding-large: 6rem 1.5rem;
  --section-padding-medium: 4rem 1.5rem;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(108, 138, 123, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1rem;
}

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

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

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Classes */
.text-center { text-align: center; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-muted { color: var(--text-secondary); }
.text-small { font-size: 0.875rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-medium);
  text-decoration: none;
  font-family: var(--font-main);
  border: none;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: white;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* Top Bar Banner */
.top-bar {
  background-color: var(--promo-bg);
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  position: relative;
}

/* Disclaimers */
.medical-disclaimer {
  font-size: 0.8rem;
  color: var(--text-light);
  border: 1px solid var(--border-light);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-tertiary);
  margin-top: 2rem;
  text-align: center;
}

.disclaimer-badge {
  display: inline-block;
  background-color: #f1f3f5;
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Header/Nav */
header {
  padding: 1rem 0;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent-primary);
}

/* Sections */
.section {
  padding: var(--section-padding-medium);
}

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

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

.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--text-on-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Placeholder Image Styles */
.image-placeholder {
  background-color: var(--bg-tertiary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1rem;
  min-height: 400px;
  border: 2px dashed #d1d5db;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.image-placeholder::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% { left: 200%; }
}

/* Hero Section */
.hero {
  padding: 4rem 1.5rem 6rem;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

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

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.floating-product {
  animation: float 6s ease-in-out infinite;
}

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

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  opacity: 0.8;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.trust-badge-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  border: 1px solid var(--border-light);
  height: 100%;
}

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

.feature-icon {
  width: 50px;
  height: 50px;
  background-color: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

/* Context/Intro Section */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.context-list {
  list-style: none;
  margin-top: 1.5rem;
}

.context-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.context-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-main {
  grid-column: span 3;
}

@media(min-width: 768px){
    .gallery-main {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* Reviews Section */
.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.review-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-fast);
}

.review-card:hover {
  transform: translateY(-5px);
}

.stars {
  color: #fbbf24;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.review-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviewer-avatar {
  width: 40px; height: 40px;
  background-color: var(--bg-tertiary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; color: var(--accent-primary);
}

.reviewer-info h4 {
  margin: 0; font-size: 1rem; font-family: var(--font-main);
}
.reviewer-info span {
  font-size: 0.8rem; color: var(--text-light);
}

/* Shopify-style Order Section */
.shopify-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.product-gallery-nav {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-thumbnail {
  width: 80px; height: 80px;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--border-light);
  cursor: pointer;
  background: var(--bg-tertiary);
}

.gallery-thumbnail.active {
  border-color: var(--accent-primary);
}

.product-info h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 1.5rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.current-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.old-price {
  font-size: 1.25rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.promo-badge {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  width: fit-content;
  margin-bottom: 1.5rem;
}

.qty-btn {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  font-size: 1rem;
  font-family: var(--font-main);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Accordions */
.accordion {
  margin-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-heading);
  cursor: pointer;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

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

.accordion-item.active .accordion-content {
  padding-bottom: 1.5rem;
}

/* Direct Checkout Form */
.checkout-wrapper {
  background: var(--bg-tertiary);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  max-width: 800px;
  margin: 0 auto;
}

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

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(108, 138, 123, 0.1);
}

.order-summary {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  margin-top: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.summary-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--text-on-dark);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Sticky Mobile CTA */
.sticky-cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  padding: 1rem;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  z-index: 100;
  display: none;
  border-top: 1px solid var(--border-light);
}

/* Legal Page Styles */
.legal-content {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 4rem;
}

.legal-content h2 {
  margin-top: 2rem;
}

.legal-content p {
  color: var(--text-secondary);
}

/* Amazon Button */
.btn-amazon {
  background-color: #fbdba7;
  color: #111;
  border: 1px solid #ff9900;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-amazon:hover {
  background-color: #f3d092;
  color: #111;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #e48900;
}

.amazon-icon {
  width: 20px;
  height: 20px;
}

/* Enhanced Product Animation */
.product-image-animated {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
  will-change: transform;
}

.product-image-animated:hover {
  transform: scale(1.05) translateY(-10px);
  filter: brightness(1.05) drop-shadow(0 15px 25px rgba(0,0,0,0.15));
}

/* Media Queries */
@media (max-width: 991px) {
  .hero-grid, .two-col-layout, .shopify-product {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .sticky-cta-mobile {
    display: block;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  body {
    padding-bottom: 80px; /* Space for sticky CTA */
  }
}
