/* MarquePeptides — shared design system (ported from the approved static design, 02 — Website Design) */
:root {
  --ink-navy: #142131; --brass-gold: #c2a034; --brass-gold-soft: #d9bf72; --brass-gold-light: #f5efdd;
  --clinical-teal: #2d7e81; --clinical-teal-dark: #245e60; --clinical-teal-soft: #66a4a7; --clinical-teal-light: #e5f0f1;
  --white: #ffffff; --off-white: #fafaf7; --paper: #f4f2ec; --border: #e5e2d9; --text: #142131; --text-muted: #5a6577;
  --shadow-sm: 0 1px 3px rgba(20,33,49,0.06); --shadow-md: 0 4px 12px rgba(20,33,49,0.08);
  --shadow-lg: 0 12px 32px rgba(20,33,49,0.10); --shadow-xl: 0 24px 48px rgba(20,33,49,0.12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--white); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--brass-gold); }
.eyebrow.teal { color: var(--clinical-teal); }
.eyebrow.on-light { color: #877024; } /* WCAG AA-passing gold for light backgrounds (4.8:1) */

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; border-radius: 4px; transition: all 0.2s; white-space: nowrap; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--brass-gold); color: var(--ink-navy); }
.btn-primary:hover { background: var(--ink-navy); color: var(--white); }
.btn-outline-navy { background: transparent; color: var(--ink-navy); border-color: var(--ink-navy); }
.btn-outline-navy:hover { background: var(--ink-navy); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--ink-navy); }
.btn-teal { background: var(--clinical-teal); color: var(--white); }
.btn-teal:hover { background: var(--ink-navy); }
.btn-ghost { padding: 8px 14px; background: transparent; color: var(--ink-navy); font-weight: 500; }
.btn-arrow::after { content: "→"; transition: transform 0.2s; }
.btn:hover.btn-arrow::after { transform: translateX(4px); }

