/*
Theme Name: EPS Compound Index
Theme URI: https://externalpepidessupply.com
Author: Eternal Peptides Supply
Description: Laboratory catalogue theme for Eternal Peptides Supply. Structured as a compound index rather than a storefront: hairline grid, journal serif for compound names, monospace assay data. Palette inherited from the reference brand.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: Proprietary
Text Domain: eps
*/

/* ---------------------------------------------------------------
   Tokens. Every colour here comes from the reference brand.
   Purple is flat and load-bearing, never a gradient.
   Green appears only where a certificate genuinely exists.
   --------------------------------------------------------------- */
:root {
	--ink: #111827;
	--ink-soft: #374151;
	--mute: #6b7280;
	--faint: #9ca3af;
	--paper: #ffffff;
	--paper-2: #f9fafb;
	--paper-3: #f3f4f6;
	--rule: #e5e7eb;
	--rule-strong: #d1d5db;
	--brand: #5b2c83;
	--brand-deep: #26163a;
	--verified: #15803d;
	--verified-bg: #f0fdf4;
	--flag: #f59e0b;
	--link: #2563eb;
	--alert: #991b1b;
	--alert-bg: #fef2f2;

	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--wrap: 1240px;
	--gutter: 24px;
	--step: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.eps {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
}

.eps-wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.eps-skip {
	position: absolute;
	left: -9999px;
}
.eps-skip:focus {
	left: 12px;
	top: 12px;
	z-index: 200;
	background: var(--ink);
	color: var(--paper);
	padding: 10px 14px;
}

/* ---------------------------------------------------------------
   Type scale
   --------------------------------------------------------------- */
.eps-eyebrow {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mute);
	margin: 0 0 12px;
}
.eps-eyebrow--brand { color: var(--brand); }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 12px;
	line-height: 1.15;
	letter-spacing: -0.01em;
}
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; }
h4 { font-size: 16px; }

p { margin: 0 0 16px; }

.eps-lede {
	font-size: 18px;
	color: var(--ink-soft);
	max-width: 62ch;
}

.eps-section {
	padding: 72px 0;
	border-top: 1px solid var(--rule);
}
.eps-section--flush { border-top: 0; }
.eps-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
	flex-wrap: wrap;
}
.eps-section__head p { margin: 0; color: var(--mute); font-size: 14px; }

/* ---------------------------------------------------------------
   Assay strip. The signature element: monospace data under any
   image or card, printed rather than styled.
   --------------------------------------------------------------- */
.eps-assay {
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.02em;
	color: var(--mute);
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0;
}
.eps-assay__sep { color: var(--rule-strong); }
.eps-assay__code { color: var(--ink); font-weight: 500; }
.eps-assay__coa { color: var(--verified); font-weight: 500; }
.eps-assay__coa--none { color: var(--faint); font-weight: 400; }

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.eps-head {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}
.eps-head__bar {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 68px;
}
.eps-brand {
	display: flex;
	align-items: baseline;
	gap: 8px;
	color: var(--ink);
	text-decoration: none;
	flex: 0 0 auto;
}
.eps-brand:hover { text-decoration: none; }
.eps-brand__name {
	font-family: var(--serif);
	font-size: 21px;
	font-weight: 600;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.eps-brand__tag {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--brand);
}
.eps-nav {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-left: auto;
}
.eps-nav a {
	color: var(--ink-soft);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
}
.eps-nav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); text-decoration: none; }
.eps-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

.eps-search {
	display: flex;
	align-items: center;
	border: 1px solid var(--rule-strong);
	background: var(--paper);
	height: 38px;
	min-width: 210px;
}
.eps-search input {
	border: 0;
	background: transparent;
	font-family: var(--mono);
	font-size: 12.5px;
	padding: 0 10px;
	width: 100%;
	color: var(--ink);
}
.eps-search input::placeholder { color: var(--faint); }
.eps-search input:focus { outline: none; }
.eps-search:focus-within { border-color: var(--brand); }
.eps-search button {
	border: 0;
	border-left: 1px solid var(--rule);
	background: var(--paper-3);
	color: var(--ink);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	height: 100%;
	padding: 0 12px;
	cursor: pointer;
}
.eps-search button:hover { background: var(--ink); color: var(--paper); }

