/* Vital Research — shared component styles
 * Used by index.html and product pages.
 * Design tokens follow design.md ("Bioluminescent Lab").
 */

:root {
  --primary: #7ffcff;
  --primary-container: #00e3fd;
  --tertiary: #ac89ff;
  --accent-a: var(--primary);
  --accent-b: var(--primary-container);
  --accent-c: var(--tertiary);
  --status-ok: #7ffcff;
  --status-pending: #ffd479;
  --status-done: #8ce6a8;
  --status-bad: #ff7a8a;
  --surface: #080f14;
  --abyss: #050a0e;
  --surface-bright: #0f1a22;
  --surface-container-lowest: #050a0e;
  --surface-container-low: #0c151c;
  --surface-container: #111c25;
  --surface-container-high: #16222d;
  --surface-container-highest: #1c2934;
  --on-surface: #e2e9f0;
  --on-surface-variant: #93a4b3;
  --outline-variant: rgba(146, 200, 220, 0.15);
  --vr-monogram-accent-size: 72px;
  --vr-monogram-accent-size-sm: 48px;
  --vr-monogram-accent-size-lg: 88px;
  --vr-monogram-accent-size-xl: 108px;

  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;
}

/* ============================================================
   Sticky page header — used on product pages so the brand + cart
   stay accessible while scrolling. Glassmorphic so the abyssal bg
   bleeds through.
   ============================================================ */
.vr-page-head {
  position: sticky;
  top: 0;
  z-index: 30;
  /* Translucent gradient: stronger at the top, fades down into the hero so
     the nav reads as part of the hero rather than a hard bar on top of it. */
  background: linear-gradient(to bottom, rgba(8, 15, 20, 0.8), rgba(8, 15, 20, 0.4));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
/* Brand link — logo + wordmark (used in every page header) */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  grid-column: 1;
  justify-self: start;
  min-width: 0;
}
.brand img {
  display: block;
  height: 36px !important;
  width: auto !important;
  max-width: none;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 12px rgba(127, 252, 255, 0.4));
}
.brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.125rem !important;
  letter-spacing: 0.04em !important;
  line-height: 1;
  white-space: nowrap;
}

.vr-page-head-inner {
  /* Span full viewport width — brand anchors to upper-left, actions to
     upper-right, regardless of how wide the screen gets. Padding gives
     breathing room from the edges. */
  position: relative;
  width: 100%;
  padding: 1rem clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 0.625rem;
}

/* ============================================================
   Product disclaimer banner — used at the top of every product page
   Required regulatory notice. Visually understated but always visible.
   ============================================================ */
.vr-disclaimer {
  position: relative;
  background: rgba(5, 10, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 -1px 0 rgba(127, 252, 255, 0.06);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
  letter-spacing: 0.01em;
}
.vr-disclaimer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.875rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.vr-disclaimer-label {
  flex: 0 0 auto;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  padding-top: 0.0625rem;
  white-space: nowrap;
}
.vr-disclaimer-body {
  flex: 1;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 640px) {
  .vr-disclaimer-inner {
    flex-direction: column;
    gap: 0.375rem;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.vr-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  white-space: nowrap;
}

.vr-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vr-btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: #001518;
}
.vr-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px -8px rgba(0, 227, 253, 0.5);
}

.vr-btn-secondary {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--outline-variant);
}
.vr-btn-secondary:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1px rgba(127, 252, 255, 0.35);
  background: rgba(127, 252, 255, 0.04);
}

/* ============================================================
   Order timeline
   ============================================================ */
.order-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.order-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0 0 1.25rem;
}
.order-timeline-item:last-child {
  padding-bottom: 0;
}
.order-timeline-item::before {
  content: '';
  position: absolute;
  top: 0.45rem;
  left: 8.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(127, 252, 255, 0.45);
}
.order-timeline-item::after {
  content: '';
  position: absolute;
  top: 1rem;
  bottom: 0.25rem;
  left: calc(8.5rem + 0.25rem - 1px);
  width: 1px;
  background: var(--outline-variant);
}
.order-timeline-item:last-child::after {
  display: none;
}
.order-timeline-time {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.order-timeline-body {
  padding-left: 1rem;
}
.order-timeline-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--on-surface);
}
.order-timeline-detail {
  color: var(--on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}
.order-timeline-actor {
  color: var(--on-surface-variant);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  margin-top: 0.45rem;
  text-transform: uppercase;
}
@media (max-width: 560px) {
  .order-timeline-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding-left: 1.25rem;
  }
  .order-timeline-item::before {
    left: 0;
  }
  .order-timeline-item::after {
    left: calc(0.25rem - 1px);
  }
  .order-timeline-body {
    padding-left: 0;
  }
}

/* ============================================================
   Product detail buy controls, restock fallback, and trust section
   ============================================================ */
.product-buy-card {
  padding: 1.5rem;
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 0.75rem;
}