/* Announcement marquee */
.announcement { background: var(--ink-navy); color: var(--white); padding: 10px 0; overflow: hidden; font-size: 12px; letter-spacing: 1.5px; font-weight: 500; }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 25s linear infinite; padding-left: 60px; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 60px; white-space: nowrap; }
.marquee-item strong { color: var(--brass-gold); font-weight: 700; }
.marquee-item .dot { display: inline-block; width: 6px; height: 6px; background: var(--brass-gold); border-radius: 50%; opacity: 0.6; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Nav */
.nav-wrap { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo-img { height: 60px; width: auto; }
@media (max-width: 767px) { .logo-img { height: 44px; } }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links li, .mobile-nav-menu li, .mobile-nav-group li { list-style: none; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--ink-navy); padding: 8px 0; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-link:hover { color: var(--clinical-teal); }
.nav-link.active { color: var(--clinical-teal); font-weight: 600; }
.nav-icons { display: flex; gap: 20px; align-items: center; }
.nav-icon { width: 20px; height: 20px; color: var(--ink-navy); cursor: pointer; }
.nav-account-link { display: flex; align-items: center; gap: 8px; }
.nav-account-name { font-size: 13px; font-weight: 600; color: var(--ink-navy); white-space: nowrap; }
@media (max-width: 1200px) { .nav-account-name { display: none; } }
.mobile-account-link { display: block; padding: 14px 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--clinical-teal); border-bottom: 2px solid var(--border); }
.nav-icon-wrap { position: relative; display: inline-flex; }
.cart-count { position: absolute; top: -7px; right: -8px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: var(--brass-gold); color: var(--ink-navy); font-size: 10px; font-weight: 800; display: none; align-items: center; justify-content: center; line-height: 1; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; padding: 0; background: none; border: none; cursor: pointer; margin-left: 4px; position: relative; z-index: 1002; }
.nav-toggle span { display: block; height: 3px; width: 100%; background: var(--ink-navy); border-radius: 2px; transition: transform 0.3s, opacity 0.2s; }
body.mobile-menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.mobile-menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.mobile-menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 85%; max-width: 400px; background: var(--white); z-index: 1001; padding: 90px 24px 24px; overflow-y: auto; transform: translateX(100%); transition: transform 0.35s ease; box-shadow: -12px 0 40px rgba(20,33,49,0.15); }
body.mobile-menu-open .mobile-nav-menu { transform: translateX(0); }
body.mobile-menu-open { overflow: hidden; }
.mobile-nav-menu a { display: block; padding: 14px 0; font-size: 17px; font-weight: 600; color: var(--ink-navy); border-bottom: 1px solid var(--border); }
.mobile-nav-group { padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-nav-group .mobile-nav-heading { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--brass-gold); font-weight: 700; margin-bottom: 8px; }
.mobile-nav-group a { padding: 8px 0 8px 12px; font-size: 15px; font-weight: 500; border-bottom: none; color: var(--text-muted); }
.mobile-menu-close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; }
.mobile-menu-backdrop { position: fixed; inset: 0; background: rgba(20,33,49,0.55); z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s; backdrop-filter: blur(4px); }
body.mobile-menu-open .mobile-menu-backdrop { opacity: 1; visibility: visible; }
.nav-link.dropdown::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-left: 4px; }
.mega-wrap { position: relative; }
.mega-menu { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); width: 820px; background: var(--white); border-radius: 8px; box-shadow: var(--shadow-xl); padding: 32px; display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 32px; opacity: 0; visibility: hidden; transition: all 0.2s; border: 1px solid var(--border); z-index: 200; }
.mega-wrap:hover .mega-menu { opacity: 1; visibility: visible; }
.mega-col-title { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding-bottom: 12px; border-bottom: 2px solid var(--clinical-teal); margin-bottom: 14px; color: var(--clinical-teal); }
.mega-list { list-style: none; }
.mega-list li { padding: 8px 0; cursor: pointer; transition: padding 0.15s; }
.mega-list li:hover { padding-left: 4px; }
.mega-item-name { font-size: 14px; font-weight: 600; color: var(--ink-navy); }
.mega-item-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.mega-shop-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-navy); padding-top: 12px; border-top: 1px solid var(--border); }
.mega-featured { background: linear-gradient(135deg, var(--ink-navy) 0%, #1a2c42 100%); border-radius: 6px; padding: 20px; color: var(--white); position: relative; overflow: hidden; }
.mega-featured-tag { display: inline-block; background: var(--brass-gold); color: var(--ink-navy); font-size: 9px; font-weight: 800; padding: 3px 8px; letter-spacing: 1.5px; border-radius: 3px; margin-bottom: 12px; }
.mega-featured-img { aspect-ratio: 4/3; border-radius: 4px; margin-bottom: 12px; overflow: hidden; background: rgba(255,255,255,0.03); display: flex; align-items: center; justify-content: center; }
.mega-featured-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.mega-featured h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.mega-featured p { font-size: 12px; opacity: 0.7; margin-bottom: 12px; }
.mega-featured a { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: var(--brass-gold); }
@media (max-width: 1024px) { .mega-menu { display: none; } .nav-links { display: none; } .nav-toggle { display: flex; } .section-header h2 { font-size: clamp(26px, 4vw, 34px); } }

/* Page hero (interactive canvas pages) */
.page-hero { background: linear-gradient(135deg, var(--ink-navy) 0%, #1a2c42 100%); color: var(--white); padding: 80px 0 60px; position: relative; overflow: hidden; min-height: 320px; display: flex; align-items: center; }
.hero-canvas { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; display: block; z-index: 1; cursor: crosshair; pointer-events: auto; }
.page-hero .container { position: relative; z-index: 2; max-width: 800px; }
.page-hero .breadcrumbs, .utility-hero .breadcrumbs { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.page-hero .breadcrumbs a, .utility-hero .breadcrumbs a { color: rgba(255,255,255,0.6); }
.page-hero .breadcrumbs a:hover { color: var(--brass-gold); }
.page-hero .breadcrumbs .sep { margin: 0 10px; opacity: 0.4; }
.page-hero h1, .utility-hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 16px; }
.page-hero h1 .accent, .utility-hero h1 .accent { color: var(--brass-gold); }
.page-hero h1 .accent-teal, .utility-hero h1 .accent-teal { color: var(--clinical-teal-soft); }
.page-hero .lead, .utility-hero p { font-size: 16px; color: rgba(255,255,255,0.75); line-height: 1.6; max-width: 640px; }

/* Section header (shared component — used across the homepage and every inner page) */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 38px; font-weight: 800; letter-spacing: -1px; color: var(--ink-navy); margin: 12px 0; line-height: 1.15; }
.section-header h2 .accent { color: var(--clinical-teal); }
.section-header h2 .accent-gold { color: var(--brass-gold); }
.section-header p { color: var(--text-muted); font-size: 16px; max-width: 700px; margin: 0 auto; }

/* Utility hero (task pages) */
.utility-hero { background: linear-gradient(135deg, var(--ink-navy) 0%, #1a2c42 100%); color: var(--white); padding: 56px 0; position: relative; overflow: hidden; min-height: 200px; display: flex; align-items: center; }
.utility-hero .container { position: relative; z-index: 2; }
.utility-hero h1 { font-size: 34px; }

.section { padding: 60px 0; }

/* Footer */
.footer { background: #0d1620; color: rgba(255,255,255,0.7); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--brass-gold); margin-bottom: 18px; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 6px 0; font-size: 13px; color: rgba(255,255,255,0.6); cursor: pointer; transition: color 0.2s; }
.footer-col ul li:hover { color: var(--white); }
.footer-brand-desc { font-size: 13px; line-height: 1.7; margin: 8px 0 20px; max-width: 300px; }
.footer-loc { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-logo-img { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 4px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 32px; height: 32px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; color: rgba(255,255,255,0.7); }
.footer-social a:hover { background: var(--brass-gold); color: var(--ink-navy); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-legal-links { display: flex; gap: 18px; }
.footer-legal-links a { color: rgba(255,255,255,0.6); }
.footer-legal { background: #060c14; padding: 24px; text-align: center; font-size: 11px; line-height: 1.7; color: rgba(255,255,255,0.5); margin-top: 40px; }
.footer-legal strong { color: rgba(255,255,255,0.85); }
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
  /* Once columns no longer sit in a wide 5-across row, left-aligned text looks off-balance
     against the now-much-wider columns — center every footer column at this width. */
  .footer-col { text-align: center; }
  .footer-grid > .footer-col:first-child {
    grid-column: 1 / -1;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
  }
  .footer-grid > .footer-col:first-child .footer-logo-img,
  .footer-grid > .footer-col:first-child .footer-brand-desc { margin-left: auto; margin-right: auto; }
  .footer-grid > .footer-col:first-child .footer-loc { justify-content: center; }
}
@media (max-width: 767px) { .container { padding: 0 16px; } .page-hero { padding: 48px 0 40px; min-height: 260px; } .page-hero h1 { font-size: clamp(26px, 8vw, 32px); } .footer-grid { grid-template-columns: 1fr; gap: 28px; } .footer-logo-img { height: 36px; } .section-header { margin-bottom: 32px; } .section-header h2 { font-size: clamp(22px, 7vw, 28px); } }
/* Narrow 2-column card grids (catalog archive, homepage, related products) don't leave
   enough room beside a price RANGE (e.g. "$99.00 – $339.00" on a variable product) for
   the Add to Cart button on the same row — it gets squeezed and clipped by the card's
   own overflow:hidden. Stacking price above button avoids that regardless of price length. */
@media (max-width: 480px) { .product-bottom { flex-direction: column; align-items: stretch; gap: 8px; } .product-price { font-size: 19px; } .product-cta { width: 100%; text-align: center; padding: 10px 14px; } }
@media (max-width: 374px) { .container { padding: 0 12px; } .logo-img { height: 52px; } .section-header h2 { font-size: 22px; } }

/* Product card component — shared by the homepage, shop archive, and single-product templates */
.products-grid { display: grid; gap: 20px; }
.product-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: all 0.2s; position: relative; display: flex; flex-direction: column; height: 100%; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--clinical-teal); }
.product-card-link { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.product-image { aspect-ratio: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px; background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%); }
.product-image::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(45,126,129,0.05) 0%, transparent 70%); }
.product-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 8px 16px rgba(20,33,49,0.15)); transition: transform 0.3s; pointer-events: none; }
.product-card:hover .product-image img { transform: scale(1.05); }
.badge-corner { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--brass-gold); color: var(--ink-navy); font-size: 9px; font-weight: 800; padding: 4px 10px; letter-spacing: 1px; border-radius: 3px; pointer-events: none; }
.badge-corner.new { background: var(--clinical-teal); color: var(--white); }
.badge-corner.bulk { background: var(--ink-navy); color: var(--white); }
.ruo-corner { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(255,255,255,0.95); color: var(--clinical-teal); border: 1px solid var(--clinical-teal); font-size: 9px; font-weight: 800; padding: 3px 8px; letter-spacing: 1.5px; border-radius: 3px; pointer-events: none; }
.wishlist-heart { position: absolute; bottom: 12px; right: 12px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.95); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--ink-navy); cursor: pointer; transition: all 0.15s; }
.wishlist-heart svg { width: 16px; height: 16px; }
.wishlist-heart:hover { border-color: #c0392b; color: #c0392b; }
.wishlist-heart.active { background: #c0392b; border-color: #c0392b; color: var(--white); }
.wishlist-heart.active svg { fill: currentColor; }
.wishlist-heart.static { position: static; width: 46px; height: 46px; flex-shrink: 0; }
.product-cta-row { display: flex; align-items: center; gap: 8px; }
.product-cta-row .wishlist-heart { width: 30px; height: 30px; }
.product-cta-row .wishlist-heart svg { width: 14px; height: 14px; }
.product-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 10px; color: var(--text-muted); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.product-name { font-size: 17px; font-weight: 700; color: var(--ink-navy); margin-bottom: 4px; line-height: 1.25; letter-spacing: -0.3px; }
.product-cas { font-family: 'SF Mono', 'Monaco', monospace; font-size: 10px; color: var(--text-muted); margin-bottom: 10px; }
.product-specs { background: var(--off-white); border-radius: 4px; padding: 8px 10px; margin: 10px 0 12px; font-size: 11px; }
.product-specs div { display: flex; justify-content: space-between; padding: 2px 0; }
.product-specs div span:first-child { color: var(--text-muted); }
.product-specs div span:last-child { color: var(--ink-navy); font-weight: 600; font-family: 'SF Mono', monospace; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); position: relative; z-index: 2; margin-top: auto; }
.product-price { font-size: 22px; font-weight: 800; color: var(--ink-navy); }
.product-price small { font-size: 10px; font-weight: 400; color: var(--text-muted); display: block; text-transform: none; letter-spacing: 0; }
.product-cta { padding: 8px 14px; background: var(--ink-navy); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-radius: 4px; transition: all 0.2s; }
.product-cta:hover { background: var(--clinical-teal); }
.product-cta:disabled { opacity: 0.6; cursor: default; }

/* Long-form content (Terms, Privacy, and similar policy/editorial pages) */
.longform { max-width: 820px; margin: 0 auto; }
.longform h2 { font-size: 26px; font-weight: 700; color: var(--ink-navy); margin: 40px 0 16px; letter-spacing: -0.5px; }
.longform h2:first-child { margin-top: 0; }
.longform h3 { font-size: 18px; font-weight: 700; color: var(--ink-navy); margin: 24px 0 10px; }
.longform p { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 14px; }
.longform ul, .longform ol { margin: 8px 0 16px 24px; }
.longform li { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 6px; }
.longform strong { color: var(--ink-navy); font-weight: 600; }
.longform a:not(.btn) { color: var(--clinical-teal); border-bottom: 1px solid var(--clinical-teal-soft); }
.longform a:not(.btn):hover { color: var(--ink-navy); }
.longform .updated { font-size: 13px; color: var(--text-muted); margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.longform .callout { background: var(--brass-gold-light); border-left: 4px solid var(--brass-gold); padding: 20px 24px; margin: 24px 0; border-radius: 0 6px 6px 0; }
.longform .callout p { margin-bottom: 0; font-size: 14px; }
.longform .callout strong { color: var(--ink-navy); }
.toc { background: var(--off-white); border: 1px solid var(--border); border-radius: 8px; padding: 24px 28px; margin-bottom: 40px; }
.toc h4 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--brass-gold); font-weight: 700; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 24px; }
.toc li { font-size: 14px; padding: 4px 0; }
.toc a { color: var(--ink-navy); border: none; }
.toc a:hover { color: var(--clinical-teal); }
.page-hero .meta-line { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 16px; letter-spacing: 0.5px; }
.longform table { display: block; max-width: 100%; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.longform table th { text-align: left; background: var(--off-white); padding: 10px 14px; font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--brass-gold); border-bottom: 2px solid var(--border); }
.longform table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.author-box { display: flex; gap: 16px; align-items: center; max-width: 760px; margin: 40px auto 0; padding: 20px; background: var(--off-white); border-radius: 10px; }
.author-box .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ink-navy); display: flex; align-items: center; justify-content: center; color: var(--brass-gold); font-weight: 800; font-size: 16px; flex-shrink: 0; }
.author-box .name { font-size: 14px; font-weight: 700; color: var(--ink-navy); }
.author-box .role { font-size: 12px; color: var(--text-muted); }

