/*
Theme Name: Cryptopian
Theme URI: https://cryptopian.local
Author: Cryptopian
Description: Dark, premium WooCommerce theme for the Cryptopian self-custody hardware wallet store. Slate-violet base with neon indigo accents.
Version: 2.1.1
License: GNU General Public License v2 or later
Text Domain: cryptopian
Requires Plugins: woocommerce
*/

/* ============================================================
 * 1. DESIGN TOKENS (redesign-brief §2)
 * ============================================================ */
:root {
	/* Surfaces (§2.1) */
	--surface-0: #070613;    /* page floor: under CTA bands, footer bottom */
	--surface-1: #0a0818;    /* body background */
	--surface-2: #0f0c22;    /* alt sections, table heads, sticky bars */
	--surface-3: #14112b;    /* inputs, chips, hover fills */
	--surface-card: #171331; /* cards, panels, tables */
	--surface-hover: #1d1840;/* elevated card / row hover fill */

	/* Lines */
	--line: #2b2554;
	--line-strong: #453d75;
	--line-focus: #22d3ee;

	/* Text */
	--ink: #eceafc;
	--ink-secondary: #c9c4e4;
	--ink-muted: #9b95c0;
	--ink-inverse: #0a0818;

	/* Brand */
	--brand-indigo: #6366f1; /* bold accents, prices ≥18px bold, active borders */
	--brand-text: #818cf8;   /* AA-safe small indigo text ≤16px */
	--brand-cyan: #22d3ee;   /* crypto signal: eyebrows, ticks, live badges */
	--brand-violet: #8b5cf6; /* tags, new badge */
	--brand-grad: #6366f1; /* was: indigo→violet→cyan gradient; flattened to solid */

	/* Semantic */
	--success: #34d399;
	--warning: #fbbf24;
	--danger: #f87171;
	--star: #fbbf24;
	--star-empty: #3a3468;

	/* Typography (§2.2) */
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-display: "Chakra Petch", var(--font-body);
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--text-display-xl: clamp(40px, 6vw, 64px); /* lh 1.05, -.02em */
	--text-display-l: clamp(30px, 4vw, 44px);  /* lh 1.1, -.01em */
	--text-display-m: 32px;                    /* lh 1.15 */
	--text-h3: 22px;                           /* lh 1.25 */
	--text-h4: 18px;                           /* lh 1.3 */
	--text-body-l: 18px;                       /* lh 1.6 */
	--text-body: 16px;                         /* lh 1.6 */
	--text-sm: 14px;                           /* lh 1.5 */
	--text-xs: 12px;                           /* lh 1.4, uppercase .06em */

	/* Spacing (§2.3) */
	--space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
	--space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
	--space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
	--section-y: 72px;
	--section-y-lg: 96px;
	--gutter: 24px;
	--grid-gap: 24px;
	--container: 1200px;
	--container-wide: 1360px;
	--container-narrow: 860px;
	--header-h: 72px; /* desktop; mobile row 64px */

	/* Radii (§2.4) */
	--radius-xs: 6px;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--radius-pill: 999px;

	/* Shadows (§2.5) */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
	--shadow-lg: 0 24px 48px rgba(0, 0, 0, .5);
	--shadow-xl: 0 30px 60px rgba(0, 0, 0, .55);
	--shadow-glow: 0 4px 24px rgba(99, 102, 241, .35);
	--shadow-glow-cyan: 0 0 0 1px rgba(34, 211, 238, .35), 0 4px 24px rgba(34, 211, 238, .18);

	/* ---- §2.7 Legacy alias map — kept during rollout ---- */
	--bg: var(--surface-1);
	--bg-2: var(--surface-2);
	--bg-3: var(--surface-3);
	--card: var(--surface-card);
	--border: var(--line);
	--border-hover: var(--line-strong);
	--text: var(--ink);
	--muted: var(--ink-muted);
	--accent: var(--brand-indigo);
	--accent-2: var(--brand-cyan);
	--violet: var(--brand-violet);
	--accent-grad: var(--brand-grad);
	--radius: 14px;   /* legacy cards/tables */
	--radius-lg-legacy: 20px;
	--space-section: var(--section-y);
	--space-lead: 64px;
	}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; color-scheme: dark; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: clip;
	-webkit-tap-highlight-color: transparent;
	}
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; font-family: var(--font-display); text-wrap: balance; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Announcement bar (§3.1) ---------- */
.announcement-bar {
	background: var(--surface-3);
	color: var(--ink-secondary);
	border-bottom: 1px solid var(--line);
	font-size: var(--text-xs);
	font-weight: 600;
	min-height: 36px;
	text-align: center;
	}
.announcement-bar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-4);
	min-height: 36px;
	padding-block: 6px;
	position: relative;
	}
.announcement-bar__text { margin: 0; }
.announcement-bar__rotator { list-style: none; margin: 0; padding: 0; display: contents; }
.announcement-bar__rotator .announcement-bar__text { display: none; }
.announcement-bar.is-rotating .announcement-bar__rotator .announcement-bar__text { display: none; }
.announcement-bar.is-rotating .announcement-bar__rotator .announcement-bar__text.is-active { display: block; }
.announcement-bar__close {
	position: absolute;
	right: 0; top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	color: inherit;
	font-size: 18px;
	line-height: 1;
	width: 28px; height: 28px;
	border-radius: var(--radius-xs);
	cursor: pointer;
	opacity: .8;
	}
.announcement-bar__close:hover { opacity: 1; }
body.announcement-dismissed .announcement-bar { display: none; }
/* Legacy .topbar (transition alias). */
.topbar {
	background: var(--brand-grad);
	color: var(--ink-inverse);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	padding: 8px 16px;
	}

/* ---------- Header (§3.2) ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 8, 24, .9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
	padding-top: env(safe-area-inset-top);
	transition: box-shadow .2s, border-color .2s;
	}
.site-header .container,
.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--grid-gap);
	height: var(--header-h);
	}
.site-header--scrolled { box-shadow: var(--shadow-md); }
.site-header--scrolled .site-header__inner { height: 64px; }
.site-logo {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: .5px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	}
.site-logo .logo-mark {
	display: block;
	width: auto;
	height: 32px;
	flex-shrink: 0;
	}
.main-navigation { flex: 1; }

/* DOM order is logo → search → actions → nav (mobile-first); CSS order
   places nav between logo and search at ≥900px: logo | nav | search | actions. */
@media (min-width: 901px) {
	.site-logo { order: 1; }
	.main-navigation { order: 2; }
	.header-search { order: 3; }
	.header-actions { order: 4; }
	}
.main-navigation ul,
.main-navigation__list {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0; padding: 0;
	}
.main-navigation a,
.main-navigation__link {
	color: var(--ink-muted);
	font-weight: 500;
	font-size: 15px;
	transition: color .2s;
	}