.buy-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.buy-row .vr-btn-primary {
  flex: 1 1 14rem;
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
}
.buy-row .vr-qty {
  --vr-qty-size: 2.5rem;
  height: 100%;
  min-height: 3rem;
}
.buy-row .vr-qty button {
  width: var(--vr-qty-size);
  height: 100%;
  font-size: 1.125rem;
  line-height: var(--vr-qty-size);
}
.buy-row .vr-qty span,
.buy-row .vr-qty input {
  width: var(--vr-qty-size);
  min-width: var(--vr-qty-size);
  font-size: 1rem;
  line-height: var(--vr-qty-size);
}

.added-msg {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  color: var(--primary);
  letter-spacing: 0.04em;
  min-height: 1.25rem;
}

.fruo-note {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-top: 0.5rem;
  opacity: 0.8;
}

.restock-card {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1rem;
}
.restock-badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd699;
  padding: 0.25rem 0.625rem;
  background: rgba(255, 200, 100, 0.08);
  border: 1px solid rgba(255, 200, 100, 0.25);
  border-radius: 999px;
  margin-bottom: 0.875rem;
}
.restock-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--on-surface);
  margin: 0 0 0.375rem;
}
.restock-sub {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  margin: 0 0 1rem;
  line-height: 1.5;
}
.restock-form-inner {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.restock-form-inner input[type='email'] {
  flex: 1 1 220px;
  padding: 0.75rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  color: var(--on-surface);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
}
.restock-form-inner input[type='email']:focus {
  outline: none;
  border-color: var(--primary);
}
.restock-form-inner button {
  padding: 0.75rem 1.25rem;
}
.restock-msg {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  min-height: 1.25rem;
}
.restock-msg.is-ok {
  color: var(--primary);
}
.restock-msg.is-err {
  color: #ffb4b4;
}

.product-receipts {
  position: relative;
  margin: clamp(4.5rem, 8vw, 7rem) 0;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  overflow: visible;
  isolation: isolate;
}
.product-receipts::before,
.product-receipts::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.product-receipts::before {
  top: -45vh;
  bottom: -50vh;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(
      ellipse 36% 32% at 22% 48%,
      color-mix(in oklab, var(--accent-b) 13%, transparent),
      transparent 72%
    ),
    radial-gradient(
      ellipse 34% 30% at 80% 56%,
      color-mix(in oklab, var(--accent-c) 12%, transparent),
      transparent 74%
    );
  filter: blur(52px);
  opacity: 0.9;
}
.product-receipts::after {
  display: none;
}
.product-receipts .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  color: var(--accent-a);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.product-receipts .section-label::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-a));
}
.product-receipts .section-title {
  max-width: 52rem;
  margin: 0 0 1.75rem;
  color: var(--on-surface);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}
.receipts-trio {
  position: relative;
  margin-top: 1.5rem;
}
.receipts-trio-line {
  position: absolute;
  top: 2rem;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    color-mix(in oklab, var(--accent-a) 80%, transparent),
    color-mix(in oklab, var(--accent-c) 68%, transparent),
    transparent
  );
  opacity: 0.58;
  box-shadow: 0 0 18px color-mix(in oklab, var(--accent-a) 36%, transparent);
}
.receipts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.receipts-cell {
  --receipt-accent: var(--accent-a);
  position: relative;
  padding-top: 2.75rem;
}
.receipts-cell--a {
  --receipt-accent: var(--accent-a);
}
.receipts-cell--b {
  --receipt-accent: var(--accent-b);
}
.receipts-cell--c {
  --receipt-accent: var(--accent-c);
}
.receipts-node {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid color-mix(in oklab, var(--receipt-accent) 52%, transparent);
  border-radius: var(--radius-full);
  background:
    radial-gradient(
      circle at 42% 34%,
      color-mix(in oklab, var(--receipt-accent) 38%, transparent),
      color-mix(in oklab, var(--surface-container) 92%, transparent) 70%
    ),
    rgba(17, 28, 37, 0.82);
  box-shadow:
    0 0 24px color-mix(in oklab, var(--receipt-accent) 44%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--receipt-accent);
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
}
.receipts-slab {
  position: relative;
  min-height: 14rem;
  overflow: hidden;
  padding: 2.125rem 1.375rem 1.5rem;
  border: 1px solid rgba(146, 200, 220, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      140deg,
      color-mix(in oklab, var(--receipt-accent) 12%, transparent),
      color-mix(in oklab, var(--surface-container) 88%, transparent) 60%
    ),
    rgba(8, 15, 20, 0.62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 80px -44px color-mix(in oklab, var(--receipt-accent) 42%, transparent);
  text-align: center;
}
.receipts-slab::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 30% at 50% 0%,
      color-mix(in oklab, var(--receipt-accent) 25%, transparent),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 38%);
  opacity: 0.68;
}
.receipts-tag,
.receipts-h,
.receipts-body,
.receipts-micro {
  position: relative;
}
.receipts-tag {
  margin-bottom: 0.625rem;
  color: var(--receipt-accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.receipts-h {
  margin: 0 0 0.625rem;
  color: var(--on-surface);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0;
}
.receipts-body {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.receipts-micro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.125rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid color-mix(in oklab, var(--receipt-accent) 24%, transparent);
  border-radius: var(--radius-full);
  color: color-mix(in oklab, var(--receipt-accent) 82%, var(--on-surface));
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: color-mix(in oklab, var(--receipt-accent) 8%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .product-receipts::before {
    animation: receiptsCausticDrift 22s ease-in-out infinite;
  }
}
@keyframes receiptsCausticDrift {
  0%,
  100% {
    transform: translateX(-50%) translate3d(-2%, -1%, 0) scale(1);
  }
  50% {
    transform: translateX(-50%) translate3d(3%, 2%, 0) scale(1.06);
  }
}
@media (max-width: 760px) {
  .product-receipts {
    padding-bottom: 6.5rem;
  }
  .receipts-grid {
    grid-template-columns: 1fr;
  }
  .receipts-trio-line {
    display: none;
  }
  .receipts-cell {
    padding-top: 2.25rem;
  }
  .receipts-node {
    left: 1.375rem;
    transform: none;
  }
  .receipts-slab {
    min-height: 0;
    padding: 2rem 1.25rem 1.35rem;
    text-align: left;
  }
  .receipts-micro {
    justify-content: flex-start;
  }
}

/* ============================================================
   Product research modules — overview, context cards, related
   products, product FAQ, and literature links.
   ============================================================ */
.product-research-section {
  margin: 4rem 0;
}
.product-research-overview {
  margin-bottom: 0;
}
.product-research-overview + .product-receipts {
  margin-top: clamp(2rem, 4vw, 3.25rem);
}
.product-research-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--on-surface-variant);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.product-research-kicker::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--primary);
}
.product-research-title {
  max-width: 52rem;
  margin: 0 0 1.25rem;
  color: var(--on-surface);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}
