/*
Theme Name: Elevated Peptide Labs
Theme URI: https://elevatedpeptidelabs.com
Author: Elevated Peptide Labs
Description: A premium blue, silver, and white product catalog theme for Elevated Peptide Labs.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.5
License: GPL-2.0-or-later
Text Domain: elevated-peptide-labs
*/

:root {
  --bg: #07101d;
  --ink: #f7fbff;
  --muted: #aebdce;
  --blue: #125da8;
  --blue-2: #1d8bff;
  --navy: #091d37;
  --silver: #d7dee8;
  --panel: rgba(9, 29, 55, 0.84);
  --line: rgba(215, 222, 232, 0.26);
  --shadow: 0 24px 90px rgba(3, 15, 35, 0.42);
  --radius: 26px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(29, 139, 255, 0.2), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgba(215, 222, 232, 0.16), transparent 34rem),
    linear-gradient(180deg, #020812 0%, var(--bg) 44%, #020812 100%);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 8, 18, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 168px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(29, 139, 255, 0.22);
}

.brand-text {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--silver);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff;
}

.button,
.shop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(215, 222, 232, 0.72);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 16px 38px rgba(29, 139, 255, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--silver);
}

.hero {
  position: relative;
  padding: 82px 0 62px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(215, 222, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 222, 232, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, #000, transparent 76%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--silver);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.03;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 span,
h2 span {
  color: var(--blue-2);
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.trust-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--silver);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.logo-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 93, 168, 0.28), rgba(255, 255, 255, 0.06));
  box-shadow: var(--shadow);
}

.logo-card img {
  width: 100%;
  aspect-ratio: 2.62 / 1;
  object-fit: contain;
  border-radius: 20px;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.home-products .product-card:nth-child(n+9) {
  display: none;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(9, 29, 55, 0.94), rgba(3, 10, 22, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(29, 139, 255, 0.22), transparent 16rem);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
}

.product-image {
  display: grid;
  place-items: center;
  min-height: 245px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(215, 222, 232, 0.28);
  border-radius: 20px;
  background: #f9fbff;
}

.product-image img {
  width: 100%;
  height: 260px;
  object-fit: contain;
}

.product-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dose {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 950;
  white-space: nowrap;
}

.shop-button {
  width: fit-content;
  min-height: 40px;
  margin-top: 16px;
  padding: 0 16px;
  font-size: 0.72rem;
  cursor: pointer;
}

.shop-button.added {
  background: linear-gradient(135deg, #5fd08d, #1a8f57);
}

.view-cart-link {
  display: inline-flex;
  margin-left: 10px;
  color: var(--silver);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--blue-2);
  color: #fff;
  font-size: 0.68rem;
}

.cart-page {
  min-height: 62vh;
}

.cart-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.empty-cart {
  color: var(--muted);
  font-size: 1rem;
}

.cart-table {
  display: grid;
  gap: 12px;
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(215, 222, 232, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.cart-row strong,
.cart-row span {
  display: block;
}

.cart-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quantity-controls button {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.quantity-controls .remove-button {
  padding: 0 12px;
}

.line-total,
.cart-total strong {
  color: #fff;
  font-weight: 950;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--silver);
  font-size: 1.1rem;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.checkout-note {
  margin-bottom: 0;
  color: var(--muted);
}

.panel-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel h2,
.panel h3 {
  margin-top: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel p,
.panel li {
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  padding: 16px;
  border: 1px solid rgba(215, 222, 232, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.legal-content {
  max-width: 900px;
  padding: 62px 0;
}

.legal-content h1 {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}

.legal-content h2 {
  margin-top: 34px;
  color: var(--silver);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: #020812;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner a {
  color: #fff;
}

.footer-clauses {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 24px;
  color: var(--silver);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 150px;
  }

  .products,
  .feature-list,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-inner,
  .cart-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-row {
    display: flex;
  }
}
