/* PurePeps — Research Peptides Marketplace */

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

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.5;
  color: #fff;
  background: #0a0a0a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Top bar */
.top-bar {
  border-bottom: 1px solid #2a2a2a;
  background: #050505;
  color: #ccc;
  font-size: 0.75rem;
}

.top-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.top-bar-offer {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #e5e5e5;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
}

.top-bar a:hover {
  opacity: 0.85;
}

.top-bar-separator {
  opacity: 0.5;
}

/* Header — minimal, all nav in details/summary (no JS) */
.site-header {
  border-bottom: 1px solid #2a2a2a;
  padding: 0.4rem 1rem;
  background: #0a0a0a;
  /* Do not use overflow: hidden here — it clips the mobile menu dropdown */
  overflow: visible;
}

.nav {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links-desktop {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-actions-desktop {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  opacity: 0.85;
}

.logo-link {
  display: flex;
  align-items: center;
}

/* Horizontal logo (SVG) — height caps display size; width follows aspect ratio */
/* Wide screens: large lockup (mobile menu layout overrides below 721px) */
.logo-img {
  height: 64px;
  width: auto;
  min-height: 48px;
  max-width: min(420px, 100%);
  display: block;
  object-fit: contain;
  object-position: left center;
}

/* Menu dropdown — native HTML details/summary */
.nav-menu {
  margin-left: auto;
}

.nav-menu-summary {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.nav-menu-summary::-webkit-details-marker,
.nav-menu-summary::marker {
  display: none;
}

.nav-menu-summary:hover {
  background: #252525;
}

.nav-menu-panel {
  position: absolute;
  top: 100%;
  right: 1rem;
  margin-top: 0.25rem;
  min-width: 200px;
  padding: 0.5rem 0;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.nav-menu-panel > a,
.nav-menu-panel > .nav-search {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
}

.nav-menu-panel > a:hover {
  background: #1a1a1a;
}

.nav-search {
  padding: 0.5rem 1rem;
}

.nav-search input[type="search"] {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: #050505;
  color: #fff;
  font-size: 0.875rem;
}

.nav-search input::placeholder {
  color: #666;
}

/* Peptides submenu — nested details */
.nav-peptides {
  margin: 0;
}

.nav-peptides-summary {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.nav-peptides-summary::-webkit-details-marker,
.nav-peptides-summary::marker {
  display: none;
}

.nav-peptides-summary:hover {
  background: #1a1a1a;
}

.nav-peptides-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #0a0a0a;
}

.nav-peptides-menu a {
  display: block;
  padding: 0.4rem 1rem 0.4rem 1.5rem;
  color: #ccc;
  font-size: 0.875rem;
}

.nav-peptides-menu a:hover {
  background: #1a1a1a;
  color: #fff;
}

/* Main content */
main {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  width: 100%;
}

/* Hero (main page) */
.hero {
  padding: 4rem 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-tagline {
  margin: 0;
  color: #aaa;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

/* Homepage hero */
.hero.hero-home {
  align-items: stretch;
  text-align: left;
  gap: 2.5rem;
}

.hero-copy {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e5e5e5;
}

.hero-title {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #ccc;
}

.hero-highlights li {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #141414;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  min-width: 260px;
  max-width: 320px;
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  border: 1px solid #333;
  background: radial-gradient(circle at top left, #2c2c2c, #101010 60%, #050505 100%);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-card-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #aaa;
}

.hero-card-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
}

.hero-card-meta {
  margin: 0;
  font-size: 0.875rem;
  color: #aaa;
}

/* Hide top bar and disclaimer — minimal header */
.top-bar,
.research-disclaimer-banner {
  display: none;
}

/* Desktop: inline nav + hide duplicate mobile menu (see .nav-responsive on <nav>) */
.nav-responsive .nav-menu {
  display: none;
}

.nav-menu {
  position: relative;
}

/* Mobile: hide desktop row, show menu — grid keeps logo + Menu visible in portrait */
@media (max-width: 720px) {
  .site-header {
    padding: 0.35rem 0.75rem;
  }

  /* Grid: logo shrinks (minmax 0); Menu stays in view — flex row often pushed Menu off-screen */
  .site-header .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    overflow: visible;
  }

  /* Allow column to shrink for long menus, but logo stays readable (was 32px — too small) */
  .site-header .logo-link {
    min-width: 0;
    max-width: 100%;
  }

  .site-header .logo-img {
    height: 48px;
    width: auto;
    min-height: 44px;
    max-width: min(100%, 280px);
    object-fit: contain;
    object-position: left center;
  }

  .nav-links-desktop,
  .nav-spacer,
  .nav-actions-desktop {
    display: none !important;
  }

  .nav-responsive .nav-menu {
    display: block;
    margin-left: 0;
    justify-self: end;
    flex-shrink: 0;
  }

  /* Menu-only pages (no .nav-responsive): second column is still the details menu */
  .site-header .nav-menu {
    justify-self: end;
  }

  main {
    padding: 0.75rem 1rem;
  }

  /* Fixed panel: not clipped by ancestors; --nav-panel-top set by js/nav-mobile.js */
  .nav-menu-panel {
    position: fixed;
    top: var(
      --nav-panel-top,
      calc(env(safe-area-inset-top, 0px) + 3.75rem)
    );
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    width: auto;
    min-width: 0;
    margin-top: 0;
    z-index: 10050;
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.btn-primary {
  background: #fff;
  color: #0a0a0a;
  border: 2px solid #fff;
}

.btn-primary:hover {
  background: transparent;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #0a0a0a;
}

/* Listings (Browse) page */
.listings-page h1 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.listings-subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: #aaa;
}

.listings-empty {
  margin: 2rem 0 0;
  color: #888;
  font-size: 0.9375rem;
}

.listings-empty a {
  color: #fff;
  text-decoration: underline;
}

.listing-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.listing-card .listing-card-inner,
.listing-card a.listing-card-inner {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
  background: #141414;
}

.listing-card .listing-card-inner:hover,
.listing-card a.listing-card-inner:hover {
  border-color: #555;
  background: #1a1a1a;
}

.listing-image-wrap {
  display: block;
  aspect-ratio: 1;
  background: #1a1a1a;
  overflow: hidden;
}

.listing-image-wrap .listing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.listing-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: #1a1a1a;
  color: #555;
  font-size: 1.5rem;
  font-weight: 600;
}

.listing-title,
.listing-price,
.listing-meta {
  display: block;
  padding: 0.75rem 1rem;
}

.listing-title {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}

.listing-price {
  padding-top: 0;
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}

.listing-meta {
  padding-top: 0;
  color: #888;
  font-size: 0.875rem;
}

.listing-category {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin: 0.5rem 0.5rem 0 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #252525;
  border: 1px solid #444;
  border-radius: 4px;
  color: #ccc;
}

.listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 1rem 0.75rem;
}

.listing-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 999px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #888;
}

/* Item page */
.item-page .back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #888;
  text-decoration: none;
}

.item-page .back-link:hover {
  color: #fff;
}

.item-detail {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .item-detail {
    grid-template-columns: 1fr 1fr;
  }
}

/* Photo column: image + disclaimer stacked (no duplicate top bar on product pages) */
.item-media-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* Teal disclaimer sits under photo, matches column width */
.item-page .item-media-col .research-disclaimer-product-body {
  margin: 0;
  max-width: none;
  width: 100%;
}

.item-image .listing-placeholder,
.item-image .listing-image-wrap {
  aspect-ratio: 1;
  border-radius: 10px;
}

.item-image .listing-image-wrap {
  overflow: hidden;
}

.item-image .listing-image-wrap .listing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-info h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: #fff;
}

.item-price {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.item-desc {
  margin: 0;
  color: #aaa;
}

.item-category {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #252525;
  border: 1px solid #444;
  border-radius: 4px;
  color: #ccc;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.item-tag {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #888;
}

/* Research disclaimer */
.research-disclaimer {
  padding: 0.5rem 1rem;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #ccc;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 1.5rem;
}

.research-disclaimer-banner {
  padding: 0.5rem 1rem;
  background: #111;
  border-bottom: 1px solid #333;
  color: #ccc;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
}

/* Site-wide top bar — amber panel, centered (explicit colors override body #fff) */
.research-disclaimer-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0.65rem 1rem;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  text-align: center;
  background: #1c1508 !important;
  border-bottom: 2px solid #c9941a !important;
  box-shadow: inset 0 1px 0 rgba(255, 220, 140, 0.12);
}

.research-disclaimer-bar-inner {
  max-width: 38rem;
  width: 100%;
  margin: 0 auto;
  text-align: center !important;
}

.research-disclaimer-bar-text {
  margin: 0;
  text-align: center !important;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #f2e8d4 !important;
}

/* Amber badge — distinct from body text */
.research-disclaimer-label {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  margin: 0 0.2rem 0.35rem 0;
  border-radius: 5px;
  font-weight: 800;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a1200 !important;
  background: linear-gradient(180deg, #f0c040 0%, #c89418 100%) !important;
  border: 1px solid #8a6a10;
  vertical-align: middle;
}

.research-disclaimer-sep {
  color: #8a7a60 !important;
  margin: 0 0.15rem;
}

.research-disclaimer-agree {
  display: block;
  margin-top: 0.4rem;
  color: #ffd866 !important;
  font-weight: 700;
  font-size: 0.8rem;
}

@media (min-width: 520px) {
  .research-disclaimer-agree {
    display: inline;
    margin-top: 0;
    margin-left: 0.25rem;
  }
}

/* In-main product disclaimer — teal/cyan (different from amber top bar) */
.research-disclaimer-product-body {
  margin: 0 auto 1.25rem;
  padding: 0.75rem 1rem;
  max-width: 40rem;
  width: 100%;
  box-sizing: border-box;
  text-align: center !important;
  border: 1px solid rgba(72, 200, 200, 0.55);
  border-radius: 10px;
  background: rgba(12, 55, 55, 0.65) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.research-disclaimer-product-body-inner {
  max-width: 36rem;
  margin: 0 auto;
}

.research-disclaimer-badge-teal {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.18rem 0.6rem;
  border-radius: 5px;
  font-weight: 800;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #042020 !important;
  background: linear-gradient(180deg, #5ee0d8 0%, #2a9d96 100%) !important;
  border: 1px solid #1a6a66;
}

.research-disclaimer-product-body-text {
  margin: 0;
  text-align: center !important;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #b8f0ec !important;
}

.research-disclaimer-body-agree {
  display: block;
  margin-top: 0.45rem;
  color: #e0ffff !important;
  font-weight: 700;
}

@media (max-width: 720px) {
  .research-disclaimer-bar {
    padding: 0.55rem 0.65rem;
  }

  .research-disclaimer-bar-text {
    font-size: 0.8rem !important;
  }

  .research-disclaimer-label {
    font-size: 0.62rem;
    padding: 0.15rem 0.45rem;
  }

  .research-disclaimer-product-body {
    padding: 0.65rem 0.75rem;
    margin-bottom: 1rem;
  }

  .research-disclaimer-product-body-text {
    font-size: 0.78rem !important;
  }
}

/* Home features strip */
.features-strip {
  padding: 2rem 0 0.5rem;
}

.features-heading {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.features-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  background: #111;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #e5e5e5;
  margin-bottom: 0.75rem;
}

.feature-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: #fff;
}

.feature-text {
  margin: 0;
  font-size: 0.8125rem;
  color: #aaa;
}

/* Home sections */
.home-section {
  margin-top: 1.5rem;
}

.home-section:first-child,
.home-section-first {
  margin-top: 0;
}

main.home-page {
  padding-top: 0.75rem;
}

.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.home-section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.home-section-link {
  font-size: 0.875rem;
  color: #fff;
  text-decoration: none;
}

.home-section-link:hover {
  text-decoration: underline;
}

.home-product-grid .listing-placeholder {
  font-size: 0.8rem;
}

/* Home categories */
.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #333;
  background: #111;
  color: #ccc;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.category-pill:hover {
  background: #1a1a1a;
  border-color: #555;
  color: #fff;
}

.category-label {
  white-space: nowrap;
}

.hero-categories {
  margin: 0;
}

/* About section */
.about-section {
  margin-top: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid #2a2a2a;
}

.about-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.about-text {
  margin: 0 0 0.75rem;
  color: #ccc;
  font-size: 0.9375rem;
  max-width: 56ch;
}

.about-disclaimer {
  margin: 0 0 1.5rem;
  color: #888;
  font-size: 0.8125rem;
  max-width: 56ch;
}

.about-section .btn-secondary {
  margin-bottom: 1.5rem;
}

.about-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid #2a2a2a;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #888;
  font-size: 0.875rem;
  background: #0a0a0a;
}

.site-footer p {
  margin: 0;
}

.footer-newsletter {
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

.footer-newsletter-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #333;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 0.875rem;
}

.footer-newsletter-form input::placeholder {
  color: #666;
}

.footer-newsletter-form input:focus {
  outline: none;
  border-color: #555;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: #666;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.footer-copy {
  color: #555;
  font-size: 0.8125rem;
}

/* Small cart toast notification */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(8px);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 2000;
}

