/*
Theme Name: D-GenX Labs
Theme URI: http://dgenxlabs.local
Author: Vanek Agency
Description: First-responder-owned research peptide catalog for D-GenX Labs. Black, chrome, and signal green.
Version: 1.3.7
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: dgenx-labs
*/

:root {
  --bg: #070807;
  --card: #101510;
  --ink: #f3f6f2;
  --muted: #b7c0b6;
  --line: rgba(140, 255, 70, 0.22);
  --green: #8cff3a;
  --green-deep: #5ed61a;
  --header: 74px;
  --wrap: 1120px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Oswald", "Arial Narrow", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 380px at 90% -10%, rgba(140, 255, 58, 0.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
}

body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: #fff; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--green);
  color: #071207;
  padding: 0.55rem 0.9rem;
  z-index: 10000;
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin-inline: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.08;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; text-transform: none; letter-spacing: 0; font-family: var(--font); font-weight: 700; }
p { margin: 0 0 0.9rem; color: var(--muted); }
.lede { font-size: 1.12rem; max-width: 40rem; color: #e4ebe3; }
.kicker {
  margin: 0 0 0.65rem;
  color: var(--green);
  font-family: var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.chrome { color: #f4f6f3; }
.text-link { font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #070807;
  border-bottom: 1px solid rgba(140, 255, 58, 0.16);
}
.research-bar {
  margin: 0;
  background: #0c140c;
  color: var(--green);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.48rem 1rem;
}
.header-inner {
  width: min(1360px, calc(100% - 1.5rem));
  margin: 0 auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.85rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  margin-right: auto;
  flex-shrink: 0;
}
.brand img { width: 58px; height: 50px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--display); letter-spacing: 0.08em; font-size: 1.15rem; color: #fff; font-weight: 500; }
.brand-text span { color: var(--green); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: var(--green);
  color: #071207;
  border-radius: 999px;
  padding: 0.62rem 0.95rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(140, 255, 58, 0.18);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: #071207;
  border-radius: 2px;
  content: "";
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; }
.nav-toggle[aria-expanded="true"] { background: #fff; }
.site-nav ul { display: flex; gap: 0.3rem 0.7rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { color: #d7e8cf; font-weight: 600; white-space: nowrap; }
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--green); }
.header-tools { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }
.header-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #0b0e0b;
  border: 1px solid rgba(140, 255, 58, 0.45);
  border-radius: 999px;
  padding: 0.2rem 0.22rem 0.2rem 0.85rem;
  width: 200px;
}
.header-search input[type="search"] {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 0.35rem 0;
  font: inherit;
  outline: none;
}
.header-search input[type="search"]::placeholder { color: #8b9789; }
.header-search button {
  background: var(--green);
  color: #071207;
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-family: var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #071207 !important;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  cursor: pointer;
  line-height: 1;
  font-size: 0.95rem;
}
.btn:hover { background: #fff; color: #071207 !important; }
.btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green) !important; background: transparent; }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff !important;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
}
.cart-count {
  background: var(--green);
  color: #071207;
  border-radius: 999px;
  min-width: 1.3rem;
  height: 1.3rem;
  display: inline-grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero { padding: 3.4rem 0 2.6rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center; }
.hero-logo { justify-self: end; width: min(380px, 100%); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.tagline {
  margin: 0.2rem 0 0.8rem;
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.3rem);
}
.tagline em { font-style: normal; color: var(--green); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 2rem;
  margin-top: 1.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(140, 255, 58, 0.18);
}
.stats strong { display: block; color: #fff; font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.06em; line-height: 1; }
.stats span { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }

.spec-strip { border-top: 1px solid rgba(140, 255, 58, 0.14); border-bottom: 1px solid rgba(140, 255, 58, 0.14); }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  color: #d7e8cf;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.section { padding: 3rem 0; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.4rem; }
.section-head .lede { margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card, .info-panel, .policy-block, .age-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.25rem;
}
.card p:last-child { margin: 0; }

.quote-band {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  background: var(--card);
}
.quote { margin: 0; max-width: 46rem; }
.quote p { color: #e7ece4; font-size: 1.15rem; margin: 0 0 0.6rem; }
.quote cite { color: var(--green); font-style: normal; font-weight: 700; }

.page-hero { padding: 2.6rem 0 0.4rem; }
.prose { max-width: 740px; }
.prose h2, .prose h3 { margin-top: 1.5rem; }
.prose li { color: var(--muted); margin: 0.3rem 0; }
.contact-grid, .about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin: 0 0 0.8rem; }
.contact-list a { color: #fff; font-weight: 700; }
.contact-list a:hover { color: var(--green); }
form.dgx-form { display: grid; gap: 0.75rem; }
label { color: #fff; font-weight: 600; font-size: 0.92rem; display: grid; gap: 0.3rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea,
.woocommerce input.input-text, .woocommerce select, .woocommerce textarea, .qty {
  width: 100%;
  background: #0b0e0b;
  color: var(--ink);
  border: 1px solid rgba(140, 255, 58, 0.28);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.notice-ok { background: rgba(140, 255, 58, 0.1); border: 1px solid var(--line); color: #e8ffe0; padding: 0.8rem 1rem; border-radius: 12px; }

.site-footer { border-top: 1px solid rgba(140, 255, 58, 0.18); padding: 2.4rem 0 1.3rem; background: #050605; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem; }
.footer-brand img { width: min(300px, 100%); }
.site-footer h2 { font-size: 0.95rem; letter-spacing: 0.14em; color: var(--green); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.35rem 0; }
.site-footer a { color: #d5ddd2; }
.site-footer a:hover { color: var(--green); }
.legal {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #8b9388;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.legal a { color: #8b9388; }

.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.age-gate[hidden] { display: none; }
.age-card { max-width: 480px; }

ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
ul.products li.product:hover { border-color: rgba(140, 255, 58, 0.55); }

.dgx-card { display: flex; flex-direction: column; height: 100%; color: inherit; background: transparent; }
.dgx-card:hover { color: inherit; }
.dgx-media {
  position: relative;
  margin: 0.7rem 0.7rem 0;
  min-height: 150px;
  border-radius: 12px;
  background: #0a0e0a;
  display: grid;
  place-items: center;
}
.dgx-vial { width: 70px; height: 92px; }
.dgx-vial svg { width: 100%; height: 100%; }
.dgx-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--green);
  color: #071207;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dgx-info { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.85rem 1rem 1rem; flex: 1; }
.dgx-card h2, ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.15rem !important;
  margin: 0;
  padding: 0 !important;
  color: #fff;
}
.dgx-blurb { margin: 0; font-size: 0.92rem; line-height: 1.4; min-height: 2.6em; }
.dgx-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; margin-top: auto; padding-top: 0.35rem; }
.dgx-price { margin: 0; color: #fff !important; font-weight: 700; }
.dgx-strength { color: var(--muted); font-weight: 600; }
.dgx-dot { color: rgba(255,255,255,0.35); margin: 0 0.15rem; }
.dgx-view { color: var(--green); font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }

.woocommerce-result-count, .woocommerce-ordering, .woocommerce-breadcrumb { color: var(--muted); }
.woocommerce-ordering { margin-bottom: 1rem; }
.woocommerce-breadcrumb a { color: var(--green); }
.single-product div.product {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 2rem;
}
.single-product div.product .summary { float: none; width: auto; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: #fff; font-size: 1.3rem; }
.research-box { margin-top: 1rem; border-left: 3px solid var(--green); padding: 0.75rem 0.95rem; background: rgba(140, 255, 58, 0.06); border-radius: 0 12px 12px 0; }
.research-box p { margin: 0; color: #d5e8cc; }
.bulk-table { width: 100%; border-collapse: collapse; margin: 0.4rem 0 1rem; }
.bulk-table th, .bulk-table td { text-align: left; padding: 0.4rem 0.2rem; border-bottom: 1px solid rgba(255,255,255,0.08); color: var(--muted); }
.bulk-table th { color: var(--green); }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.wc-block-components-button, .wc-block-cart__submit-button {
  background: var(--green) !important;
  color: #071207 !important;
  border-radius: 999px !important;
  font-family: var(--display) !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border: 0 !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .wc-block-components-button:hover { background: #fff !important; color: #071207 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 1rem;
  border: 0;
  background: transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom-color: rgba(140, 255, 58, 0.2); }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: #121712;
  border: 1px solid rgba(140, 255, 58, 0.2);
  border-radius: 999px;
  margin: 0 0.4rem 0.4rem 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: #d7e8cf; font-weight: 600; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--green);
  border-color: var(--green);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #071207; }
.woocommerce div.product .woocommerce-tabs .panel { color: var(--muted); }
.woocommerce #review_form #respond { background: transparent; color: var(--ink); }
.woocommerce #review_form #respond .comment-form-comment label,
.woocommerce #review_form #respond .comment-form-author label,
.woocommerce #review_form #respond .comment-form-email label { color: var(--ink); }
.woocommerce table.shop_table { background: var(--card); border: 1px solid var(--line) !important; border-radius: 14px; color: var(--ink); }
.woocommerce table.shop_table th { color: var(--green); }
.woocommerce-error, .woocommerce-info, .woocommerce-message { background: #121712; color: var(--ink); border-top-color: var(--green); }
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout,
.wc-block-components-checkout-step__title,
.wc-block-components-form .wc-block-components-text-input label { color: var(--ink); }
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-textarea {
  background: #0b0e0b !important;
  color: var(--ink) !important;
  border-color: rgba(140, 255, 58, 0.28) !important;
}
.wc-block-components-quantity-selector { border: 1px solid var(--line) !important; background: #0b0e0b; }
.wc-block-components-quantity-selector input,
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { color: #fff !important; background: transparent !important; }

@media (max-width: 1280px) {
  .header-inner { flex-wrap: nowrap; }
  .brand { margin-right: 0; }
  .header-search { flex: 1 1 auto; width: auto; min-width: 0; }
  .header-tools .btn-text { display: none; }
  .nav-toggle { display: inline-flex; flex-shrink: 0; }
  .site-nav { display: none; }
  body.nav-open .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - 100%);
    background: #070807;
    z-index: 60;
    padding: 0.4rem 1.2rem 2rem;
    overflow: auto;
  }
  body.nav-open .site-nav ul { flex-direction: column; align-items: flex-start; }
  body.nav-open .site-nav a { display: block; width: 100%; padding: 0.85rem 0; font-size: 1.25rem; font-family: var(--display); letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

@media (max-width: 900px) {
  ul.products, .cards { grid-template-columns: 1fr 1fr; }
  .hero-grid, .contact-grid, .about-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-logo { justify-self: center; order: -1; width: min(240px, 70vw); }
  .quote-band, .spec-row { flex-direction: column; align-items: flex-start; }
  .single-product div.product { grid-template-columns: 1fr; }
  .brand-text span { display: none; }
}

@media (max-width: 680px) {
  .header-inner { gap: 0.4rem; }
  .header-search { padding-left: 0.65rem; }
  .header-search button { padding: 0.38rem 0.55rem; font-size: 0.78rem; flex-shrink: 0; }
  .nav-toggle { padding: 0.48rem 0.7rem; font-size: 0.9rem; }
  .cart-link { padding: 0.4rem 0.55rem; letter-spacing: 0.04em; }
  .brand-text { display: none; }
  ul.products, .cards, .stats { grid-template-columns: 1fr; }
  .section-head, .legal { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 2.2rem; }
}
