/*
Theme Name: GRIT Label
Theme URI: https://gritpeptides.com
Author: haclabs Inc.
Description: Clean clinical WooCommerce storefront for GRIT Peptides: the vial, large, on white and mint.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: grit
WC requires at least: 8.0
*/

/* ---------- tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #eef3f1;
  --field: #d9f2e7;
  --ink: #0c1a17;
  --muted: #55665f;
  --accent: #2bc48f;
  --accent-ink: #0c1a17;

  --display: "Panchang", "Arial Black", sans-serif;
  --text: "Switzer", "Helvetica Neue", Arial, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);

  --m: clamp(16px, 2.2vw, 32px);
  --gap-section: clamp(96px, 11vw, 180px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: var(--step-body); line-height: 1.5;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color var(--t-hover) ease, opacity var(--t-hover) ease; }
a:hover { opacity: 0.7; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.05; text-wrap: balance; }
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; }
p { margin: 0 0 1em; max-width: 64ch; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.soft { color: var(--muted); }

/* ---------- buttons: one shape, square ---------- */
.btn, .button, a.button, button.button, input.button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  background: var(--accent); color: var(--accent-ink);
  font: 500 1rem/1 var(--text); letter-spacing: 0;
  padding: 0 1.5em; min-height: 50px; border: 0; border-radius: 0;
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--ink); color: var(--bg); opacity: 1; }
.btn:active, .button:active, .woocommerce .button:active { transform: translateY(1px) scale(0.985); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--accent); color: var(--ink); }
.btn--paper { background: var(--bg); color: var(--ink); }
.btn--paper:hover { background: var(--ink); color: var(--bg); }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { background: var(--surface); color: var(--muted); opacity: 1; }
.woocommerce a.added_to_cart { display: none; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 14px var(--m); background: var(--bg);
}
body.home .bar { background: var(--surface); }
.bar__mark { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; }
.bar__nav { display: flex; gap: clamp(18px, 2.6vw, 40px); font-size: 0.9375rem; }
.bar__nav a { text-decoration: none; }
.bar__end { justify-self: end; }
.bar__cart { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 0.9375rem; }
.bar__cart:hover { background: var(--accent); color: var(--ink); opacity: 1; }
@media (max-width: 760px) {
  .bar { grid-template-columns: auto 1fr; }
  .bar__nav { display: none; }
}

/* ---------- hero: the vial on the seam ---------- */
.hero { position: relative; height: calc(100svh - 68px); min-height: 620px; overflow: hidden; background: var(--bg); }
.hero__panel { position: absolute; inset: 0 0 auto 0; height: 50%; background: var(--surface); }
.hero__word {
  position: absolute; left: var(--m); right: var(--m); top: 6%;
  font-size: clamp(5rem, 21vw, 22rem); line-height: 0.82; margin: 0; z-index: 1; white-space: nowrap;
}
.hero__vial {
  position: absolute; z-index: 2; left: 40%; top: 4%; width: min(64vw, 1100px); height: auto;
  mix-blend-mode: multiply; pointer-events: none;
}
.hero__text { position: absolute; z-index: 3; left: var(--m); top: calc(50% + 28px); max-width: 44ch; }
.hero h1 { font-size: 1.5rem; font-weight: 500; line-height: 1.25; margin-bottom: 0.9em; }
.hero h1 span { display: block; color: var(--muted); }
.hero__sentence { font-size: 0.9375rem; margin-bottom: 1.4em; }
.hero__facts { position: absolute; z-index: 3; left: var(--m); bottom: 28px; display: flex; gap: clamp(20px, 4vw, 64px); margin: 0; font-size: 0.9375rem; }
.hero__facts div { display: grid; }
.hero__facts dt { color: var(--muted); }
.hero__facts dd { margin: 0; font-weight: 500; font-size: 1.25rem; }
@media (max-width: 860px) {
  .hero { height: auto; min-height: 0; padding-bottom: 40px; }
  .hero__panel { height: 46svh; }
  .hero__word { position: relative; top: auto; left: auto; right: auto; padding: 28px 20px 0; font-size: 25vw; }
  .hero__vial { position: relative; left: 8vw; top: auto; width: 120vw; max-width: none; margin-top: -18vw; }
  .hero__text { position: relative; left: auto; top: auto; padding: 0 20px; margin-top: -10vw; }
  .hero h1 { font-size: 1.375rem; }
  .hero__facts { position: relative; left: auto; bottom: auto; padding: 24px 20px 0; flex-wrap: wrap; gap: 20px 32px; }
}

