/*
* ==================================================================
* OpenLabs: research peptide storefront
* Design system + components. Loaded after reset.css.
* Brand: deep navy ink (#11152a) + electric violet (#7a4bff).
* ==================================================================
*/

:root {
  /* ink / neutrals */
  --ink: #11152a;
  --ink-2: #232a4a;
  --ink-3: #3a4168;
  --ink-900: #0a0e1f;
  --text: #1b2138;
  --muted: #5a6080;
  --muted-2: #828aa8;

  /* brand violet: anchored on #7a4bff */
  --violet: #7a4bff;
  --violet-600: #5d29f0;
  --violet-300: #ad8eff;
  --violet-100: #f1ecff;
  --violet-glow: rgba(122, 75, 255, 0.35);

  /* surfaces */
  --paper: #ffffff;
  --mist: #f6f7fb;
  --mist-2: #ecedf6;
  --line: #e6e8f2;
  --line-2: #d6d9ea;

  --grad: linear-gradient(135deg, #7a4bff 0%, #6b3cff 50%, #5d29f0 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(17, 21, 42, 0.06), 0 2px 8px rgba(17, 21, 42, 0.05);
  --shadow-md: 0 10px 34px -10px rgba(17, 21, 42, 0.22);
  --shadow-violet: 0 12px 30px -10px var(--violet-glow);

  --header-h: 68px;
  --banner-h: 36px;
  --container: 1180px;

  /* names referenced by ported skeleton calcs */
  --header-height: 68px;
  --aside-width: 420px;
  --cart-aside-summary-height-with-discount: 300px;
  --cart-aside-summary-height: 250px;
  --grid-item-width: 320px;
  --color-dark: var(--ink);
  --color-light: #ffffff;
}

/*
* --------------------------------------------------
* Base
* --------------------------------------------------
*/
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* `body > main` (not bare `main`) so these win over reset.css's
   `body > main` rule and never reach the <main> inside aside drawers. */
body > main {
  margin: 0;
  width: 100%;
}

/* The homepage and the under-construction wall are full-bleed; every other
   route gets a centered, padded column. */
body > main:not(:has(.home)):not(.uc) {
  max-width: var(--container);
  margin-inline: auto;
  padding: 2.5rem 1.25rem 4.5rem;
}

body > main:not(:has(.home)):not(.uc) h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0.25rem 0 1.4rem;
}

section {
  padding: 0;
}

h1,
h2,
h3 {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
}

a {
  color: var(--violet-600);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  border-radius: 4px;
}

input,
textarea,
select {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  padding: 0.6rem 0.75rem;
  background: #fff;
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--violet-300);
  box-shadow: 0 0 0 3px var(--violet-100);
}

/* Visible, consistent keyboard focus for every branded control. */
.btn:focus-visible,
.header-menu-item:focus-visible,
.faq-item summary:focus-visible,
.footer__col a:focus-visible,
.footer__email:focus-visible,
.featured-collection:focus-visible,
.product-item:focus-visible,
.spec-card__link:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Controls that sit on the translucent/dark header need a lighter ring. */
.header-cta:focus-visible,
.header-cta--icon:focus-visible,
.header-cta--cart:focus-visible,
.header-menu-mobile-toggle:focus-visible,
.header__brand:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* sticky header offset for in-page anchors */
section[id],
.footer[id] {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

/*
* --------------------------------------------------
* Utilities
* --------------------------------------------------
*/
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.mono {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, background 0.18s ease;
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-violet);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px var(--violet-glow);
  color: #fff;
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  color: var(--violet-600);
  border-color: var(--violet-300);
}

.btn--lg {
  padding: 1rem 1.8rem;
  font-size: 1.02rem;
}

/*
* --------------------------------------------------
* Brand logo
* --------------------------------------------------
*/
/* Full brand lockup (marque + wordmark) inlined from Logo.svg. Sized by
   height; ink shapes follow `color` via currentColor. */
.brand-lockup {
  display: block;
  height: 1.75rem;
  width: auto;
  color: var(--ink);
}

.brand-logo--light {
  color: #fff;
}

.footer__brand .brand-lockup {
  height: 2.1rem;
}

.orbit-spin {
  transform-origin: 50% 50%;
  animation: orbitspin 26s linear infinite;
}

@keyframes orbitspin {
  to {
    transform: rotate(360deg);
  }
}

/*
* --------------------------------------------------
* Under construction (pre-launch wall)
* --------------------------------------------------
*/
.uc {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--ink);
  overflow: hidden;
  background:
    radial-gradient(820px 520px at 50% -8%, rgba(122, 75, 255, 0.28), transparent 60%),
    linear-gradient(180deg, #f5f1ff 0%, #e6dcfb 100%);
}