/* Referenced Compounds / Related Reading section (blog posts — simple pill-icon cards) */
.related-products { padding: 60px 0 80px; background: var(--off-white); border-top: 1px solid var(--border); }
.related-products h2 { font-size: 24px; font-weight: 800; color: var(--ink-navy); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }

/* Related Research Compounds (single product page — full catalog-style cards, "+" between them) */
.rec-full-row { display: flex; align-items: stretch; justify-content: center; gap: 20px; flex-wrap: wrap; }
.rec-full-card { flex: 1 1 240px; max-width: 280px; display: flex; }
.rec-plus { flex: 0 0 auto; align-self: center; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; line-height: 1; color: var(--text-muted); }
.rec-more-link { text-align: center; margin-top: 28px; }
@media (max-width: 767px) { .rec-full-row { flex-direction: column; align-items: center; } .rec-full-card { max-width: 320px; width: 100%; } }
.related-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 18px; text-align: center; transition: all 0.2s; }
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-card .mini-vial-lg { width: 28px; height: 42px; margin: 0 auto 10px; background: linear-gradient(135deg, var(--brass-gold-soft), var(--brass-gold)); border-radius: 5px 5px 8px 8px; }
.related-card .rel-name { font-size: 13px; font-weight: 700; color: var(--ink-navy); }
.related-card .rel-cat { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
@media (max-width: 767px) {
  .longform h2 { font-size: 20px; margin: 32px 0 12px; }
  .longform h3 { font-size: 16px; }
  .longform p, .longform li { font-size: 14px; }
  /* Several pages (Science, About, FAQ) end with a hand-written centered CTA block —
     one or two .btn links side by side via inline styles, written for desktop. Without
     this, a second button wraps to its own line at whatever width its text needs and
     stays left-anchored instead of centered, which is what looked broken on mobile. */
  .longform div[style*="text-align:center"] a.btn {
    display: block;
    width: 100%;
    margin: 10px 0 0 !important;
  }
  .longform div[style*="text-align:center"] a.btn:first-child { margin-top: 0 !important; }
}

/* Science page grid (nested inside .longform content) */
.longform .science-full-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 60px; }
.longform .science-full-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 32px 28px; }
.longform .science-full-card .num { width: 44px; height: 44px; border-radius: 50%; background: var(--ink-navy); color: var(--brass-gold); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.longform .science-full-card h3 { font-size: 17px; font-weight: 700; color: var(--ink-navy); margin-bottom: 10px; }
.longform .science-full-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 0; }
@media (max-width: 1024px) { .longform .science-full-grid { grid-template-columns: 1fr; } }