.eps-cart {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--ink);
	border: 1px solid var(--rule-strong);
	height: 38px;
	display: inline-flex;
	align-items: center;
	padding: 0 12px;
	text-decoration: none;
	white-space: nowrap;
}
.eps-cart:hover { background: var(--paper-3); text-decoration: none; }
.eps-cart__n { color: var(--brand); font-weight: 600; }

.eps-burger {
	display: none;
	width: 40px;
	height: 38px;
	border: 1px solid var(--rule-strong);
	background: var(--paper);
	cursor: pointer;
	position: relative;
}
.eps-burger span,
.eps-burger span::before,
.eps-burger span::after {
	position: absolute;
	left: 11px;
	width: 16px;
	height: 1.5px;
	background: var(--ink);
	content: "";
}
.eps-burger span { top: 18px; }
.eps-burger span::before { top: -5px; }
.eps-burger span::after { top: 5px; }

.eps-notice {
	background: var(--ink);
	color: var(--paper);
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.04em;
	text-align: center;
	padding: 9px 16px;
}
.eps-notice a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------
   Hero. Left states the promise and lets the buyer search.
   Right is the media slot with a data caption tying it to a batch.
   --------------------------------------------------------------- */
.eps-hero { padding: 64px 0 56px; }
.eps-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 56px;
	align-items: center;
}
.eps-hero h1 { margin-bottom: 18px; }
.eps-hero__lede { font-size: 18px; color: var(--ink-soft); margin-bottom: 26px; max-width: 52ch; }
.eps-hero__find {
	display: flex;
	border: 1px solid var(--ink);
	height: 52px;
	max-width: 460px;
	margin-bottom: 18px;
}
.eps-hero__find input {
	flex: 1;
	border: 0;
	padding: 0 14px;
	font-family: var(--mono);
	font-size: 13.5px;
	color: var(--ink);
}
.eps-hero__find input:focus { outline: none; }
.eps-hero__find button {
	border: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0 20px;
	cursor: pointer;
}
.eps-hero__find button:hover { background: var(--brand); }
.eps-hero__meta {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	font-family: var(--mono);
	font-size: 11.5px;
	color: var(--mute);
	letter-spacing: 0.03em;
}
.eps-hero__meta strong { color: var(--ink); font-weight: 500; }

.eps-media {
	border: 1px solid var(--rule);
	background: var(--paper-2);
}
.eps-media__frame {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--paper-3);
}
.eps-media__frame img,
.eps-media__frame video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.eps-media__cap {
	border-top: 1px solid var(--rule);
	padding: 10px 14px;
	background: var(--paper);
}
.eps-media__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-family: var(--mono);
	font-size: 11.5px;
	color: var(--faint);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	padding: 20px;
}

/* ---------------------------------------------------------------
   Category index. A dense list, not cards. Mono code carries the
   taxonomy, serif carries the name.
   --------------------------------------------------------------- */
.eps-index {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--ink);
	border-left: 1px solid var(--rule);
}
.eps-index__row {
	display: block;
	border-right: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	padding: 18px 20px 20px;
	text-decoration: none;
	color: var(--ink);
	background: var(--paper);
}
.eps-index__row:hover { background: var(--paper-2); text-decoration: none; }
.eps-index__row:hover .eps-index__name { color: var(--brand); }
.eps-index__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}
.eps-index__code {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	color: var(--brand);
}
.eps-index__count {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--faint);
}
.eps-index__name {
	font-family: var(--serif);
	font-size: 19px;
	font-weight: 600;
	display: block;
	margin-bottom: 4px;
}
.eps-index__note {
	font-size: 13px;
	color: var(--mute);
	margin: 0;
	line-height: 1.5;
}

