/*
Theme Name: Gold Standard Peptides
Theme URI: https://goldstandardpeptides.com
Author: Gold Standard Peptides
Description: Premium black-and-gold WordPress theme for Gold Standard Peptides with a custom homepage, policy pages, and WooCommerce styling support.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: gold-standard-peptides
*/

:root {
  --ink: #f7efd8;
  --muted: #b9ad8c;
  --line: #3c3322;
  --paper: #0b0b09;
  --gold: #d9a83f;
  --gold-dark: #f0c86f;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
  --font-display: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue Condensed", "HelveticaNeue-CondensedBold", "Arial Black", sans-serif;
  --font-brand: var(--font-display);
  --font-body: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 12%, rgba(217, 168, 63, 0.14), transparent 34%),
    radial-gradient(circle at 15% 72%, rgba(217, 168, 63, 0.08), transparent 30%),
    var(--paper);
  font-family: var(--font-body);
  line-height: 1.5;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(11, 11, 9, 0.88);
  border-bottom: 1px solid rgba(217, 168, 63, 0.22);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 214px;
}

.brand-wordmark {
  display: block;
  width: clamp(204px, 20vw, 278px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: #e9dab1;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  letter-spacing: 0.01em;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 11, 9, 0.96) 0%, rgba(11, 11, 9, 0.8) 40%, rgba(11, 11, 9, 0.32) 74%, rgba(11, 11, 9, 0.12) 100%),
    linear-gradient(180deg, rgba(217, 168, 63, 0.12), rgba(11, 11, 9, 0.12));
}

.hero-content {
  max-width: 1040px;
  padding: 150px clamp(22px, 6vw, 82px) 90px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-wordmark {
  display: block;
  width: min(900px, 100%);
  height: auto;
  margin: 0 0 26px;
  filter: drop-shadow(0 0 34px rgba(217, 168, 63, 0.24));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.8vw, 5.8rem);
  line-height: 0.88;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-headline {
  color: #0b0b09;
  -webkit-text-stroke: 1.4px var(--gold-dark);
  text-shadow:
    0 0 20px rgba(217, 168, 63, 0.34),
    0 0 42px rgba(217, 168, 63, 0.22);
}

h2 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4.4vw, 4.7rem);
  line-height: 0.9;
  font-weight: 900;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-copy {
  max-width: 560px;
  color: #d6caab;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.button.primary {
  color: #11100c;
  background: linear-gradient(135deg, #f3d789, var(--gold));
  box-shadow: 0 10px 28px rgba(217, 168, 63, 0.22);
}

.button.secondary {
  color: #f6e6b8;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(217, 168, 63, 0.36);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.proof-strip div {
  padding: 28px clamp(18px, 4vw, 48px);
  background: #11110f;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
}

.proof-strip span {
  color: var(--muted);
  font-weight: 650;
}

.section {
  position: relative;
  padding: clamp(72px, 10vw, 132px) clamp(22px, 6vw, 82px);
  overflow: hidden;
}

.trust-section {
  position: relative;
  padding: clamp(72px, 9vw, 118px) clamp(22px, 6vw, 82px);
  background:
    radial-gradient(circle at 16% 12%, rgba(217, 168, 63, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(8, 8, 7, 0.92), rgba(17, 16, 13, 0.96)),
    url("assets/lab-hero.png") center 42% / cover,
    #0f0e0b;
  border-top: 1px solid rgba(217, 168, 63, 0.22);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(217, 168, 63, 0.24);
  border: 1px solid rgba(217, 168, 63, 0.26);
}

.trust-card {
  display: grid;
  align-content: center;
  min-height: 168px;
  padding: 24px;
  background: rgba(9, 9, 7, 0.78);
}

.trust-card span {
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 900;
}

.trust-card h3 {
  margin: 12px 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
}

.products {
  background:
    radial-gradient(circle at 82% 8%, rgba(217, 168, 63, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(7, 7, 6, 0.72), rgba(15, 14, 11, 0.94)),
    url("assets/lab-hero.png") center 38% / cover,
    #0f0e0b;
}

.catalog-page,
.policy-page {
  min-height: 100vh;
  padding: 132px clamp(22px, 6vw, 82px) clamp(72px, 9vw, 118px);
  background:
    radial-gradient(circle at 82% 8%, rgba(217, 168, 63, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(7, 7, 6, 0.82), rgba(15, 14, 11, 0.96)),
    url("assets/lab-hero.png") center 38% / cover,
    #0f0e0b;
}

.policy-panel {
  width: min(980px, 100%);
  padding: clamp(28px, 5vw, 58px);
  background: rgba(10, 10, 8, 0.78);
  border: 1px solid rgba(217, 168, 63, 0.3);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.policy-panel > p:not(.eyebrow),
.policy-list,
.contact-grid p {
  color: var(--muted);
}

.policy-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding-left: 20px;
}

.policy-list a,
.contact-grid a {
  color: var(--gold-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: rgba(217, 168, 63, 0.24);
  border: 1px solid rgba(217, 168, 63, 0.24);
}

.contact-grid article {
  padding: 24px;
  background: rgba(14, 13, 10, 0.86);
}

.contact-panel h1 {
  max-width: 860px;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 0.92;
}

.contact-grid h2 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 0.95;
}

.contact-grid p,
.contact-grid a {
  font-size: clamp(0.78rem, 1.1vw, 0.96rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.catalog-showcase {
  margin-top: 38px;
}

.products-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-copy {
  max-width: 650px;
}

.section-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.product-showcase {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.product-tile {
  display: grid;
  min-height: 330px;
  padding: 16px 16px 20px;
  align-content: end;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(217, 168, 63, 0.04)),
    #14130f;
  border: 1px solid rgba(217, 168, 63, 0.28);
  border-radius: 8px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.26);
}

.product-tile img {
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1 / 1.25;
  justify-self: center;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.42));
}

.product-tile h3 {
  margin: 8px 0 4px;
}

.product-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.product-tile.preview-only {
  cursor: default;
}

.split,
.quality-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: start;
}

.about-section {
  background:
    linear-gradient(90deg, rgba(17, 16, 13, 0.98), rgba(17, 16, 13, 0.78)),
    url("assets/lab-hero.png") right center / cover;
}

.quality-band {
  display: block;
  color: var(--ink);
  background:
    radial-gradient(circle at 70% 18%, rgba(217, 168, 63, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(21, 19, 15, 0.96), rgba(21, 19, 15, 0.72)),
    url("assets/lab-hero.png") center / cover;
}

.quality-band .section-copy {
  max-width: 900px;
}

.info-band {
  background: #0d0d0b;
  border-top: 1px solid var(--line);
}

.button:focus {
  outline: 3px solid rgba(217, 168, 63, 0.28);
  outline-offset: 2px;
}

label {
  display: grid;
  gap: 8px;
  color: #ead9a8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(11, 11, 9, 0.88);
  border: 1px solid rgba(217, 168, 63, 0.36);
  border-radius: 6px;
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(217, 168, 63, 0.28);
  outline-offset: 2px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: #ead9a8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
  gap: 32px;
  padding: 38px clamp(22px, 6vw, 82px);
  color: rgba(247, 239, 216, 0.76);
  background: #070706;
  border-top: 1px solid rgba(217, 168, 63, 0.22);
}

.site-footer p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 900;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-brand span {
  max-width: 540px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
  color: #e9dab1;
  font-size: 0.86rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--gold-dark);
}

.product-header {
  position: sticky;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  min-height: 100vh;
  padding: 128px clamp(22px, 6vw, 82px) 72px;
  background:
    linear-gradient(90deg, rgba(7, 7, 6, 0.96), rgba(7, 7, 6, 0.78)),
    url("assets/lab-hero.png") center / cover;
}

.product-visual-panel,
.product-buy-panel {
  border: 1px solid rgba(217, 168, 63, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 12%, rgba(217, 168, 63, 0.18), transparent 42%),
    rgba(15, 14, 11, 0.78);
  box-shadow: var(--shadow);
}

.product-visual-panel {
  display: grid;
  min-height: 560px;
  place-items: center;
  padding: clamp(18px, 4vw, 38px);
}

.product-visual-panel img {
  width: min(430px, 100%);
  filter: drop-shadow(0 32px 42px rgba(0, 0, 0, 0.45));
}

.product-buy-panel {
  padding: clamp(28px, 5vw, 52px);
}

.product-buy-panel h1 {
  max-width: 100%;
}

.product-price {
  margin-bottom: 12px;
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 900;
}

.product-disclaimer,
.cart-status {
  color: var(--muted);
  font-weight: 700;
}

.product-controls {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.size-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-option span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid rgba(217, 168, 63, 0.34);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
}

.size-option input:checked + span {
  color: #11100c;
  background: linear-gradient(135deg, #f3d789, var(--gold));
}

.quantity-label {
  max-width: 180px;
}

.quantity-input {
  text-align: center;
}

.product-section {
  padding: clamp(72px, 10vw, 120px) clamp(22px, 6vw, 82px);
  background:
    linear-gradient(180deg, rgba(15, 14, 11, 0.94), rgba(10, 10, 8, 0.98)),
    url("assets/lab-hero.png") center / cover;
  border-top: 1px solid var(--line);
}

.product-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background:
    linear-gradient(90deg, rgba(17, 16, 13, 0.96), rgba(17, 16, 13, 0.78)),
    url("assets/lab-hero.png") center / cover;
}

.product-info-grid article {
  padding: clamp(28px, 5vw, 54px);
  background: rgba(10, 10, 8, 0.72);
}

.product-info-grid p {
  color: var(--muted);
}

.woocommerce-page-shell {
  color: var(--ink);
}

.woocommerce-page-shell .woocommerce,
.woocommerce-page-shell .product,
.woocommerce-page-shell .woocommerce-cart-form,
.woocommerce-page-shell .woocommerce-checkout,
.woocommerce-page-shell .woocommerce-MyAccount-content,
.woocommerce-page-shell .woocommerce-MyAccount-navigation {
  color: var(--ink);
}

.woocommerce-page-shell .woocommerce-products-header,
.woocommerce-page-shell .summary,
.woocommerce-page-shell .woocommerce-cart-form,
.woocommerce-page-shell .cart-collaterals,
.woocommerce-page-shell .woocommerce-checkout-review-order,
.woocommerce-page-shell .woocommerce-billing-fields,
.woocommerce-page-shell .woocommerce-shipping-fields,
.woocommerce-page-shell .woocommerce-additional-fields,
.woocommerce-page-shell .woocommerce-MyAccount-content,
.woocommerce-page-shell .woocommerce-MyAccount-navigation {
  padding: clamp(22px, 4vw, 42px);
  background: rgba(10, 10, 8, 0.78);
  border: 1px solid rgba(217, 168, 63, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.woocommerce-page-shell ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.woocommerce-page-shell ul.products li.product {
  width: auto;
  margin: 0;
  padding: 18px;
  background: rgba(14, 13, 10, 0.86);
  border: 1px solid rgba(217, 168, 63, 0.26);
  border-radius: 8px;
}

.woocommerce-page-shell ul.products li.product a img,
.woocommerce-page-shell div.product div.images img {
  border-radius: 8px;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.42));
}

.woocommerce-page-shell .price,
.woocommerce-page-shell .amount,
.woocommerce-page-shell .woocommerce-Price-amount {
  color: var(--gold-dark);
  font-weight: 800;
}

.woocommerce-page-shell .button,
.woocommerce-page-shell button.button,
.woocommerce-page-shell input.button,
.woocommerce-page-shell #respond input#submit {
  min-height: 48px;
  padding: 13px 18px;
  color: #0b0b09;
  background: linear-gradient(135deg, #f3d789, var(--gold));
  border: 1px solid rgba(217, 168, 63, 0.42);
  border-radius: 6px;
  font-weight: 800;
  text-transform: uppercase;
}

.woocommerce-page-shell table.shop_table,
.woocommerce-page-shell table.shop_table td,
.woocommerce-page-shell table.shop_table th {
  color: var(--ink);
  border-color: rgba(217, 168, 63, 0.24);
}

.woocommerce-page-shell .woocommerce-message,
.woocommerce-page-shell .woocommerce-info,
.woocommerce-page-shell .woocommerce-error {
  color: var(--ink);
  background: rgba(14, 13, 10, 0.92);
  border-top-color: var(--gold);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .product-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce-page-shell ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-strip,
  .trust-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .quality-band,
  .product-detail-hero,
  .product-info-grid,
  .cart-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .hero {
    min-height: 820px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(11, 11, 9, 0.98) 0%, rgba(11, 11, 9, 0.9) 48%, rgba(11, 11, 9, 0.42) 100%);
  }

  .hero-content {
    padding-top: 128px;
  }

  .brand {
    min-width: 0;
  }

  .brand-wordmark {
    width: 202px;
  }

  .hero-wordmark {
    width: min(100%, 680px);
  }

  h1 {
    font-size: 2.35rem;
  }

  .proof-strip,
  .trust-grid,
  .contact-grid,
  .product-showcase,
  .woocommerce-page-shell ul.products,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .product-tile {
    min-height: 300px;
  }

  .size-options {
    grid-template-columns: 1fr;
  }

  .product-visual-panel {
    min-height: 420px;
  }

  .cart-item {
    grid-template-columns: 82px 1fr;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .cart-quantity {
    justify-items: start;
  }

}
/* ===== GOLD STANDARD SHOP CLEANUP ===== */

/* Force 4 products per row */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
}

/* Product card */
.woocommerce ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    min-height: 430px;
    padding: 20px;
    border: 1px solid rgba(212, 168, 59, .25);
    border-radius: 10px;
    background: rgba(0,0,0,.15);
}

/* Product image */
.woocommerce ul.products li.product img {
    max-height: 170px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

/* Product title */
.woocommerce ul.products li.product h2 {
    min-height: 55px;
    text-align: center;
    font-size: 18px;
}

/* Price */
.woocommerce ul.products li.product .price {
    min-height: 45px;
    text-align: center;
    color: #d4a83b !important;
    font-weight: 700;
}

/* Buttons line up */
.woocommerce ul.products li.product .button {
    margin-top: auto !important;
    width: 100%;
    text-align: center;
}

/* Center everything */
.woocommerce ul.products li.product * {
    text-align: center;
}

/* Mobile */
@media(max-width:1024px){
    .woocommerce ul.products{
        grid-template-columns: repeat(2,1fr) !important;
    }
}

@media(max-width:768px){
    .woocommerce ul.products{
        grid-template-columns: 1fr !important;
    }
}