/* ============================================================
   Peptide wholesale site — design system
   ============================================================ */
:root {
  --ink: #102428;
  --primary: #0d4f49;
  --primary-700: #0a3d39;
  --primary-500: #117a70;
  --primary-50: #e9f3f1;
  --copper: #b06a2c;
  --bg: #ffffff;
  --bg-soft: #f4f7f6;
  --line: #dce4e2;
  --text: #1d3033;
  --muted: #5c6e6c;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(16, 36, 43, 0.08);
  --shadow-sm: 0 2px 10px rgba(16, 36, 43, 0.06);
  --maxw: 1200px;
  --font: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-500); text-decoration: none; }
a:hover { color: var(--primary-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 700; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--copper); margin-bottom: 12px;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 700;
  font-size: 0.95rem; border: 1.5px solid transparent; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  min-height: 46px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-50); color: var(--primary-700); }
.btn-sm { padding: 9px 16px; min-height: 38px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-coa { border-color: var(--line); color: var(--primary-700); background: #fff; }
.btn-coa:hover { border-color: var(--primary-500); background: var(--primary-50); color: var(--primary-700); }
.btn-wa { background: #128c7e; color: #fff; width: 100%; margin-top: 18px; }
.btn-wa:hover { background: #0d6f64; color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.brand:hover { color: var(--ink); }
.brand-mark { flex: 0 0 auto; }
.main-nav { display: none; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text); font-weight: 600; font-size: 0.92rem; padding: 9px 12px; border-radius: var(--radius-sm);
}
.main-nav a:hover { background: var(--primary-50); color: var(--primary-700); }
.header-cta { display: none; }
.nav-toggle {
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 44px; height: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 10px 20px 18px; background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 6px; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: none; }
@media (min-width: 980px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: #e8efee; overflow: hidden; }
.hero-grid { display: grid; }
.hero-media { position: relative; min-height: 280px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,36,43,0.35) 0%, rgba(16,36,43,0.75) 100%);
}
.hero-content { padding: 56px 20px 64px; }
.hero-content h1 { color: #fff; }
.hero-content p { color: #c3d2cf; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-badge {
  font-size: 0.82rem; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: #e8efee;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; min-height: 560px; }
  .hero-media { min-height: 100%; order: 2; }
  .hero-media::after { background: linear-gradient(90deg, rgba(16,36,43,0.55) 0%, rgba(16,36,43,0.15) 100%); }
  .hero-content { display: flex; flex-direction: column; justify-content: center; padding: 70px 0 70px; max-width: 620px; }
}

/* ---------- trust strip ---------- */
.trust-strip { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; padding: 28px 20px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--primary-500); }
.trust-item strong { display: block; color: var(--ink); font-size: 0.95rem; }
.trust-item span { font-size: 0.82rem; color: var(--muted); }
@media (min-width: 760px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- category tiles ---------- */
.tile-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.cat-tile {
  display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  color: var(--text);
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-500); color: var(--text); }
.cat-tile .count {
  font-size: 0.78rem; font-weight: 700; color: var(--copper); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.cat-tile h3 { margin-bottom: 8px; }
.cat-tile p { font-size: 0.9rem; color: var(--muted); margin: 0; flex: 1; }
.cat-tile .more { margin-top: 16px; font-weight: 700; font-size: 0.88rem; color: var(--primary-500); }
@media (min-width: 640px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.product-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  display: flex; flex-direction: column; transition: transform 0.15s, box-shadow 0.15s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-thumb {
  aspect-ratio: 1 / 1; background: var(--bg-soft); position: relative; overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin-bottom: 4px; font-size: 1.05rem; }
.product-body h3 a { color: var(--ink); }
.product-body h3 a:hover { color: var(--primary-500); }
.product-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
.price-row { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price-from { font-size: 0.8rem; color: var(--muted); }
.price-value { font-weight: 800; color: var(--primary-700); font-size: 1.05rem; }
@media (min-width: 600px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- catalog layout ---------- */
.catalog-layout { display: grid; gap: 32px; }
.catalog-tools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.search-box { position: relative; }
.search-box svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.search-box input {
  width: 100%; padding: 12px 14px 12px 42px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font); min-height: 46px;
}
.search-box input:focus { outline: none; border-color: var(--primary-500); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: 0.85rem; color: var(--text); cursor: pointer; min-height: 38px;
  font-family: var(--font);
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.no-results { display: none; text-align: center; padding: 60px 20px; color: var(--muted); }
@media (min-width: 980px) { .catalog-layout { grid-template-columns: 240px 1fr; gap: 40px; }
  .catalog-sidebar { position: sticky; top: 96px; align-self: start; }
  .catalog-tools { flex-direction: column; }
}
.side-filter { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.side-filter h4 { margin-bottom: 12px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.side-filter a {
  display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text); font-weight: 600;
}
.side-filter a:hover, .side-filter a.active { background: var(--primary-50); color: var(--primary-700); }
.side-filter a span { color: var(--muted); font-weight: 500; font-size: 0.82rem; }

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--muted); padding: 22px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-500); }

/* ---------- detail page ---------- */
.detail-layout { display: grid; gap: 36px; padding: 28px 0 0; }
.detail-media {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
}
.detail-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.detail-info h1 { margin-bottom: 10px; }
.detail-spec-line { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.fact-list { list-style: none; padding: 0; margin: 22px 0; }
.fact-list li {
  position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid var(--line); font-size: 0.92rem;
}
.fact-list li:last-child { border-bottom: none; }
.fact-list li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--primary-500);
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (min-width: 900px) { .detail-layout { grid-template-columns: 1fr 1.1fr; gap: 56px; } }

.sku-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0; }
.sku-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.sku-table th, .sku-table td { padding: 14px 16px; text-align: left; font-size: 0.92rem; }
.sku-table thead th {
  background: var(--ink); color: #fff; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 700;
}
.sku-table tbody tr { border-top: 1px solid var(--line); }
.sku-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.sku-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sku-table .code { font-weight: 700; color: var(--primary-700); }
.disclaimer {
  background: var(--primary-50); border: 1px solid #cfe0dc; border-radius: var(--radius);
  padding: 18px 20px; font-size: 0.88rem; color: var(--primary-700); margin: 28px 0;
}

/* ---------- generic 2-col / feature blocks ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.feature-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff;
}
.feature-card svg { width: 34px; height: 34px; color: var(--primary-500); margin-bottom: 14px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.split-block { display: grid; gap: 32px; align-items: center; }
.split-block img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (min-width: 900px) { .split-block { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split-block.reverse .split-media { order: 2; }
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; counter-reset: step; }
.step {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; background: #fff;
  position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 1.8rem; font-weight: 800; color: var(--primary-500); display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.02rem; }
.step p { font-size: 0.9rem; color: var(--muted); margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- stats ---------- */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; text-align: center; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat span { font-size: 0.85rem; color: var(--muted); }
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- accordion ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:last-child { border-bottom: none; }
.acc-trigger {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 52px 20px 22px; font-family: var(--font); font-weight: 700; font-size: 0.98rem;
  color: var(--ink); position: relative; min-height: 48px;
}
.acc-trigger .icon {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; transition: transform 0.2s;
}
.acc-item.open .acc-trigger .icon { transform: translateY(-50%) rotate(45deg); }
.acc-panel { display: none; padding: 0 22px 22px; font-size: 0.92rem; color: var(--muted); }
.acc-item.open .acc-panel { display: block; }

/* ---------- forms ---------- */
.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
label.field { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); }
label.field span.req { color: var(--copper); }
input, textarea, select {
  width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.95rem; background: #fff;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary-500); }
.contact-cards { display: grid; gap: 16px; margin-top: 24px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; font-size: 0.92rem; }
.contact-line svg { width: 22px; height: 22px; color: var(--primary-500); flex: 0 0 auto; margin-top: 2px; }
.contact-line strong { display: block; color: var(--ink); }
.contact-line a { color: var(--text); }
.contact-line a:hover { color: var(--primary-500); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); color: #e8f0ef; border-radius: var(--radius); padding: 48px 32px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c2d5d1; max-width: 620px; margin: 0 auto 26px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b8c8c5; padding: 56px 0 28px; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.site-footer a { color: #b8c8c5; font-size: 0.9rem; display: block; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 24px;
  font-size: 0.82rem; display: flex; flex-direction: column; gap: 8px;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- COA center & request dialog ---------- */
.coa-note { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 760px) { .coa-note { grid-template-columns: repeat(3, 1fr); } }
.coa-note > div {
  display: flex; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; background: var(--bg-soft);
}
.coa-note svg { flex: 0 0 auto; color: var(--primary-500); margin-top: 2px; }
.coa-note strong { display: block; color: var(--ink); font-size: 0.95rem; margin-bottom: 4px; }
.coa-note span { font-size: 0.88rem; color: var(--muted); }
.coa-tools { max-width: 460px; margin-bottom: 6px; }
.coa-table td.coa-cat { color: var(--muted); font-size: 0.86rem; }
.coa-table td.coa-codes {
  color: var(--primary-700); font-weight: 600; font-size: 0.86rem; font-variant-numeric: tabular-nums;
}
.coa-table td.coa-action { text-align: right; }
.coa-table .btn-coa { white-space: nowrap; }

.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(9, 30, 28, 0.55); }
.modal-panel {
  position: relative; width: 100%; max-width: 470px; background: #fff; border-radius: 14px;
  padding: 34px 30px 26px; box-shadow: 0 30px 80px rgba(6, 24, 22, 0.35);
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; border-radius: 50%; color: var(--muted); cursor: pointer;
}
.modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.modal-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--copper);
}
.modal-panel h2 { font-size: 1.45rem; margin: 10px 0 12px; }
.modal-product {
  background: var(--primary-50); border-radius: var(--radius-sm); padding: 9px 14px;
  font-size: 0.86rem; font-weight: 700; color: var(--primary-700); margin: 0 0 14px;
}
.modal-lead { font-size: 0.92rem; color: var(--muted); margin: 0; }
.wa-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm);
}
.wa-num { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.btn-copy {
  border: 1px solid var(--line); background: #fff; color: var(--primary-700);
  border-radius: var(--radius-sm); padding: 7px 12px; font-family: var(--font);
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.btn-copy:hover { border-color: var(--primary-500); }
.modal-note { font-size: 0.78rem; color: var(--muted); margin: 16px 0 0; }
body.modal-open { overflow: hidden; }

/* ---------- utility ---------- */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 24px; }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