.cart-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Research page */
.research-page h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  color: #fff;
}

.research-content {
  color: #ccc;
}

.research-content p {
  margin: 0 0 1rem;
}

.research-content p:last-child {
  margin-bottom: 0;
}

.research-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  color: #fff;
}

.research-content h2:first-of-type {
  margin-top: 1.5rem;
}

/* Delivery page */
.delivery-page h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  color: #fff;
}

.delivery-content {
  color: #ccc;
}

.delivery-content p {
  margin: 0 0 1rem;
}

.delivery-content p:last-child {
  margin-bottom: 0;
}

.delivery-content h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  color: #fff;
}

.delivery-content ul {
  margin: 0;
  padding-left: 1.25rem;
}

.delivery-content li {
  margin: 0 0 0.75rem;
}

.delivery-content li:last-child {
  margin-bottom: 0;
}

/* Contact page */
.contact-page h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  color: #fff;
}

.contact-content {
  color: #ccc;
  max-width: 560px;
}

.contact-form {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.contact-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: #e5e5e5;
  font-weight: 600;
  font-size: 0.875rem;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
}

.contact-field textarea {
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #555;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Athletes page */
.athletes-page h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: #fff;
}

.athletes-intro {
  margin: 0 0 2rem;
  color: #888;
}

.athletes-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.athlete-card {
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  background: #141414;
  text-align: center;
  transition: border-color 0.15s;
}

