/* ==========================================================================
   ARP Peptide — styles
   Dark, premium theme: warm near-black background, gold accent,
   Newsreader (serif) headlines paired with Manrope (sans) UI.
   ========================================================================== */
:root {
  --gold: #e5c07b;
  --gold-dark: #d4ab5f;

  --bg: #12100d;
  --bg-panel: #1a1712;
  --bg-soft: #16130c;
  --cream: #f6f1e7;

  --line: #2b271e;
  --line-2: #262218;
  --border-strong: #4a4335;

  --ink: #f6f1e7;
  --ink-2: #f2ede2;
  --body: #c9c4ba;
  --muted: #8f887b;
  --muted-2: #a8a194;
  --faint: #6f695c;

  /* backwards-compatible aliases used by shared components */
  --accent: var(--gold);
  --accent-dark: var(--gold-dark);

  --radius-pill: 999px;
  --maxw: 1240px;
  --font: 'Manrope', system-ui, 'Segoe UI', Arial, sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }

.container, .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.section { padding: 40px 0; }
.section-tight { padding: 20px 0; }
.text-center { text-align: center; }
.serif { font-family: var(--font-serif); font-weight: 500; }

/* ---------- Buttons -------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: .875rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--gold);
  background: var(--gold);
  color: #1a160e;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #1a160e; transform: translateY(-1px); }
/* aliases */
.btn--gold, .btn--solid { background: var(--gold); border-color: var(--gold); color: #1a160e; }
.btn--outline {
  background: transparent; border: 1.5px solid var(--border-strong); color: var(--ink-2);
}
.btn--outline:hover { background: rgba(229,192,123,.08); border-color: var(--gold); color: var(--ink-2); transform: translateY(-1px); }
.btn--block { display: block; width: 100%; }
.btn--lg { padding: 15px 30px; font-size: .9rem; }
.btn--sm { padding: 10px 20px; font-size: .8rem; }

/* ---------- Header --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,16,13,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 18px;
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 1.32rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink-2); line-height: 1; white-space: nowrap; }
.logo-mark { height: 2.2em; width: auto; flex-shrink: 0; display: block; }        /* molecule mark, left of the wordmark */
.logo-text { display: inline-flex; align-items: baseline; }
.logo .brand-primary { color: var(--gold); font-weight: 800; font-size: 2em; }   /* "ARP" — 2x bigger */
.logo .brand-secondary { color: var(--ink-2); font-weight: 800; }                 /* "Peptide" */
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { color: var(--muted); font-weight: 600; font-size: .875rem; }
.nav a:hover, .nav a.active { color: var(--gold); }
.header-cta { margin-left: auto; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink-2); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: .2s; }