.product-research-copy {
  max-width: 52rem;
}
.product-research-copy p,
.product-source-note {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 1rem;
  line-height: 1.75;
}
.product-research-copy p + p {
  margin-top: 1rem;
}
.product-research-card-grid,
.product-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}
.product-research-card,
.product-related-card,
.product-faq-item {
  border: 1px solid rgba(146, 200, 220, 0.08);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at top left, rgba(127, 252, 255, 0.08), transparent 58%),
    rgba(17, 28, 37, 0.42);
  box-shadow: inset 0 1px 0 rgba(127, 252, 255, 0.06);
}
.product-research-card {
  padding: 1.25rem;
}
.product-research-card span,
.product-related-card span,
.product-source-list a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product-research-card span,
.product-related-kicker {
  color: var(--primary);
}
.product-research-card p {
  margin: 0.625rem 0 0;
  color: var(--on-surface-variant);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.product-related-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}
.product-related-card:hover {
  border-color: rgba(127, 252, 255, 0.26);
  background:
    radial-gradient(ellipse at top left, rgba(127, 252, 255, 0.12), transparent 58%),
    rgba(17, 28, 37, 0.58);
  transform: translateY(-1px);
}
.product-related-card strong {
  color: var(--on-surface);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}
.product-related-card span:last-child {
  color: var(--on-surface-variant);
}
.product-faq-list {
  display: grid;
  gap: 0.625rem;
  max-width: 54rem;
}
.product-faq-item {
  overflow: hidden;
}
.product-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
  color: var(--on-surface);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  list-style: none;
}
.product-faq-item summary::-webkit-details-marker {
  display: none;
}
.product-faq-item summary::after {
  content: '+';
  color: var(--primary);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.product-faq-item[open] summary::after {
  transform: rotate(45deg);
}
.product-faq-item p {
  margin: 0;
  padding: 0 1.125rem 1.125rem;
  color: var(--on-surface-variant);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.product-source-note {
  max-width: 52rem;
}
.product-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.product-source-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(127, 252, 255, 0.18);
  border-radius: var(--radius-md);
  color: var(--primary);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.product-source-list a:hover {
  border-color: rgba(127, 252, 255, 0.38);
  background: rgba(127, 252, 255, 0.06);
}

@media (max-width: 900px) {
  .product-related-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(11rem, 54vw, 15rem);
    grid-template-columns: none;
    gap: 0.75rem;
    overflow-x: auto;
    margin-inline: -1rem;
    padding: 0 1rem 0.85rem;
    scroll-padding-inline: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-related-grid::-webkit-scrollbar {
    display: none;
  }

  .product-related-grid .vr-product-card {
    min-width: 0;
    flex-basis: auto;
    scroll-snap-align: start;
  }

  .product-related-grid .vr-product-body {
    padding: 0.85rem 0.9rem 1rem;
    gap: 0.42rem;
  }

  .product-related-grid .vr-product-name {
    font-size: 0.95rem;
  }

  .product-related-grid .vr-product-tagline {
    font-size: 0.76rem;
  }

  .product-related-grid .vr-product-foot {
    margin-top: 0.25rem;
    padding-top: 0.5rem;
  }

  .product-related-grid .vr-product-price {
    font-size: 1rem;
  }

  .product-related-grid .vr-product-cta {
    font-size: 0.62rem;
  }
}

@media (max-width: 640px) {
  .product-research-section {
    margin: 3rem 0;
  }

  .product-source-list {
    display: grid;
  }
}

/* ============================================================
   Cart trigger button (header)
   ============================================================ */
.vr-cart-trigger {
  position: relative;
  background: rgba(17, 28, 37, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.625rem 0.875rem;
  color: var(--on-surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(127, 252, 255, 0.06);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.vr-cart-trigger:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(127, 252, 255, 0.12),
    0 8px 24px -12px rgba(0, 227, 253, 0.3);
}
.vr-cart-trigger svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.vr-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  color: #001518;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 227, 253, 0.5);
}
.vr-cart-badge[hidden] {
  display: none;
}

/* Centered customer nav injected into the shared header. */
.vr-header-nav {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.625rem, 1.25vw, 1rem);
  white-space: nowrap;
}

.vr-header-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  padding: 0.5rem 0.625rem;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 0.18s ease,
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.vr-header-link:hover,
.vr-header-link:focus-visible {
  color: var(--on-surface);
}

.vr-header-link[aria-current='page'] {
  color: color-mix(in oklab, var(--on-surface) 84%, var(--primary));
  text-shadow:
    0 0 0.75rem color-mix(in oklab, var(--primary) 34%, transparent),
    0 0 1.5rem color-mix(in oklab, var(--primary) 18%, transparent);
}

@keyframes vrHeaderBracketLeftIn {
  from {
    opacity: 0;
    transform: translateX(0.1875rem) scaleY(0.68);
  }
  to {
    opacity: 1;
    transform: translateX(-0.1875rem) scaleY(1);
  }
}

@keyframes vrHeaderBracketRightIn {
  from {
    opacity: 0;
    transform: translateX(-0.1875rem) scaleY(0.68);
  }
  to {
    opacity: 1;
    transform: translateX(0.1875rem) scaleY(1);
  }
}

.vr-header-nav .vr-header-link:is(:hover, :focus-visible)::before,
.vr-header-nav .vr-header-link:is(:hover, :focus-visible)::after {
  content: '';
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 0.375rem;
  border-top: 1px solid var(--primary);
  border-bottom: 1px solid var(--primary);
  filter: drop-shadow(0 0 4px color-mix(in oklab, var(--primary) 70%, transparent));
  pointer-events: none;
}

.vr-header-nav .vr-header-link:is(:hover, :focus-visible)::before {
  left: 0;
  border-left: 1px solid var(--primary);
  animation: vrHeaderBracketLeftIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.vr-header-nav .vr-header-link:is(:hover, :focus-visible)::after {
  right: 0;
  border-right: 1px solid var(--primary);
  animation: vrHeaderBracketRightIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@supports selector(.vr-header-link:has(+ .vr-header-link:hover)) {
  .vr-header-nav:has(.vr-header-link:is(:hover, :focus-visible))
    .vr-header-link:has(+ .vr-header-link:is(:hover, :focus-visible)) {
    transform: translateX(-0.3125rem);
  }

  .vr-header-nav .vr-header-link:is(:hover, :focus-visible) + .vr-header-link {
    transform: translateX(0.3125rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vr-header-nav .vr-header-link:is(:hover, :focus-visible)::before,
  .vr-header-nav .vr-header-link:is(:hover, :focus-visible)::after {
    animation: none;
  }

  .vr-header-link {
    transition: color 0.18s ease;
  }
}

.vr-menu-trigger {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.vr-menu-trigger:hover,
.vr-menu-trigger[aria-expanded='true'] {
  border-color: rgba(127, 252, 255, 0.4);
  color: var(--on-surface);
}
.vr-menu-trigger[aria-expanded='true'] {
  box-shadow: 0 0 22px -12px rgba(127, 252, 255, 0.65);
}
.vr-menu-trigger svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.vr-mobile-menu {
  display: none;
}

/* ============================================================
   Admin/account triggers — styled like the cart button, placed left of it
   ============================================================ */
.vr-admin-trigger {
  position: relative;
  background: rgba(127, 252, 255, 0.035);
  border: 1px solid rgba(127, 252, 255, 0.22);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.875rem;
  color: var(--accent-a);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.vr-admin-trigger:hover,
.vr-admin-trigger:focus-visible {
  background: rgba(127, 252, 255, 0.08);
  border-color: rgba(127, 252, 255, 0.48);
  color: var(--on-surface);
  box-shadow: 0 0 22px rgba(127, 252, 255, 0.09);
}

.vr-admin-trigger[hidden] {
  display: none;
}

.vr-account-trigger {
  position: relative;
  background: transparent;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.875rem;
  color: var(--on-surface-variant);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.vr-account-trigger:hover {
  border-color: rgba(127, 252, 255, 0.4);
  color: var(--on-surface);
}
.vr-account-trigger svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}
/* Truncate long emails so the header doesn't blow out */
.vr-account-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
/* Sign-out mini-button — injected by account-trigger.js when logged in */
.vr-signout-trigger {
  background: none;
  border: none;
  padding: 0.375rem 0.5rem;
  color: var(--on-surface-variant);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.7;
  transition:
    color 0.15s,
    opacity 0.15s;
}
.vr-signout-trigger:hover {
  color: #ffb4b4;
  opacity: 1;
}
.vr-signout-trigger[hidden] {
  display: none;
}

/* Container holding account trigger, sign-out, and cart — right side of header */
.vr-page-head-actions {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.vr-page-head-inner > .vr-account-trigger {
  grid-column: 3;
  justify-self: end;
}

@media (max-width: 1120px) {
  .vr-page-head-inner {
    padding-inline: clamp(1rem, 3vw, 2rem);
    column-gap: clamp(0.75rem, 2vw, 1.25rem);
  }

  .brand {
    gap: 0.625rem;
  }

  .brand-text {
    font-size: 1rem !important;
    letter-spacing: 0.035em !important;
  }

  .vr-header-nav {
    gap: 0.45rem;
  }

  .vr-header-link {
    padding-inline: 0.45rem;
    font-size: 0.6875rem;
    letter-spacing: 0.11em;
  }

  .vr-page-head-actions {
    gap: 0.45rem;
    min-width: 0;
  }

  .vr-account-trigger {
    min-width: 0;
    padding-inline: 0.7rem;
  }

  .vr-admin-trigger {
    padding-inline: 0.7rem;
  }

  .vr-account-trigger[data-account-state='signed-in'] {
    max-width: 5.8rem;
    min-width: 0;
  }

  .vr-account-trigger[data-account-state='signed-in'] .vr-account-label {
    min-width: 0;
    max-width: 3.8ch;
  }

  .vr-cart-trigger {
    padding-inline: 0.75rem;
  }
}

@media (max-width: 900px) {
  .vr-page-head-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    grid-column: 1;
  }

  .vr-header-nav {
    display: none;
  }

  .vr-menu-trigger {
    display: inline-flex;
  }

  .vr-mobile-menu {
    position: absolute;
    top: calc(100% + 0.375rem);
    right: clamp(1rem, 3vw, 2rem);
    z-index: 35;
    width: min(16rem, calc(100vw - 2rem));
    padding: 0.5rem;
    border: 1px solid rgba(127, 252, 255, 0.16);
    border-radius: var(--radius-md);
    background: rgba(12, 21, 28, 0.96);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    box-shadow:
      inset 0 1px 0 rgba(127, 252, 255, 0.08),
      0 18px 48px -28px rgba(0, 0, 0, 0.95);
  }

  .vr-mobile-menu.is-open {
    display: grid;
    gap: 0.125rem;
  }

  .vr-mobile-menu .vr-header-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.875rem;
    font-size: 0.75rem;
  }

  .vr-mobile-menu .vr-header-link:hover,
  .vr-mobile-menu .vr-header-link[aria-current='page'] {
    background: rgba(127, 252, 255, 0.06);
  }

  .vr-page-head-actions,
  .vr-page-head-inner > .vr-account-trigger {
    grid-column: 2;
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .vr-page-head-inner {
    padding: 0.875rem 1rem !important;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand img {
    height: 30px !important;
  }

  .brand-text {
    font-size: 0.9375rem !important;
    letter-spacing: 0.06em !important;
  }

  .vr-cart-trigger,
  .vr-menu-trigger {
    padding: 0.5rem 0.75rem;
  }

  .vr-cart-trigger span:not(.vr-cart-badge) {
    display: none;
  }
}

/* ============================================================
   Cart drawer
   ============================================================ */
.vr-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}
.vr-cart-drawer.is-open {
  pointer-events: auto;
}

.vr-cart-scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 14, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.vr-cart-drawer.is-open .vr-cart-scrim {
  opacity: 1;
}

.vr-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(28rem, 100%);
  background: rgba(12, 21, 28, 0.92);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow:
    -24px 0 60px rgba(0, 0, 0, 0.5),
    inset 1px 0 0 rgba(127, 252, 255, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.vr-cart-drawer.is-open .vr-cart-panel {
  transform: translateX(0);
}

.vr-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
}
.vr-cart-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.vr-cart-close {
  background: none;
  border: none;
  color: var(--on-surface-variant);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.vr-cart-close:hover {
  color: var(--primary);
  background: rgba(127, 252, 255, 0.08);
}

.vr-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vr-cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--on-surface-variant);
}
.vr-cart-empty-icon {
  width: 112px;
  height: 112px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
  -webkit-mask: url('/logo-final.svg') center / contain no-repeat;
  mask: url('/logo-final.svg') center / contain no-repeat;
  opacity: 0.75;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 16px rgba(0, 227, 253, 0.3));
}
.vr-cart-empty p {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0.25rem 0;
}
.vr-cart-empty-sub {
  font-size: 0.875rem;
  opacity: 0.7;
}
.vr-cart-empty-cta {
  margin-top: 1.25rem;
}

.vr-cart-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: rgba(17, 28, 37, 0.55);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(127, 252, 255, 0.06);
  transition: opacity 0.2s;
}
.vr-cart-item.is-unavailable {
  opacity: 0.6;
  border: 1px solid rgba(255, 100, 100, 0.25);
}
.vr-cart-item-warning {
  margin-top: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffb4b4;
}
.vr-qty button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.vr-cart-item-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--on-surface);
}
.vr-cart-item-meta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-top: 0.25rem;
}
.vr-cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.vr-cart-item-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--primary);
}
.vr-cart-item-remove {
  background: none;
  border: none;
  color: var(--on-surface-variant);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}