/* ---------------------------------------------------------------
   Product grid. Large photo on white, quiet chrome, one action.
   --------------------------------------------------------------- */
.eps-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.eps-card {
	display: flex;
	flex-direction: column;
	background: var(--paper);
}
.eps-card__shot {
	display: block;
	border: 1px solid var(--rule);
	background: var(--paper);
	aspect-ratio: 1 / 1;
	overflow: hidden;
	position: relative;
}
.eps-card__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}
.eps-card:hover .eps-card__shot { border-color: var(--rule-strong); }
.eps-card:hover .eps-card__shot img { transform: scale(1.02); }
.eps-card__flag {
	position: absolute;
	top: 0;
	left: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 4px 9px;
}
.eps-card__flag--pop { background: var(--flag); color: var(--ink); }
.eps-card__body { padding: 14px 2px 0; display: flex; flex-direction: column; flex: 1; }
.eps-card__name {
	font-family: var(--serif);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.25;
	margin: 8px 0 10px;
}
.eps-card__name a { color: var(--ink); text-decoration: none; }
.eps-card__name a:hover { color: var(--brand); text-decoration: none; }
.eps-card__price {
	font-family: var(--mono);
	font-size: 17px;
	font-weight: 500;
	color: var(--ink);
	margin: 0 0 4px;
}
.eps-card__unit {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--mute);
	margin: 0 0 14px;
}
.eps-card__foot { margin-top: auto; }

/* Buttons. Square corners throughout: no pills. */
.eps-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 12px 18px;
	cursor: pointer;
	text-decoration: none;
	width: 100%;
	transition: background 160ms ease, border-color 160ms ease;
}
.eps-btn:hover { background: var(--brand); border-color: var(--brand); color: var(--paper); text-decoration: none; }
.eps-btn--ghost { background: var(--paper); color: var(--ink); }
.eps-btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.eps-btn--auto { width: auto; }

/* ---------------------------------------------------------------
   Evidence band. Four tests, hairline boxes, green only when true.
   --------------------------------------------------------------- */
.eps-tests {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--ink);
	border-left: 1px solid var(--rule);
}
.eps-test {
	border-right: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	padding: 22px 20px 24px;
}
.eps-test__n {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--brand);
	letter-spacing: 0.12em;
	display: block;
	margin-bottom: 10px;
}
.eps-test h3 { font-size: 18px; margin-bottom: 8px; }
.eps-test p { font-size: 13.5px; color: var(--mute); margin: 0; line-height: 1.55; }

/* ---------------------------------------------------------------
   Research-use notice
   --------------------------------------------------------------- */
.eps-ruo {
	border: 1px solid #fecaca;
	background: var(--alert-bg);
	padding: 16px 18px;
}
.eps-ruo__label {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--alert);
	display: block;
	margin-bottom: 6px;
}
.eps-ruo p { margin: 0; font-size: 13.5px; color: #7f1d1d; line-height: 1.55; }

/* ---------------------------------------------------------------
   FAQ
   --------------------------------------------------------------- */
.eps-faq { max-width: 820px; }
.eps-faq details { border-bottom: 1px solid var(--rule); }
.eps-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 18px 0;
	font-family: var(--serif);
	font-size: 18px;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
}
.eps-faq summary::-webkit-details-marker { display: none; }
.eps-faq summary::after {
	content: "+";
	font-family: var(--mono);
	font-size: 18px;
	color: var(--brand);
	flex: 0 0 auto;
}
.eps-faq details[open] summary::after { content: "\2013"; }
.eps-faq__a { padding: 0 0 20px; color: var(--ink-soft); font-size: 15px; max-width: 68ch; }
.eps-faq__a p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   Single product
   --------------------------------------------------------------- */