.main-navigation a:hover,
.main-navigation__link:hover { color: var(--ink-secondary); }
.main-navigation .current-menu-item > a,
.main-navigation__link[aria-current="page"] { color: var(--ink); }
.market-bar { background: var(--surface-2, #171331); border-bottom: 1px solid var(--line); }
.market-bar__inner { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-top: 8px; padding-bottom: 8px; font-size: 12px; color: var(--ink-muted); }
.market-selector { display: flex; align-items: center; gap: 8px; margin: 0; }
.market-selector select { width: auto; max-width: 260px; min-height: 36px; padding: 6px 30px 6px 10px; background-color: var(--surface, #0a0818); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.market-selector select:focus-visible { outline: 2px solid var(--brand-indigo); outline-offset: 2px; }
.market-selector--enhanced .market-selector__submit { display: none; }
.market-rate-note { padding-top: 20px; padding-bottom: 20px; font-size: 12px; color: var(--ink-muted); }
.market-rate-note a { color: var(--ink-secondary); text-decoration: underline; }
.preview-model-label { display: block; font-weight: 600; margin-bottom: 8px; }
.preview-model-select { width: 100%; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.preview-model-price { font-size: 20px; color: var(--brand-indigo); min-height: 1.5em; }
@media (max-width: 480px) {
	.market-bar__inner { justify-content: space-between; gap: 8px; flex-wrap: wrap; }
	.market-selector { flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
	.market-selector select { max-width: 100%; min-height: 44px; font-size: 16px; }
}
.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.header-actions .header-shop-btn { min-height: 38px; padding: 8px 18px; font-size: 14px; }

/* Header search (§3.2): visible ≥900px; <900px collapses into the nav panel. */
.header-search {
	display: flex;
	align-items: center;
	position: relative;
	flex: 0 1 300px;
	min-width: 0;
	}
.header-search__input {
	-webkit-appearance: none; appearance: none;
	width: 100%;
	min-height: 40px;
	background: var(--surface-3);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	color: var(--ink);
	font-family: inherit;
	font-size: var(--text-sm);
	padding: 8px 42px 8px 16px;
	transition: border-color .2s;
	}
.header-search__input::placeholder { color: var(--ink-muted); opacity: 1; }
.header-search__input:hover { border-color: var(--line-strong); }
.header-search__input:focus { border-color: var(--brand-indigo); outline: 2px solid var(--line-focus); outline-offset: 2px; }
.header-search__submit {
	position: absolute;
	right: 4px; top: 50%;
	transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px;
	background: transparent;
	border: 0;
	border-radius: var(--radius-pill);
	font-size: 15px;
	cursor: pointer;
	}
.header-search__submit:hover { background: var(--surface-hover); }

/* Cart toggle: must be a <button> per §3.2/§3.8 contract. */
.cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
	}
.cart-link:hover { border-color: var(--line); background: var(--surface-3); }
.cart-link .cart-link__icon { display: inline-block; }
.header-actions .cart-link { font-size: 20px; }
.cart-count {
	position: absolute; top: 0; right: -2px;
	background: var(--brand-indigo); color: var(--ink-inverse);
	font-size: 11px; font-weight: 700;
	min-width: 18px; height: 18px; border-radius: 9px;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0 4px;
	font-variant-numeric: tabular-nums;
	}
.cart-count:empty, .cart-count[data-empty="1"] { display: none; }
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px;
	padding: 11px 24px;
	border-radius: var(--radius-sm);
	font-family: inherit; font-weight: 600; font-size: 15px;
	line-height: 1.2; letter-spacing: .2px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s, background-color .2s, border-color .2s, opacity .2s;
	}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
	background: var(--accent);
	color: #0a0818;
	box-shadow: none;
	}
.btn-primary:hover { color: #0a0818; opacity: .92; }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--text); }
/* Dark solid button for use on gradient surfaces (CTA band). */
.btn-dark { background: var(--bg); color: #fff; }
.btn-dark:hover { color: #fff; opacity: .9; }
.btn-sm { min-height: 38px; padding: 8px 20px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 15px 32px; font-size: 16px; }
.btn:focus-visible { outline: 2px solid var(--line-focus); outline-offset: 2px; }
.btn:disabled, .btn.disabled, .btn[aria-disabled="true"] {
	background: var(--surface-3);
	color: var(--ink-muted);
	border-color: var(--line);
	box-shadow: none;
	cursor: not-allowed;
	opacity: 1;
	}
.btn:disabled:hover, .btn.disabled:hover, .btn[aria-disabled="true"]:hover {
	transform: none;
	color: var(--ink-muted);
	background: var(--surface-3);
	border-color: var(--line);
	}
/* ---------- Accessibility helpers ---------- */
.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
	}
.skip-link {
	position: absolute;
	left: 16px; top: -48px;
	z-index: 200;
	width: auto; height: auto;
	clip: auto;
	background: var(--accent); color: #0a0818;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: var(--radius-sm);
	transition: top .15s ease;
	}
.skip-link:focus {
	top: 12px;
	outline: 2px solid var(--accent-2);
	outline-offset: 2px;
	}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
	outline: 2px solid var(--accent-2);
	outline-offset: 2px;
	border-radius: 4px;
	}

/* ---------- Mobile nav toggle ---------- */
.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 10px;
	cursor: pointer;
	flex-shrink: 0;
	}
.menu-toggle-bar {
	position: relative;
	display: block;
	width: 20px; height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: transform .2s, background .2s;
	}
.menu-toggle-bar::before, .menu-toggle-bar::after {
	content: "";
	position: absolute; left: 0;
	width: 20px; height: 2px;
	background: var(--text);
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
	}
.menu-toggle-bar::before { top: -6px; }
.menu-toggle-bar::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding: 96px 0;
	background: var(--bg);
	}
.hero .container {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 48px;
	align-items: center;
	}
.hero-eyebrow {
	display: inline-block;
	font-size: 13px; font-weight: 600;
	letter-spacing: 2px; text-transform: uppercase;
	color: var(--ink-muted);
	border: 1px solid var(--line);
	padding: 6px 14px; border-radius: var(--radius-pill);
	margin-bottom: 20px;
	}
.hero h1 {
	font-size: clamp(36px, 5vw, 56px);
	letter-spacing: -1px;
	}
.hero h1 .grad {
	color: var(--brand-text);
	}
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 520px; }
.hero-ctas { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stats .stat b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.hero-stats .stat span { color: var(--muted); font-size: 13px; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual svg { max-width: 420px; width: 100%; filter: drop-shadow(0 20px 60px rgba(99,102,241,.35)); }

/* ---------- Sections ---------- */
.section { padding: var(--space-section) 0; }
.section.alt { background: var(--bg-2); }
.section.tight-top { padding-top: 0; }
.section.flush { padding-top: var(--space-lead, 64px); }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 40px; }
.section-head h2 { font-size: 32px; letter-spacing: -.5px; text-wrap: balance; }
.section-head .sub { color: var(--muted); margin: 0; }
.section-head a.more { color: var(--accent-2); font-weight: 600; }

/* ---------- Category cards ---------- */
.cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
	gap: 24px;
	}
.cat-card {
	position: relative;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px 28px;
	overflow: hidden;
	transition: transform .2s, border-color .2s;
	}
.cat-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.cat-card .cat-icon { font-size: 34px; margin-bottom: 16px; }
.cat-card h3 { font-size: 19px; }
.cat-card p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.cat-card .count {
	display: inline-block;
	background: var(--bg-3);
	border-radius: var(--radius-pill);
	padding: 4px 12px;
	font-size: 12px; color: var(--muted);
	}

/* ---------- Product grid ---------- */
/* `body.woocommerce` prefix: Woo core styles ul.products li.product with
float/percentage widths — these rules must out-specify them. */
body .products-grid ul.products,
body.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
	gap: 24px;
	list-style: none;
	margin: 0; padding: 0;
	}
body.woocommerce ul.products::before,
body.woocommerce ul.products::after { display: none; content: none; }
body .products-grid ul.products li.product,
body.woocommerce ul.products li.product,
body.woocommerce ul.products[class*="columns-"] li.product {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	width: auto;
	margin: 0;
	float: none;
	clear: none;
	transition: transform .2s, border-color .2s, box-shadow .2s;
	}
.woocommerce ul.products li.product:hover {
	transform: translateY(-4px);
	border-color: var(--accent);
	box-shadow: 0 12px 40px rgba(0,0,0,.4);
	}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 16px;
	color: var(--text);
	}
.woocommerce ul.products li.product .price {
	color: var(--accent);
	font-weight: 700;
	font-size: 18px;
	font-variant-numeric: tabular-nums;
	}
.woocommerce ul.products li.product .price del { color: var(--muted); font-weight: 400; margin-right: 8px; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--bg-3);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-family: inherit; font-weight: 600; font-size: 14px;
	text-align: center;
	min-height: 44px; padding: 10px 16px;
	transition: border-color .2s, color .2s, transform .15s;
	}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover { border-color: var(--accent); color: var(--accent); }
.woocommerce ul.products li.product .onsale {
	background: var(--accent);
	color: #0a0818;
	border-radius: var(--radius-sm);
	font-weight: 700;
	min-height: 0;
	line-height: 1.4;
	padding: 4px 10px;
	top: 12px; left: 12px; right: auto;
	margin: 0;
	}
.woocommerce-breadcrumb, .woocommerce-result-count { color: var(--muted); }
.woocommerce-result-count { font-size: 14px; }
/* Woo's own archive wrapper gets the same container gutters. */
.woocommerce .woocommerce-breadcrumb { margin-bottom: 24px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- Features strip ---------- */
.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 24px;
	}
.feature {
	display: flex; gap: 16px; align-items: flex-start;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	}
.feature .fi { font-size: 26px; }
.feature h3 { font-size: 16px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- Newsletter / CTA ---------- */
.cta-band {
	background: var(--accent);
	border-radius: 20px;
	padding: 56px;
	text-align: center;
	color: #0a0818;
	}
.cta-band h2 { font-size: 32px; text-wrap: balance; }
.cta-band p { max-width: 560px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer {
	border-top: 1px solid var(--border);
	background: var(--bg-2);
		padding: 56px 0 calc(32px + env(safe-area-inset-bottom));
	margin-top: var(--space-section);
	}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
	}
.site-footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--muted); font-size: 14px; }
.site-footer a:hover { color: var(--text); }
.footer-bottom {
	border-top: 1px solid var(--border);
	padding-top: 24px;
	color: var(--muted);
	font-size: 13px;
	display: flex; justify-content: space-between;
	}

/* ---------- WooCommerce global fixes ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	background: var(--accent-grad);
	color: #0a0818;
	border-radius: var(--radius-sm);
	font-family: inherit; font-weight: 600; font-size: 15px;
	}
.woocommerce a.button:hover, .woocommerce button.button:hover { color: #0a0818; opacity: .92; }
.woocommerce a.button.disabled, .woocommerce button.button.disabled,
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] {
	background: var(--bg-3); color: var(--muted); opacity: .6;
	}
/* Woo's "added to cart" tick overlay should follow the theme palette. */
.woocommerce a.added_to_cart {
	margin-top: 8px; font-weight: 600; color: var(--accent-2);
	background: transparent;
	}
.woocommerce a.added_to_cart:hover { color: var(--text); background: transparent; }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range { background: var(--accent); }
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background: var(--accent-2); }
/* Woo notices (success / info / error) share one card treatment. */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	background: var(--card);
	border: 1px solid var(--border);
	border-top: 3px solid var(--accent);
	border-radius: var(--radius-sm);
	color: var(--text);
	padding: 16px 18px 16px 56px;
	margin: 0 0 24px;
	list-style: none;
	}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { color: var(--accent); }
.woocommerce-error li { margin: 4px 0; }
.woocommerce table.shop_table, .woocommerce-cart table.cart td, .woocommerce-cart table.cart th {
	border-color: var(--border);
	}
.woocommerce-cart table.cart img,
.woocommerce-checkout table.cart img {
	border-radius: var(--radius-sm);
	width: 72px; height: 72px; object-fit: contain;
	}