.vr-cart-item-remove:hover {
  color: #ff8a9a;
}

/* Quantity stepper used in cart line items + product page */
.vr-qty {
  --vr-qty-size: 2rem;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--vr-qty-size);
  align-items: center;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--outline-variant);
}
.vr-qty button {
  background: none;
  border: none;
  color: var(--on-surface);
  width: var(--vr-qty-size);
  height: var(--vr-qty-size);
  font-size: 1rem;
  line-height: var(--vr-qty-size);
  cursor: pointer;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.vr-qty button:hover {
  color: var(--primary);
  background: rgba(127, 252, 255, 0.06);
}
.vr-qty span,
.vr-qty input {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  min-width: var(--vr-qty-size);
  text-align: center;
}
/* Text input variant — sized to match the surrounding +/- buttons so the
   stepper looks like a single unit. Height stretches to the parent so it
   never floats in the middle of a taller container.
   The [data-qty-val] attribute selector boosts specificity so page-level
   `input[type=text]` rules can't accidentally stretch the qty field. */
.vr-qty input {
  width: var(--vr-qty-size);
  height: var(--vr-qty-size);
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  color: var(--on-surface);
  font-size: 0.9375rem;
  line-height: var(--vr-qty-size);
  /* Override browser default size=20 attribute */
  box-sizing: border-box;
  /* Hide native number-input spinners (we have custom +/- buttons) */
  -moz-appearance: textfield;
  appearance: textfield;
}
.vr-qty input::-webkit-outer-spin-button,
.vr-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.vr-qty input:focus {
  outline: none;
  box-shadow: inset 0 -2px 0 var(--primary-container);
}

.vr-cart-foot {
  padding: 1.25rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  background: linear-gradient(to top, rgba(8, 15, 20, 0.6), transparent);
}
.vr-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Space Grotesk', sans-serif;
}
.vr-cart-subtotal span:first-child {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}
.vr-cart-subtotal span:last-child {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--on-surface);
}
.vr-cart-checkout {
  width: 100%;
}
/* Continue shopping — secondary text-link below the checkout button */
.vr-cart-continue {
  background: none;
  border: none;
  padding: 0.5rem;
  margin: 0 auto;
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: color 0.15s;
}
.vr-cart-continue:hover {
  color: var(--primary);
}

