/* Picky Peptides — green / black / white */
:root {
  --green: #1db954;
  --green-dark: #128a3d;
  --green-soft: #e8f8ee;
  --black: #0b0d0c;
  --ink: #161a18;
  --gray: #5d6661;
  --line: #e3e7e5;
  --white: #ffffff;
  --radius: 12px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-dark); }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Top notice */
.notice {
  background: var(--black); color: #cfd6d2; font-size: 13px; text-align: center; padding: 8px 16px;
}
.notice strong { color: var(--green); }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -0.5px; color: var(--black); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--green); }
.logo .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-left: 2px; }
nav.main { display: flex; gap: 22px; align-items: center; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
nav.main a:hover, nav.main a.active { color: var(--green-dark); }
.cart-link { display: inline-flex; align-items: center; gap: 6px; background: var(--black); color: var(--white) !important; padding: 8px 14px; border-radius: 999px; }
.cart-count { background: var(--green); color: var(--black); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 1px 7px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 18px; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 16px; border-bottom: 1px solid var(--line); gap: 14px; }
  nav.main.open { display: flex; }
}

.hsearch input { width: 150px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 14px; background: #f6f8f7; }
.hsearch input:focus { outline: 2px solid var(--green); border-color: var(--green); background: var(--white); }
@media (max-width: 760px) { .hsearch, .hsearch input { width: 100%; } }

/* Buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 999px; background: var(--green); color: var(--black); transition: background .15s; }
.btn:hover { background: #22d160; }
.btn.dark { background: var(--black); color: var(--white); }
.btn.dark:hover { background: #26302b; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero { background: var(--black); color: var(--white); padding: 80px 0 90px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(29,185,84,.35), transparent 70%); }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -1.5px; max-width: 700px; }
.hero h1 span { color: var(--green); }
.hero p { color: #b9c3be; font-size: 18px; max-width: 560px; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .btn.ghost { color: var(--white); border-color: #39443e; }

/* Sections */
section.block { padding: 64px 0; }
section.alt { background: #f6f8f7; }
h2.title { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.8px; margin: 0 0 8px; }
p.sub { color: var(--gray); margin: 0 0 32px; }
.page-head { background: var(--black); color: var(--white); padding: 44px 0; }
.page-head h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); letter-spacing: -1px; }
.page-head p { color: #b9c3be; margin: 8px 0 0; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust div { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--white); }
.trust b { display: block; margin-bottom: 4px; }
.trust small { color: var(--gray); }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; } }

/* Products */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--white); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.card .img { background: linear-gradient(160deg, #f2f7f4, #dff3e7); display: flex; align-items: center; justify-content: center; height: 190px; text-decoration: none; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 17px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card .meta { color: var(--gray); font-size: 13px; }
.card .row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.price { font-weight: 700; font-size: 18px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--green-dark); background: var(--green-soft); padding: 3px 8px; border-radius: 999px; width: fit-content; }
.oos { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #8a2b2b; background: #fbeaea; padding: 6px 12px; border-radius: 999px; }
.card.is-oos .img { opacity: .45; filter: grayscale(1); }
.card.is-oos .price { color: var(--gray); }
.filters {display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { border: 1px solid var(--line); background: var(--white); padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; }
.filters button.on { background: var(--black); color: var(--white); border-color: var(--black); }

/* Product page */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 0 64px; }
.product .img { background: linear-gradient(160deg, #f2f7f4, #dff3e7); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; min-height: 420px; }
.product h1 { margin: 8px 0; font-size: clamp(28px, 4vw, 38px); letter-spacing: -1px; }
.product .price { font-size: 26px; margin: 8px 0 18px; }
.specs { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.specs td { border-bottom: 1px solid var(--line); padding: 10px 0; }
.specs td:first-child { color: var(--gray); width: 40%; }
.qty { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.qty input { width: 72px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.ruo { background: #fff8e6; border: 1px solid #f1dfa6; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #6b5512; margin-top: 18px; }
@media (max-width: 800px) { .product { grid-template-columns: 1fr; gap: 24px; } .product .img { min-height: 280px; } }

/* Cart & checkout */
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; padding: 40px 0 64px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line .thumb { background: var(--green-soft); border-radius: 10px; height: 64px; display: flex; align-items: center; justify-content: center; }
.line .name { font-weight: 600; }
.line .ctrl { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; }
.line .ctrl button { border: 1px solid var(--line); background: var(--white); width: 28px; height: 28px; border-radius: 6px; cursor: pointer; }
.line .remove { background: none !important; border: 0 !important; width: auto !important; color: var(--gray); text-decoration: underline; }
.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 86px; background: var(--white); }
.summary h3 { margin: 0 0 14px; }
.summary .r { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; font-weight: 700; font-size: 18px; }
.empty { text-align: center; padding: 60px 0; color: var(--gray); }

form .field { margin-bottom: 14px; }
form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
form input, form select, form textarea { width: 100%; padding: 11px 12px; border: 1px solid #cfd6d2; border-radius: 8px; font: inherit; background: var(--white); }
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .cols2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; }
.check input { width: auto; margin-top: 4px; }
.check label { font-weight: 400; margin: 0; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.box h3 { margin-top: 0; }
.btc-pending { background: var(--green-soft); border: 1px dashed var(--green); border-radius: 10px; padding: 14px; font-size: 14px; }

/* FAQ / text pages */
.prose { max-width: 760px; padding: 40px 0 64px; }
.prose h2 { margin-top: 36px; letter-spacing: -0.5px; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--gray); margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--black); color: var(--green); font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Footer */
footer.site { background: var(--black); color: #9aa49f; padding: 48px 0 28px; font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer.site a { color: #d7ddd9; text-decoration: none; display: block; margin-bottom: 8px; }
footer.site a:hover { color: var(--green); }
footer.site h4 { color: var(--white); margin: 0 0 12px; }
footer.site .logo { color: var(--white); }
footer.site .legal { border-top: 1px solid #222a26; margin-top: 32px; padding-top: 20px; font-size: 12px; line-height: 1.6; }
@media (max-width: 700px) { footer.site .cols { grid-template-columns: 1fr; } }

/* Password screen: hide the whole site until unlocked */
html.locked body > *:not(.pw-gate) { visibility: hidden; }
.pw-gate { background: var(--black); }

/* Age gate */
.gate { position: fixed; inset: 0; background: rgba(11,13,12,.92); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gate .panel { background: var(--white); border-radius: 16px; max-width: 460px; padding: 32px; text-align: center; }
.gate h2 { margin-top: 0; }
.gate p { color: var(--gray); font-size: 15px; }
.gate .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--black); color: var(--white); padding: 12px 20px; border-radius: 999px; transition: transform .25s; z-index: 50; font-size: 14px; }
.toast.show { transform: translateX(-50%) translateY(0); }