.woocommerce table.shop_table {
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--card);
	}
.woocommerce-cart .cart-collaterals .cart_totals {
	font-variant-numeric: tabular-nums;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	}
.woocommerce-cart .cart-collaterals .cart_totals h2 { font-size: 20px; }
.wc-proceed-to-checkout .checkout-button {
	display: inline-flex; align-items: center; justify-content: center;
	width: 100%; min-height: 48px;
	border-radius: var(--radius-sm);
	font-family: inherit; font-weight: 700;
	}
.woocommerce .coupon .form-row input.input-text { display: inline-block; width: auto; }
.woocommerce .actions { padding: 12px 0; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
	background: var(--bg-3);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	padding: 10px 12px;
	font-family: inherit; font-size: 15px;
	}
.select2-container--default .select2-selection__rendered { color: var(--text); }
.select2-container--default .select2-dropdown { background: var(--bg-3); border-color: var(--border); }
.select2-container--default .select2-results__option[aria-selected="true"] { background: var(--bg-2); }

/* ---------- Widgets (shop sidebar) & search bar ---------- */
/* WordPress' default widgets (search, recent posts, archives, categories)
   land in the shop sidebar with light block-library defaults — restyle the
   whole area to match the dark theme. */
/* Full-width store theme: the Woo sidebar renders below the main column and
   outside .container, so it gets the same container gutters as the page. */
.widget-area {
	margin-top: 48px;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 24px;
	}
.widget-area .widget {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	margin-bottom: 24px;
	}
.widget-area .widget-title,
.widget-area .wp-block-heading {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--muted);
	margin: 0 0 16px;
	}
.widget-area ul { list-style: none; margin: 0; padding: 0; }
.widget-area li { margin-bottom: 10px; }
.widget-area a { color: var(--muted); font-size: 14px; transition: color .2s; }
.widget-area a:hover { color: var(--text); }
.widget-area .wp-block-latest-comments__comment-meta,
.widget-area .wp-block-latest-comments__comment-date { font-size: 13px; color: var(--muted); }

/* Search bar: dark input + gradient button, same treatment as theme inputs. */
.widget-area .wp-block-search { max-width: 100%; }
.widget-area .wp-block-search__label {
	display: block;
	width: auto;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--muted);
	margin-bottom: 10px;
	}
.widget-area .wp-block-search__inside-wrapper { display: flex; gap: 10px; max-width: 100%; }
.widget-area .wp-block-search :where(.wp-block-search__input),
.widget-area form[role="search"] input[type="search"],
.widget-area form[role="search"] input[type="text"] {
	-webkit-appearance: none; appearance: none;
	flex: 1 1 auto;
	min-width: 0;
	background: var(--bg-3);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	padding: 10px 14px;
	min-height: 44px;
	font-family: inherit; font-size: 15px;
	line-height: 1.4;
	margin: 0;
	text-decoration: none !important;
	transition: border-color .2s;
	}
.widget-area .wp-block-search__input::placeholder,
.widget-area form[role="search"] input::placeholder { color: var(--muted); opacity: 1; }
.widget-area .wp-block-search__input:focus,
.widget-area form[role="search"] input:focus { border-color: var(--accent); }
.widget-area .wp-block-search__button,
.widget-area form[role="search"] button[type="submit"] {
	flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 8px 18px;
	background: var(--accent-grad);
	color: #0a0818;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	font-family: inherit; font-weight: 600; font-size: 14px;
	cursor: pointer;
	transition: opacity .2s;
	}
.widget-area .wp-block-search__button:hover,
.widget-area form[role="search"] button[type="submit"]:hover { color: #0a0818; opacity: .92; }
.widget-area .wp-block-search__button svg { fill: currentColor; }
/* Button-only search (collapsible) block variant. */
.widget-area .wp-block-search.wp-block-search__button-only .wp-block-search__inside-wrapper { min-width: 0; }
.widget-area .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
	background: var(--bg-3);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 4px;
	}

.select2-container--default .select2-search--dropdown .select2-search__field {
	background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text);
	}
#add_payment_method #payment, .woocommerce-cart #payment, .woocommerce-checkout #payment {
	background: var(--card);
	}
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
	background: var(--accent-grad); color: #0a0818;
	border-radius: var(--radius-sm);
	font-family: inherit; font-weight: 700; font-size: 16px;
	min-height: 48px; padding: 12px 32px;
	float: none; width: 100%;
	box-shadow: none;
	}
input, select, textarea { color-scheme: dark; }

/* ---------- Single product polish ---------- */
.woocommerce div.product .product_meta > span {
	display: block;
	margin-bottom: 6px;
	color: var(--muted);
	font-size: 14px;
	}
.woocommerce div.product .product_meta .sku,
.woocommerce div.product .product_meta a { color: var(--text); }
.woocommerce .quantity input.qty {
	background: var(--bg-3);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	height: 44px;
	padding: 0 12px;
	font-family: inherit; font-size: 15px;
	}
.woocommerce div.product form.cart { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.woocommerce div.product form.cart .button {
	min-height: 48px;
	height: auto;
	padding: 12px 32px;
	border-radius: var(--radius-sm);
	font-family: inherit; font-weight: 700; font-size: 15px;
	}
.woocommerce div.product form.cart .variations { margin-bottom: 24px; border-collapse: separate; border-spacing: 0 8px; }
.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th { border: none; padding: 0 12px 0 0; }
.woocommerce div.product form.cart .variations select {
	background: var(--bg-3);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 10px 12px;
	font-family: inherit; font-size: 15px;
	min-width: 200px;
	}
.woocommerce div.product form.cart .woocommerce-variation-price { width: 100%; margin-bottom: 16px; font-size: 24px; font-weight: 700; }
.woocommerce div.product .woocommerce-variation-add-to-cart { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.woocommerce div.product .woocommerce-variation-unavailable { color: var(--muted); width: 100%; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding-left: 10px;
	}
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
	border-color: var(--border);
	}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: var(--bg-3);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
	margin: 0 4px 0 0;
	padding: 0 1.2em;
	}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	color: var(--muted);
	font-weight: 600;
	padding: 0.9em 0;
	}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: var(--card);
	border-bottom-color: var(--card);
	}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--text); }
.woocommerce div.product .woocommerce-tabs .panel {
	background: var(--card);
	border: 1px solid var(--border);
	border-top: none;
	border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
	padding: 24px;
	margin-bottom: 2em;
	}
.woocommerce img.cryptopian-placeholder, img.cryptopian-placeholder {
	border-radius: 12px;
	width: 100%;
	height: auto;
	}
/* The inline SVG twin (cryptopian_product_placeholder_svg) ships with
   width="600" height="600" attributes that act as presentational hints:
   any rule that constrains only the width leaves a 600px-tall SVG behind
   (compare table cells, Woo block grids). Make it fluid like the <img>
   variant — width constrained by context, height follows the 1:1 ratio. */
svg.cryptopian-device-art { max-width: 100%; height: auto; }

/* Woo block product grids ("New in store" on the cart page, hand-placed
   product blocks): the block stylesheet butts the square thumbs
   edge-to-edge with no rhythm — give them the theme grid gap and keep
   titles/prices aligned under the art. */
.wc-block-grid__products { gap: var(--space-4); }
.wc-block-grid__products .wc-block-grid__product { flex: 1 1 0 !important; min-width: 0; width: auto !important; max-width: none !important; }
.wc-block-grid__product { margin-bottom: var(--space-4); }
.wc-block-grid__product-title { margin-top: var(--space-2); }
.wc-block-grid__product-price { font-variant-numeric: tabular-nums; }

/* ---------- Checkout (WooCommerce Blocks) ---------- */
.wc-block-components-text-input input,
.wc-block-components-text-input input:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-select .wc-block-components-select__select {
	background-color: var(--bg-3) !important;
	color: var(--text) !important;
	border-color: var(--border) !important;
	border-radius: var(--radius-sm) !important;
	}
.wc-block-components-text-input input::placeholder { color: var(--muted); }
.wc-block-components-text-input label,
.wc-block-components-select .wc-block-components-select__label { color: var(--muted); }
.wc-block-components-form .wc-block-components-text-input input:-webkit-autofill {
	background-color: var(--bg-3) !important;
	}
.wc-block-components-order-summary,
.wc-block-components-totals-wrapper { border-color: var(--border); }
.wc-block-components-checkout-place-order-button { background: var(--accent-grad) !important; color: #0a0818 !important; font-weight: 700; }

/* ---------- Content / misc ---------- */
.site-main { padding: 56px 0; }
.entry-title { font-size: 34px; letter-spacing: -.5px; }
.woocommerce-account .entry-title,
.woocommerce .woocommerce-account-title { margin-bottom: 28px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none; padding: 0; margin: 0 0 24px;
	display: flex; flex-wrap: wrap; gap: 8px;
	}
.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: inline-flex; align-items: center;
	min-height: 40px; padding: 8px 16px;
	background: var(--bg-3); border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-weight: 600; font-size: 14px; color: var(--muted);
	transition: border-color .2s, color .2s;
	}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	border-color: var(--accent); color: var(--text);
	}
.woocommerce .woocommerce-form-login, .woocommerce .woocommerce-form-register,
.woocommerce .woocommerce-form-coupon {
	background: var(--card); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 28px;
	}
.woocommerce .woocommerce-form-login .woocommerce-form-login__submit { float: none; }
.woocommerce .lost_reset_password { max-width: 520px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; min-height: 40px; padding: 0 10px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	color: var(--muted); font-weight: 600; font-size: 14px;
	transition: border-color .2s, color .2s;
	}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--text); }