.athlete-card:hover {
  border-color: #444;
}

.athlete-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: #1a1a1a;
  color: #555;
  font-size: 2rem;
  font-weight: 600;
}

.athlete-name {
  display: block;
  padding: 0.75rem 1rem 0.25rem;
  font-weight: 600;
  color: #fff;
}

.athlete-role {
  display: block;
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  color: #888;
}

/* Cart page */
.cart-page h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  color: #fff;
}

.cart-empty {
  text-align: center;
  padding: 3rem;
  color: #888;
}

.cart-empty p {
  margin: 0 0 1rem;
}

.hidden {
  display: none !important;
}

/* Age verification modal — blocks access until closed */
.age-verify-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.95);
}
.age-verify-overlay.hidden {
  display: none !important;
}
.age-verify-modal {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.age-verify-overlay h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}
.age-verify-overlay p {
  margin: 0 0 1.5rem;
  color: #aaa;
  font-size: 1rem;
}
.age-verify-overlay .btn {
  min-height: 48px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  margin: 0 0.25rem;
}
.age-verify-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.cart-empty.hidden,
.cart-content.hidden {
  display: none;
}

.cart-items {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #2a2a2a;
  background: #141414;
}

.cart-item-price {
  font-weight: 600;
  color: #fff;
  min-width: 4rem;
  text-align: right;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-name {
  font-weight: 500;
  color: #fff;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.qty-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #444;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.qty-btn:hover {
  background: #252525;
  border-color: #666;
}

.qty-input {
  width: 3.5rem;
  height: 36px;
  padding: 0 0.5rem;
  border: 1px solid #444;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

.qty-input:focus {
  outline: none;
  border-color: #666;
}

.cart-remove {
  padding: 0.5rem 0.75rem;
  border: 1px solid #444;
  border-radius: 6px;
  background: transparent;
  color: #888;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.cart-remove:hover {
  color: #fff;
  border-color: #666;
}

.cart-actions {
  margin-top: 1.5rem;
  max-width: 320px;
  margin-left: auto;
}

.cart-actions .btn {
  width: 100%;
  text-align: center;
}

.cart-totals {
  max-width: 320px;
  margin-left: auto;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 1.25rem;
  background: #141414;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  color: #ccc;
}

.cart-row.cart-total-row {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  border-top: 1px solid #2a2a2a;
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.cart-delivery {
  color: #fff;
}

/* Add to cart on listings */
.listing-card {
  position: relative;
}

.listing-card-inner {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
  background: #141414;
}

.listing-card:hover .listing-card-inner {
  border-color: #555;
  background: #1a1a1a;
}

.listing-card .btn-add-cart {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #555;
  border-radius: 6px;
  background: #252525;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  z-index: 2;
  touch-action: manipulation;
}

.listing-card .btn-add-cart:hover {
  background: #333;
  border-color: #777;
}

/* Mobile: larger touch targets, Add to cart below card (fixes Android tap) */
@media (max-width: 720px) {
  .btn,
  .btn-primary,
  .btn-secondary {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-menu-summary,
  .nav-peptides-summary {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-menu-panel a {
    min-height: 44px;
    display: flex;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .listing-grid,
  .home-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 0.5rem;
  }

  .listing-card {
    display: flex;
    flex-direction: column;
  }

  .listing-card .listing-card-inner,
  .listing-card a.listing-card-inner {
    flex: 1;
  }

  .listing-card .btn-add-cart {
    position: static;
    width: 100%;
    min-height: 34px;
    margin-top: 0.35rem;
    padding: 0.3rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 5px;
  }

  /* listings.php — full-width primary looked oversized in tiny grid cells */
  .listing-card .listing-add-form .btn,
  .listing-card .listing-add-form .btn-primary {
    min-height: 34px;
    padding: 0.3rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 5px;
  }

  .listing-grid .listing-title,
  .listing-grid .listing-price,
  .listing-grid .listing-meta,
  .home-product-grid .listing-title,
  .home-product-grid .listing-price,
  .home-product-grid .listing-meta {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }

  .listing-grid .listing-category,
  .home-product-grid .listing-category {
    margin: 0.25rem 0.25rem 0 0.5rem;
    padding: 0.15rem 0.35rem;
    font-size: 0.6rem;
  }

  .listing-grid .listing-tags,
  .home-product-grid .listing-tags {
    padding: 0 0.5rem 0.4rem;
    gap: 0.2rem;
  }

  .listing-grid .listing-tag,
  .home-product-grid .listing-tag {
    padding: 0.1rem 0.35rem;
    font-size: 0.6rem;
  }

  .listing-grid .listing-placeholder,
  .home-product-grid .listing-placeholder {
    font-size: 0.85rem;
  }

  .category-pill {
    min-height: 48px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .footer-newsletter-form .btn,
  .footer-nav a {
    min-height: 48px;
    padding: 0.625rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }

  .cart-actions .btn,
  .qty-btn,
  .cart-remove {
    min-height: 48px;
    min-width: 48px;
    padding: 0.5rem 0.75rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .item-page #item-add-cart,
  .item-page .item-info form .btn-primary {
    min-height: 40px;
    width: 100%;
    max-width: 280px;
    padding: 0.5rem 0.9rem;
    font-size: 0.8125rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}

/* Checkout result */
.checkout-result {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background: #141414;
}

.checkout-result.hidden {
  display: none;
}

.checkout-result h2 {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  color: #fff;
}

.checkout-result p {
  margin: 0 0 0.5rem;
  color: #888;
  font-size: 0.875rem;
}

.checkout-code,
.checkout-btc,
.checkout-total {
  margin: 0 0 1rem !important;
  padding: 0.75rem 1rem;
  background: #1a1a1a;
  border-radius: 6px;
  color: #fff;
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  word-break: break-all;
}

.checkout-code {
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-align: center;
}

.checkout-result #checkout-done-btn {
  margin-top: 1rem;
  width: 100%;
}