/* ---------- catalog: product grid with live search ---------- */
.catalog { padding: clamp(56px, 7vw, 104px) var(--m) 0; }
.catalog__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 28px; }
.catalog__head h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem); }
.finder { display: flex; align-items: center; background: var(--surface); min-height: 52px; width: min(100%, 420px); padding: 0 16px; gap: 12px; }
.finder svg { flex: none; }
.finder input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); min-height: 50px; outline: 0; }
.finder input::placeholder { color: var(--muted); }
.finder:focus-within { outline: 3px solid var(--accent); }
.finder__count { font-size: var(--step-small); color: var(--muted); white-space: nowrap; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.card { background: var(--surface); display: flex; flex-direction: column; position: relative; transition: background-color var(--t-ui) ease; }
.card:hover { background: var(--field); }
.card[hidden] { display: none; }
.card__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transform: scale(1.12); transition: transform 600ms var(--ease-out); }
.card:hover .card__img img { transform: scale(1.2); }
.card__body { padding: 0 20px 20px; display: grid; gap: 4px; }
.card__name { font-size: 1.125rem; font-weight: 500; line-height: 1.25; text-decoration: none; }
.card__meta { font-size: var(--step-small); color: var(--muted); }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.card__price { font-size: 1.125rem; font-weight: 500; }
.card__price del { color: var(--muted); font-weight: 400; margin-right: 6px; }
.card__price ins { text-decoration: none; }
.card__row .button { min-height: 42px; padding: 0 1em; font-size: 0.9375rem; }
.card__tag { position: absolute; top: 14px; left: 14px; background: var(--ink); color: var(--bg); font-size: var(--step-small); padding: 5px 9px; }
.catalog__more { margin-top: 24px; display: flex; justify-content: center; }
.catalog__empty { padding: 40px 0; color: var(--muted); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .card__body { padding: 0 12px 14px; } .card__row { flex-direction: column; align-items: stretch; } .card__name { font-size: 1rem; } }

/* ---------- showcase: two vials, two fields ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--gap-section); }
.pair__panel { position: relative; height: 92svh; min-height: 600px; overflow: hidden; background: var(--surface); }
.pair__panel:nth-child(2) { background: var(--field); }
.pair__panel img { position: absolute; left: 50%; top: -38%; width: 140%; max-width: none; transform: translateX(-50%); mix-blend-mode: multiply; transition: transform 1.2s var(--ease-soft); }
.pair__panel:hover img { transform: translateX(-50%) translateY(2%); }
.pair__title { position: absolute; z-index: 2; top: 28px; left: 28px; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); max-width: 8ch; }
.pair__foot { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 28px; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.pair__name { font-size: 1.25rem; font-weight: 500; margin: 0; }
.pair__fact { font-size: 1.0625rem; color: var(--muted); margin: 0; }
.pair__acts { display: flex; gap: 8px; }
@media (max-width: 860px) {
  .pair { grid-template-columns: 1fr; }
  .pair__panel { height: 78svh; min-height: 0; }
  .pair__panel img { width: 150%; left: 60%; top: -30%; }
  .pair__title { font-size: 1.625rem; }
  .pair__acts { width: 100%; } .pair__acts .btn { flex: 1; }
}

/* ---------- proof: compound names running off both edges ---------- */
.band { background: var(--ink); color: var(--bg); height: 34vh; min-height: 200px; display: flex; align-items: center; overflow: hidden; }
.band__track { display: flex; white-space: nowrap; animation: run 60s linear infinite; }
.band__track span { font-size: 8vw; padding-right: 0.5em; display: inline-flex; align-items: center; gap: 0.5em; }
.band__track span::after { content: ""; width: 0.24em; height: 0.24em; border-radius: 50%; background: var(--accent); }
@keyframes run { to { transform: translateX(-50%); } }
.band__note { padding: 20px var(--m) 0; font-size: 1.125rem; max-width: 60ch; }
@media (max-width: 760px) { .band { height: 22vh; } .band__track span { font-size: 15vw; } .band__note { font-size: 1rem; } }