.pagination .page-numbers.current { background: var(--accent); color: #0a0818; border-color: var(--accent); }

/* ---------- Responsive: tablets & down (≤900px) ---------- */
@media (max-width: 900px) {
	.site-header .container,
	.site-header__inner {
		flex-wrap: wrap;
		height: auto;
		min-height: 64px;
		padding-top: 10px;
		padding-bottom: 10px;
		row-gap: 0;
		}
	.site-header--scrolled .site-header__inner { height: auto; }
	.menu-toggle { display: inline-flex; }
	.site-logo { flex: 1 1 auto; min-width: 0; order: 1; }
	.site-logo .logo-mark { width: 100%; max-width: 180px; max-height: 32px; }
	.header-actions { order: 2; }

	/* Search + nav form the dropdown panel below the header row. */
	.header-search {
		order: 3;
		flex: 0 1 100%;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition: max-height .25s ease, opacity .2s ease, padding .25s ease;
		}
	body.nav-open .header-search {
		max-height: 60px;
		opacity: 1;
		padding: 10px 0 12px;
		}

	/* Dropdown nav panel below the header row. */
	.main-navigation {
		order: 4;
		display: block;
		flex-basis: 0;
		flex-grow: 0;
		overflow: hidden auto;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: transform .25s ease, opacity .25s ease, visibility .25s;
		overscroll-behavior: contain;
		max-height: 0;
		}
	body.nav-open .main-navigation {
		flex-basis: 100%;
		max-height: calc(100vh - 140px);
		overflow-y: auto;
		visibility: visible;
		opacity: 1;
		transform: translateY(0);
		}
	.main-navigation ul,
	.main-navigation__list { flex-direction: column; gap: 0; padding: 8px 0 4px; }
	.main-navigation li a,
	.main-navigation__link {
		display: block;
		padding: 13px 4px;
		font-size: 16px;
		border-bottom: 1px solid var(--line);
		}

	.hero { padding: 56px 0; }
	.hero .container { grid-template-columns: 1fr; gap: 32px; }
	.hero-visual { order: -1; }
	.hero-visual svg { max-width: 260px; }
	.hero-stats { flex-wrap: wrap; gap: 24px 32px; }
	.section { padding: 48px 0; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 28px; }

	/* WooCommerce: stack single-product columns, scroll wide tables. */
	.woocommerce div.product div.images,
	.woocommerce div.product div.summary { float: none; width: 100%; }
	.woocommerce-cart-form,
	.woocommerce-checkout-review-order,
	.woocommerce-orders-table__wrapper,
	.woocommerce-MyAccount-content { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.woocommerce table.shop_table_responsive tr td { background: transparent; }
	.woocommerce .woocommerce-result-count { float: none; margin-bottom: 12px; }
	.woocommerce .woocommerce-ordering { float: none; margin-bottom: 20px; }
	.woocommerce .woocommerce-ordering select {
		background: var(--bg-3);
		color: var(--text);
		border: 1px solid var(--border);
		border-radius: 8px;
		padding: 9px 12px;
		}
	.footer-grid { grid-template-columns: 1fr 1fr; }
	}

/* ---------- Responsive: phones (≤600px) ---------- */
@media (max-width: 600px) {
	.container { padding: 0 16px; }
	.widget-area { padding-inline: 16px; }
	.topbar { font-size: 11px; padding: 6px 10px; }
	.header-actions .header-shop-btn { display: none; }

	.hero { padding: 40px 0; }
	.hero p.lead { font-size: 16px; }
	.hero-ctas .btn { flex: 1 1 auto; }
	.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

	.section-head h2 { font-size: 24px; }
	.section-head .sub { font-size: 14px; }
	.cat-card { padding: 24px 20px; }

	.cta-band { padding: 36px 20px; }
	.cta-band h2 { font-size: 24px; }

	/* Single product: quantity + add-to-cart stack full-width. */
	.woocommerce div.product form.cart { flex-wrap: wrap; }
	.woocommerce div.product form.cart .quantity { width: 100%; }
	.woocommerce div.product form.cart .quantity input.qty { width: 100%; }
	.woocommerce div.product form.cart .button { width: 100%; }

	/* Bigger, thumb-friendly tap targets in lists and cart. */
	.woocommerce ul.products li.product .button { padding: 13px 16px; min-height: 46px; font-size: 15px; }
	.wc-proceed-to-checkout .checkout-button { width: 100%; text-align: center; }

	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.footer-bottom { flex-direction: column; gap: 8px; }
	.pagination { display: flex; flex-wrap: wrap; gap: 6px; }
	.pagination .page-numbers { margin-right: 0; }
	}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		}
	html { scroll-behavior: auto; }
	}

/* ============================================================
* Ledger-style storefront — v2 sections
* ============================================================ */

/* ---------- Centered hero (§3.3) — .hero--center is current, .hero-center legacy alias ---------- */
.hero-center,
.hero--center { padding: 88px 0 40px; text-align: center; }
.hero-center .container,
.hero--center .container { display: block; }
.hero-center h1,
.hero__title {
	font-size: var(--text-display-xl);
	line-height: 1.05;
	letter-spacing: -.02em;
	margin-bottom: 20px;
	}
.hero-center p.lead,
.hero__lead {
	margin: 0 auto;
	max-width: 640px;
	font-size: var(--text-body-l);
	color: var(--ink-muted);
	}
.hero-eyebrow,
.hero__eyebrow {
	display: inline-block;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-muted);
	border: 1px solid var(--line);
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	margin-bottom: 20px;
	}
.hero__title-grad,
.hero h1 .grad,
.hero .grad {
	color: var(--brand-text);
	}
.hero-ctas,
.hero__ctas { display: flex; gap: var(--space-4); margin-top: 36px; flex-wrap: wrap; justify-content: center; }
.hero-stats,
.hero__stats {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 40px;
	margin: 48px 0 0;
	padding: 0;
	flex-wrap: wrap;
	}
.hero-stats .stat,
.hero__stats .stat { display: block; }
.hero-stats .stat b,
.stat__value {
	display: block;
	font-size: 26px;
	font-family: var(--font-display);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	}
.hero-stats .stat span,
.stat__label { color: var(--ink-muted); font-size: var(--text-sm); }

/* ---------- Device lineup cards ---------- */
.lineup {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 64px;
	text-align: center;
	}
.lineup-card {
	position: relative;
	display: flex; flex-direction: column; align-items: center;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 34px 20px 26px;
	transition: transform .2s, border-color .2s, box-shadow .2s;
	}
.lineup-card:hover {
	transform: translateY(-4px);
	border-color: var(--border-hover);
	box-shadow: 0 24px 48px rgba(0,0,0,.4);
	}
.lineup-tag {
	position: absolute; top: 14px; left: 16px;
	font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
	color: var(--ink-muted);
	}
.lineup-card img, .lineup-card .cryptopian-placeholder, .lineup-card svg {
	width: 150px; height: 150px; object-fit: contain;
	margin-bottom: 18px;
	filter: drop-shadow(0 14px 24px rgba(0,0,0,.45));
	}