.eps-pdp { padding: 40px 0 72px; }
.eps-pdp__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
}
.eps-pdp__shot { border: 1px solid var(--rule); }
.eps-pdp__shot img { width: 100%; }
.eps-pdp h1 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.eps-pdp__price {
	font-family: var(--mono);
	font-size: 28px;
	font-weight: 500;
	margin: 0 0 4px;
}
.eps-pdp__unit { font-family: var(--mono); font-size: 12px; color: var(--mute); margin-bottom: 22px; }
.eps-pdp__buy { display: flex; gap: 12px; align-items: stretch; margin: 22px 0; max-width: 420px; }
.eps-pdp__buy .quantity input {
	width: 76px;
	height: 100%;
	min-height: 46px;
	border: 1px solid var(--rule-strong);
	font-family: var(--mono);
	font-size: 14px;
	text-align: center;
	color: var(--ink);
}
/* WooCommerce ships its own purple rounded button. Override it here rather
   than relying on the .eps-page scope, which the product template does not use. */
.eps-pdp form.cart { display: flex; gap: 12px; align-items: stretch; margin: 0; flex-wrap: wrap; }
.eps-pdp form.cart .quantity { display: flex; }
.eps-pdp form.cart .quantity input.qty {
	width: 78px;
	min-height: 48px;
	border: 1px solid var(--rule-strong);
	border-radius: 0;
	font-family: var(--mono);
	font-size: 14px;
	text-align: center;
	color: var(--ink);
	background: var(--paper);
}
.eps-pdp form.cart button.button,
.eps-pdp form.cart .single_add_to_cart_button {
	border: 1px solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0 28px;
	min-height: 48px;
	border-radius: 0;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease;
}
.eps-pdp form.cart button.button:hover,
.eps-pdp form.cart .single_add_to_cart_button:hover {
	background: var(--brand);
	border-color: var(--brand);
	color: var(--paper);
}
.eps-pdp .stock { display: none; }

.eps-pdp__spec {
	border-top: 1px solid var(--ink);
	margin: 26px 0 0;
}
.eps-pdp__spec dl { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
.eps-pdp__spec dt,
.eps-pdp__spec dd {
	border-bottom: 1px solid var(--rule);
	padding: 11px 4px;
	margin: 0;
	font-size: 13.5px;
}
.eps-pdp__spec dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.eps-pdp__spec dd { color: var(--ink); }

.eps-prose { max-width: 72ch; }
.eps-prose h2 { font-size: 26px; margin-top: 36px; }
.eps-prose h3 { font-size: 19px; margin-top: 26px; }
.eps-prose ul, .eps-prose ol { padding-left: 22px; color: var(--ink-soft); }
.eps-prose li { margin-bottom: 7px; }
.eps-prose strong { color: var(--ink); }

/* COA sheets */
.eps-coa {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.eps-coa__item {
	border: 1px solid var(--rule);
	background: var(--paper);
	text-decoration: none;
	display: block;
}
.eps-coa__item:hover { border-color: var(--brand); text-decoration: none; }
.eps-coa__thumb { aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-3); }
.eps-coa__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.eps-coa__label {
	border-top: 1px solid var(--rule);
	padding: 9px 11px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
	display: flex;
	justify-content: space-between;
	gap: 8px;
}
.eps-coa__label span { color: var(--verified); }
.eps-coa__empty {
	border: 1px dashed var(--rule-strong);
	padding: 20px;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--mute);
}

/* ---------------------------------------------------------------
   Shop / archive
   --------------------------------------------------------------- */
.eps-shop__head { padding: 40px 0 28px; }
.eps-filter {
	display: flex;
	gap: 0;
	flex-wrap: wrap;
	border: 1px solid var(--rule);
	margin-bottom: 28px;
}
.eps-filter a {
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-soft);
	padding: 11px 14px;
	text-decoration: none;
	border-right: 1px solid var(--rule);
}
.eps-filter a:last-child { border-right: 0; }
.eps-filter a:hover { background: var(--paper-3); text-decoration: none; }
.eps-filter a[aria-current="true"] { background: var(--ink); color: var(--paper); }