.vr-cart-fineprint {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--on-surface-variant);
  opacity: 0.7;
}

/* ============================================================
   Popular Products carousel (used on homepage)
   ============================================================ */
.vr-carousel {
  width: 100%;
  margin: 0 auto 3rem;
  max-width: 64rem;
}
.vr-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.vr-carousel-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--on-surface-variant);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.vr-carousel-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary));
}
.vr-carousel-controls {
  display: flex;
  gap: 0.5rem;
}
.vr-carousel-arrow {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: rgba(17, 28, 37, 0.5);
  border: none;
  color: var(--on-surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(127, 252, 255, 0.06);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.vr-carousel-arrow:hover {
  color: var(--primary);
  transform: translateY(-1px);
}
.vr-carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.vr-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.vr-carousel-track::-webkit-scrollbar {
  display: none;
}

/* ============================================================
   Product card (carousel + featured)
   ============================================================ */
.vr-product-card {
  flex: 0 0 16rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: rgba(17, 28, 37, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 1px 0 rgba(127, 252, 255, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
}
.vr-product-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(127, 252, 255, 0.14),
    0 24px 48px -24px rgba(0, 227, 253, 0.3);
}
.vr-product-card.is-unavailable {
  border: 1px solid rgba(146, 200, 220, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(172, 137, 255, 0.08),
    0 18px 42px -28px rgba(172, 137, 255, 0.28);
}
.vr-product-card.is-unavailable:hover {
  box-shadow:
    inset 0 1px 0 rgba(172, 137, 255, 0.13),
    0 24px 52px -26px rgba(172, 137, 255, 0.34);
}

.vr-product-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at center,
      var(--vr-accent-soft, rgba(0, 227, 253, 0.2)) 0%,
      transparent 70%
    ),
    var(--surface-container-lowest);
}
.vr-product-visual img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: invert(83%) sepia(58%) saturate(2870%) hue-rotate(140deg) brightness(105%) contrast(101%)
    drop-shadow(0 0 24px var(--vr-accent, rgba(127, 252, 255, 0.4)));
  opacity: 0.85;
  transition: transform 0.4s ease;
}
/* Real product photos: visual is square (matches .vr-product-visual) so the
   1:1 vial image fills edge-to-edge. Hover zoom pushes past container bounds
   → overflow:hidden crops it naturally. */
.vr-product-visual.is-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  opacity: 1;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.3s ease;
}
.vr-product-card:hover .vr-product-visual img {
  transform: scale(1.05);
}
/* Photo cards: moderate zoom that crops into the vial center */
.vr-product-card:hover .vr-product-visual.is-photo img {
  transform: scale(1.1);
  filter: brightness(1.08) saturate(1.1);
}
/* Masked accent glow: visible in the background, cut out over the centered vial. */
.vr-product-visual.is-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    var(--vr-accent-soft, rgba(0, 227, 253, 0.2)) 0%,
    rgba(127, 252, 255, 0.08) 38%,
    transparent 68%
  );
  z-index: 2;
  mix-blend-mode: screen;
  mask-image: radial-gradient(
    ellipse 25% 45% at 50% 52%,
    transparent 0%,
    transparent 64%,
    rgba(0, 0, 0, 0.45) 78%,
    #000 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 25% 45% at 50% 52%,
    transparent 0%,
    transparent 64%,
    rgba(0, 0, 0, 0.45) 78%,
    #000 100%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.vr-product-card:hover .vr-product-visual.is-photo::after {
  opacity: 1;
}
.vr-product-card.is-unavailable .vr-product-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(5, 10, 14, 0.08), rgba(5, 10, 14, 0.28)),
    repeating-linear-gradient(
      -45deg,
      rgba(172, 137, 255, 0.08) 0,
      rgba(172, 137, 255, 0.08) 1px,
      transparent 1px,
      transparent 9px
    );
  opacity: 0.62;
  pointer-events: none;
}
.vr-product-card.is-unavailable .vr-product-visual.is-photo::after {
  background: radial-gradient(
    ellipse at center,
    rgba(172, 137, 255, 0.16) 0%,
    rgba(127, 252, 255, 0.055) 38%,
    transparent 68%
  );
}
.vr-product-card.is-unavailable .vr-product-visual img {
  opacity: 0.86;
}
.vr-product-card.is-unavailable:hover .vr-product-visual img {
  opacity: 0.94;
}