.lineup-name { font-weight: 700; font-size: 17px; }
.lineup-sub { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.lineup-price { font-weight: 700; font-size: 16px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.lineup-price del { color: var(--muted); font-weight: 500; margin-right: 6px; }
.lineup-price ins { text-decoration: none; color: var(--accent); }
.lineup-cta { font-size: 14px; font-weight: 600; color: var(--accent-2); }
.lineup-links {
	display: flex; justify-content: center; flex-wrap: wrap; gap: 28px;
	margin-top: 32px;
	}
.lineup-links a { font-size: 14px; font-weight: 600; color: var(--muted); }
.lineup-links a:hover { color: var(--text); }

@media (max-width: 900px) { .lineup { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lineup { grid-template-columns: 1fr; } }

/* ---------- Trust band ---------- */
.trustband { border-block: 1px solid var(--border); background: var(--bg-2); }
.trust-stats {
	display: grid; grid-template-columns: repeat(4, 1fr);
	gap: 24px; padding: 36px 0; text-align: center;
	}
.trust-stats .stat b { display: block; font-size: 30px; font-family: var(--font-display); letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.trust-stats .stat span { color: var(--muted); font-size: 13px; }
@media (max-width: 700px) { .trust-stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Split (alternating) sections ---------- */
.split {
	display: grid; grid-template-columns: 1fr 1fr;
	gap: 56px; align-items: center;
	}
.split.flip .split-visual { order: 2; }
.split-copy .eyebrow {
	display: inline-block; font-size: 12px; font-weight: 700;
	letter-spacing: 2.5px; text-transform: uppercase;
	color: var(--ink-muted); margin-bottom: 14px;
	}
.split-copy h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.5px; }
.split-copy p.lead { font-size: 18px; color: var(--text); }
.split-copy .muted, .muted { color: var(--muted); }
.text-link { font-weight: 600; color: var(--accent-2); }
.text-link:hover { text-decoration: underline; }
.split-visual { display: flex; justify-content: center; gap: 24px; }
.product-visual img, .product-visual svg, .block-visual img, .block-visual svg,
.split-visual .cryptopian-placeholder {
	max-width: 420px; width: 100%; height: auto;
	border-radius: var(--radius-lg);
	filter: drop-shadow(0 30px 60px rgba(0,0,0,.5));
	}
.blk-art { width: min(340px, 80%); height: auto; }
.stat-cards { flex-direction: column; align-items: stretch; }
.stat-card {
	background: var(--card); border: 1px solid var(--border);
	border-radius: var(--radius-lg); padding: 28px;
	}
.stat-card b { display: block; font-size: 42px; font-family: var(--font-display); color: var(--ink); }
.stat-card span { color: var(--muted); font-size: 14px; }
.stat-card-alt b { color: var(--ink); }
@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; gap: 32px; }
	.split.flip .split-visual { order: -1; }
	}

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
	width: 100%; border-collapse: collapse; min-width: 760px;
	background: var(--card); border: 1px solid var(--border);
	border-radius: var(--radius); overflow: hidden;
	}
.compare-table th, .compare-table td {
	border: 1px solid var(--border);
	padding: 16px 18px; font-size: 14px; text-align: center; vertical-align: middle;
	}
.compare-table thead th { background: var(--bg-2); }
.compare-table thead th a { display: block; }
.compare-table .ct-img img, .compare-table .ct-img svg { width: 90px; margin: 0 auto 10px; border-radius: 12px; }
.compare-table .ct-name { display: block; font-weight: 700; font-size: 15px; }
.compare-table .ct-price { display: block; color: var(--accent); font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.compare-table tbody th[scope] { background: var(--bg-2); color: var(--muted); font-weight: 600; text-align: left; white-space: nowrap; }
.compare-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.compare-table td.ct-price-cell { color: var(--accent); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.compare-table td.ct-price-cell del { color: var(--muted); font-weight: 500; margin-right: 8px; }
.compare-table td.ct-price-cell ins { text-decoration: none; color: var(--accent); }
.compare-table .cta-row td { border-bottom: none; padding-top: 20px; padding-bottom: 24px; }
.compare-table .cta-row .btn { width: 100%; max-width: 180px; }
.section-head.center { flex-direction: column; text-align: center; align-items: center; }

/* ---------- Section head (center variant) ---------- */
.section-head.center .sub { max-width: 560px; margin: 0 auto; }

/* ---------- Accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item {
	background: var(--card); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 0 24px;
	}
.acc-item summary {
	cursor: pointer; list-style: none;
	font-weight: 600; font-size: 16px;
	padding: 20px 0; position: relative; padding-right: 36px;
	}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
	content: "+"; position: absolute; right: 4px; top: 50%;
	transform: translateY(-50%);
	font-size: 22px; color: var(--accent); font-weight: 400;
	}
.acc-item[open] summary::after { content: "−"; }
.acc-item p { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.container.narrow { max-width: 860px; }
.center-cta { text-align: center; margin-top: 36px; }

/* The theme prints its own "Frequently bought with…" heading above the
related grid, so hide Woo's default "Related products" tab title. */
.woocommerce div.product .woocommerce-related-products > h2,
.woocommerce div.product .related > h2 { display: none; }

/* ---------- Product hero / buy box ---------- */
.product-hero { padding: 56px 0 40px; }
/* §3.6 hero: gallery well on the left, sticky buy-box on the right.
   (Rules were missing — the buy-box reuses core's .summary class, which
   Woo floats right at 48%, so without this grid the gallery spanned the
   full container width and the summary dropped underneath it.) */
.product-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: var(--space-8);
	align-items: start;
	}
.product-hero__gallery { min-width: 0; }
.woocommerce div.product .product-hero__gallery div.images { float: none; width: 100%; }
.product-hero__gallery .woocommerce-product-gallery,
.product-hero__gallery .woocommerce-product-gallery__wrapper,
.product-hero__gallery .cryptopian-placeholder { max-width: 100%; }
.product-hero__gallery img,
.product-hero__gallery svg { max-width: 100%; height: auto; border-radius: var(--radius-lg); }
/* Neutralise the core float/width that .summary drags in. */
.product-hero__grid .buy-box.summary,
.woocommerce .product-hero__grid .buy-box.summary,
.woocommerce div.product .product-hero__grid .buy-box.summary { float: none; width: auto; margin: 0; }
@media (min-width: 900px) {
	.product-hero__grid .buy-box.summary {
		position: sticky;
		top: calc(var(--header-h) + 16px);
		}
	}
@media (max-width: 899px) {
	.product-hero__grid { grid-template-columns: 1fr; gap: var(--space-6); }
	}
.buy-box .sale-pill {
	display: inline-block; background: var(--accent); color: #0a0818;
	font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
	border-radius: var(--radius-sm); padding: 4px 12px; margin-bottom: 14px;
	}
.buy-box .product-title { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.5px; }
.buy-box .product-price { font-size: 26px; font-weight: 700; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.buy-box .product-price del { color: var(--muted); font-weight: 500; margin-right: 10px; }
.buy-box .product-price ins { text-decoration: none; color: var(--accent); }
.buy-box .product-price b, .buy-box .product-price strong { font-weight: 700; }
.buy-shipping { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.buy-features { list-style: none; padding: 0; margin: 28px 0 0; }
.buy-features li {
	display: flex; gap: 12px; align-items: baseline;
	padding: 10px 0; border-bottom: 1px solid var(--border);
	font-size: 15px;
	}
.buy-features li:last-child { border-bottom: none; }
.buy-features .tick { color: var(--accent-2); font-weight: 700; }

/* ---------- Trust strip (§5.1) ---------- */
.truststrip { border-block: 1px solid var(--line); background: var(--surface-2); }
.trust-badges {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-4) var(--space-8);
	margin: 0; padding: var(--space-6) 0;
	}
.trust-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	text-align: center;
	}
.trust-badge__icon { font-size: 22px; line-height: 1.2; }
.trust-badge__label { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.trust-badge__sub { font-size: var(--text-xs); color: var(--ink-muted); }
@media (max-width: 899px) { .trust-badges { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .trust-badges { grid-template-columns: 1fr; } }
/* Compact variant under archive toolbars. */
.trust-mini {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--text-xs);
	color: var(--ink-muted);
	white-space: nowrap;
	}

/* ---------- Specs table ---------- */
.specs-table {
	width: 100%; border-collapse: collapse;
	background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden;
	}
.specs-table th, .specs-table td {
	border: 1px solid var(--border); padding: 14px 18px; font-size: 14px; text-align: left;
	}
.specs-table th { background: var(--bg-2); color: var(--muted); font-weight: 600; width: 220px; }

/* ---------- Footer news / rich footer ---------- */
.footer-news {
	display: flex; justify-content: space-between; align-items: center; gap: 32px;
	border-bottom: 1px solid var(--border); padding-bottom: 36px; margin-bottom: 44px;
	flex-wrap: wrap;
	}
.footer-news h4 { font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--text); }
.footer-news p { color: var(--muted); font-size: 14px; margin: 6px 0 0; max-width: 420px; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input {
	background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm);
	color: var(--text); padding: 11px 16px; min-width: 280px; font-size: 15px;
	font-family: inherit; min-height: 44px;
	}
.newsletter-form input:focus { border-color: var(--accent); }
.fineprint { font-size: 12px; color: #5c6478; width: 100%; }
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 260px; margin-top: 16px; }
.footer-addr { font-size: 12px; color: #5c6478; margin-top: 12px; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-icons span {
	border: 1px solid var(--border); border-radius: var(--radius-sm);
	font-size: 11px; font-weight: 600; padding: 3px 8px; color: var(--muted);
	}
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 900px) {
	.footer-news { flex-direction: column; align-items: flex-start; }
	.newsletter-form { width: 100%; }
	.newsletter-form input { flex: 1; min-width: 0; }
	}
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }


/* ============================================================
 * v3 REDESIGN COMPONENTS (docs/redesign-brief.md §3)
 * Appended after legacy rules: equal-specificity new rules win
 * by source order. Woo core classes are kept alongside.
 * ============================================================ */

/* ---------- Badges (§3.13) ---------- */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--font-display);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.4;
	border-radius: var(--radius-sm);
	padding: 4px 10px;
	border: 1px solid transparent;
	width: fit-content;
	}
.badge--sale { background: var(--brand-indigo); color: var(--ink-inverse); }
.badge--new { background: var(--brand-violet); color: #fff; }
.badge--oos { background: var(--surface-3); color: var(--ink-muted); border-color: var(--line); }
.badge--preview { background: var(--surface-3); color: var(--brand-cyan); border-color: var(--line); }
.badge--featured { background: transparent; color: var(--brand-cyan); border-color: var(--brand-cyan); }
.badge--cat { background: var(--surface-3); color: var(--ink-muted); }
a.badge--cat:hover { color: var(--ink); border-color: var(--line-strong); }

/* ---------- Rating stars (§3.4b) ---------- */
.stars { display: inline-flex; align-items: center; gap: 6px; }
.star-rating {
	position: relative;
	display: inline-block;
	font-size: 14px;
	line-height: 1;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--star-empty);
	letter-spacing: 1px;
	}
.star-rating::before { content: "★★★★★"; }
.star-rating span {
	position: absolute;
	top: 0; left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: var(--star);
	}
.star-rating span::before { content: "★★★★★"; }
.stars__count { font-size: var(--text-xs); color: var(--ink-muted); }

/* ---------- Product card / tile (§3.4) ---------- */
/* Out-specify Woo core float layout together with the base grid rules above. */
body.woocommerce ul.products li.product.pcard,
body .products-grid ul.products li.product.pcard {
	padding: 0;
	display: flex;
	flex-direction: column;
	position: relative;
	gap: 0;
	}