.eps-bread {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--mute);
	padding: 18px 0 0;
}
.eps-bread a { color: var(--mute); }
.eps-bread a:hover { color: var(--ink); }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.eps-foot {
	border-top: 1px solid var(--ink);
	margin-top: 72px;
	padding: 48px 0 28px;
	background: var(--paper);
}
.eps-foot__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 36px;
}
.eps-foot h4 {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mute);
	margin-bottom: 14px;
}
.eps-foot ul { list-style: none; margin: 0; padding: 0; }
.eps-foot li { margin-bottom: 9px; }
.eps-foot li a { color: var(--ink-soft); font-size: 14px; }
.eps-foot li a:hover { color: var(--ink); }
.eps-foot__note { font-size: 13.5px; color: var(--mute); max-width: 44ch; }
.eps-foot__base {
	border-top: 1px solid var(--rule);
	margin-top: 36px;
	padding-top: 20px;
	display: flex;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	font-family: var(--mono);
	font-size: 11px;
	color: var(--mute);
	letter-spacing: 0.03em;
}

/* ---------------------------------------------------------------
   WooCommerce overrides kept minimal and scoped
   --------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-left: 3px solid var(--brand);
	background: var(--paper-2);
	list-style: none;
	padding: 14px 16px;
	margin: 0 0 24px;
	font-size: 14px;
}
.woocommerce-error { border-left-color: var(--alert); background: var(--alert-bg); }
.eps-page { padding: 40px 0 40px; }
.eps-page .woocommerce table.shop_table,
.eps-page .woocommerce-cart-form table { width: 100%; border-collapse: collapse; }
.eps-page .woocommerce table.shop_table th,
.eps-page .woocommerce table.shop_table td {
	border-bottom: 1px solid var(--rule);
	padding: 12px 8px;
	text-align: left;
	font-size: 14px;
}
.eps-page .button,
.eps-page button.button,
.eps-page input.button,
.eps-page a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 12px 18px;
	cursor: pointer;
	text-decoration: none;
	border-radius: 0;
}
.eps-page .button:hover { background: var(--brand); border-color: var(--brand); color: var(--paper); }

/* ---------------------------------------------------------------
   Certificate viewer
   --------------------------------------------------------------- */