.uc__glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 75, 255, 0.28), transparent 66%);
  filter: blur(26px);
  pointer-events: none;
}

.uc__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 34rem;
}

/* black marque, breathing (not spinning) */
.uc__mark {
  color: var(--ink);
  filter: drop-shadow(0 16px 34px rgba(122, 75, 255, 0.3));
  margin-bottom: 0.6rem;
  animation: breathe 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .uc__mark {
    animation: none;
  }
}

.uc__brand {
  margin: 0;
  font: 600 0.9rem/1 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--violet-600);
}

.uc__title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.uc__accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.uc__text {
  margin: 0.3rem 0 0;
  max-width: 32ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

/*
* --------------------------------------------------
* Research-Use-Only banner
* --------------------------------------------------
*/
.ruo-banner {
  background: var(--ink);
  color: #cdd2ea;
}

.ruo-banner__inner {
  max-width: var(--container);
  margin-inline: auto;
  min-height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.4rem 1.25rem;
  text-align: center;
}

.ruo-banner__tag {
  flex: 0 0 auto;
  font: 700 0.62rem/1 ui-monospace, monospace;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--violet);
  padding: 0.28rem 0.45rem;
  border-radius: 5px;
}

.ruo-banner__text {
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0;
}

.ruo-banner__text strong {
  color: #fff;
}

/*
* --------------------------------------------------
* Header
* --------------------------------------------------
*/
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  max-width: var(--container);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-inline: 1.25rem;
}

.header__brand {
  display: inline-flex;
  align-items: center;
}

.header-menu-desktop {
  display: none;
}

@media (min-width: 62em) {
  .header-menu-desktop {
    display: flex;
    align-items: center;
    gap: 1.7rem;
    margin-left: 1rem;
  }
}

.header-menu-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.4rem 0;
}

.header-menu-item {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}

.header-menu-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--grad);
  transition: width 0.2s ease;
}

.header-menu-item:hover {
  color: var(--violet-600);
}

.header-menu-item:hover::after {
  width: 100%;
}

.header-menu-mobile .header-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.95rem 0.9rem;
  border-bottom: 0;
  border-radius: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

/* right-pointing chevron; overrides the desktop underline ::after */
.header-menu-mobile .header-menu-item::after {
  content: '';
  position: static;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  border-radius: 1px;
  background: none;
  transform: rotate(-45deg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.header-menu-mobile .header-menu-item:hover,
.header-menu-mobile .header-menu-item.active {
  background: var(--violet-100);
  color: var(--violet-600);
}

.header-menu-mobile .header-menu-item:hover::after,
.header-menu-mobile .header-menu-item.active::after {
  border-color: var(--violet);
  transform: rotate(-45deg) translate(1.5px, 1.5px);
}

/* Mobile menu wrapper: nav fills the panel, footer pins to the bottom */
.mobile-menu {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-height) - 2rem);
}

.mobile-menu .header-menu-mobile {
  flex: 1;
}

.mobile-menu__footer {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.8rem;
}

.mobile-menu__cta {
  width: 100%;
}

.mobile-menu__note {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted-2);
  text-align: center;
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.header-cta--icon,
.header-cta--cart {
  width: 40px;
  height: 40px;
  position: relative;
}

.header-cta--icon:hover,
.header-cta--cart:hover {
  background: var(--mist-2);
  color: var(--violet-600);
}

.header-cta--account {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
}

.header-cta--account:hover {
  background: var(--mist-2);
  color: var(--violet-600);
}

@media (max-width: 30em) {
  .header-cta--account {
    display: none;
  }
}

.header-cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--violet);
  color: #fff;
  font: 700 0.62rem/17px ui-monospace, monospace;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.header-menu-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.header-menu-mobile-toggle:hover {
  background: var(--mist-2);
}

@media (min-width: 62em) {
  .header-menu-mobile-toggle {
    display: none;
  }
}

/*
* --------------------------------------------------
* Hero
* --------------------------------------------------
*/
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(820px 460px at 82% -8%, var(--violet-100), transparent 60%),
    linear-gradient(180deg, #fbfbff 0%, #f3f4fb 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(680px 420px at 76% 14%, #000, transparent 72%);
  mask-image: radial-gradient(680px 420px at 76% 14%, #000, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 2rem;
  padding-block: 3.5rem 4rem;
}

@media (min-width: 62em) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
    padding-block: 5.5rem 6rem;
  }
}

.hero__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1.1rem;
}

.hero__title-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  font-size: 1.1rem;
  line-height: 1.62;
  color: var(--muted);
  max-width: 40ch;
  margin: 0 0 1.8rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.9rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero__meta li {
  position: relative;
  padding-left: 1.05rem;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
}

.hero__meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
}