/* ---------- Hero ----------------------------------------------------------- */
.hero { padding: 26px 0 6px; }
.hero-card {
  background: linear-gradient(135deg, #241f14 0%, #16130c 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
}
.hero-copy { padding: 70px 54px; }
.hero-badge {
  display: inline-block;
  background: rgba(229,192,123,.12); color: var(--gold);
  font-weight: 600; font-size: .72rem; letter-spacing: .06em;
  padding: 7px 15px; border-radius: var(--radius-pill); margin-bottom: 26px;
}
.hero-copy h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.04;
  color: #f6f1e7; margin: 0 0 20px;
}
.hero-copy h1 em { font-style: italic; color: var(--gold); }
.hero-copy p { font-size: 1.06rem; line-height: 1.65; color: var(--muted-2); max-width: 430px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { background: var(--cream); overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Feature columns ------------------------------------------------ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; }
.feature .icon {
  width: 44px; height: 44px; border-radius: 13px;
  background: rgba(229,192,123,.12); color: var(--gold);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1rem; color: var(--ink-2); margin: 0 0 7px; }
.feature p { margin: 0; font-size: .875rem; line-height: 1.6; color: var(--muted); }

/* ---------- Catalog header ------------------------------------------------- */
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.catalog-head h2 { font-family: var(--font-serif); font-weight: 500; font-size: 1.9rem; color: #f6f1e7; margin: 0 0 4px; }
.catalog-head p { font-size: .875rem; color: var(--muted); margin: 0; }
.catalog-viewall { font-size: .875rem; font-weight: 700; color: var(--gold); white-space: nowrap; }

/* generic section titles (used by products / contact pages) */
.section-title { color: var(--ink); }
.section-sub { color: var(--muted); margin: 0 0 30px; }
.products-page .section-title { font-family: var(--font-serif); font-weight: 500; }

/* ---------- Product grid + cards ------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: block;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { border-color: #3d3728; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.35); }
.product-card__imgwrap { aspect-ratio: 1; background: var(--cream); position: relative; }
.product-card__imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card__badge {
  position: absolute; top: 10px; left: 10px;
  font-size: .625rem; font-weight: 700; letter-spacing: .04em;
  background: var(--gold); color: #1a160e; padding: 4px 9px; border-radius: var(--radius-pill);
}
.product-card__body { padding: 15px 15px 17px; }
.product-card__title { font-weight: 700; font-size: .95rem; color: var(--ink-2); }
.product-card__sizes { font-size: .75rem; color: var(--muted); margin: 3px 0 12px; }
.product-card__cta {
  text-align: center; background: var(--gold); color: #1a160e;
  font-weight: 700; font-size: .75rem; padding: 10px 0; border-radius: var(--radius-pill);
}
.product-card__cta--ghost { background: #241f16; color: var(--ink-2); border: 1px solid #3a3427; }

/* ---------- Search (lives in the nav bar) ---------------------------------- */
.nav-search { position: relative; width: 208px; flex-shrink: 0; }
.nav-search input {
  width: 100%; padding: 9px 32px 9px 34px;
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius-pill); color: var(--ink-2);
  font-family: var(--font); font-size: .8rem; outline: none;
  transition: border-color .18s ease, background .18s ease;
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search input:focus { border-color: var(--gold); background: #1e1a14; }
/* hide the native clear button; we render our own */
.nav-search input[type="search"]::-webkit-search-cancel-button,
.nav-search input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--muted); pointer-events: none;
  transition: color .18s ease;
}
.nav-search input:focus ~ .search-icon { color: var(--gold); }
.search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted);
  font-size: 1rem; line-height: 1; cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.search-clear:hover { color: var(--gold); background: rgba(229,192,123,.12); }
.search-count { text-align: center; color: var(--muted); font-size: .8rem; margin: 0 0 26px; min-height: 1.1em; }
.search-empty { text-align: center; padding: 54px 20px; color: var(--muted); }
.search-empty h3 { color: var(--ink-2); margin-bottom: .4em; }
.search-empty p { margin: 0; font-size: .92rem; }

