/* ============================================================
   RAVEN PEPTIDES — shared.css  (Dark Cosmic Edition)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

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

:root {
  /* ── Core palette ── */
  --ink:        #0A0208;
  --bg:         #08050F;
  --bg2:        #0E0A18;
  --bg3:        #130F20;
  --bg4:        #1C1630;

  --purple:     #7B2FFF;
  --purple-lt:  #9B5FFF;
  --purple-dk:  #5510DD;
  --purple-glow:rgba(123,47,255,.35);
  --purple-dim: rgba(123,47,255,.12);

  --neon:       #B06EFF;
  --neon-dim:   rgba(176,110,255,.15);

  --paper:      #0E0A18;
  --paper-dk:   #130F20;
  --rule:       rgba(123,47,255,.18);
  --blush-bg:   rgba(123,47,255,.1);
  --green-bg:   rgba(16,185,129,.1);
  --text:       #C8C0E0;
  --text-dim:   #6B6080;

  --nav-h:      68px;
  --radius:     12px;
  --radius-sm:  7px;
  --radius-lg:  18px;

  --shadow:     0 4px 32px rgba(123,47,255,.15);
  --shadow-md:  0 8px 48px rgba(123,47,255,.22);
  --shadow-lg:  0 16px 80px rgba(123,47,255,.28);
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Subtle star-field texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(123,47,255,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(176,110,255,.06) 0%, transparent 50%),
    radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px;
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #F2EEFF;
}

a { color: var(--purple-lt); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--neon); }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }

/* ── Trust Bar ──────────────────────────────────────────── */
.trust-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  overflow: hidden;
}
.trust-bar-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.trust-bar-item i { color: var(--purple-lt); font-size: 12px; }

/* ── Navigation ─────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(8,5,15,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: 0 0 40px rgba(123,47,255,.2); }
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-raven {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #F2EEFF;
  letter-spacing: -.03em;
}
.logo-research {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple-lt);
}
.logo-dot { color: var(--purple); font-size: 14px; margin-left: 2px; }

.nav-links { display: flex; gap: 6px; list-style: none; margin: 0 auto; }
.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--neon); background: var(--purple-dim); }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.cart-btn {
  position: relative;
  background: var(--purple-dim);
  border: 1px solid var(--rule);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-lt);
  font-size: 16px;
  transition: all var(--transition);
}
.cart-btn:hover { background: var(--purple); color: #fff; border-color: var(--purple); box-shadow: 0 0 20px var(--purple-glow); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: var(--transition); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 20px rgba(123,47,255,.4);
}
.btn-primary:hover { background: var(--purple-lt); color: #fff; box-shadow: 0 6px 32px rgba(123,47,255,.6); transform: translateY(-1px); }
.btn-secondary {
  background: rgba(123,47,255,.12);
  color: var(--purple-lt);
  border: 1px solid rgba(123,47,255,.3);
}
.btn-secondary:hover { background: rgba(123,47,255,.22); color: var(--neon); border-color: var(--purple-lt); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
}
.btn-outline:hover { border-color: var(--purple-lt); color: var(--purple-lt); }
.btn-lg { padding: 15px 32px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 12px; border-radius: var(--radius-sm); }

/* ── Section Labels ─────────────────────────────────────── */
.section-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--purple-lt);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before, .section-label::after {
  content: '';
  flex: 0 0 24px;
  height: 1px;
  background: var(--purple);
  opacity: .5;
}
.section-title {
  font-size: clamp(26px,3.5vw,42px);
  font-weight: 800;
  color: #F2EEFF;
  letter-spacing: -.03em;
}
.section-sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 560px;
}

/* ── Product Grid ───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.product-card-image {
  aspect-ratio: 1;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--rule);
}
.product-card-body { padding: 16px 18px; }
.product-card-cat {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--purple-lt);
  margin-bottom: 4px;
}
.product-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #F2EEFF;
  margin-bottom: 6px;
}
.product-card-desc { font-size: 12px; color: var(--text-dim); line-height: 1.5; margin-bottom: 12px; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-card-price {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--purple-lt);
}
.badge-purity {
  font-size: 10px;
  font-weight: 700;
  background: var(--green-bg);
  color: #10b981;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: .04em;
}

/* ── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  color: #F2EEFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123,47,255,.15);
}
.form-input::placeholder { color: var(--text-dim); }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='rgba(155,95,255,.7)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer; }
.form-select option { background: #1C1630; color: #F2EEFF; }
.form-textarea { resize: vertical; min-height: 120px; }

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.badge-purple { background: var(--purple-dim); color: var(--purple-lt); border: 1px solid rgba(123,47,255,.25); }
.badge-green  { background: var(--green-bg);   color: #10b981; border: 1px solid rgba(16,185,129,.25); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--rule);
  padding: 64px 0 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #F2EEFF;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.footer-tagline { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 14px; max-width: 280px; }
.footer-compliance { font-size: 11px; color: var(--text-dim); line-height: 1.6; max-width: 300px; opacity: .7; }
.footer-col h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple-lt);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: var(--text-dim); text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: var(--neon); }
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}
.footer-badges { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-badges span { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.footer-badges i { color: var(--purple-lt); }

/* ── Compliance bar ─────────────────────────────────────── */
.compliance-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  color: var(--text-dim);
  font-size: 11px;
  padding: 8px 0;
  text-align: center;
  letter-spacing: .02em;
}

/* ── Checkout / Order pages ─────────────────────────────── */
.checkout-section { padding: 60px 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.checkout-box {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.checkout-box h3 {
  font-size: 16px;
  font-weight: 800;
  color: #F2EEFF;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.order-summary { background: var(--bg2); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 88px; }

/* ── Utility ────────────────────────────────────────────── */
.divider { height: 1px; background: var(--rule); margin: 24px 0; }
.text-purple { color: var(--purple-lt); }
.text-dim { color: var(--text-dim); }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.gap-8 { gap: 32px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; inset: var(--nav-h) 0 0; background: rgba(8,5,15,.97); flex-direction: column; padding: 24px; gap: 4px; overflow-y: auto; z-index: 999; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 56px 0; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
}