/* hero visual */
.hero__visual {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--violet-glow), transparent 65%);
  filter: blur(14px);
}

.orbit-stage {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-stage__mark {
  position: relative;
  z-index: 1; /* sits behind the surrounding vial chips */
  color: var(--ink);
  filter: drop-shadow(0 14px 26px rgba(17, 21, 42, 0.2));
  animation: breathe 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .orbit-stage__mark {
    animation: none;
  }
}

/* gentle "breathing" so the mark feels alive without spinning */
@keyframes breathe {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.035) translateY(-4px);
  }
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--line-2);
}

.orbit-ring--a {
  inset: 6%;
}

.orbit-ring--b {
  inset: -8%;
  border-color: var(--violet-300);
  opacity: 0.5;
}

.hero__chips {
  position: absolute;
  inset: 0;
  z-index: 2; /* chips sit on top of the marque */
  pointer-events: none;
}

.hero-step {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  width: 168px;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.hero-step__n {
  font: 700 0.72rem/1 ui-monospace, monospace;
  letter-spacing: 0.06em;
  color: var(--violet-600);
}

.hero-step__title {
  margin-top: 0.08rem;
  font: 600 0.88rem/1.1 'Inter', sans-serif;
  color: var(--ink);
}

.hero-step__body {
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--muted);
}

/* Positioned to mirror the marque's three nodes (top-right, bottom-right,
   bottom-left), with a baked-in (generated once, not per-load) random offset
   so the trio reads organic rather than rigidly symmetrical. */
.hero-step--1 {
  top: 1%;
  right: -3%;
  animation: floaty 6.2s ease-in-out infinite;
}

.hero-step--2 {
  bottom: 5%;
  right: -6%;
  animation: floaty 7.1s ease-in-out 0.7s infinite;
}

.hero-step--3 {
  bottom: -2%;
  left: -5%;
  animation: floaty 6.6s ease-in-out 0.35s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-step {
    animation: none;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Below the wide-desktop breakpoint the hero column is too narrow for the
   cards' outward (negative) offsets without crossing the viewport edge (where
   the hero's overflow:hidden would clip them). Pull them flush to the visual,
   which is itself inset by the container gutter (1.25rem) so that gutter
   becomes a guaranteed margin from the screen edge. Above this width the
   container's side margins give the floating offsets room to breathe. */
@media (max-width: 78em) {
  .hero-step--1 {
    top: 0;
    right: 0;
  }
  .hero-step--2 {
    right: 0;
    bottom: 6%;
  }
  .hero-step--3 {
    left: 0;
    bottom: 0;
  }
}

@media (max-width: 40em) {
  .hero__visual {
    min-height: 280px;
  }
  .hero-step {
    width: 138px;
    padding: 0.55rem 0.7rem;
  }
  .hero-step__title {
    font-size: 0.8rem;
  }
  .hero-step__body {
    font-size: 0.68rem;
  }
}

/*
* --------------------------------------------------
* Trust strip
* --------------------------------------------------
*/
.trust-strip {
  background: var(--ink);
  color: #fff;
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 1rem;
  padding-block: 2rem;
}

@media (min-width: 48em) {
  .trust-strip__inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
}

@media (min-width: 48em) {
  .trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.5rem;
    top: 12%;
    height: 76%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
  }
}

.trust-item__stat {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #c4b3ff;
}

.trust-item__label {
  font-size: 0.82rem;
  color: #aab0d0;
}

/*
* --------------------------------------------------
* Section scaffolding
* --------------------------------------------------
*/
.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section--alt {
  background: linear-gradient(180deg, #f7f8fc, #f1f2f9);
  border-block: 1px solid var(--line);
}

.section__head {
  margin-bottom: 2.2rem;
}

.section__head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}

.section__sub {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 58ch;
}

.section__head--center .section__sub {
  margin-inline: auto;
}

.section__foot {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
}

.loading-grid {
  padding: 2rem 0;
  color: var(--muted);
}

/*
* --------------------------------------------------
* Featured collection
* --------------------------------------------------
*/
.featured-collection {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--mist-2);
}

.featured-collection-image {
  aspect-ratio: 16 / 7;
}

@media (max-width: 45em) {
  .featured-collection-image {
    aspect-ratio: 4 / 3;
  }
}

.featured-collection img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}

.featured-collection:hover img {
  transform: scale(1.04);
}

.featured-collection__cta {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.1rem;
  background: rgba(17, 21, 42, 0.8);
  color: #fff;
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

/*
* --------------------------------------------------
* Product cards / grids
* --------------------------------------------------
*/
.recommended-products-grid,
.blog-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(2, 1fr);
}