/* ---------- Pagination ----------------------------------------------------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pagination:empty { display: none; }
.page-btn {
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--bg-panel); color: var(--body);
  font-family: var(--font); font-weight: 700; font-size: .85rem; line-height: 1;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.page-btn:hover:not(:disabled):not(.is-active) { border-color: var(--gold); color: var(--gold); }
.page-btn.is-active { background: var(--gold); border-color: var(--gold); color: #1a160e; }
.page-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Newsletter card ------------------------------------------------ */
.newsletter-card {
  background: linear-gradient(135deg, #241f14 0%, #16130c 100%);
  border: 1px solid var(--line); border-radius: 24px;
  padding: 52px; text-align: center;
}
.newsletter-card h2 { font-family: var(--font-serif); font-weight: 500; font-size: 1.9rem; color: #f6f1e7; margin: 0 0 8px; }
.newsletter-card p { font-size: .95rem; color: var(--muted-2); margin: 0 0 26px; }
.newsletter-card form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.newsletter-card input {
  flex: 1; background: var(--bg); border: 1px solid var(--border-strong); color: var(--ink-2);
  font-family: var(--font); font-size: .875rem; padding: 14px 18px; border-radius: var(--radius-pill); outline: none;
}
.newsletter-card input::placeholder { color: var(--muted); }

/* ---------- Product detail ------------------------------------------------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.product-gallery { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--cream); position: sticky; top: 92px; }
.product-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product-info h1 { margin-bottom: 6px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0 26px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table th { color: var(--ink-2); font-weight: 600; width: 40%; }
.spec-table td { color: var(--body); }

.order-box { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.order-box .field { margin-bottom: 16px; }
.order-box label { display: block; font-weight: 600; color: var(--ink-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 7px; }
.order-box select, .order-box input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 10px;
  font-family: var(--font); font-size: .95rem; color: var(--ink-2); background: var(--bg);
}
.order-box .row { display: flex; gap: 14px; }
.order-box .row .field { flex: 1; }
.coa-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.coa-note svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.order-note { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }

.product-description { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.product-description h3 { margin-top: 34px; color: var(--gold); }
.product-description h4 { margin-top: 26px; color: var(--ink-2); }
.product-description p, .product-description li { font-size: .96rem; color: var(--body); }
.product-description ul { padding-left: 20px; }
.coming-soon { text-align: center; padding: 40px 20px; background: var(--bg-panel); border: 1px dashed #3a3427; border-radius: 16px; color: var(--muted); }
.coming-soon h3 { color: var(--ink-2); }

.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Contact -------------------------------------------------------- */
.contact-card { max-width: 640px; margin: 0 auto; text-align: center; background: var(--bg-panel); border: 1px solid var(--line); border-radius: 18px; padding: 44px; }
.contact-card h3 { color: var(--ink-2); }
.contact-card .big-email { display: inline-block; font-size: 1.25rem; font-weight: 700; color: var(--gold); margin: 18px 0 26px; word-break: break-all; }

/* ---------- Footer --------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line-2); background: var(--bg); padding: 40px 0 34px; font-size: .82rem; color: var(--faint); }
.site-footer .footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.site-footer .logo { color: var(--ink-2); font-size: 1.12rem; margin-bottom: 6px; }
.site-footer .footer-brand p { color: var(--muted); margin: 0; }
.site-footer .foot-nav { display: flex; gap: 26px; flex-wrap: wrap; font-weight: 600; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }
.site-footer .disclaimer { line-height: 1.7; margin: 18px 0 0; max-width: 900px; font-size: .8rem; color: var(--faint); }
.site-footer .copyright { margin: 14px 0 0; color: #5f5a4f; font-size: .8rem; }

/* ---------- Visitor counter (home page) ------------------------------------ */
.visitor-stat { text-align: center; padding: 14px 0; }
.visitor-stat__num {
  font-family: var(--font);
  font-size: clamp(2.8rem, 9vw, 5rem);
  font-weight: 800; line-height: 1; letter-spacing: -.02em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;   /* keeps width steady while counting */
}
.visitor-stat__label {
  margin-top: 12px; font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em; color: var(--muted);
}

/* ---------- Responsive ----------------------------------------------------- */
@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-copy { padding: 48px 34px; }
  .hero-visual { order: -1; height: 300px; }
  .features { grid-template-columns: 1fr; gap: 14px; }
  .product-detail { grid-template-columns: 1fr; gap: 34px; }
  .product-gallery { position: static; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 820px) {
  .nav {
    position: absolute; top: 74px; left: 0; right: 0;
    background: rgba(18,16,13,.98); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px 0; display: none;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 14px 26px; }
  .nav-toggle { display: block; order: 3; }
  .header-cta { display: none; }
  /* no room for search in the bar at this width, so it rides in the dropdown */
  .nav-search { width: calc(100% - 52px); margin: 8px 26px 10px; }
  .nav-search input { padding: 12px 34px; font-size: .9rem; }
}
@media (max-width: 560px) {
  .container, .wrap { padding: 0 18px; }
  .newsletter-card { padding: 36px 24px; }
  .newsletter-card form { flex-direction: column; }
  .catalog-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .order-box .row { flex-direction: column; gap: 0; }
}