/* Wholesale page stats */
.wholesale-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 60px; }
.wholesale-stat { text-align: center; padding: 24px; background: var(--off-white); border-radius: 10px; }
.wholesale-stat .num { font-size: 32px; font-weight: 800; color: var(--brass-gold); }
.wholesale-stat .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
@media (max-width: 1024px) { .wholesale-hero-stats { grid-template-columns: 1fr; } }

/* FAQ accordion — native <details>/<summary>, no JS needed */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-group-title { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--brass-gold); font-weight: 700; margin: 36px 0 14px; }
.faq-group:first-child .faq-group-title { margin-top: 0; }
details.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
details.faq-item summary { padding: 20px 24px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink-navy); display: flex; justify-content: space-between; align-items: center; gap: 20px; list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--brass-gold); }
details.faq-item[open] summary::after { content: "\2212"; }
details.faq-item summary:hover { background: var(--off-white); }
details.faq-item .answer { padding: 0 24px 24px; font-size: 14px; color: var(--text); line-height: 1.7; }
details.faq-item .answer p { margin-bottom: 12px; }
details.faq-item .answer p:last-child { margin-bottom: 0; }
@media (max-width: 767px) { details.faq-item summary { padding: 16px 20px; font-size: 14px; } details.faq-item .answer { padding: 0 20px 20px; font-size: 13px; } }