body.woocommerce ul.products li.product.pcard:hover,
body.woocommerce ul.products li.pcard:focus-within {
	transform: translateY(-4px);
	border-color: var(--brand-indigo);
	box-shadow: var(--shadow-lg);
	}
.pcard__media-link { display: block; position: relative; }
.pcard__media {
	display: block;
	background: var(--surface-3);
	border-radius: var(--radius-md);
	margin: 12px 12px 0;
	padding: 16px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	}
.pcard__media img,
.pcard__media .cryptopian-placeholder {
	width: 100%; height: 100%;
	object-fit: contain;
	border-radius: var(--radius-sm);
	transition: transform .2s ease;
	}
li.pcard:hover .pcard__media img { transform: scale(1.03); }
.pcard__badges {
	position: absolute;
	top: 20px; left: 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	z-index: 2;
	}
/* Keep core .onsale but place it inside the badges stack (undo Woo absolute). */
.pcard .onsale.badge, .pcard .badge.onsale {
	position: static;
	margin: 0;
	min-height: 0;
	left: auto; right: auto; top: auto;
	}
.pcard__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: var(--space-2);
	padding: var(--space-4) var(--space-4) var(--space-4);
	}
.pcard__cat {
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-muted);
	}
.pcard__title {
	font-size: var(--text-body);
	line-height: 1.25;
	margin: 0;
	}
.pcard__title-link { color: var(--ink); transition: color .15s; }
.pcard__title-link:hover { color: var(--brand-text); }
.pcard__excerpt {
	color: var(--ink-muted);
	font-size: var(--text-sm);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	}

.pcard__price.price {
	color: var(--brand-indigo);
	font-weight: 700;
	font-size: 18px;
	font-variant-numeric: tabular-nums;
	margin: 0;
	}
.pcard__price.price del { color: var(--ink-muted); font-weight: 500; margin-right: 8px; }
.pcard__price.price ins { text-decoration: none; color: var(--brand-indigo); }
.pcard__stock { font-size: var(--text-xs); margin: 0; }
.pcard__stock--in { color: var(--success); }
.pcard__stock--out { color: var(--danger); }
.pcard__stock--low { color: var(--warning); }
.pcard__stock--pending { color: var(--ink-muted); }
.pcard__actions { margin-top: auto; padding-top: var(--space-2); }
.pcard__atc.button, .pcard__atc.button.add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	background: var(--surface-3);
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-weight: 600;
	font-size: var(--text-sm);
	padding: 10px 16px;
	position: relative;
	transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
	}
.pcard__atc.button:hover, .pcard__atc.button.add_to_cart_button:hover {
	background: var(--brand-grad);
	color: var(--ink-inverse);
	border-color: transparent;
	box-shadow: var(--shadow-glow);
	transform: none;
	}
/* AJAX states: Woo core adds .loading then .added. */
.pcard__atc.button.loading { opacity: .7; pointer-events: none; }
.pcard__atc.button.loading::after {
	content: "";
	position: absolute;
	right: 14px; top: 50%;
	width: 16px; height: 16px;
	margin-top: -8px;
	border: 2px solid var(--line-strong);
	border-top-color: var(--brand-cyan);
	border-radius: 50%;
	animation: pcard-spin .7s linear infinite;
	}
@keyframes pcard-spin { to { transform: rotate(360deg); } }
.pcard__atc.button.added {
	background: var(--surface-3);
	color: var(--success);
	border-color: rgba(52, 211, 153, .5);
	}
.pcard__atc--disabled {
	background: var(--surface-3);
	color: var(--ink-muted);
	border: 1px solid var(--line);
	cursor: not-allowed;
	}
/* Out-of-stock card treatment (§3.4). */
body.woocommerce ul.products li.product.outofstock:not(.pcard--preview) .pcard__media,
body.woocommerce ul.products li.product.out-of-stock:not(.pcard--preview) .pcard__media {
	opacity: .55;
	filter: saturate(.4);
	}

/* ---------- Product grid columns (§3.5) ---------- */
/* Deterministic 4 / 3 / 2 / 1 at 1200 / 900 / 480 / 479 — extended beyond
   `body.woocommerce` to `.products-grid` so the home rails (front-page.php
   emits div.products-grid > ul.products.columns-4 on a page body that carries
   no `.woocommerce` class) get the same contract. The auto-fill
   minmax(260px,1fr) base rule above remains the fallback for unclassed
   `columns-*` values and for browsers without grid. */
body.woocommerce ul.products,
body .products-grid ul.products { gap: var(--grid-gap); }
@media (max-width: 600px) {
	body.woocommerce ul.products,
	body .products-grid ul.products { gap: 16px; }
	}
@media (min-width: 480px) {
	body.woocommerce ul.products:not([class*="columns-"]),
	body.woocommerce ul.products.columns-2,
	body.woocommerce ul.products.columns-3,
	body.woocommerce ul.products.columns-4,
	body .products-grid ul.products:not([class*="columns-"]),
	body .products-grid ul.products.columns-2,
	body .products-grid ul.products.columns-3,
	body .products-grid ul.products.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	}
@media (min-width: 900px) {
	body.woocommerce ul.products:not([class*="columns-"]),
	body.woocommerce ul.products.columns-3,
	body.woocommerce ul.products.columns-4,
	body .products-grid ul.products:not([class*="columns-"]),
	body .products-grid ul.products.columns-3,
	body .products-grid ul.products.columns-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	}
@media (min-width: 1200px) {
	body.woocommerce ul.products.columns-4,
	body .products-grid ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	}
/* Single-column escape hatch on every width. */
body.woocommerce ul.products.columns-1,
body .products-grid ul.products.columns-1 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 479px) {
	body.woocommerce ul.products,
	body .products-grid ul.products { grid-template-columns: minmax(0, 1fr); }
	}

/* ---------- Shop layout, toolbar, filters (§3.5) ---------- */
.shop-layout { display: block; }
@media (min-width: 900px) {
	.shop-layout {
		display: grid;
		grid-template-columns: 240px minmax(0, 1fr);
		gap: var(--space-8);
		align-items: start;
		}
	.shop-sidebar {
		position: sticky;
		top: calc(var(--header-h) + 16px);
		}
	}
.shop-hero { margin-bottom: var(--space-8); }
.shop-hero__title { font-size: var(--text-display-l); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 var(--space-3); }
.shop-hero__desc { color: var(--ink-muted); max-width: 640px; margin: 0; }
.shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	flex-wrap: wrap;
	margin-bottom: var(--space-6);
	}
.woocommerce-result-count.shop-toolbar__count,
.shop-toolbar__count { color: var(--ink-muted); font-size: var(--text-sm); margin: 0; float: none; }
.shop-toolbar__sort, .woocommerce-ordering { float: none; }
.shop-toolbar__sort select,
.woocommerce-ordering select,
.orderby {
	-webkit-appearance: none; appearance: none;
	background: var(--surface-3) url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" fill="none" stroke="%239b95c0" stroke-width="1.5"/></svg>') no-repeat right 14px center;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-family: inherit;
	font-size: var(--text-sm);
	min-height: 44px;
	padding: 10px 36px 10px 14px;
	cursor: pointer;
	transition: border-color .2s;
	}
.shop-toolbar__sort select:hover { border-color: var(--line-strong); }
/* Filters (§3.5): the toggle button lives INSIDE .shop-sidebar, so the sidebar
   itself must stay in flow below 900px — only .filters-panel collapses (mobile
   first: collapsed by default, `body.filters-open` — set by assets/theme.js —
   reveals it as a full-width panel). theme.js stamps `html.js`; without it the
   panel stays open so archives remain filterable with JS off. */
.filter-toggle { display: none; }
.filters-panel { display: block; }
@media (max-width: 899px) {
	.shop-sidebar { display: block; width: 100%; margin-bottom: var(--space-6); }
	.filter-toggle {
		display: inline-flex;
		width: 100%;
		justify-content: center;
		align-items: center;
		gap: 8px;
		min-height: 44px;
		padding: 8px 18px;
		background: var(--surface-3);
		border: 1px solid var(--line);
		border-radius: var(--radius-sm);
		color: var(--ink);
		font-family: inherit;
		font-weight: 600;
		font-size: var(--text-sm);
		cursor: pointer;
		margin-bottom: var(--space-4);
		transition: border-color .2s, background .2s;
		}
	.filter-toggle:hover,
	.filter-toggle:focus-visible,
	.filter-toggle[aria-expanded="true"] { border-color: var(--brand-indigo); background: var(--surface-hover); }
	/* Disclosure caret mirroring aria-expanded. */
	.filter-toggle::after {
		content: "";
		width: 8px;
		height: 8px;
		flex: none;
		border-right: 2px solid var(--ink-muted);
		border-bottom: 2px solid var(--ink-muted);
		transform: rotate(45deg) translate(-2px, -3px);
		transition: transform .2s;
		}
	.filter-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-1px, -1px); }
	.filters-panel { display: none; }
	body.filters-open .filters-panel {
		display: block;
		width: 100%;
		animation: filters-reveal .22s ease-out;
		}
	.filter-toggle__count {
		background: var(--brand-indigo);
		color: var(--ink-inverse);
		border-radius: var(--radius-pill);
		font-size: 11px;
		font-weight: 700;
		min-width: 18px;
		height: 18px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0 5px;
		}
	}
@keyframes filters-reveal {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
	}