/* ---------- how: tiles that grow ---------- */
.how { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; padding: 0 var(--m); margin-top: var(--gap-section); align-items: end; }
.how__title { grid-column: 1 / 8; grid-row: 1; align-self: start; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); padding-bottom: 24px; }
.how__step { display: grid; gap: 14px; grid-row: 2; }
.how__step:nth-of-type(1) { grid-column: 1 / 4; }
.how__step:nth-of-type(2) { grid-column: 4 / 8; }
.how__step:nth-of-type(3) { grid-column: 8 / 13; grid-row: 1 / 3; align-self: end; }
.how__tile { overflow: hidden; display: grid; place-items: center; }
.how__step:nth-of-type(1) .how__tile { height: 30vh; background: var(--surface); }
.how__step:nth-of-type(2) .how__tile { height: 44vh; background: var(--field); }
.how__step:nth-of-type(3) .how__tile { height: 60vh; background: #bfeedc; }
.how__tile img { height: 84%; width: auto; mix-blend-mode: multiply; object-fit: contain; }
.how__step h3 { font-size: 1.25rem; font-weight: 500; }
.how__step p { font-size: 1rem; color: var(--muted); margin: 0; max-width: 34ch; }
@media (max-width: 860px) {
  .how { grid-template-columns: 1fr; gap: 28px; }
  .how__title, .how__step, .how__step:nth-of-type(n) { grid-column: auto; grid-row: auto; }
  .how__step:nth-of-type(1) .how__tile { height: 34vw; }
  .how__step:nth-of-type(2) .how__tile { height: 46vw; }
  .how__step:nth-of-type(3) .how__tile { height: 62vw; }
}

/* ---------- faq: wide heading, indented questions ---------- */
.faq { padding: 0 var(--m); margin-top: var(--gap-section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; }
.faq__title { grid-column: 1 / -1; font-size: clamp(2.25rem, 5.5vw, 5.5rem); margin-bottom: 80px; }
.faq__list { grid-column: 5 / 13; display: grid; gap: 12px; }
.faq details { padding: 12px 24px; margin: 0 -24px; transition: background-color var(--t-ui) ease; }
.faq details[open] { background: var(--surface); padding-bottom: 24px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.5rem); padding: 12px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--t-ui) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { font-size: 1.0625rem; max-width: 48ch; margin: 4px 0 0; }
@media (max-width: 860px) {
  .faq__title { font-size: 10vw; margin-bottom: 40px; }
  .faq__list { grid-column: 1 / -1; }
  .faq details { margin: 0 calc(var(--m) * -1); padding: 8px var(--m); }
  .faq summary { font-size: 1.1875rem; }
}

/* ---------- cta: the vial returns ---------- */
.again { position: relative; margin-top: var(--gap-section); height: 90svh; min-height: 560px; background: var(--field); overflow: hidden; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding: 0 var(--m); }
.again__img { position: absolute; left: -6%; bottom: -34%; width: min(78vw, 1200px); max-width: none; mix-blend-mode: multiply; rotate: -12deg; transition: transform 1.6s var(--ease-soft); }
.again:hover .again__img { transform: translateY(-2%); }
.again__text { grid-column: 9 / 13; align-self: center; position: relative; z-index: 2; }
.again__text h2 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); margin-bottom: 0.5em; }
.again__text p { font-size: 1.0625rem; }
.again__price { font-size: 1.375rem; font-weight: 500; }
@media (max-width: 860px) {
  .again { height: auto; min-height: 0; grid-template-columns: 1fr; padding: 56px 20px 0; }
  .again__text { grid-column: auto; }
  .again__text .btn { width: 100%; }
  .again__img { position: relative; left: -10vw; bottom: auto; width: 130vw; margin-top: 24px; margin-bottom: -30vw; }
}

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--bg); padding: clamp(64px, 8vw, 120px) var(--m) 24px; overflow: hidden; }
.foot a { color: var(--bg); }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; }
.foot__msg { grid-column: 1 / 6; }
.foot__msg h2 { font-size: 1.75rem; margin-bottom: 0.5em; }
.foot__msg p { font-size: 1rem; color: #b9c7c2; }
.foot__links { grid-column: 7 / 10; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; font-size: 1.0625rem; }
.foot__links2 { grid-column: 10 / 13; }
.foot__word { font-size: clamp(5rem, 24vw, 26rem); line-height: 0.8; margin: 72px 0 0 -0.04em; color: var(--accent); white-space: nowrap; }
.foot__imprint { font-size: var(--step-small); color: #b9c7c2; margin: 24px 0 0; max-width: none; }
@media (max-width: 860px) {
  .foot__msg, .foot__links, .foot__links2 { grid-column: 1 / -1; }
}

/* ---------- inner pages ---------- */
.sheet { max-width: 1320px; margin: 0 auto var(--gap-section); padding: 40px var(--m) 0; }
.sheet__title { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(2rem, 1.3rem + 3.2vw, 4rem); line-height: 1; margin-bottom: 0.5em; }
.entry { max-width: 72ch; }
.entry h2 { font-size: 1.75rem; margin: 1.4em 0 0.4em; }
.entry h3 { font-size: 1.25rem; margin: 1.2em 0 0.3em; }
.coa-wrap { overflow-x: auto; max-width: none; }
.coa-table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 640px; }
.coa-table th, .coa-table td { text-align: left; padding: 14px 16px; vertical-align: middle; }
.coa-table thead th { background: var(--ink); color: var(--bg); font-weight: 500; }
.coa-table tbody tr:nth-child(even) { background: var(--surface); }
.coa-table td.num { font-variant-numeric: tabular-nums; }

/* ---------- WooCommerce archive ---------- */
.woocommerce .woocommerce-breadcrumb { font-size: var(--step-small); color: var(--muted); margin: 0 0 16px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce-products-header__title, .woocommerce-products-header .page-title, .sheet--shop > .page-title, .sheet--shop .page-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(2.25rem, 1.3rem + 4vw, 5rem); line-height: 1; margin: 0 0 24px; }
.woocommerce .woocommerce-result-count { font-size: var(--step-small); color: var(--muted); margin: 14px 0; }
.woocommerce .woocommerce-ordering select { font: inherit; font-size: 0.9375rem; background: var(--surface); color: var(--ink); border: 0; border-radius: 0; padding: 12px 14px; min-height: 46px; }
.grit-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.grit-cats a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 16px; background: var(--surface); text-decoration: none; font-size: 0.9375rem; }
.grit-cats a:hover, .grit-cats a[aria-current="page"] { background: var(--ink); color: var(--bg); opacity: 1; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 !important; padding: 0; clear: both; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: var(--surface); padding: 0 0 20px; display: flex; flex-direction: column; transition: background-color var(--t-ui) ease; position: relative; }
.woocommerce ul.products li.product:hover { background: var(--field); }
.woocommerce ul.products li.product a img { margin: 0 !important; aspect-ratio: 4 / 5; object-fit: contain; mix-blend-mode: multiply; transform: scale(1.12); transition: transform 600ms var(--ease-out); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { overflow: hidden; display: block; }
.woocommerce ul.products li.product:hover a img { transform: scale(1.2); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.125rem !important; font-weight: 500; line-height: 1.25; padding: 0 20px 2px !important; }
.woocommerce ul.products li.product .grit-ruo { padding: 0 20px; margin: 0 0 10px; font-size: var(--step-small); color: var(--muted); }
.woocommerce ul.products li.product .price { color: var(--ink) !important; font-size: 1.125rem !important; font-weight: 500; padding: 0 20px; margin: 0 0 14px !important; display: block; }
.woocommerce ul.products li.product .price del { color: var(--muted); opacity: 1; font-weight: 400; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button { margin: auto 20px 0 !important; min-height: 44px; padding: 0 1em !important; display: inline-flex !important; line-height: 1 !important; }
.woocommerce span.onsale { background: var(--ink); color: var(--bg); border-radius: 0; min-height: 0; min-width: 0; line-height: 1; padding: 6px 10px; top: 14px !important; left: 14px !important; right: auto !important; margin: 0 !important; font-weight: 500; font-size: var(--step-small); }
.woocommerce nav.woocommerce-pagination ul, .woocommerce nav.woocommerce-pagination ul li { border: 0; }
@media (max-width: 1100px) { .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price, .woocommerce ul.products li.product .grit-ruo { padding-left: 12px !important; padding-right: 12px !important; } .woocommerce ul.products li.product .button { margin: auto 12px 0 !important; } }

/* ---------- single product ---------- */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 10px clamp(24px, 4vw, 72px); align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images { background: var(--surface); position: sticky; top: 84px; overflow: hidden; }
.woocommerce div.product div.images img { mix-blend-mode: multiply; transform: scale(1.08); }
.woocommerce div.product div.images .flex-control-thumbs { padding: 10px; display: flex; gap: 8px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 72px !important; background: var(--bg); }
.woocommerce div.product div.summary { padding-top: clamp(8px, 3vw, 48px); }
.woocommerce div.product .product_title { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); margin-bottom: 0.4em; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 1.75rem; font-weight: 500; }
.woocommerce div.product p.price del { color: var(--muted); font-weight: 400; font-size: 0.7em; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--muted); }
.woocommerce div.product .stock { color: var(--ink); font-weight: 500; }
.woocommerce div.product .stock.out-of-stock { color: #a3341f; }
.woocommerce div.product form.cart { display: flex; gap: 8px; align-items: stretch; margin: 20px 0 28px; }
.woocommerce div.product form.cart .button { flex: 1; min-height: 56px; font-size: 1.0625rem; }
.woocommerce .quantity .qty { font: inherit; width: 84px; min-height: 56px; background: var(--surface); color: var(--ink); border: 0; border-radius: 0; text-align: center; }
.woocommerce div.product .product_meta { font-size: var(--step-small); color: var(--muted); }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 64px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(24px, 4vw, 72px); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; align-self: start; position: sticky; top: 90px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--surface) !important; border: 0 !important; border-radius: 0 !important; margin: 0 !important; padding: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--ink) !important; padding: 14px 18px !important; font-weight: 500 !important; display: block; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--ink) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--bg) !important; }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0 !important; max-width: 70ch; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce div.product .woocommerce-tabs .panel h2 { font-size: 1.5rem; margin: 1.4em 0 0.4em; }
.woocommerce div.product .woocommerce-tabs .panel ul { padding-left: 1.2em; }
.woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; margin-top: var(--gap-section); }
.woocommerce div.product .related > h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); margin-bottom: 20px; }
.facts { margin: 24px 0 8px; display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: 1.0625rem; }
.facts div:nth-child(odd) { background: var(--surface); margin: 0 -16px; padding: 14px 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.ruo-note { font-size: var(--step-small); color: var(--muted); margin: 12px 0 0; }
@media (max-width: 860px) {
  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce div.product div.images { position: relative; top: 0; }
  .woocommerce div.product .woocommerce-tabs { grid-template-columns: 1fr; }
  .woocommerce div.product .woocommerce-tabs ul.tabs { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* ---------- cart / checkout / account ---------- */
.woocommerce table.shop_table { border: 0; border-radius: 0; border-collapse: collapse; }
.woocommerce table.shop_table th { background: var(--surface); font-weight: 500; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-top: 0; padding: 14px 16px; }
.woocommerce table.shop_table tbody tr + tr td { border-top: 1px solid var(--surface); }
.woocommerce table.shop_table img { width: 64px; mix-blend-mode: multiply; background: var(--surface); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single, #coupon_code {
  font: inherit; font-size: 1rem; background: var(--bg); color: var(--ink);
  border: 1px solid #cdd8d4; border-radius: 0; padding: 12px 14px; min-height: 50px;
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--ink); outline: 0; }
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered { color: var(--ink); line-height: 24px; padding: 0; }
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow { top: 12px; }
.woocommerce form .form-row label { font-weight: 500; font-size: 0.9375rem; }
.woocommerce-checkout h3 { font-size: 1.375rem; margin-bottom: 12px; }
.woocommerce-checkout #payment { background: var(--surface) !important; border-radius: 0 !important; }
.woocommerce-checkout #payment div.payment_box { background: var(--bg) !important; color: var(--ink) !important; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--bg) !important; }
.woocommerce-checkout #payment #place_order { width: 100%; min-height: 56px; font-size: 1.0625rem; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--surface) !important; color: var(--ink) !important; border-top: 0 !important; border-left: 6px solid var(--accent) !important; border-radius: 0; }
.woocommerce-error { border-left-color: #a3341f !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ink) !important; }
.grit-ruo-check { background: var(--field); padding: 16px 18px; margin: 0 0 16px; }
.grit-ruo-check label { font-weight: 400 !important; display: flex; gap: 10px; align-items: flex-start; }
.grit-ruo-check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }

/* ---------- research-use gate ---------- */
.gate { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(12, 26, 23, 0.72); padding: 16px; }
html.gate-open .gate { display: grid; }
html.gate-open body { overflow: hidden; }
.gate__card { background: var(--bg); max-width: 520px; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.3); /* taste-skill-ignore: modal dialog */ }
.gate__top { background: var(--field); padding: 28px 32px; }
.gate__top p { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; font-size: 1.5rem; line-height: 1; margin: 0; }
.gate__body { padding: 28px 32px 32px; }
.gate h2 { font-size: 1.5rem; margin-bottom: 0.5em; }
.gate p { font-size: 1rem; }
.gate__actions { display: flex; gap: 8px; margin-top: 8px; }
.gate__actions .btn { flex: 1; }
.gate__leave { background: var(--surface); color: var(--ink); }

/* ---------- motion (content visible without script) ---------- */
html.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
html.js [data-rise].is-in { opacity: 1; transform: none; }
html.js .hero__vial { clip-path: inset(100% 0 0 0); scale: 1.12; transition: clip-path 1.1s var(--ease-out), scale 1.4s var(--ease-soft); }
html.js .hero__vial.is-in { clip-path: inset(0 0 0 0); scale: 1; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-rise], html.js .hero__vial { opacity: 1; transform: none; scale: 1; clip-path: none; transition: none; }
  .band__track { animation: none; }
  .card__img img, .pair__panel img { transition: none; }
  html { scroll-behavior: auto; }
}