.vr-product-tag {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  z-index: 3;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3125rem 0.625rem;
  border-radius: var(--radius-full);
  background: rgba(8, 15, 20, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--on-surface);
}
.vr-product-tag.is-soon {
  color: var(--tertiary);
  /* Hide the "Coming Soon" tag by default on photo cards — reveal on hover */
  opacity: 0;
  transition: opacity 0.3s ease;
}
.vr-product-card:hover .vr-product-tag.is-soon {
  opacity: 1;
}
.vr-product-unavailable {
  position: absolute;
  right: 0.875rem;
  bottom: 0.875rem;
  z-index: 4;
  max-width: calc(100% - 1.75rem);
  padding: 0.4rem 0.62rem;
  border: 1px solid rgba(172, 137, 255, 0.32);
  border-radius: var(--radius-full);
  background: rgba(8, 15, 20, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0 18px rgba(172, 137, 255, 0.18),
    inset 0 1px 0 rgba(226, 233, 240, 0.045);
  color: color-mix(in oklab, var(--tertiary) 86%, var(--on-surface));
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.vr-product-body {
  padding: 1rem 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.vr-product-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.vr-product-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--on-surface);
}
.vr-product-dose {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.vr-product-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--on-surface-variant);
  margin: 0;
  min-height: 2.4em;
}
.vr-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}
.vr-product-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--on-surface);
}
.vr-product-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.2s ease;
}
.vr-product-card:hover .vr-product-cta {
  gap: 0.625rem;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 640px) {
  .vr-product-card {
    flex-basis: 14rem;
  }
  .vr-cart-panel {
    width: 100%;
  }
  /* Phone header uses icon-only controls to leave room for menu/account/cart. */
  .vr-account-label {
    display: none;
  }
  .vr-account-trigger {
    padding: 0.5rem 0.625rem;
  }

  .vr-admin-trigger {
    padding: 0.5rem 0.625rem;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
  }
}