.eps-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(17, 24, 39, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
}
.eps-lightbox[hidden] { display: none; }
.eps-lightbox__fig {
	margin: 0;
	max-width: 720px;
	width: 100%;
	background: var(--paper);
	max-height: 100%;
	display: flex;
	flex-direction: column;
}
.eps-lightbox__fig img {
	width: 100%;
	max-height: calc(100vh - 140px);
	object-fit: contain;
	background: var(--paper);
}
.eps-lightbox__fig figcaption {
	border-top: 1px solid var(--rule);
	padding: 10px 14px;
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
}
.eps-lightbox__close {
	position: absolute;
	top: 16px;
	right: 18px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	background: transparent;
	color: #fff;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 8px 12px;
	cursor: pointer;
}
.eps-lightbox__close:hover { background: #fff; color: var(--ink); }

/* ---------------------------------------------------------------
   Utilities and pagination
   --------------------------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
}
.woocommerce-pagination ul,
.pagination .nav-links {
	display: flex;
	gap: 0;
	list-style: none;
	margin: 36px 0 0;
	padding: 0;
	border: 1px solid var(--rule);
	width: fit-content;
}
.woocommerce-pagination li { border-right: 1px solid var(--rule); }
.woocommerce-pagination li:last-child { border-right: 0; }
.woocommerce-pagination a,
.woocommerce-pagination span,
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 40px;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--ink-soft);
	text-decoration: none;
}
.woocommerce-pagination a:hover { background: var(--paper-3); text-decoration: none; }
.woocommerce-pagination .current,
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); }

/* ===============================================================
   Premium pass.
   Same palette, more weight: a taller hero, photographs in the
   index, one full-bleed ink band for contrast, and depth on hover
   instead of flat hairlines everywhere.
   =============================================================== */

/* Hero: larger display type, media bleeding to the right edge. */
.eps-hero { padding: 88px 0 80px; }
.eps-hero__grid { grid-template-columns: 1.02fr 1.12fr; gap: 64px; }
.eps-hero h1 {
	font-size: clamp(38px, 5.4vw, 66px);
	line-height: 1.04;
	letter-spacing: -0.022em;
	margin-bottom: 22px;
}
.eps-hero__lede { font-size: 19px; line-height: 1.62; margin-bottom: 30px; }
.eps-hero__lede em {
	font-family: var(--serif);
	font-style: italic;
	color: var(--ink);
}
.eps-hero__find { height: 56px; max-width: 500px; }
.eps-hero__meta { gap: 26px; padding-top: 4px; }

.eps-media { border: 0; background: transparent; position: relative; }
.eps-media__frame {
	aspect-ratio: 4 / 3;
	border: 1px solid var(--rule);
	background: var(--paper-3);
}
.eps-media__cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	border-top: 0;
	background: rgba(17, 24, 39, 0.86);
	backdrop-filter: blur(2px);
	padding: 12px 16px;
}
.eps-media__cap .eps-assay { color: rgba(255, 255, 255, 0.72); }
.eps-media__cap .eps-assay__code { color: #fff; }
.eps-media__cap .eps-assay__sep { color: rgba(255, 255, 255, 0.34); }
.eps-media__cap .eps-assay__coa { color: #86efac; }

/* Sections: alternate the ground so the page has rhythm. */
.eps-section--tint { background: var(--paper-2); }
.eps-section { padding: 88px 0; }
.eps-section__head { margin-bottom: 40px; }
.eps-section h2 { font-size: clamp(27px, 3.2vw, 40px); letter-spacing: -0.018em; }

/* The index gains a photograph per area and a purple edge on hover. */
.eps-index { border-left: 0; border-top: 0; gap: 1px; background: var(--rule); }
.eps-index__row {
	border: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: box-shadow 180ms ease, transform 180ms ease;
}
.eps-index__row::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--brand);
	opacity: 0;
	transition: opacity 180ms ease;
	z-index: 2;
}
.eps-index__row:hover {
	background: var(--paper);
	box-shadow: 0 12px 34px rgba(17, 24, 39, 0.10);
	transform: translateY(-2px);
	z-index: 3;
}
.eps-index__row:hover::before { opacity: 1; }
.eps-index__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--paper-3);
	border-bottom: 1px solid var(--rule);
}
.eps-index__thumb img { width: 100%; height: 100%; object-fit: cover; }
.eps-index__text { padding: 18px 22px 24px; }
.eps-index__top { margin-bottom: 8px; }
.eps-index__name { font-size: 21px; margin-bottom: 6px; }
.eps-index__count {
	font-size: 10.5px;
	letter-spacing: 0.1em;
	color: var(--mute);
	border: 1px solid var(--rule-strong);
	padding: 2px 7px;
}

/* Product cards: bigger photograph, depth on hover, clearer price. */
.eps-grid { gap: 32px; }
.eps-card {
	position: relative;
	transition: box-shadow 200ms ease, transform 200ms ease;
	padding-bottom: 2px;
}
.eps-card::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: var(--brand);
	opacity: 0;
	transition: opacity 200ms ease;
	z-index: 2;
}
.eps-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(17, 24, 39, 0.11); }
.eps-card:hover::before { opacity: 1; }
.eps-card__shot { border-color: var(--rule); background: var(--paper-2); }
.eps-card__body { padding: 16px 16px 18px; }
.eps-card__name { font-size: 18px; margin: 9px 0 12px; }
.eps-card__price { font-size: 19px; letter-spacing: -0.01em; }
.eps-card__flag { padding: 5px 10px; letter-spacing: 0.12em; }