/* No-JS fallback: the toggle would be dead, so keep every facet visible. */
html:not(.js) .filter-toggle { display: none; }
html:not(.js) .filters-panel { display: block; width: 100%; }
.filter-group {
	background: var(--surface-card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: var(--space-5);
	margin-bottom: var(--space-4);
	}
.filter-group__title {
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--ink-muted);
	margin: 0 0 var(--space-3);
	}
.filter-group__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-chip a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 6px 14px;
	background: var(--surface-3);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	color: var(--ink-muted);
	font-size: var(--text-sm);
	transition: border-color .2s, color .2s;
	}
.filter-chip a:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-chip.is-active a,
.filter-chip a[aria-current="true"] { border-color: var(--brand-indigo); color: var(--ink); }
.filter-chip.is-active a::before,
.filter-chip a[aria-current="true"]::before {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--brand-cyan);
	}

/* Price facet (§3.5): the min/max form is rendered by
   cryptopian_shop_price_facet_html() outside any .form-row, so the global
   Woo form-control styles never reach it — style it explicitly with the
   same input treatment (surface-3 fill, line border, radius-sm, 44px
   touch height) and stack the controls with theme spacing. */
.filter-group--price .price_slider { display: flex; flex-direction: column; gap: var(--space-2); }
.filter-group--price .input-text.min_price,
.filter-group--price .input-text.max_price {
	-webkit-appearance: none; appearance: none;
	width: 100%; min-width: 0;
	background: var(--surface-3);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--ink);
	padding: 10px 14px;
	min-height: 44px;
	font-family: inherit; font-size: var(--text-sm); line-height: 1.4;
	margin: 0;
	transition: border-color .2s;
	}
.filter-group--price .input-text.min_price::placeholder,
.filter-group--price .input-text.max_price::placeholder { color: var(--ink-muted); opacity: 1; }
.filter-group--price .input-text.min_price:focus,
.filter-group--price .input-text.max_price:focus { border-color: var(--line-focus); outline: none; }
/* .btn-outline sets border + text but no background, which leaks the
   browser's light-gray button face into the dark card — pin it to the
   surface colour and stretch it to the panel width. */
.filter-group--price .price_slider_submit {
	width: 100%;
	margin-top: var(--space-1);
	background: var(--surface-3);
	}
.filter-group--price .price_slider_submit:hover { border-color: var(--accent); }

/* ---------- Pagination (§3.5) ---------- */
.pagination .page-numbers:hover { border-color: var(--brand-indigo); color: var(--ink); }
.pagination .page-numbers.current {
	background: var(--brand-grad);
	color: var(--ink-inverse);
	border-color: transparent;
	}

/* ---------- Breadcrumbs (§3.10) ---------- */
.breadcrumbs.woocommerce-breadcrumb,
.woocommerce .breadcrumbs.woocommerce-breadcrumb {
	color: var(--ink-muted);
	font-size: var(--text-sm);
	margin-bottom: var(--space-6);
	}
.breadcrumbs__link { color: var(--ink-muted); transition: color .15s; }
.breadcrumbs__link:hover { color: var(--brand-text); text-decoration: underline; }
.breadcrumbs__sep { margin: 0 8px; color: var(--line-strong); }
.breadcrumbs__current {
	color: var(--ink-secondary);
	max-width: 320px;
	display: inline-block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
	}

/* ---------- Mini-cart drawer (§3.8) ---------- */
.cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 300;
	}
.cart-drawer[hidden] { display: none; }
.cart-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 3, 12, .6);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity .24s ease;
	}
.cart-drawer__panel {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: 380px;
	max-width: 100%;
	background: var(--surface-2);
	border-left: 1px solid var(--line);
	box-shadow: var(--shadow-lg);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .24s ease;
	outline: none;
	}
.cart-drawer.is-open .cart-drawer__backdrop { opacity: 1; }
.cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }
@media (max-width: 479px) { .cart-drawer__panel { width: 100%; } }
body.cart-drawer-open { overflow: hidden; }
.cart-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	padding: var(--space-5) var(--space-6);
	border-bottom: 1px solid var(--line);
	}
.cart-drawer__title { font-size: var(--text-h3); margin: 0; }
.cart-drawer__count { color: var(--ink-muted); font-size: var(--text-sm); font-weight: 500; font-family: var(--font-body); }
.cart-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--ink-secondary);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .2s, color .2s;
	}
.cart-drawer__close:hover { border-color: var(--line-strong); color: var(--ink); }

.cart-drawer .widget_shopping_cart_content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	}
.cart-drawer .widget_shopping_cart_content > ul.cart_list {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	margin: 0;
	padding: var(--space-4) var(--space-6);
	}
.cart-drawer .woocommerce-mini-cart__empty-message {
	padding: var(--space-10) var(--space-6);
	text-align: center;
	color: var(--ink-muted);
	}
.cart-drawer .woocommerce-mini-cart__empty-message a { color: var(--brand-text); }
.mini-cart-item,
.cart-drawer ul.cart_list li {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 32px;
	gap: var(--space-3);
	align-items: center;
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--line);
	margin: 0;
	}
.mini-cart-item__thumb img,
.cart-drawer ul.cart_list li img {
	width: 56px; height: 56px;
	object-fit: contain;
	background: var(--surface-3);
	border-radius: var(--radius-md);
	}
.mini-cart-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-cart-item__name { color: var(--ink); font-size: var(--text-sm); font-weight: 600; }
.mini-cart-item__name:hover { color: var(--brand-text); }
.mini-cart-item__meta { color: var(--ink-muted); font-size: var(--text-xs); }
.mini-cart-item__price.price { color: var(--ink-secondary); font-size: var(--text-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-cart-item__price.price del { color: var(--ink-muted); font-weight: 400; margin-right: 6px; }
.mini-cart-item__price.price ins { text-decoration: none; color: var(--ink-secondary); }
.mini-cart-item__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px; height: 32px;
	border-radius: var(--radius-sm);
	color: var(--ink-muted);
	font-size: 18px;
	transition: color .15s, background-color .15s;
	}
.mini-cart-item__remove:hover { color: var(--danger); background: var(--surface-3); }
.cart-drawer__footer.woocommerce-mini-cart,
.cart-drawer .cart-drawer__footer {
	padding: var(--space-5) var(--space-6) calc(var(--space-5) + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
	background: var(--surface-2);
	}
.cart-drawer .woocommerce-mini-cart__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: var(--text-body);
	margin: 0 0 var(--space-4);
	font-variant-numeric: tabular-nums;
	}
.cart-drawer .woocommerce-mini-cart__total strong { font-family: var(--font-display); }
.cart-drawer .woocommerce-mini-cart__total .amount,
.cart-drawer .woocommerce-mini-cart__total .woocommerce-Price-amount { color: var(--brand-indigo); font-weight: 700; font-size: var(--text-body-l); }
.cart-drawer .woocommerce-mini-cart__buttons { margin: 0; display: flex; gap: var(--space-3); }
.cart-drawer .woocommerce-mini-cart__buttons .button {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-weight: 600;
	font-size: var(--text-sm);
	}
.cart-drawer .woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout) {
	background: transparent;
	border: 1px solid var(--line);
	color: var(--ink);
	}
.cart-drawer .woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout):hover { border-color: var(--brand-indigo); }
.cart-drawer .woocommerce-mini-cart__buttons .button.checkout {
	background: var(--brand-grad);
	color: var(--ink-inverse);
	border: 1px solid transparent;
	box-shadow: var(--shadow-glow);
	}

/* ---------- Empty states (§3.12) ---------- */
.empty-state {
	max-width: 480px;
	margin: 0 auto;
	padding: var(--space-16) var(--space-8);
	background: var(--surface-card);
	border: 1px dashed var(--line);
	border-radius: var(--radius-xl);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-4);
	}
.empty-state__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 96px; height: 96px;
	border-radius: 50%;
	background: var(--surface-3);
	font-size: 48px;
	line-height: 1;
	}
.empty-state__title { font-size: var(--text-display-m); margin: 0; }
.empty-state__text { color: var(--ink-muted); margin: 0; max-width: 380px; }
.empty-state__search { display: flex; gap: var(--space-3); width: 100%; max-width: 340px; }
.empty-state__search input[type="search"],
.empty-state__search input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 44px;
	background: var(--surface-3);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-family: inherit;
	font-size: var(--text-sm);
	padding: 10px 14px;
	}
.empty-state__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }

/* ---------- Quantity stepper (§3.6) ---------- */
.quantity.woocommerce-qty,
.woocommerce-qty {
	display: inline-flex;
	align-items: center;
	background: var(--surface-3);
	border: 1px solid var(--line);
	border-radius: var(--radius-xs);
	height: 44px;
	overflow: hidden;
	}
.woocommerce-qty .qty-btn {
	width: 40px; height: 100%;
	background: transparent;
	border: 0;
	color: var(--ink-secondary);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s, color .15s;
	}
.woocommerce-qty .qty-btn:hover { background: var(--surface-hover); color: var(--ink); }
.woocommerce-qty input.input-text.qty {
	width: 48px;
	min-height: auto;
	height: 100%;
	background: transparent;
	border: 0;
	border-inline: 1px solid var(--line);
	border-radius: 0;
	color: var(--ink);
	text-align: center;
	font-family: inherit;
	font-size: var(--text-sm);
	font-variant-numeric: tabular-nums;
	-webkit-appearance: textfield; appearance: textfield;
	}