/* ============================================================
   Brand mark utility — the VR monogram logo, used as a subtle
   accent above headings and empty states.

   Rendered as a masked gradient: the SVG shape is the mask and
   the primary→tertiary gradient fills it. Use a <span> or <div>
   (NOT <img>) so the background can show through the mask.
   ============================================================ */
.vr-mark {
  display: block;
  width: var(--vr-monogram-accent-size);
  height: var(--vr-monogram-accent-size);
  background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
  -webkit-mask: url('/logo-final.svg') center / contain no-repeat;
  mask: url('/logo-final.svg') center / contain no-repeat;
  opacity: 0.75;
  filter: drop-shadow(0 0 10px rgba(0, 227, 253, 0.3));
}
.vr-mark--center {
  margin: 0 auto 1rem;
}
.vr-mark--sm {
  width: var(--vr-monogram-accent-size-sm);
  height: var(--vr-monogram-accent-size-sm);
  opacity: 0.55;
}
.vr-mark--lg {
  width: var(--vr-monogram-accent-size-lg);
  height: var(--vr-monogram-accent-size-lg);
}
.vr-mark--xl {
  width: var(--vr-monogram-accent-size-xl);
  height: var(--vr-monogram-accent-size-xl);
}

/* ============================================================
   Product batch / COA panel
   ============================================================ */