/* Blog card component — shared by the homepage, blog archive, and single-post templates */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; z-index: 2; }
.blog-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.2s; cursor: pointer; border: 1px solid var(--border); }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-image { aspect-ratio: 16/9; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ink-navy) 0%, #1a2c42 100%); display: flex; align-items: center; justify-content: center; }
.blog-image::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(221,180,121,0.15) 0%, transparent 60%), radial-gradient(circle at 70% 70%, rgba(45,126,129,0.15) 0%, transparent 60%); }
.blog-image img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; }
.blog-image .icon-lg { color: var(--brass-gold); opacity: 0.6; position: relative; z-index: 2; }
.blog-content { padding: 24px; }
.blog-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.blog-tag { background: var(--clinical-teal-light); color: var(--clinical-teal); font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 3px; letter-spacing: 1px; text-transform: uppercase; }
.blog-date { font-size: 11px; color: var(--text-muted); }
.blog-title { font-size: 18px; font-weight: 700; color: var(--ink-navy); margin-bottom: 8px; line-height: 1.3; letter-spacing: -0.3px; }
.blog-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.blog-read { font-size: 12px; font-weight: 700; color: var(--ink-navy); letter-spacing: 1px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1024px) { .blog-grid { grid-template-columns: 1fr 1fr; } .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .blog-grid { grid-template-columns: 1fr; } .blog-content { padding: 20px; } .blog-title { font-size: 16px; } .blog-excerpt { font-size: 12px; } .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Single blog post */
.post-single { max-width: 780px; margin: 0 auto; }
.post-single .post-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.post-single .post-featured { aspect-ratio: 21/9; border-radius: 12px; overflow: hidden; margin-bottom: 32px; background: linear-gradient(135deg, var(--ink-navy) 0%, #1a2c42 100%); display: flex; align-items: center; justify-content: center; }
.post-single .post-featured img { width: 100%; height: 100%; object-fit: cover; }
.post-single .post-body h2 { font-size: 24px; font-weight: 700; color: var(--ink-navy); margin: 32px 0 14px; }
.post-single .post-body h3 { font-size: 18px; font-weight: 700; color: var(--ink-navy); margin: 24px 0 10px; }
.post-single .post-body p { font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 16px; }
.post-single .post-body ul, .post-single .post-body ol { margin: 8px 0 16px 24px; }
.post-single .post-body li { font-size: 15px; line-height: 1.7; margin-bottom: 6px; }
.post-single .post-body a { color: var(--clinical-teal); border-bottom: 1px solid var(--clinical-teal-soft); }
.post-single .post-tags { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }

/* About page */
.about-story { padding: 80px 0; }
.about-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-story-content h2 { font-size: 36px; font-weight: 800; color: var(--ink-navy); margin: 12px 0 20px; letter-spacing: -1px; line-height: 1.1; }
.about-story-content h2 .accent { color: var(--brass-gold); }
.about-story-content p { font-size: 15px; color: var(--text); line-height: 1.75; margin-bottom: 16px; }
.about-story-visual { background: linear-gradient(135deg, var(--ink-navy), #1a2c42); border-radius: 12px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.about-story-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(194,160,52,0.15) 0%, transparent 60%), radial-gradient(circle at 70% 70%, rgba(45,126,129,0.15) 0%, transparent 60%); }
.about-story-visual .mono { font-family: 'SF Mono', monospace; color: var(--brass-gold); font-size: 12px; opacity: 0.5; letter-spacing: 2px; position: relative; z-index: 2; text-align: center; padding: 0 20px; }
.pillars { background: var(--off-white); padding: 100px 0; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar-card { background: var(--white); padding: 40px 32px; border-radius: 12px; border: 1px solid var(--border); transition: all 0.2s; }
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brass-gold); }
.pillar-icon { width: 56px; height: 56px; background: var(--brass-gold-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--brass-gold); margin-bottom: 20px; }
.pillar-card h3 { font-size: 22px; font-weight: 700; color: var(--ink-navy); margin-bottom: 12px; }
.pillar-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.stats-strip { background: linear-gradient(135deg, var(--ink-navy), #1a2c42); color: var(--white); padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat-num { font-size: 56px; font-weight: 800; color: var(--brass-gold); letter-spacing: -2px; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.quality-section { padding: 100px 0; background: var(--white); }
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.quality-features { list-style: none; }
.quality-features li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.quality-features li:last-child { border-bottom: none; }
.quality-features .num { flex-shrink: 0; width: 40px; height: 40px; background: var(--clinical-teal-light); color: var(--clinical-teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.quality-features h4 { font-size: 16px; font-weight: 700; color: var(--ink-navy); margin-bottom: 6px; }
.quality-features p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.cta-strip { background: var(--paper); padding: 80px 0; text-align: center; }
.cta-strip h2 { font-size: 36px; font-weight: 800; color: var(--ink-navy); margin-bottom: 16px; letter-spacing: -1px; }
.cta-strip p { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-strip .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 1024px) {
  .about-story-grid, .quality-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}
@media (max-width: 767px) {
  .about-story-content h2, .cta-strip h2 { font-size: clamp(26px, 4vw, 34px); }
  .about-story, .pillars, .stats-strip, .quality-section, .cta-strip { padding: 50px 0; }
  .cta-strip h2 { font-size: clamp(22px, 7vw, 28px); }
}

/* Contact page */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info h2 { font-size: 32px; font-weight: 800; color: var(--ink-navy); margin: 12px 0 20px; letter-spacing: -1px; line-height: 1.15; }
.contact-info > p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 32px; }
.contact-methods { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.contact-method { background: var(--off-white); border: 1px solid var(--border); padding: 20px 24px; border-radius: 8px; display: flex; gap: 16px; align-items: flex-start; }
.contact-method-icon { width: 42px; height: 42px; background: var(--brass-gold-light); color: var(--brass-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-method h4 { font-size: 13px; font-weight: 700; color: var(--ink-navy); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 4px; }
.contact-method a { color: var(--clinical-teal); font-size: 15px; font-weight: 600; }
.contact-method p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.hours-badge { background: linear-gradient(135deg, var(--ink-navy), #1a2c42); color: var(--white); padding: 20px 24px; border-radius: 8px; }
.hours-badge h4 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--brass-gold); margin-bottom: 12px; }
.hours-badge .row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hours-badge .row:last-child { border-bottom: none; }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 40px; box-shadow: var(--shadow-md); position: relative; }
.contact-form h3 { font-size: 22px; font-weight: 700; color: var(--ink-navy); margin-bottom: 8px; }
.contact-form > p { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-group label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 14px; color: var(--ink-navy); background: var(--white); transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--clinical-teal); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--text-muted); margin: 8px 0 20px; line-height: 1.6; }
.form-consent input { margin-top: 3px; }
.form-consent a { color: var(--clinical-teal); }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 767px) { .contact-section { padding: 50px 0; } .contact-info h2 { font-size: clamp(22px, 6vw, 28px); } .contact-form .form-row { grid-template-columns: 1fr; } .contact-form { padding: 32px 24px; } }

/* Track order */
.track-form { max-width: 440px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.track-form .form-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.track-form .form-field label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.track-form .form-field input { padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; font-size: 14px; background: var(--off-white); }
.track-form .form-field input:focus { outline: none; border-color: var(--clinical-teal); background: var(--white); }
#track-result { display: none; max-width: 440px; margin: 24px auto 0; background: var(--clinical-teal-light); border-left: 3px solid var(--clinical-teal); border-radius: 0 8px 8px 0; padding: 18px 22px; font-size: 14px; line-height: 1.6; }

/* Search */
.search-bar-wrap { max-width: 640px; margin: 0 auto 40px; position: relative; }
.search-bar-wrap input { width: 100%; padding: 16px 20px 16px 48px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-family: inherit; background: var(--white); box-shadow: var(--shadow-sm); }
.search-bar-wrap input:focus { outline: none; border-color: var(--clinical-teal); }
.search-bar-wrap svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.search-result-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 20px; transition: all 0.2s; }
.search-result-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.search-result-card .sr-cat { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--brass-gold); font-weight: 700; }
.search-result-card .sr-name { font-size: 15px; font-weight: 700; color: var(--ink-navy); margin: 4px 0; }
.search-result-card .sr-price { font-size: 13px; color: var(--text-muted); }
.search-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.search-suggest { text-align: center; margin-top: 24px; }
.search-suggest a { display: inline-block; margin: 4px 6px; padding: 6px 14px; background: var(--off-white); border: 1px solid var(--border); border-radius: 20px; font-size: 12px; color: var(--ink-navy); }
@media (max-width: 1024px) { .search-results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .search-results-grid { grid-template-columns: 1fr; } }

/* 404 page */
.error-page { padding: 100px 0; text-align: center; }
.error-page .code { font-size: 96px; font-weight: 900; color: var(--brass-gold-light); letter-spacing: -4px; line-height: 1; }
.error-page h1 { font-size: 26px; color: var(--ink-navy); margin: 10px 0 12px; }
.error-page p { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; }
.error-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Accessibility skip link */
.skip-link { position: absolute; top: -48px; left: 8px; background: var(--ink-navy); color: var(--white); padding: 12px 20px; border-radius: 0 0 6px 6px; font-size: 13px; font-weight: 700; z-index: 10000; transition: top 0.2s; }
.skip-link:focus { top: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