.woocommerce-qty input.input-text.qty::-webkit-outer-spin-button,
.woocommerce-qty input.input-text.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Payment-method icons (§5.2) ---------- */
.payment-icons { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.payment-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	padding: 0 8px;
	background: var(--surface-3);
	border: 1px solid var(--line);
	border-radius: var(--radius-xs);
	color: var(--ink-muted);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .02em;
	white-space: nowrap;
	}
.payment-icon--btc, .payment-icon--eth, .payment-icon--usdt, .payment-icon--sol {
	border-color: rgba(34, 211, 238, .4);
	color: var(--brand-cyan);
	}
/* Legacy unclassed chips (transition). */
.payment-icons span:not(.payment-icon) {
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	color: var(--ink-muted);
	}

/* ---------- Notice dismiss button (§3.13) ---------- */
.notice-dismiss {
	float: right;
	background: transparent;
	border: 0;
	color: var(--ink-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: var(--radius-xs);
	}
.notice-dismiss:hover { color: var(--ink); background: var(--surface-3); }
.woocommerce-message.notice-dismissed,
.woocommerce-info.notice-dismissed,
.woocommerce-error.notice-dismissed { display: none; }
.woocommerce-error { border-top-color: var(--danger); }
.woocommerce-error::before { color: var(--danger); }


/* ============================================================
 * 7. CHECKOUT FUNNEL (redesign-brief §4)
 * ============================================================ */

/* §4: the funnel sits on the alternate surface so it reads as its own space. */
body.woocommerce-checkout,
body.woocommerce-order-pay { background: var(--surface-2); }

/* §4: no newsletter / marketing noise on checkout. footer.php skips emitting
   the band here; these rules also cover block checkout and injected variants. */
body.woocommerce-checkout .footer-news,
body.woocommerce-order-pay .footer-news,
body.woocommerce-checkout .footer-news__copy,
body.woocommerce-checkout .newsletter-form,
body.woocommerce-checkout .fineprint { display: none; }
body.woocommerce-checkout .site-footer,
body.woocommerce-order-pay .site-footer {
	background: transparent;
	margin-top: var(--space-16);
	padding-top: var(--space-10);
	}

/* Decorative step rail (emitted by the checkout template override). */
.woocommerce-checkout .checkout-steps,
.checkout-steps {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3) var(--space-8);
	list-style: none;
	margin: 0 0 var(--space-8);
	padding: 0;
	counter-reset: cryptopian-step;
	}
.checkout-steps > li,
.checkout-steps .checkout-steps__item {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	color: var(--ink-muted);
	font-size: var(--text-sm);
	font-weight: 600;
	}
.checkout-steps > li::before,
.checkout-steps .checkout-steps__item::before {
	counter-increment: cryptopian-step;
	content: counter(cryptopian-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 26px;
	height: 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--surface-3);
	color: var(--ink-muted);
	font-family: var(--font-mono);
	font-size: 12px;
	}
.checkout-steps > li.is-active,
.checkout-steps .checkout-steps__item.is-active,
.checkout-steps > li.is-current,
.checkout-steps > li.active { color: var(--ink); }
.checkout-steps > li.is-active::before,
.checkout-steps .checkout-steps__item.is-active::before,
.checkout-steps > li.is-current::before,
.checkout-steps > li.active::before {
	background: var(--brand-grad);
	border-color: transparent;
	color: var(--ink-inverse);
	}
.checkout-steps > li.is-done::before,
.checkout-steps > li.done::before {
	content: "✓";
	background: var(--surface-3);
	border-color: rgba(52, 211, 153, .5);
	color: var(--success);
	}

/* Trust microcopy under #place_order (§4). */
body.woocommerce-checkout .checkout-trust {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-5);
	margin: var(--space-4) 0 0;
	padding: 0;
	list-style: none;
	color: var(--ink-muted);
	font-size: var(--text-xs);
	}
body.woocommerce-checkout .checkout-trust li { display: inline-flex; align-items: center; gap: 6px; }
body.woocommerce-checkout .checkout-trust li::before {
	content: "✓";
	color: var(--brand-cyan);
	font-weight: 700;
	}

/*
 * §4 two-column funnel ≥900px: billing/shipping forms in the left column,
 * "Your order" + #payment in the right column, sticky while the forms scroll.
 * The classic shortcode checkout is targeted (form.checkout.woocommerce-checkout
 * with #customer_details / #order_review_heading / #order_review); block
 * checkout keeps its own layout. Stray children (notices, gateways appending
 * markup) are pinned to the left column; empty children are dropped so they
 * cannot create gap-height rows, and `:empty` lifts again if JS fills them.
 */
@media (min-width: 900px) {
	body.woocommerce-checkout form.checkout.woocommerce-checkout {
		display: grid;
		grid-template-columns: minmax(0, 1.55fr) minmax(0, 420px);
		grid-template-rows: auto 1fr;
		gap: var(--space-6) var(--space-10);
		align-items: start;
		}
	body.woocommerce-checkout form.checkout.woocommerce-checkout > * { grid-column: 1; min-width: 0; }
	body.woocommerce-checkout form.checkout.woocommerce-checkout > :empty { display: none; }
	body.woocommerce-checkout form.checkout.woocommerce-checkout > input[type="hidden"],
	body.woocommerce-checkout form.checkout.woocommerce-checkout > script,
	body.woocommerce-checkout form.checkout.woocommerce-checkout > template { display: none; }
	body.woocommerce-checkout #customer_details {
		grid-column: 1;
		grid-row: 1 / span 2;
		}
	body.woocommerce-checkout #order_review_heading {
		grid-column: 2;
		grid-row: 1;
		margin: 0 0 var(--space-4);
		font-size: var(--text-h3);
		}
	body.woocommerce-checkout #order_review {
		grid-column: 2;
		grid-row: 2;
		align-self: start;
		position: sticky;
		top: calc(var(--header-h) + var(--space-5));
		/* Keep the summary column inside the viewport (stores with many
		   shipping methods / gateways otherwise make it taller than the
		   scrollport, which cancels the stickiness) — it scrolls itself. */
		max-height: calc(100vh - var(--header-h) - var(--space-12));
		overflow-y: auto;
		overscroll-behavior: contain;
		width: auto;
		float: none;
		margin: 0;
		}
	/* Long shipping-method lists scroll in place instead of stretching the
	   order review (Woo core repeats one radio per enabled method/zone). */
	body.woocommerce-checkout #order_review ul#shipping_method,
	body.woocommerce-checkout #order_review ul.woocommerce-shipping-methods {
		max-height: 168px;
		overflow-y: auto;
		list-style: none;
		margin: 0;
		padding: 0;
		}
	/* Totals + Place Order stay pinned to the bottom of the (self-scrolling)
	   summary box so the CTA is never below its fold on short viewports. */
	body.woocommerce-checkout #order_review .woocommerce-checkout-payment,
	body.woocommerce-checkout #order_review #payment {
		position: sticky;
		bottom: 0;
		z-index: 2;
		}
	/* Billing / shipping stack (single column) instead of Woo core floats. */
	body.woocommerce-checkout .col2-set {
		display: grid;
		grid-template-columns: 1fr;
		gap: var(--space-8);
		width: 100%;
		}
	body.woocommerce-checkout .col2-set .col-1,
	body.woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }
	body.woocommerce-checkout .col2-set .form-row-first { width: 48%; margin-right: 4%; }
	body.woocommerce-checkout .col2-set .form-row-last { width: 48%; margin-right: 0; }
	body.woocommerce-checkout .col2-set .form-row-wide,
	body.woocommerce-checkout .col2-set .form-row { max-width: 100%; }
	}

/* Order review card + gateway rows (§4, §5.2). */
body.woocommerce-checkout #payment,
body.woocommerce-cart #payment,
body.woocommerce-checkout #payment.woocommerce-checkout-payment {
	background: var(--surface-card);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: var(--space-5);
	margin: 0;
	}
body.woocommerce-checkout #order_review table.shop_table { margin-bottom: var(--space-5); }
body.woocommerce-checkout #payment ul.payment_methods {
	border-bottom: 1px solid var(--line);
	padding-bottom: var(--space-4);
	margin: 0 0 var(--space-4);
	list-style: none;
	}
body.woocommerce-checkout #payment ul.payment_methods li {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0 0 var(--space-3);
	}
body.woocommerce-checkout #payment ul.payment_methods li label {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--text-body);
	color: var(--ink);
	}
body.woocommerce-checkout #payment div.payment_box {
	background: var(--surface-3);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--ink-secondary);
	font-size: var(--text-sm);
	padding: var(--space-3) var(--space-4);
	margin: var(--space-2) 0 var(--space-3);
	}
body.woocommerce-checkout #payment div.payment_box::before { display: none; }
body.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper { font-size: var(--text-sm); }
body.woocommerce-checkout #payment #place_order { margin-top: var(--space-2); }
body.woocommerce-checkout .woocommerce-checkout-payment .woocommerce-secure-payments,
body.woocommerce-checkout .place-order + .checkout-trust { margin-top: var(--space-4); }

/* ---------- Flat line icons (cp-icon) ---------- */
.cp-icon {
	display: inline-block;
	vertical-align: -4px;
	color: var(--ink-secondary);
	}
.trust-badge__icon .cp-icon,
.feature .fi .cp-icon,
.cart-link__icon .cp-icon,
.header-search__submit .cp-icon {
	width: 22px;
	height: 22px;
	vertical-align: middle;
	}
.empty-state__icon .cp-icon {
	width: 40px;
	height: 40px;
	}
.trust-mini .cp-icon { margin-right: 5px; }