.vr-batch-panel {
  margin: 0 0 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(127, 252, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(17, 28, 37, 0.46);
  box-shadow: inset 0 1px 0 rgba(127, 252, 255, 0.06);
}
.vr-batch-panel.is-pending {
  border-color: var(--outline-variant);
}
.vr-batch-kicker {
  margin-bottom: 0.45rem;
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.vr-batch-panel h3 {
  margin: 0;
  color: var(--on-surface);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
}
.vr-batch-panel p {
  margin: 0.35rem 0 0;
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  line-height: 1.5;
}
.vr-batch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.vr-batch-link {
  flex: 0 0 auto;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(127, 252, 255, 0.28);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.vr-batch-link.is-disabled {
  border-color: var(--outline-variant);
  color: var(--on-surface-variant);
}
.vr-catalog-note {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 0.9rem;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .vr-batch-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ============================================================
   Shared site footer — legal nav + disclaimer + copyright
   ============================================================ */
.vr-site-footer {
  margin-top: 4rem;
  padding: 2rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--outline-variant);
}
.vr-site-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
/* Subtle monogram above the legal nav in every page footer. Injected via
   ::before so we don't have to touch the 22 pages that include this footer.
   Masked gradient matches the .vr-mark utility. */
.vr-site-footer-inner::before {
  content: '';
  display: block;
  width: var(--vr-monogram-accent-size);
  height: var(--vr-monogram-accent-size);
  background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
  -webkit-mask: url('/logo-final.svg') center / contain no-repeat;
  mask: url('/logo-final.svg') center / contain no-repeat;
  opacity: 0.5;
  filter: drop-shadow(0 0 12px rgba(0, 227, 253, 0.25));
}
.vr-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.vr-footer-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 0.15s;
}
.vr-footer-nav a:hover {
  color: var(--primary);
}
.vr-footer-disclaimer {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  opacity: 0.7;
  line-height: 1.6;
}
.vr-footer-copy {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  opacity: 0.5;
}

/* ============================================================
   Legal page shell — constrained readable width for policy pages
   ============================================================ */
.legal-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem) 4rem;
}
.legal-shell .legal-updated {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 2rem;
}
.legal-shell h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.65rem;
  color: var(--on-surface);
  text-align: center;
}
/* Faint monogram above the page title on every legal page. No markup
   touched — applied via ::before on the shared h1. Matches .vr-mark tint. */
.legal-shell h1::before {
  content: '';
  display: block;
  width: var(--vr-monogram-accent-size-xl);
  height: var(--vr-monogram-accent-size-xl);
  background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
  -webkit-mask: url('/logo-final.svg') center / contain no-repeat;
  mask: url('/logo-final.svg') center / contain no-repeat;
  opacity: 0.72;
  filter: drop-shadow(0 0 10px rgba(0, 227, 253, 0.3))
    drop-shadow(0 0 24px rgba(172, 137, 255, 0.16));
  margin: 0 auto 1.1rem;
}
.legal-shell .legal-updated {
  display: block;
  text-align: center;
}
.legal-shell h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-surface);
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--outline-variant);
}
.legal-shell h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 2rem;
}
.legal-shell h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-surface);
  margin: 1.5rem 0 0.5rem;
}
.legal-shell p {
  color: var(--on-surface-variant);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}
.legal-shell ul {
  color: var(--on-surface-variant);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.legal-shell li {
  margin-bottom: 0.375rem;
}
.legal-shell strong {
  color: var(--on-surface);
}
.legal-shell a {
  color: var(--primary);
  text-decoration: none;
}
.legal-shell a:hover {
  text-decoration: underline;
}

/* ============================================================
   Checkout consent checkbox
   ============================================================ */
.vr-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 0.5rem;
}
.vr-consent-row input[type='checkbox'] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  accent-color: var(--primary-container);
  cursor: pointer;
}
.vr-consent-row label {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--on-surface-variant);
  cursor: pointer;
}
.vr-consent-row a {
  color: var(--primary);
  text-decoration: none;
}
.vr-consent-row a:hover {
  text-decoration: underline;
}

/* ============================================================
   Address lookup feedback
   ============================================================ */
.vr-address-lookup-msg {
  min-height: 1rem;
  margin-top: 0.5rem;
  color: var(--on-surface-variant);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.vr-address-lookup-msg:empty {
  display: none;
}
.vr-address-lookup-msg.is-success {
  color: var(--primary);
}
.vr-address-lookup-msg.is-error {
  color: #ffb4b4;
}
.vr-address-lookup-msg.is-info {
  color: var(--on-surface-variant);
}
input[aria-invalid='true'],
select[aria-invalid='true'] {
  border-color: rgba(255, 100, 100, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(255, 100, 100, 0.12) !important;
}

/* ============================================================
   Age gate modal
   ============================================================ */
.vr-age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 10, 14, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.vr-age-gate[hidden] {
  display: none;
}
.vr-age-gate-card {
  max-width: 420px;
  width: 100%;
  padding: 2.5rem 2rem;
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 0.75rem;
  text-align: center;
}
.vr-age-gate-card .brand-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.vr-age-gate-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--on-surface);
  margin: 0 0 0.75rem;
}
.vr-age-gate-card p {
  color: var(--on-surface-variant);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 1.75rem;
}
.vr-age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.vr-age-gate-actions .exit-link {
  background: none;
  border: none;
  color: var(--on-surface-variant);
  font-family: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.7;
}
.vr-age-gate-actions .exit-link:hover {
  opacity: 1;
}