/* Compounds catalog grid: one column on mobile, auto-fill on larger screens */
.products-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 48em) {
  .recommended-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(var(--grid-item-width), 1fr));
  }
  .products-grid {
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fill, minmax(var(--grid-item-width), 1fr));
  }
}

/* Product card: horizontal on mobile (a tidy single-column list), vertical in
   the grid on larger screens. */
.product-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--violet-300);
}

.product-item__media {
  flex: 0 0 auto;
  width: 92px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--mist-2);
}

.product-item__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.product-item__title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.product-item__price {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--violet-600);
}

.product-item__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s ease, gap 0.15s ease;
}

.product-item:hover .product-item__cta {
  color: var(--violet-600);
  gap: 0.5rem;
}

@media (min-width: 48em) {
  .product-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
  .product-item__media {
    width: 100%;
    border-radius: 0;
  }
  .product-item__body {
    gap: 0.3rem;
    padding: 0.9rem 1rem 1.05rem;
  }
  .product-item__title {
    font-size: 1.02rem;
  }
}

/* Compounds (catalog) page */
.compounds__head {
  max-width: 640px;
  margin-bottom: 1.8rem;
}

.compounds .compounds__head .compounds__title {
  margin: 0;
}

.compounds__sub {
  margin: 0.7rem 0 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
}

.compounds__empty {
  padding: 2.5rem 0;
  color: var(--muted);
}

/*
* --------------------------------------------------
* Process steps
* --------------------------------------------------
*/
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 48em) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 1.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.step-card:hover::before {
  transform: scaleX(1);
}

.step-card__n {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--violet-600);
}

.step-card__title {
  margin: 0.6rem 0 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  color: var(--ink);
}

.step-card__body {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

/*
* --------------------------------------------------
* Quality
* --------------------------------------------------
*/
.quality {
  display: grid;
  gap: 2.2rem;
}

@media (min-width: 60em) {
  .quality {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
  }
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.45;
}

.check-icon {
  flex: 0 0 auto;
  margin-top: 1px;
}

.spec-card {
  padding: 1.4rem 1.5rem;
  background: linear-gradient(180deg, #fff, #fbfbff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.spec-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  margin-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
}

.spec-card__head .mono {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.spec-card__badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet-600);
  background: var(--violet-100);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--mist-2);
}

.spec-row__label {
  color: var(--muted);
  font-size: 0.92rem;
}

.spec-row__value {
  font-family: ui-monospace, monospace;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.spec-card__link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--violet-600);
}

/*
* --------------------------------------------------
* FAQ
* --------------------------------------------------
*/
.faq {
  max-width: 780px;
  margin-inline: auto;
}

.faq__list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  padding: 0 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--violet-300);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background: var(--violet);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-item__icon::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

.faq-item__icon::after {
  left: 8px;
  top: 0;
  width: 2px;
  height: 18px;
}

.faq-item[open] .faq-item__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item p {
  margin: 0;
  padding: 0 0 1.2rem;
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.6;
}

/*
* --------------------------------------------------
* Closing CTA band
* --------------------------------------------------
*/
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  text-align: center;
  background: var(--ink);
  border-radius: var(--radius-lg);
}

.cta-band__glow {
  position: absolute;
  top: -42%;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(122, 75, 255, 0.5), transparent 60%);
  pointer-events: none;
}

.cta-band__title {
  position: relative;
  margin: 0 0 0.8rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: #fff;
}

.cta-band__sub {
  position: relative;
  margin: 0 auto 1.8rem;
  max-width: 52ch;
  color: #c2c7e2;
  line-height: 1.6;
}

.cta-band__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.cta-band .btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/*
* --------------------------------------------------
* Footer
* --------------------------------------------------
*/
.footer {
  margin-top: auto;
  background: var(--ink-900);
  color: #aab0d0;
}

.footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 3.5rem 1.25rem 2.5rem;
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 52em) {
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer__blurb {
  margin: 1rem 0;
  max-width: 42ch;
  color: #9298ba;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer__email {
  color: var(--violet-300);
  font-weight: 500;
  font-size: 0.95rem;
}

.footer__email:hover {
  color: #fff;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__heading {
  margin: 0 0 0.3rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.footer__col a {
  color: #9298ba;
  font-size: 0.92rem;
}

.footer__col a:hover {
  color: #fff;
}

.footer__compliance {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__compliance p {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.4rem 1.25rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #7f86a8;
}

.footer__compliance strong {
  color: #c4b3ff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 1.2rem;
  padding-inline: max(1.25rem, calc((100% - var(--container)) / 2));
  font-size: 0.8rem;
  color: #7f86a8;
}

/*
* --------------------------------------------------
* MockShopNotice
* --------------------------------------------------
*/
.mock-shop-notice {
  margin: 1.5rem 0 0;
  background: var(--violet-100);
  border: 1px solid var(--violet-300);
  border-radius: var(--radius);
}

.mock-shop-notice .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
}

.mock-shop-notice__tag {
  flex: 0 0 auto;
  font: 700 0.68rem/1 ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--violet);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}

.mock-shop-notice p {
  flex: 1;
  min-width: 240px;
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

.mock-shop-notice code {
  padding: 0.08em 0.35em;
  background: #fff;
  border: 1px solid var(--violet-300);
  border-radius: 5px;
  font-size: 0.85em;
  color: var(--violet-600);
}

/*
* ==================================================================
* Functional storefront UI (cart, search, product, account)
* Ported from the skeleton and rebranded.
* ==================================================================
*/

.link:hover {
  text-decoration: underline;
  cursor: pointer;
}

/* Aside / overlay --------------------------------------------------*/
@media (max-width: 45em) {
  html:has(.overlay.expanded) {
    overflow: hidden;
  }
}

.overlay aside {
  position: fixed;
  top: 0;
  right: calc(-1 * var(--aside-width));
  height: 100vh;
  width: min(var(--aside-width), 100vw);
  background: var(--paper);
  box-shadow: -20px 0 60px rgba(17, 21, 42, 0.18);
  transition: transform 200ms ease-in-out;
}

.overlay aside header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.overlay aside header h3 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overlay aside header .close {
  font-weight: bold;
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 200ms;
  width: 20px;
  color: var(--ink);
}

.overlay aside header .close:hover {
  opacity: 1;
}

.overlay aside header h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.overlay aside main {
  margin: 1rem;
}

.overlay aside p {
  margin: 0 0 0.25rem;
}

.overlay aside p:last-child {
  margin: 0;
}

.overlay aside li {
  margin-bottom: 0.125rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 14, 31, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 400ms ease-in-out;
}

.overlay .close-outside {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - var(--aside-width));
  height: 100%;
  background: transparent;
  border: none;
  color: transparent;
}

.overlay .light {
  background: rgba(255, 255, 255, 0.5);
}

.overlay .cancel {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: default;
}

.overlay.expanded {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay.expanded aside {
  transform: translateX(calc(var(--aside-width) * -1));
}

button.reset {
  border: 0;
  background: inherit;
  font-size: inherit;
  cursor: pointer;
  color: inherit;
}

button.reset > * {
  margin: 0;
}

/* Cart --------------------------------------------------*/
.cart-main {
  width: auto;
  height: 100%;
  max-height: calc(100vh - var(--cart-aside-summary-height));
  overflow-y: auto;
}

.cart-main.with-discount {
  max-height: calc(100vh - var(--cart-aside-summary-height-with-discount));
}

/* Cart drawer: a flex column so the line items scroll and the summary stays
   pinned to the bottom. Scoped under `aside` so the /cart page is untouched. */
.overlay aside:has(.cart-main) > main {
  margin: 0;
  height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.overlay aside .cart-main {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.overlay aside .cart-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.overlay aside .cart-lines {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 1.1rem;
}

/* When the cart is empty, drop the (empty) details so the empty state centers */
.overlay aside .cart-main:has(.cart-empty:not([hidden])) .cart-details {
  display: none;
}

/* Empty state */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex: 1;
  min-height: 340px;
  padding: 2rem 1.6rem;
  text-align: center;
}

.cart-empty[hidden] {
  display: none;
}

.cart-empty__icon {
  display: inline-flex;
  margin-bottom: 0.3rem;
  color: var(--violet-300);
}

.cart-empty__title {
  margin: 0;
  font: 600 1.1rem/1.2 'Inter', sans-serif;
  color: var(--ink);
}

.cart-empty__text {
  margin: 0 0 0.7rem;
  max-width: 28ch;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Line item */
.cart-line {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line__main {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.cart-line__media {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}

.cart-line__media img,
.cart-line img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.cart-line__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-line__title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--ink);
  transition: color 0.15s ease;
}

.cart-line__title:hover {
  color: var(--violet-600);
}

.cart-line__options {
  list-style: none;
  margin: 0.05rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
}

.cart-line__options li {
  font-size: 0.78rem;
  color: var(--muted);
}

.cart-line__price .product-price {
  margin-top: 0.15rem;
  font-size: 1rem;
  color: var(--violet-600);
}

/* Quantity stepper + remove */
.cart-line-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.qty-stepper form {
  display: contents;
}

.qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.qty-btn:hover:not(:disabled) {
  background: var(--violet-100);
  color: var(--violet-600);
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-count {
  min-width: 2.2ch;
  padding: 0 0.15rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.cart-line__remove {
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.cart-line__remove:hover:not(:disabled) {
  color: #d23f3f;
}

.cart-line__remove:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cart-line-children {
  padding-left: 2rem;
}

/* Summary */
.cart-summary-page {
  position: relative;
}

.cart-summary-aside {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 1rem 1.1rem 1.2rem;
}

.overlay aside .cart-summary-aside {
  box-shadow: 0 -10px 26px -18px rgba(17, 21, 42, 0.28);
}

.cart-summary-aside h4,
.cart-summary-page h4 {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 0.85rem;
}

.cart-subtotal dt {
  font-weight: 600;
  color: var(--ink);
}

.cart-subtotal dd {
  margin: 0;
  font: 700 1.15rem ui-monospace, monospace;
  color: var(--ink);
}

/* discount / gift-card rows */
.cart-summary-aside form > div,
.cart-summary-page form > div {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.cart-summary-aside input[type='text'],
.cart-summary-page input[type='text'] {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cart-summary-aside input[type='text']:focus,
.cart-summary-page input[type='text']:focus {
  outline: none;
  background: #fff;
  border-color: var(--violet-300);
  box-shadow: 0 0 0 3px var(--violet-100);
}

.cart-summary-aside section button,
.cart-summary-page section button {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--violet-600);
  background: var(--violet-100);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cart-summary-aside section button:hover,
.cart-summary-page section button:hover {
  background: #e6dcff;
}

.cart-discount {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

/* checkout button */
.cart-summary-aside a,
.cart-summary-page a {
  display: block;
  margin-top: 0.9rem;
}

.cart-summary-aside a p,
.cart-summary-page a p {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.95rem 1.4rem;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: var(--shadow-violet);
  transition: transform 0.18s ease;
}

.cart-summary-aside a:hover p,
.cart-summary-page a:hover p {
  transform: translateY(-2px);
}

/* Search --------------------------------------------------*/
/* Desktop inline search lives in the header; the icon toggle (which opens the
   slide-out aside) is mobile-only. */
.header-search {
  display: none;
  position: relative;
}

@media (min-width: 62em) {
  .header-search {
    display: block;
  }
  .header-cta--search {
    display: none;
  }
}

.header-search__form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 210px;
  height: 40px;
  padding: 0 0.8rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    width 0.22s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.header-search__form:focus-within {
  width: 280px;
  background: #fff;
  border-color: var(--violet-300);
  box-shadow: 0 0 0 3px var(--violet-100);
}

.header-search__icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--muted);
}

.header-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  outline: none;
}

.header-search__input::placeholder {
  color: var(--muted-2);
}

.header-search__input::-webkit-search-decoration,
.header-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.header-search__panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: min(420px, 92vw);
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 60;
}

.header-search__hint {
  margin: 0;
  padding: 0.85rem 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.header-search__all {
  display: block;
  margin-top: 0.4rem;
  padding: 0.75rem 0.6rem 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--violet-600);
  font-weight: 600;
  font-size: 0.9rem;
}

.header-search__all q {
  font-style: normal;
}

/* Mobile aside search */
.predictive-search {
  height: calc(100vh - var(--header-height) - 40px);
  overflow-y: auto;
}

.predictive-search-field {
  display: flex;
  gap: 0.5rem;
  position: sticky;
  top: 0;
  padding: 0.25rem 0 0.85rem;
  background: var(--color-light);
}

.predictive-search-field input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  background: var(--mist);
  outline: none;
}

.predictive-search-field input:focus {
  background: #fff;
  border-color: var(--violet-300);
  box-shadow: 0 0 0 3px var(--violet-100);
}

.predictive-search-go {
  flex-shrink: 0;
  padding: 0 1.2rem;
  border: none;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* Predictive results (shared by the header dropdown and the mobile aside) */
.predictive-search-result {
  margin-bottom: 1rem;
}

.predictive-search-result h5 {
  margin: 0.4rem 0.6rem;
  text-transform: uppercase;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.predictive-search-result ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.predictive-search-result-item {
  margin: 0;
}

.predictive-search-result-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background 0.12s ease;
}

.predictive-search-result-item a:hover {
  background: var(--mist);
}

.predictive-search-result-item a img {
  height: 44px;
  width: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.predictive-search-result-item a p,
.predictive-search-result-item a span {
  margin: 0;
  font-size: 0.92rem;
}

.predictive-search-result-item a small {
  color: var(--violet-600);
  font: 600 0.78rem/1 ui-monospace, monospace;
}

/* Search results page */
.search__title {
  margin: 0.4rem 0 1.2rem;
}

.search__field {
  display: flex;
  gap: 0.6rem;
  max-width: 540px;
}

.search__field input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  background: var(--mist);
  outline: none;
}

.search__field input:focus {
  background: #fff;
  border-color: var(--violet-300);
  box-shadow: 0 0 0 3px var(--violet-100);
}

.search__meta {
  margin-top: 1rem;
  color: var(--muted);
}

.search__meta q {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}

.search__error {
  margin-top: 1rem;
  color: #c0392b;
}

.search__results {
  margin-top: 2rem;
}

.search-result {
  margin-bottom: 1.5rem;
}

.search-results-item {
  margin-bottom: 0.5rem;
}

.search-results-item a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background 0.12s ease;
}

.search-results-item a:hover {
  background: var(--mist);
}

/* Prose / legal / contact pages -------------------------------------------*/
.prose-page {
  max-width: 760px;
  margin: 0 auto;
}

.prose-page__head {
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.prose-page__updated {
  margin: 0.9rem 0 0;
  font: 600 0.8rem/1 ui-monospace, monospace;
  color: var(--muted-2);
}

.prose-page__intro {
  margin: 1.1rem 0 0;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
}

.prose-page__actions {
  margin-top: 1.6rem;
}

.prose-page__section {
  margin-bottom: 2rem;
}

.prose-page__section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.7rem;
}

.prose-page__section p {
  margin: 0 0 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

.prose-page__section ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.prose-page__section li {
  line-height: 1.6;
  color: var(--text);
}

.prose-page__section li::marker {
  color: var(--violet);
}

.prose-page__footnote {
  margin-top: 2.5rem;
  padding: 1rem 1.2rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Entry gate (21+ / research-use acknowledgement) -------------------------*/
.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  overflow-y: auto;
  padding: 1.25rem;
  background: rgba(10, 14, 31, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.entry-gate__panel {
  /* margin:auto centers on tall screens but lets the panel scroll into view
     (instead of clipping its buttons) on short ones */
  margin: auto;
  width: 100%;
  max-width: 460px;
  padding: 2.2rem 2rem 2rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(10, 14, 31, 0.6);
}

.entry-gate__logo {
  display: block;
  height: 2.1rem;
  width: auto;
  margin: 0 auto 1.4rem;
  color: var(--ink);
}

/* warning chip uses the OpenLabs violet, deliberately not red */
.entry-gate__warn {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  margin: 0 auto 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--violet-100);
  border: 1px solid var(--violet-300);
  color: var(--violet-600);
  font: 600 0.74rem/1 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.entry-gate__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.7rem;
}

.entry-gate__text {
  margin: 0 auto 1.6rem;
  max-width: 40ch;
  line-height: 1.6;
  color: var(--muted);
}

.entry-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.entry-gate__actions .btn {
  width: 100%;
}

.entry-gate__fine {
  margin: 1.3rem 0 0;
  font-size: 0.82rem;
  color: var(--muted-2);
}

.entry-gate__fine a {
  color: var(--violet-600);
  font-weight: 600;
}

/* Product page --------------------------------------------------*/
.product {
  display: grid;
  gap: 2rem;
  align-items: start;
}

/* On desktop the left column stacks the image and the trust card (areas
   "media" then "trust"); the right column ("main") spans both rows. On
   mobile the source order takes over: image, then the buy content, then
   the trust card last, so the title and price stay right under the image. */
@media (min-width: 45em) {
  .product {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas:
      'media main'
      'trust main';
    /* Row 1 hugs the image; row 2 soaks up all the slack from a tall main
       column, so the trust card stays pinned right below the image instead
       of drifting down when the description is expanded. */
    grid-template-rows: auto 1fr;
    column-gap: 3.5rem;
    row-gap: 1.5rem;
  }

  .product-media {
    grid-area: media;
  }

  .product-main {
    grid-area: main;
  }

  .product-trust {
    grid-area: trust;
  }
}

/* Media ------------------------------------------------- */
.product-media {
  position: relative;
  align-self: start;
}

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background:
    radial-gradient(120% 120% at 0% 0%, var(--violet-100), transparent 55%),
    linear-gradient(180deg, #fff, #fbfbff);
}

/* placeholder keeps a tidy square when a variant has no image */
.product-image:not(:has(img)) {
  aspect-ratio: 1 / 1;
}

.product-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  border: 0;
}

.product-media__chip {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 1;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--violet-600);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--violet-100);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* Main column ------------------------------------------- */
.product-main {
  align-self: start;
  min-width: 0;
}

.product-head {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

/* Three classes deep on purpose: this must out-specify the generic
   `body > main:not(...) h1` rule so the product title keeps its own size
   and margins. */
.product .product-main .product-head__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.product-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.product-price {
  font-family: ui-monospace, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--violet-600);
}

.product-price-on-sale {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.product-price-on-sale s {
  font-size: 1rem;
  color: var(--muted-2);
  opacity: 0.8;
}

.product-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f7a4b;
  background: #e7f7ef;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.product-stock__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.product-stock--out {
  color: var(--muted);
  background: var(--mist-2);
}

.product-head__sku {
  margin: 0.85rem 0 0;
  font: 600 0.78rem/1 ui-monospace, monospace;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

/* Variant options --------------------------------------- */
.product-form {
  display: grid;
  gap: 1.25rem;
}

.product-options__label {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.product-options-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.92rem;
  font-family: inherit;
  line-height: 1.1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease,
    background 0.15s ease, box-shadow 0.15s ease;
}

.product-options-item:hover:not(.is-unavailable):not(.is-selected) {
  border-color: var(--violet-300);
  color: var(--violet-600);
}

.product-options-item.is-selected {
  border-color: var(--violet);
  color: var(--violet-600);
  background: var(--violet-100);
  box-shadow: 0 0 0 1px var(--violet);
}

.product-options-item.is-unavailable {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.product-option-label-swatch {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(17, 21, 42, 0.12);
}

.product-option-label-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Add to cart ------------------------------------------- */
.add-to-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.25rem;
  padding: 1rem 1.5rem;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-violet);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.add-to-cart-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px var(--violet-glow);
}

.add-to-cart-button:active:not(:disabled) {
  transform: translateY(0);
}

.add-to-cart-button:disabled {
  background: var(--mist-2);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}

/* Trust row (under the image on desktop; spacing comes from the grid gap) */
.product-trust {
  list-style: none;
  margin: 0;
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.6rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-trust li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.product-trust li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--violet-600);
  font-weight: 700;
}

/* Description ------------------------------------------- */
.product-desc {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.product-desc__title {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.9rem;
}

.product-desc__body {
  position: relative;
}

.product-desc__body.is-clamped {
  max-height: 260px;
  overflow: hidden;
}

.product-desc__body.is-clamped::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 5.5rem;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}

/* Render the description as normal HTML: block tags (<p>, <br>, lists,
   headings) own the line breaks, so the source's own newlines/indentation
   between tags are collapsed instead of being turned into extra blank space. */
.product-prose {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.product-prose > :first-child {
  margin-top: 0;
}

.product-prose > :last-child {
  margin-bottom: 0;
}

.product-prose p {
  margin: 0 0 0.9rem;
}

/* Editors often emit blank/whitespace-only paragraphs as spacers; drop them
   so they don't stack onto the real paragraph margins. */
.product-prose p:empty {
  display: none;
}

.product-prose strong {
  color: var(--ink);
  font-weight: 700;
}

.product-prose a {
  color: var(--violet-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-prose ul,
.product-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.product-prose ul {
  list-style: disc;
}

.product-prose ol {
  list-style: decimal;
}

.product-prose li {
  margin: 0.3rem 0;
  padding-left: 0.2rem;
  line-height: 1.6;
}

.product-prose li::marker {
  color: var(--violet);
}

.product-prose h2,
.product-prose h3,
.product-prose h4 {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 1.4rem 0 0.6rem;
}

.product-prose h2 {
  font-size: 1.1rem;
}

.product-prose h3,
.product-prose h4 {
  font-size: 1rem;
}

.product-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 0.5rem 0;
}

.product-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-size: 0.92rem;
}

.product-prose th,
.product-prose td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
}

.product-desc__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  color: var(--violet-600);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.product-desc__toggle:hover {
  color: var(--violet);
}

.product-desc__caret {
  transition: transform 0.25s ease;
}

.product-desc__toggle[aria-expanded='true'] .product-desc__caret {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .product-desc__caret,
  .add-to-cart-button {
    transition: none;
  }
}

/* Blog --------------------------------------------------*/
.blog-article-image {
  display: block;
  aspect-ratio: 3 / 2;
}

.blog-article-image img {
  height: 100%;
  object-fit: cover;
}

.article img {
  width: 100%;
  height: auto;
}

/* Account --------------------------------------------------*/
.account-logout {
  display: inline-block;
}

.order-search-form {
  margin-bottom: 1.5rem;
}

.order-search-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.order-search-legend {
  font-weight: 600;
  padding: 0 0.5rem;
}

.order-search-active {
  font-weight: normal;
  opacity: 0.7;
  margin-left: 0.5rem;
}

.order-search-inputs {
  display: grid;
  gap: 1rem;
  margin: 0.25rem 0 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .order-search-inputs {
    grid-template-columns: 1fr 1fr;
  }
}

.order-search-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.order-search-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Generic route error --------------------------------------------------*/
.route-error {
  max-width: 600px;
  margin: 4rem auto;
  padding: 0 1.25rem;
}

/* Accessibility: skip-to-content link (visible on keyboard focus). */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}