/* One ink band. Carries the evidence argument and breaks the white. */
.eps-section--ink {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.74);
	border-top: 0;
}
.eps-section--ink h2,
.eps-section--ink h3 { color: #fff; }
.eps-section--ink .eps-eyebrow { color: #c4b5fd; }
.eps-section--ink .eps-section__head p { color: rgba(255, 255, 255, 0.6); }
.eps-section--ink .eps-tests { border-top-color: rgba(255, 255, 255, 0.22); border-left: 0; gap: 1px; background: rgba(255, 255, 255, 0.14); }
.eps-section--ink .eps-test {
	border: 0;
	background: var(--ink);
	padding: 26px 24px 30px;
}
.eps-section--ink .eps-test__n { color: #86efac; }
.eps-section--ink .eps-test p { color: rgba(255, 255, 255, 0.62); }
.eps-section--ink .eps-btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.42);
}
.eps-section--ink .eps-btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.eps-section--ink .eps-note { color: rgba(255, 255, 255, 0.48); }

/* Evidence band: argument on the left, the object itself on the right. */
.eps-evidence {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	margin-bottom: 52px;
}
.eps-evidence h2 { margin-bottom: 16px; }
.eps-evidence p { font-size: 16px; line-height: 1.65; }
.eps-evidence__shot {
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.16);
	overflow: hidden;
	background: #0b1220;
}
.eps-evidence__shot img {
	width: 100%;
	display: block;
	/* The report sheets are portrait. Crop to a landscape window from the
	   top so the header of the report stays readable. */
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: top center;
}

.eps-note {
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.03em;
	color: var(--mute);
	margin: 24px 0 0;
}

/* Closing band: one action, stated plainly. */
.eps-cta {
	border-top: 1px solid var(--rule);
	background: var(--paper-2);
	padding: 64px 0;
}
.eps-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}
.eps-cta h2 { margin-bottom: 8px; }
.eps-cta p { margin: 0; color: var(--mute); font-size: 15px; max-width: 54ch; }

/* FAQ: a touch more air now that the page is denser. */
.eps-faq summary { padding: 22px 0; font-size: 19px; }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 1080px) {
	.eps-grid { grid-template-columns: repeat(3, 1fr); }
	.eps-index { grid-template-columns: repeat(2, 1fr); }
	.eps-coa { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.eps-evidence { grid-template-columns: 1fr; gap: 32px; }
	.eps-hero__grid { grid-template-columns: 1fr; gap: 32px; }
	.eps-pdp__grid { grid-template-columns: 1fr; gap: 32px; }
	.eps-tests { grid-template-columns: repeat(2, 1fr); }
	.eps-foot__grid { grid-template-columns: 1fr 1fr; }
	.eps-head .eps-search { display: none; }
	.eps-burger { display: block; }
	.eps-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--paper);
		border-bottom: 1px solid var(--rule);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 6px var(--gutter) 14px;
	}
	.eps-nav.is-open { display: flex; }
	.eps-nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
	.eps-nav a:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
	/* The brand name is long. Give it room by shrinking it and trimming the
	   cart control to its count, so the bar never overflows at 375px. */
	.eps-head__bar { gap: 10px; height: 60px; }
	.eps-brand__name { font-size: 17px; }
	.eps-brand__tag { display: none; }
	.eps-cart { padding: 0 10px; font-size: 11.5px; }
	.eps-cart .eps-assay__sep { display: none; }
	.eps-cart__n { margin-left: 6px; }
	.eps-burger { flex: 0 0 auto; }

	.eps-section { padding: 48px 0; }
	.eps-hero { padding: 36px 0 40px; }
	.eps-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
	.eps-index { grid-template-columns: 1fr; }
	.eps-tests { grid-template-columns: 1fr; }
	.eps-foot__grid { grid-template-columns: 1fr; }
	.eps-card__name { font-size: 15px; }
	.eps-card__price { font-size: 15px; }
	.eps-pdp__spec dl { grid-template-columns: 110px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
	.eps-card:hover .eps-card__shot img { transform: none; }
}
