/* ============================================
   Badger Labs Peptides – Black & White Theme
   ============================================ */

:root {
  --black: #0a0a0a;
  --near-black: #111111;
  --dark: #1a1a1a;
  --gray-900: #222222;
  --gray-700: #444444;
  --gray-500: #777777;
  --gray-300: #bbbbbb;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --off-white: #fafafa;
  --border: #e5e5e5;
  --radius: 6px;
  --max: 1100px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar */
.top-bar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 8px 16px;
  text-transform: uppercase;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

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

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

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.nav a:hover {
  opacity: 0.55;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  position: absolute;
  left: 0;
  transition: 0.25s;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* Hero */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.hero-logo-wrap {
  display: inline-block;
  margin-bottom: 36px;
  padding: 20px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero-logo {
  max-width: 420px;
  width: 100%;
  height: auto;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-700);
  max-width: 480px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
}

.btn-primary:hover {
  background: var(--dark);
  border-color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

/* Sections */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: var(--black);
  color: var(--white);
  padding: 80px 0;
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-desc {
  margin-top: 12px;
  color: var(--gray-700);
  font-size: 1.05rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: var(--gray-900);
}

.feature-list {
  list-style: none;
  margin-top: 28px;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.98rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--black);
  border-radius: 1px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-inner {
  padding: 32px 28px;
}

.card-inner h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.value-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.value-item:last-child {
  margin-bottom: 0;
}

.value-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  min-width: 28px;
}

.value-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.value-item p {
  font-size: 0.88rem;
  color: var(--gray-700);
  margin: 0;
}

/* Peptide cards */
.peptide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.peptide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.peptide-card:hover {
  border-color: var(--black);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.peptide-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--black);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.peptide-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.peptide-code {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.peptide-card p {
  font-size: 0.92rem;
  color: var(--gray-700);
  margin-bottom: 18px;
}

.peptide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
}

.peptide-meta span {
  background: var(--gray-100);
  padding: 4px 9px;
  border-radius: 3px;
}

/* Reconstitution */
.recon-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.step {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step p {
  font-size: 0.95rem;
  color: var(--gray-700);
}

.recon-chart {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.recon-chart h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.recon-chart h3 small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
}

.recon-chart table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.recon-chart th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 0 0 10px;
  border-bottom: 2px solid var(--black);
}

.recon-chart td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.recon-chart tr:last-child td {
  border-bottom: none;
}

.formula {
  font-size: 0.95rem;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Disclaimer */
.disclaimer-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.disclaimer-box h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.disclaimer-box p {
  font-size: 1rem;
  color: var(--gray-300);
  margin-bottom: 16px;
  line-height: 1.7;
}

.disclaimer-box strong {
  color: var(--white);
}

.slogan {
  margin-top: 32px !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  color: var(--white) !important;
}

/* Footer */
.footer {
  background: var(--near-black);
  color: var(--gray-300);
  padding: 48px 0 32px;
  border-top: 1px solid var(--gray-900);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-900);
  font-size: 12px;
  color: var(--gray-500);
}

/* Responsive */
@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .about-grid,
  .recon-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero {
    padding: 60px 0 70px;
  }
  .section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    max-width: 280px;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .btn {
    width: 100%;
  }
  .hero-cta {
    flex-direction: column;
  }
}

/* ============================================
   Product pages + Cart
   ============================================ */

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  margin-left: 12px;
}

.cart-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  padding: 0 4px;
}

/* Make peptide cards clickable */
.peptide-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

a.peptide-card:hover {
  border-color: var(--black);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Product page */
.product-hero {
  padding: 48px 0 60px;
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.product-visual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.product-visual img {
  max-width: 100%;
  max-height: 260px;
}

.product-info h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.product-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.product-badge-row span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--black);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 3px;
}

.product-badge-row .outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}

.product-price {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
}

.product-desc {
  font-size: 1.02rem;
  color: var(--gray-700);
  margin: 20px 0 28px;
  line-height: 1.65;
}

.product-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.qty-select {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-select button {
  width: 40px;
  height: 44px;
  border: none;
  background: var(--gray-100);
  font-size: 18px;
  cursor: pointer;
  color: var(--black);
}

.qty-select input {
  width: 52px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  background: var(--white);
}

.btn-cart {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cart:hover {
  background: var(--dark);
}

.product-meta-list {
  list-style: none;
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--gray-700);
}

.product-meta-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.product-meta-list li:last-child {
  border-bottom: none;
}

.product-meta-list strong {
  color: var(--black);
  min-width: 110px;
  display: inline-block;
}

/* Research notice on product */
.research-notice {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--gray-100);
  border-left: 3px solid var(--black);
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* Product details section */
.product-details {
  padding: 60px 0;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.details-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--black);
}

.details-block p,
.details-block li {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 10px;
}

.details-block ul {
  padding-left: 18px;
}

/* Cart page */
.cart-page {
  padding: 60px 0 80px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.cart-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 0 12px 12px 0;
  border-bottom: 2px solid var(--black);
}

.cart-table td {
  padding: 18px 12px 18px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.cart-item-meta {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.cart-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-500);
}

.cart-summary {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 380px;
  margin-left: auto;
}

.cart-summary h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.cart-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

/* Toast */
.cart-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--black);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.cart-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive product */
@media (max-width: 860px) {
  .product-layout,
  .details-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cart-summary {
    max-width: 100%;
    margin-left: 0;
  }
}
