/* =========================================================================
   APEX SYSTEMS — design system
   Dark-first, engineered, restrained. Signature: the split hero and the
   light-plate brand hub with breathing red eyes.
   ========================================================================= */

/* 1. Tokens ------------------------------------------------------------- */
:root {
	--bg: #0B0C0E;
	--surface: #131519;
	--raised: #1B1E24;
	--line: #2A2E36;
	--text: #F2F3F5;
	--muted: #A6ACB6;
	--red: #E11D2E;
	--red-deep: #7E1019;
	--plate: #ECEEF0;

	--font-display: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, sans-serif;
	--font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

	--container: 1240px;
	--header-h: 72px;
	--radius: 3px;
	--notch: 12px;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

body.apex-mode-business {
	--bg: #101115;
	--surface: #15171B;
	--raised: #20242B;
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	padding-top: var(--header-h);
}
body.home { padding-top: 0; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--red); }
::selection { background: var(--red); color: #fff; }

:focus-visible {
	outline: 2px solid var(--red);
	outline-offset: 2px;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: .015em;
	margin: 0 0 .5em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.apex-mono { font-family: var(--font-mono); }

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
}

.apex-skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--red); color: #fff; padding: 10px 18px;
}
.apex-skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* 3. Layout utilities ---------------------------------------------------- */
.apex-container {
	width: min(var(--container), 100% - 48px);
	margin-inline: auto;
}
.apex-container--narrow { width: min(880px, 100% - 48px); }

.apex-main { min-height: 60vh; }
.apex-section { padding: clamp(64px, 9vw, 120px) 0; }

.apex-eyebrow {
	display: inline-block;
	font-family: var(--font-display);
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 14px;
}
.apex-eyebrow::before {
	content: "";
	display: inline-block;
	width: 18px; height: 1px;
	background: var(--red);
	vertical-align: middle;
	margin-right: 10px;
}

.apex-section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.apex-section-head__title { margin-bottom: .35em; }
.apex-section-head__lead { color: var(--muted); font-size: 1.06rem; margin: 0; }

.apex-page-head { padding: clamp(40px, 7vw, 80px) 0 clamp(20px, 3vw, 36px); max-width: 820px; }
.apex-page-head__title { margin-bottom: .25em; }
.apex-page-head__lead { color: var(--muted); font-size: 1.08rem; }

/* 4. Buttons & badges ----------------------------------------------------- */
.apex-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce button.button.alt,
.woocommerce a.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	background: var(--red);
	color: #fff;
	border: 0;
	font-family: var(--font-display);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1;
	padding: 15px 26px;
	cursor: pointer;
	border-radius: 0;
	clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
	transition: background .25s var(--ease), transform .25s var(--ease);
}
.apex-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
	background: #c4172a;
	color: #fff;
	transform: translateY(-1px);
}
.apex-btn--ghost {
	background: transparent;
	color: var(--text);
	box-shadow: inset 0 0 0 1px var(--line);
}
.apex-btn--ghost:hover {
	background: rgba(225, 29, 46, .08);
	box-shadow: inset 0 0 0 1px var(--red);
	color: var(--text);
}

.apex-badge {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: .72rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	border: 1px solid var(--line);
	padding: 3px 10px;
}
.apex-badge--ok { color: #4ADE80; border-color: rgba(74, 222, 128, .35); }

.apex-card-badge {
	position: absolute;
	top: 14px; left: 14px;
	z-index: 2;
	background: var(--red);
	color: #fff;
	font-family: var(--font-display);
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	padding: 5px 10px;
}
.apex-card-badge--steel { background: var(--raised); color: var(--muted); border: 1px solid var(--line); }

/* 5. Reveal motion -------------------------------------------------------- */
.rv {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.rv.in { opacity: 1; transform: none; }

/* 6. Header ---------------------------------------------------------------- */
.apex-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 80;
	height: var(--header-h);
	border-bottom: 1px solid var(--line);
	transition: border-color .35s var(--ease);
}
/* Background lives on a pseudo: backdrop-filter on the header itself would
   make it a containing block and collapse the fixed mobile drawer. */
.apex-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(11, 12, 14, .9);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: opacity .35s var(--ease);
}
.apex-header--overlay:not(.is-scrolled) { border-color: transparent; }

/* Logged-in admins: keep the site header below the WP admin bar on desktop.
   (On mobile the admin bar scrolls away, so no offset there.) */
@media (min-width: 783px) {
	body.admin-bar .apex-header { top: 32px; }
}
@media (min-width: 783px) and (max-width: 960px) {
	body.admin-bar .apex-nav { top: calc(var(--header-h) + 32px); }
}
.apex-header--overlay:not(.is-scrolled)::before { opacity: 0; }
.apex-header__inner {
	width: min(var(--container), 100% - 48px);
	margin-inline: auto;
	height: 100%;
	display: flex;
	align-items: center;
	gap: 32px;
}
.apex-brand { display: inline-flex; align-items: center; gap: 12px; }
.apex-brand__word {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .95rem;
	letter-spacing: .2em;
	color: var(--text);
	white-space: nowrap;
}

/* Brand mark — transparent, lifted off the dark with shadow + faint red aura */
.apex-logo {
	position: relative;
	display: inline-flex;
	flex: none;
	line-height: 0;
}
.apex-logo img {
	width: 100%; height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .65)) drop-shadow(0 0 14px rgba(225, 29, 46, .16));
}
.apex-logo--sm { width: 52px; height: 52px; }
.apex-footer .apex-logo--sm { width: 66px; height: 66px; }
.apex-logo--lg { width: clamp(170px, 19vw, 240px); height: clamp(170px, 19vw, 240px); }

/* Eye glow — positioned over the mark's red eyes (measured on source art) */
.apex-logo__glow {
	position: absolute;
	width: 15%; height: 12%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 64, 74, .95), rgba(225, 29, 46, .4) 60%, transparent);
	filter: blur(4px);
	opacity: .3;
	mix-blend-mode: screen;
	animation: apexBreath 7s var(--ease) infinite;
	pointer-events: none;
}
.apex-logo__glow--l { left: 12.5%; top: 31.5%; }
.apex-logo__glow--r { right: 13%; top: 31.5%; animation-delay: .25s; }
.apex-logo--sm .apex-logo__glow { filter: blur(2px); }

@keyframes apexBreath {
	0%, 100% { opacity: .26; transform: scale(1); }
	50% { opacity: .6; transform: scale(1.12); }
}

/* The homepage hub: quiet aura at rest, aggressive when hovered */
.apex-logo--hub::before {
	content: "";
	position: absolute;
	inset: -18%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(225, 29, 46, .15), rgba(225, 29, 46, .05) 55%, transparent 72%);
	transition: opacity .45s var(--ease), transform .45s var(--ease);
	pointer-events: none;
	z-index: -1;
}
.apex-logo--hub::after {
	content: "";
	position: absolute;
	inset: -11%;
	border-radius: 50%;
	border: 1px dashed rgba(225, 29, 46, .28);
	animation: apexSpin 70s linear infinite;
	pointer-events: none;
}
.apex-logo--hub .apex-logo__glow { filter: blur(6px); }
.apex-logo--hub img { transition: filter .45s var(--ease), transform .45s var(--ease); }
.apex-logo--hub:hover img {
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .65)) drop-shadow(0 0 28px rgba(225, 29, 46, .55));
	transform: scale(1.03);
}
.apex-logo--hub:hover::before { transform: scale(1.2); }
.apex-logo--hub:hover .apex-logo__glow { animation: apexBreathHot 1.4s var(--ease) infinite; }
@keyframes apexBreathHot {
	0%, 100% { opacity: .65; transform: scale(1.08); }
	50% { opacity: 1; transform: scale(1.5); }
}
@keyframes apexSpin { to { transform: rotate(360deg); } }

/* Nav */
.apex-nav { margin-left: auto; }
.apex-nav__list { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.apex-nav__list li { position: relative; }
.apex-nav__list > li > a {
	display: block;
	padding: 10px 14px;
	font-size: .88rem;
	font-weight: 500;
	letter-spacing: .04em;
	color: var(--muted);
}
.apex-nav__list > li > a:hover,
.apex-nav__list > li.current-menu-item > a,
.apex-nav__list > li.current-menu-ancestor > a { color: var(--text); }
.apex-nav__list > li.current-menu-item > a { box-shadow: inset 0 -2px 0 var(--red); }

.apex-nav__list .sub-menu {
	list-style: none;
	margin: 0; padding: 8px 0;
	position: absolute;
	top: 100%; left: 0;
	min-width: 240px;
	background: var(--surface);
	border: 1px solid var(--line);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
	z-index: 10;
}
.apex-nav__list li:hover > .sub-menu,
.apex-nav__list li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: none;
}
.apex-nav__list .sub-menu a {
	display: block;
	padding: 9px 18px;
	font-size: .86rem;
	color: var(--muted);
}
.apex-nav__list .sub-menu a:hover { color: var(--text); background: rgba(225, 29, 46, .07); }

.apex-header__utils { display: flex; align-items: center; gap: 6px; }
.apex-util {
	position: relative;
	display: inline-flex;
	padding: 10px;
	color: var(--muted);
}
.apex-util:hover { color: var(--text); }
.apex-cart-count {
	position: absolute;
	top: 2px; right: 0;
	min-width: 17px; height: 17px;
	background: var(--red);
	color: #fff;
	font-family: var(--font-mono);
	font-size: .66rem;
	line-height: 17px;
	text-align: center;
	border-radius: 50%;
	padding: 0 3px;
}
.apex-cart-count[hidden] { display: none; }

.apex-nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--line);
	width: 42px; height: 42px;
	position: relative;
	cursor: pointer;
}
.apex-nav-toggle__bar,
.apex-nav-toggle__bar::before,
.apex-nav-toggle__bar::after {
	content: "";
	position: absolute;
	left: 10px; right: 10px;
	height: 2px;
	background: var(--text);
	transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.apex-nav-toggle__bar { top: 50%; margin-top: -1px; }
.apex-nav-toggle__bar::before { left: 0; right: 0; top: -7px; }
.apex-nav-toggle__bar::after { left: 0; right: 0; top: 7px; }
body.apex-nav-open .apex-nav-toggle__bar { background: transparent; }
body.apex-nav-open .apex-nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
body.apex-nav-open .apex-nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* 7. Split hero ------------------------------------------------------------ */
.apex-hero {
	position: relative;
	display: flex;
	min-height: max(92vh, 640px);
	background: var(--bg);
	overflow: hidden;
}
.apex-hero__half {
	position: relative;
	flex: 1 1 50%;
	display: flex;
	align-items: flex-end;
	padding: clamp(80px, 12vh, 140px) clamp(28px, 4.5vw, 72px) clamp(56px, 9vh, 96px);
	transition: flex-grow .65s var(--ease);
	overflow: hidden;
}
.apex-hero__half:hover { flex-grow: 1.22; }
.apex-hero__half--consumer { border-right: 1px solid var(--line); }

.apex-hero__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 30%;
	transform: scale(1.02);
	transition: transform 1.2s var(--ease);
}
.apex-hero__half--consumer:hover .apex-hero__media { transform: scale(1.07); }
.apex-hero__half--business:hover .apex-hero__media--business { transform: scale(1.07); }
.apex-hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(11, 12, 14, .55) 0%, rgba(11, 12, 14, .15) 45%, rgba(11, 12, 14, .88) 100%);
}
.apex-hero__half--business {
	background:
		linear-gradient(160deg, #16181D 0%, #101115 70%);
}
.apex-hero__media--business { opacity: .5; filter: saturate(.85) brightness(.85); }
.apex-hero__scrim--business {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 12, 14, .5) 0%, rgba(11, 12, 14, .72) 55%, rgba(11, 12, 14, .95) 100%);
	pointer-events: none;
}

.apex-hero__grid-motif {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(166, 172, 182, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(166, 172, 182, .07) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 75%, transparent 100%);
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 75%, transparent 100%);
}
.apex-hero__content { position: relative; z-index: 2; max-width: 520px; }
.apex-hero__title { margin-bottom: .3em; }
.apex-hero__half--business .apex-hero__title { text-transform: uppercase; font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.apex-hero__lead { color: var(--muted); font-size: 1.05rem; max-width: 44ch; }
.apex-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.apex-hero__hub {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	z-index: 6;
}

/* 8. Paths ------------------------------------------------------------------ */
.apex-paths__row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.apex-paths__row + .apex-paths__row { margin-top: 20px; }
.apex-path-card {
	position: relative;
	display: block;
	background: var(--surface);
	border: 1px solid var(--line);
	padding: 30px 28px 56px;
	transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.apex-path-card::after {
	content: "";
	position: absolute;
	top: -1px; right: -1px;
	width: 14px; height: 14px;
	background: var(--bg);
	border-left: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	transform: translate(0, 0);
}
.apex-path-card:hover { transform: translateY(-4px); border-color: rgba(225, 29, 46, .55); }
.apex-path-card h3 { text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; }
.apex-path-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.apex-path-card__go {
	position: absolute;
	left: 28px; bottom: 20px;
	color: var(--red);
	font-size: 1.1rem;
	transition: transform .3s var(--ease);
}
.apex-path-card:hover .apex-path-card__go { transform: translateX(6px); }
.apex-path-card--business { background: var(--raised); }

/* 9. Spotlight --------------------------------------------------------------- */
.apex-spotlight {
	position: relative;
	overflow: hidden;
	padding: clamp(96px, 14vw, 180px) 0;
}
.apex-spotlight__video,
.apex-flagship__video {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.apex-spotlight__scrim,
.apex-flagship__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(11, 12, 14, .92) 0%, rgba(11, 12, 14, .55) 55%, rgba(11, 12, 14, .25) 100%);
}
.apex-spotlight__content { position: relative; z-index: 2; }
.apex-spotlight__title { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; }
.apex-spotlight__lead { color: var(--muted); max-width: 56ch; font-size: 1.06rem; }

.apex-statbar {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	padding: 0;
	margin: 40px 0;
	max-width: 880px;
}
.apex-statbar li {
	background: rgba(19, 21, 25, .88);
	padding: 20px 22px;
}
.apex-statbar__num { display: block; font-size: 1.5rem; font-weight: 500; color: var(--text); }
.apex-statbar__label { color: var(--muted); font-size: .82rem; letter-spacing: .04em; }
.apex-statbar--page { margin: clamp(40px, 6vw, 72px) auto; max-width: none; }
.apex-statbar--page li { background: var(--surface); }

/* 10. AI teaser ---------------------------------------------------------------- */
.apex-ai-teaser { background: var(--surface); border-block: 1px solid var(--line); }
.apex-ai-teaser__grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: clamp(36px, 6vw, 80px);
	align-items: center;
}
.apex-ai-teaser__panel {
	background: var(--bg);
	border: 1px solid var(--line);
	padding: 10px 26px;
}
.apex-ai-teaser__rows { margin: 0; }
.apex-ai-teaser__rows > div {
	display: flex;
	align-items: baseline;
	gap: 18px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}
.apex-ai-teaser__rows > div:last-child { border-bottom: 0; }
.apex-ai-teaser__rows dt { color: var(--red); min-width: 86px; font-size: .95rem; }
.apex-ai-teaser__rows dd { margin: 0; color: var(--muted); font-size: .92rem; }

/* 11. Product cards / shop ------------------------------------------------------ */
ul.products {
	list-style: none;
	margin: 0 0 48px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
/* WooCommerce's clearfix ::before/::after on ul.products become grid items
   and claim the first/last cells. Outranked by .woocommerce specificity, so
   match it and remove the boxes entirely. */
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce-page ul.products::before, .woocommerce-page ul.products::after,
ul.products::before, ul.products::after { content: none !important; display: none !important; }
/* Only real product/category cards may occupy grid cells — anything a plugin
   injects at loop start (stray divs, whitespace-only list items) is removed
   from the flow instead of claiming the first cell. */
ul.products > :not(li) { display: none !important; }
ul.products > li:empty { display: none; }
ul.products > li:not(:has(*)) { display: none; }

/* Category cards (when the catalog is set to show subcategories) */
li.apex-card--cat .apex-card__media img { width: 100%; height: 100%; object-fit: cover; }
.woocommerce-loop-category__title { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.woocommerce-loop-category__title a { color: var(--text); }
.woocommerce-loop-category__title .count { background: none; color: var(--muted); font-family: var(--font-mono); font-size: .8rem; }

li.apex-card, li.product {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	transition: transform .35s var(--ease), border-color .35s var(--ease);
	width: auto !important;
	margin: 0 !important;
	float: none !important;
}
li.apex-card:hover { transform: translateY(-4px); border-color: rgba(225, 29, 46, .5); }
.apex-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #0e0f12;
}
.apex-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .8s var(--ease);
}
li.apex-card:hover .apex-card__media img { transform: scale(1.05); }
.apex-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px 22px;
	flex: 1;
}
.apex-card__cat { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.apex-card__cat a { color: inherit; }
.woocommerce-loop-product__title { font-size: 1.05rem; margin: 0; }
.woocommerce-loop-product__title a { color: var(--text); }
ul.products .price, .apex-card .price {
	font-family: var(--font-mono);
	color: var(--text);
	font-size: 1rem;
}
.price del { color: var(--muted); opacity: .7; }
.price ins { text-decoration: none; color: var(--red); }
.apex-tailored { color: var(--muted); font-family: var(--font-mono); font-size: .92rem; letter-spacing: .03em; }
.apex-card__actions {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 16px;
	padding-top: 10px;
}
.apex-card__actions .button { padding: 11px 18px; font-size: .74rem; }
.apex-card__more { font-size: .85rem; color: var(--muted); }
.apex-card__more:hover { color: var(--text); }
span.onsale {
	position: absolute;
	top: 14px; right: 14px;
	z-index: 2;
	background: var(--red);
	color: #fff;
	font-family: var(--font-display);
	font-size: .7rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 5px 10px;
}
.apex-featured__more { text-align: center; }

.woocommerce-result-count { color: var(--muted); font-size: .9rem; margin: 0 0 24px; }
.woocommerce-ordering { margin: 0 0 24px; }
.woocommerce-ordering select { width: auto; min-width: 220px; }
ul.products { clear: both; }

.apex-crumbs { font-size: .78rem; color: var(--muted); padding-top: clamp(24px, 4vw, 40px); letter-spacing: .04em; }
.apex-crumbs a { color: var(--muted); }
.apex-crumbs a:hover { color: var(--text); }
.apex-crumbs span[aria-current] { color: var(--text); }
.apex-crumbs + .apex-page-head { padding-top: 16px; }

.apex-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 36px; }
.apex-chip {
	display: inline-block;
	border: 1px solid var(--line);
	color: var(--muted);
	font-family: var(--font-display);
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 9px 16px;
	transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.apex-chip:hover { color: var(--text); border-color: rgba(225, 29, 46, .55); }
.apex-chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }
nav.woocommerce-pagination ul {
	display: flex; gap: 8px; list-style: none; padding: 0; border: 0;
}
nav.woocommerce-pagination ul li { border: 0; }
nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span {
	display: block;
	padding: 10px 16px;
	border: 1px solid var(--line);
	color: var(--muted);
	font-family: var(--font-mono);
}
nav.woocommerce-pagination ul li span.current { border-color: var(--red); color: var(--text); }

/* 12. Business band / trust / CTA ------------------------------------------------ */
.apex-bizband { background: var(--surface); border-block: 1px solid var(--line); }
.apex-bizband__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.apex-biz-card {
	display: block;
	background: var(--raised);
	border: 1px solid var(--line);
	padding: 28px;
	transition: border-color .3s var(--ease), transform .3s var(--ease);
	position: relative;
}
.apex-biz-card:hover { border-color: rgba(225, 29, 46, .5); transform: translateY(-3px); }
.apex-biz-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; }
.apex-biz-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.apex-biz-card--cta { background: linear-gradient(150deg, var(--red-deep), #4d0a10 80%); border-color: rgba(225, 29, 46, .5); }
.apex-biz-card--cta p { color: rgba(255, 255, 255, .8); }

.apex-trust { border-bottom: 1px solid var(--line); }
.apex-trust__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 36px;
}
.apex-trust__item { border-top: 2px solid var(--red); padding-top: 20px; }
.apex-trust__item h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; }
.apex-trust__item p { color: var(--muted); font-size: .92rem; margin: 0; }

.apex-cta__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.apex-cta__panel {
	background: var(--surface);
	border: 1px solid var(--line);
	padding: clamp(36px, 5vw, 56px);
}
.apex-cta__panel--business { background: var(--raised); }
.apex-cta__panel h2 { text-transform: uppercase; }
.apex-cta__panel p { color: var(--muted); }

/* 13. Quote band / process --------------------------------------------------------- */
.apex-quoteband { background: var(--surface); border-top: 1px solid var(--line); margin-top: clamp(48px, 8vw, 96px); }
.apex-quoteband__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}
.apex-quoteband h2 { margin-bottom: .25em; }
.apex-quoteband p { color: var(--muted); margin: 0; max-width: 56ch; }
.apex-quoteband__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.apex-process { margin-top: clamp(48px, 8vw, 96px); }
.apex-process__steps {
	list-style: none;
	counter-reset: apexstep;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	padding: 0;
	margin: 0;
}
.apex-process__steps li {
	counter-increment: apexstep;
	background: var(--surface);
	border: 1px solid var(--line);
	padding: 26px 24px;
	position: relative;
}
.apex-process__steps li::before {
	content: counter(apexstep, decimal-leading-zero);
	display: block;
	font-family: var(--font-mono);
	color: var(--red);
	font-size: .85rem;
	margin-bottom: 12px;
}
.apex-process__steps h3 { font-size: .98rem; text-transform: uppercase; letter-spacing: .06em; }
.apex-process__steps p { color: var(--muted); font-size: .92rem; margin: 0; }

/* 14. Footer --------------------------------------------------------------------- */
.apex-footer {
	background: #08090B;
	border-top: 1px solid var(--line);
	padding: clamp(48px, 7vw, 80px) 0 32px;
	margin-top: clamp(56px, 9vw, 120px);
}
body.home .apex-footer, .apex-business + .apex-footer { margin-top: 0; }
.apex-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 48px;
	border-bottom: 1px solid var(--line);
}
.apex-footer__tag { color: var(--muted); font-size: .92rem; margin-top: 18px; max-width: 36ch; }
.apex-footer__col h2 {
	font-size: .8rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 18px;
}
.apex-footer__col ul { list-style: none; margin: 0; padding: 0; }
.apex-footer__col li { margin-bottom: 10px; }
.apex-footer__col a { color: var(--muted); font-size: .94rem; }
.apex-footer__col a:hover { color: var(--text); }
.apex-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	padding-top: 24px;
	color: var(--muted);
	font-size: .82rem;
}
.apex-footer__legal p { margin: 0; }
.apex-footer__legal-links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }

.apex-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.apex-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border: 1px solid var(--line);
	color: var(--muted);
	transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.apex-social:hover { color: var(--text); border-color: var(--red); transform: translateY(-2px); }

/* 15. Prose / content pages -------------------------------------------------------- */
.apex-prose { color: var(--muted); font-size: 1.02rem; max-width: 72ch; }
.apex-prose--lead { font-size: 1.12rem; margin-bottom: clamp(36px, 6vw, 64px); }
.apex-prose--pad { margin-top: clamp(36px, 6vw, 64px); }
.apex-page-wide { min-width: 0; }
.apex-prose h2, .apex-prose h3 { color: var(--text); margin-top: 1.6em; }
.apex-prose a { color: var(--red); }
.apex-prose ul { padding-left: 20px; }
.apex-prose li { margin-bottom: .5em; }
.apex-prose strong { color: var(--text); }
.apex-prose details {
	background: var(--surface);
	border: 1px solid var(--line);
	padding: 18px 22px;
	margin-bottom: 12px;
}
.apex-prose summary {
	cursor: pointer;
	color: var(--text);
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: .03em;
}
.apex-prose details[open] summary { margin-bottom: 10px; }

.apex-404 { padding: 120px 0; text-align: center; }
.apex-404 h1 { font-size: clamp(4rem, 12vw, 8rem); color: var(--raised); -webkit-text-stroke: 1px var(--line); margin: 0; }
.apex-404 .apex-hero__actions { justify-content: center; }

.apex-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.apex-post-card { background: var(--surface); border: 1px solid var(--line); padding-bottom: 20px; }
.apex-post-card__media { display: block; margin-bottom: 16px; }
.apex-post-card__title { font-size: 1.05rem; padding: 0 20px; }
.apex-post-card__excerpt { color: var(--muted); font-size: .92rem; padding: 0 20px; }
.apex-single-media { margin-bottom: 32px; }

.apex-contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }

/* 16. Forms (global dark fields) ------------------------------------------------------ */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="number"], input[type="search"], input[type="date"],
select, textarea {
	width: 100%;
	background: var(--raised);
	border: 1px solid var(--line);
	color: var(--text);
	font: inherit;
	font-size: .96rem;
	padding: 12px 14px;
	border-radius: 0;
	transition: border-color .25s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}
select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A6ACB6' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}
textarea { resize: vertical; min-height: 84px; max-height: 340px; }
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--red);
	box-shadow: 0 0 0 3px rgba(225, 29, 46, .12);
}

.apex-phone { display: flex; gap: 10px; margin-top: 7px; }
.apex-phone select { width: 132px; flex: none; margin-top: 0; }
.apex-phone input { flex: 1; margin-top: 0; }
label { font-size: .84rem; color: var(--muted); letter-spacing: .03em; }
label input, label select, label textarea { margin-top: 7px; color: var(--text); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--red); }
input[type="file"] { padding: 9px; font-size: .85rem; }

/* 17. Quote form ------------------------------------------------------------------------ */
.apex-quote-form {
	background: var(--surface);
	border: 1px solid var(--line);
	padding: clamp(24px, 4vw, 44px);
	margin: 24px 0 64px;
}
.apex-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }
.apex-form-error {
	background: rgba(225, 29, 46, .12);
	border: 1px solid rgba(225, 29, 46, .5);
	color: var(--text);
	padding: 16px 20px;
	margin-bottom: 24px;
	font-size: .94rem;
}
.apex-steps-nav {
	list-style: none;
	display: flex;
	gap: 8px;
	padding: 0;
	margin: 0 0 32px;
	counter-reset: apexq;
}
.apex-steps-nav li {
	counter-increment: apexq;
	flex: 1;
	font-family: var(--font-display);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
	border-top: 2px solid var(--line);
	padding-top: 10px;
	transition: color .3s, border-color .3s;
}
.apex-steps-nav li::before { content: counter(apexq, decimal-leading-zero) " "; font-family: var(--font-mono); color: inherit; }
.apex-steps-nav li.is-active { color: var(--text); border-color: var(--red); }
.apex-steps-nav li.is-done { color: var(--red); border-color: var(--red-deep); }

.apex-step { display: none; border: 0; padding: 0; margin: 0; min-inline-size: auto; }
.apex-step.is-active { display: block; animation: apexStepIn .35s var(--ease); }
@keyframes apexStepIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}
.apex-step legend {
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 18px;
	padding: 0;
}
.apex-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.apex-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 20px; }
.apex-quote-form label, .apex-selector__form label { display: block; margin-bottom: 14px; }
.apex-fieldset-label {
	font-family: var(--font-display);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--red);
	margin: 16px 0 12px;
}
.apex-ai-fields, .apex-type-fields { border-left: 2px solid var(--red-deep); padding-left: 20px; margin-top: 8px; }
.apex-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 14px; }
.apex-checks label { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: .92rem; margin: 0; }
.apex-form-actions { display: flex; gap: 14px; margin-top: 28px; }
.apex-form-actions [hidden] { display: none !important; }
.apex-form-footnote { color: var(--muted); font-size: .84rem; margin-top: 18px; }
.apex-quote-success {
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 2px solid var(--red);
	padding: clamp(32px, 5vw, 56px);
	margin: 24px 0 64px;
}
.apex-quote-success p { color: var(--muted); max-width: 60ch; }

/* 18. Selector ----------------------------------------------------------------------------- */
.apex-selector { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); margin-bottom: clamp(48px, 7vw, 80px); }
.apex-selector__results { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.apex-sel-card {
	background: var(--bg);
	border: 1px solid var(--line);
	border-top: 2px solid var(--red);
	padding: 26px;
}
.apex-sel-card--up { border-top-color: var(--line); }
.apex-sel-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.apex-sel-card__fit { color: var(--red); font-family: var(--font-mono); font-size: .8rem; margin-bottom: 12px; }
.apex-sel-card--up .apex-sel-card__fit { color: var(--muted); }
.apex-sel-card__meta { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.apex-aimath { margin-bottom: clamp(40px, 6vw, 72px); }

/* 19. Spec tables --------------------------------------------------------------------------- */
.apex-table-wrap { overflow-x: auto; }
.apex-spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.apex-spec-table th, .apex-spec-table td {
	text-align: left;
	padding: 14px 18px;
	border-bottom: 1px solid var(--line);
	font-size: .94rem;
}
.apex-spec-table thead th { background: var(--raised); font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; font-size: .76rem; color: var(--muted); }
.apex-spec-table tbody th { color: var(--muted); font-weight: 500; width: 32%; background: var(--surface); }
.apex-spec-table td { color: var(--text); }

/* 20. Flagship page --------------------------------------------------------------------------- */
.apex-flagship__hero {
	position: relative;
	min-height: max(88vh, 600px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	margin-top: calc(var(--header-h) * -1);
}
body:not(.home) .apex-flagship__hero { margin-top: calc(var(--header-h) * -1); }
.apex-flagship__hero-content { position: relative; z-index: 2; padding-bottom: clamp(48px, 8vh, 88px); }
.apex-flagship__title { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: .2em; }
.apex-flagship__price { font-family: var(--font-mono); font-size: 1.25rem; color: var(--text); }
.apex-flagship__price del { color: var(--muted); }
.apex-flagship__price ins { text-decoration: none; }

/* Legibility over video/photo backgrounds */
.apex-flagship__hero .apex-eyebrow,
.apex-hero .apex-eyebrow {
	color: #ff4753;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .9), 0 0 26px rgba(0, 0, 0, .6);
}
.apex-flagship__hero .apex-hero__actions .apex-btn--ghost,
.apex-hero .apex-hero__actions .apex-btn--ghost {
	background: rgba(11, 12, 14, .58);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: inset 0 0 0 1px rgba(166, 172, 182, .55);
	text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.apex-flagship__hero .apex-hero__actions .apex-btn--ghost:hover,
.apex-hero .apex-hero__actions .apex-btn--ghost:hover {
	background: rgba(11, 12, 14, .78);
	box-shadow: inset 0 0 0 1px var(--red);
}

.apex-chapter {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: clamp(32px, 6vw, 80px);
	align-items: center;
	padding: clamp(36px, 6vw, 72px) 0;
	border-bottom: 1px solid var(--line);
}
.apex-chapter--flip .apex-chapter__media { order: 2; }
.apex-chapter__media img { border: 1px solid var(--line); width: 100%; height: auto; }
.apex-chapter__body h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.apex-chapter__body p { color: var(--muted); font-size: 1.02rem; max-width: 56ch; }

.apex-engineering { padding: clamp(48px, 7vw, 88px) 0 0; }
.apex-specs { padding-top: clamp(48px, 7vw, 88px); }
.apex-gallery { padding-top: clamp(48px, 7vw, 88px); }
.apex-gallery__grid { columns: 3; column-gap: 16px; }
.apex-gallery__item {
	display: block;
	border: 1px solid var(--line);
	overflow: hidden;
	background: #0e0f12;
	margin: 0 0 16px;
	break-inside: avoid;
}
.apex-gallery__item img { width: 100%; height: auto; transition: transform .7s var(--ease); }
.apex-gallery__item:hover img { transform: scale(1.04); }

.apex-lightbox {
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	border: 0;
	padding: 0;
	background: rgba(8, 9, 11, .97);
	display: grid;
	grid-template-rows: 1fr auto;
}
.apex-lightbox:not([open]) { display: none; }
.apex-lightbox::backdrop { background: rgba(8, 9, 11, .9); }
.apex-lightbox__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 56px 16px 8px;
	min-height: 0;
	touch-action: pan-y;
	overscroll-behavior: contain;
}
html.apex-lock, html.apex-lock body { overflow: hidden; }
.apex-lightbox img {
	max-width: min(1200px, 100%);
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	opacity: 1;
	transition: opacity .22s var(--ease), transform .22s var(--ease);
	will-change: transform, opacity;
}
.apex-lightbox img.is-fading { opacity: 0; }
.apex-lightbox img.is-dragging { transition: none; }
.apex-lightbox__close {
	position: absolute;
	top: 12px; right: 12px;
	background: var(--raised);
	border: 1px solid var(--line);
	color: var(--text);
	width: 42px; height: 42px;
	font-size: 1.3rem;
	cursor: pointer;
	z-index: 2;
	transition: border-color .25s var(--ease);
}
.apex-lightbox__close:hover { border-color: var(--red); }
.apex-lightbox__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.apex-lightbox__count { color: var(--muted); font-size: .85rem; min-width: 64px; text-align: center; }
.apex-lightbox__nav {
	background: var(--raised);
	border: 1px solid var(--line);
	color: var(--text);
	width: 56px; height: 44px;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: border-color .25s var(--ease), background .25s var(--ease);
}
.apex-lightbox__nav:hover { border-color: var(--red); background: #22262d; }

.apex-buy { padding: clamp(56px, 8vw, 100px) 0; }
.apex-buy__card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 64px);
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 2px solid var(--red);
	padding: clamp(28px, 5vw, 56px);
}
.apex-buy__intro p { color: var(--muted); }
.apex-buy__note {
	font-size: .85rem;
	border-left: 2px solid var(--red-deep);
	padding-left: 14px;
}
.apex-buy__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	border-top: 1px solid var(--line);
	margin-top: 20px;
	padding-top: 16px;
}
.apex-buy__total-label { color: var(--muted); font-size: .9rem; }
.apex-buy__total-value { font-size: 1.3rem; }

/* Variations form inside buy module + standard single product */
form.variations_form, form.cart { margin-top: 8px; }
table.variations { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
table.variations th.label { text-align: left; color: var(--muted); font-size: .85rem; padding: 8px 12px 8px 0; width: 90px; }
table.variations td.value { padding: 8px 0; }
.reset_variations { font-size: .8rem; color: var(--muted); display: inline-block; margin-top: 8px; }
.woocommerce-variation-price { margin: 10px 0; font-family: var(--font-mono); font-size: 1.15rem; }
.woocommerce-variation-availability { color: var(--muted); font-size: .9rem; }
.single_variation_wrap .woocommerce-variation { margin-bottom: 12px; }

.apex-storage-options { margin: 18px 0; }
.apex-storage-options__label {
	font-family: var(--font-display);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: 10px;
}
.apex-storage-option {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--raised);
	border: 1px solid var(--line);
	padding: 13px 16px;
	margin-bottom: 8px;
	cursor: pointer;
	color: var(--text);
	transition: border-color .25s var(--ease);
}
.apex-storage-option:hover { border-color: rgba(225, 29, 46, .5); }
.apex-storage-option:has(input:checked) { border-color: var(--red); }
.apex-storage-option__name { flex: 1; font-size: .94rem; }
.apex-storage-option__price { font-family: var(--font-mono); font-size: .88rem; color: var(--muted); }

.quantity { display: inline-flex; margin-right: 12px; }
.quantity .qty { width: 84px; text-align: center; }
form.cart .single_add_to_cart_button { vertical-align: top; }

.apex-quote-cta { margin: 18px 0; }
.apex-quote-cta__note { color: var(--muted); font-size: .9rem; margin-top: 12px; max-width: 46ch; }

/* 21. Single product (non-flagship) ------------------------------------------------------------ */
.single-product div.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); position: relative; }
.single-product div.product div.images, .single-product div.product div.summary { width: 100% !important; float: none !important; margin: 0 !important; }
.single-product div.product .woocommerce-tabs, .single-product div.product .related, .single-product div.product .upsells { grid-column: 1 / -1; }
.single-product div.product .product_title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.single-product div.product p.price { font-family: var(--font-mono); font-size: 1.3rem; }
.woocommerce-product-details__short-description { color: var(--muted); }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 48px 0 0; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs li { border: 1px solid var(--line); border-bottom: 0; background: var(--surface); padding: 0; margin: 0; border-radius: 0; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 22px; color: var(--muted); font-size: .88rem; }
.woocommerce-tabs ul.tabs li.active { background: var(--raised); }
.woocommerce-tabs ul.tabs li.active a { color: var(--text); }
.woocommerce-tabs .panel { padding: 28px 0; color: var(--muted); }
.related > h2, .upsells > h2 { margin-top: 56px; }
.woocommerce div.product div.images img { border: 1px solid var(--line); }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 10px; margin-top: 12px; padding: 0; }
.woocommerce div.product div.images .flex-control-thumbs li { list-style: none; width: 84px; }
.woocommerce div.product div.images .flex-control-thumbs img { opacity: .55; cursor: pointer; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active { opacity: 1; border: 1px solid var(--red); }

/* 22. Notices ------------------------------------------------------------------------------------ */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	position: relative;
	list-style: none;
	margin: 0 0 28px;
	padding: 16px 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-left: 3px solid var(--red);
	color: var(--text);
	font-size: .92rem;
	line-height: 1.6;
}
/* WooCommerce positions an icon-font glyph via ::before — it collides with
   our layout and renders as a stray colored box. Remove it everywhere. */
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before,
.woocommerce-message::after, .woocommerce-info::after, .woocommerce-error::after { content: none !important; display: none !important; }
.woocommerce-error { border-left-color: #ff5c5c; }
.woocommerce-error li { margin: 0; padding: 0; list-style: none; }
.woocommerce-error li + li { margin-top: 8px; }
.woocommerce-info { border-left-color: var(--muted); }
.woocommerce-message { border-left-color: #4caf6e; }
.woocommerce-message a, .woocommerce-info a, .woocommerce-error a { color: #ff4753; }
.woocommerce-message a.button, .woocommerce-info a.button, .woocommerce-error a.button { margin-left: 12px; padding: 9px 16px; font-size: .72rem; }
/* Coupon toggle: quiet single-line bar instead of a shouting notice */
.woocommerce-form-coupon-toggle .woocommerce-info {
	border-left-color: var(--line);
	background: transparent;
	border-style: dashed;
	color: var(--muted);
	padding: 13px 18px;
	font-size: .86rem;
}
.woocommerce-form-coupon-toggle .woocommerce-info a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-form-coupon-toggle .woocommerce-info a:hover { color: #ff4753; }

/* 23. Cart & checkout ------------------------------------------------------------------------------ */
table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--line);
	margin-bottom: 28px;
}
table.shop_table th, table.shop_table td {
	padding: 16px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	font-size: .94rem;
}
table.shop_table thead th { background: var(--surface); font-family: var(--font-display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
table.shop_table td.product-name a { color: var(--text); }
table.shop_table .product-thumbnail img { width: 64px; border: 1px solid var(--line); }
table.shop_table td.actions { text-align: right; }
table.shop_table td.actions .coupon { float: left; display: flex; gap: 10px; }
table.shop_table td.actions .coupon .input-text { width: 180px; }
a.remove { color: var(--muted) !important; font-size: 1.3rem; }
a.remove:hover { color: var(--red) !important; background: transparent !important; }
.cart_totals h2, #order_review_heading { font-size: 1.2rem; }
.cart-collaterals .cart_totals { width: 100%; max-width: 460px; margin-left: auto; float: none; }
.wc-proceed-to-checkout { padding-top: 8px; }

form.woocommerce-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	grid-template-areas:
		"express express"
		"sep     sep"
		"details heading"
		"details review"
		"details .";
	grid-template-rows: auto auto auto auto 1fr;
	gap: 18px clamp(32px, 5vw, 56px);
	align-items: start;
}
/* Stripe injects its express-pay element inside the form; pin it on top,
   full width, instead of letting auto-placement dump it after the grid. */
form.woocommerce-checkout #wc-stripe-express-checkout-element { grid-area: express; }
form.woocommerce-checkout #wc-stripe-express-checkout-button-separator { grid-area: sep; margin: 0; }
form.woocommerce-checkout #customer_details { grid-area: details; }
form.woocommerce-checkout #order_review_heading { grid-area: heading; margin: 0; }
form.woocommerce-checkout #order_review {
	grid-area: review;
	align-self: start;
	position: sticky;
	top: calc(var(--header-h) + 24px);
	background: var(--surface);
	border: 1px solid var(--line);
	padding: 28px;
}
form .form-row { margin: 0 0 16px; padding: 0; }
form .form-row label { display: block; margin-bottom: 6px; }
form .form-row .woocommerce-input-wrapper { display: block; }
.col2-set .col-1, .col2-set .col-2 { width: 100% !important; float: none !important; }
#payment { background: transparent !important; }
#payment ul.payment_methods { list-style: none; padding: 0 0 16px; margin: 0; border-bottom: 1px solid var(--line); }
#payment div.payment_box { background: var(--raised) !important; color: var(--muted); padding: 14px 16px; font-size: .88rem; }
#payment div.payment_box::before { display: none; }
.apex-checkout-note { color: var(--muted); font-size: .84rem; margin-top: 16px; }
.woocommerce-terms-and-conditions-wrapper { color: var(--muted); font-size: .86rem; }

/* 24. Account portal --------------------------------------------------------------------------------- */
body.woocommerce-account .woocommerce,
.apex-main .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	grid-template-areas:
		"notices notices"
		"nav     content";
	gap: 24px clamp(32px, 5vw, 64px);
	align-items: start;
	padding: 8px 0 clamp(32px, 5vw, 56px);
}
/* WooCommerce renders three children (notices, nav, content) — pin each to
   its area so auto-placement can never scramble the layout, and neutralize
   WooCommerce core's float/width:30% which shrank the nav inside its track. */
.woocommerce-account .woocommerce-notices-wrapper { grid-area: notices; }
.woocommerce-MyAccount-navigation {
	grid-area: nav;
	float: none !important;
	width: 100% !important;
}
.woocommerce-MyAccount-content {
	grid-area: content;
	float: none !important;
	width: 100% !important;
	transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.woocommerce-MyAccount-content.is-loading { opacity: .35; }
.woocommerce-MyAccount-content.is-entering { opacity: 0; transform: translateY(10px); }
.woocommerce-MyAccount-content { scroll-margin-top: calc(var(--header-h) + 20px); }
body.woocommerce-account.woocommerce-checkout .woocommerce { display: block; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); background: var(--surface); }
.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 15px 22px;
	color: var(--muted);
	font-size: .95rem;
	border-bottom: 1px solid var(--line);
}
.woocommerce-MyAccount-navigation li:last-child a { border-bottom: 0; }
.woocommerce-MyAccount-navigation li a {
	position: relative;
	transition: color .25s var(--ease), background .25s var(--ease), padding-left .25s var(--ease);
}
.woocommerce-MyAccount-navigation li a::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 2px;
	background: var(--red);
	transform: scaleY(0);
	transition: transform .25s var(--ease);
}
.woocommerce-MyAccount-navigation li.is-active a {
	color: var(--text);
	background: var(--raised);
}
.woocommerce-MyAccount-navigation li.is-active a::before { transform: scaleY(1); }
.woocommerce-MyAccount-navigation li a:hover { color: var(--text); padding-left: 26px; }
.woocommerce-MyAccount-content { min-width: 0; }

.apex-portal-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.apex-portal-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 2px solid var(--red);
	padding: 26px;
}
.apex-portal-card h3, .apex-portal-card h2 { font-size: 1.05rem; margin-bottom: 8px; }
.apex-portal-card p { color: var(--muted); font-size: .92rem; }
.apex-portal-card .apex-btn { margin-top: 8px; }
.apex-portal-card__stage { color: var(--text) !important; font-family: var(--font-mono); font-size: .9rem; }
.apex-progress {
	height: 6px;
	background: var(--raised);
	border: 1px solid var(--line);
	margin: 14px 0 18px;
}
.apex-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red)); }

.apex-build-order { background: var(--surface); border: 1px solid var(--line); padding: 28px; margin-bottom: 28px; }
.apex-build-order__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.apex-build-order__date { color: var(--muted); font-size: .86rem; font-family: var(--font-mono); }
.apex-build-order__items { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }

.apex-timeline { list-style: none; margin: 0; padding: 0; }
.apex-timeline__stage {
	position: relative;
	padding: 0 0 22px 34px;
}
.apex-timeline__stage::before {
	content: "";
	position: absolute;
	left: 7px; top: 18px; bottom: -2px;
	width: 2px;
	background: var(--line);
}
.apex-timeline__stage:last-child::before { display: none; }
.apex-timeline__marker {
	position: absolute;
	left: 0; top: 4px;
	width: 16px; height: 16px;
	border-radius: 50%;
	border: 2px solid var(--line);
	background: var(--bg);
}
.apex-timeline__stage.is-done .apex-timeline__marker { background: var(--muted); border-color: var(--muted); }
.apex-timeline__stage.is-done::before { background: var(--muted); }
.apex-timeline__stage.is-current .apex-timeline__marker {
	background: var(--red);
	border-color: var(--red);
	box-shadow: 0 0 0 5px rgba(225, 29, 46, .18);
}
.apex-timeline__label { display: inline-block; font-size: .95rem; color: var(--muted); }
.apex-timeline__stage.is-current .apex-timeline__label { color: var(--text); font-weight: 600; }
.apex-timeline__stage.is-done .apex-timeline__label { color: var(--text); }
.apex-timeline__time { display: inline-block; margin-left: 12px; font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.apex-timeline__note { display: block; color: var(--muted); font-size: .86rem; margin-top: 4px; max-width: 56ch; }

.apex-empty { background: var(--surface); border: 1px dashed var(--line); padding: 40px; text-align: center; }
.apex-empty p { color: var(--muted); max-width: 52ch; margin: 0 auto 18px; }

.apex-systems-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.apex-system-card { background: var(--surface); border: 1px solid var(--line); padding: 26px; }
.apex-system-card__meta { margin: 14px 0 18px; }
.apex-system-card__meta > div { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.apex-system-card__meta dt { color: var(--muted); min-width: 90px; }
.apex-system-card__meta dd { margin: 0; color: var(--text); }

/* Quote detail (client portal) */
.apex-quote-link { color: var(--text); font-weight: 600; }
.apex-quote-link:hover { color: #ff4753; }
.apex-quote-link__replies { color: var(--red); font-size: .78rem; font-family: var(--font-mono); margin-left: 8px; }
.apex-qd__back { color: var(--muted); font-size: .85rem; }
.apex-qd__back:hover { color: var(--text); }
.apex-qd__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.apex-qd__head h2 { margin: 0; font-size: 1.4rem; }
.apex-qd__summary { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 0 0 26px; border: 1px solid var(--line); background: var(--surface); padding: 16px 20px; }
.apex-qd__summary div { min-width: 120px; }
.apex-qd__summary dt { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 2px; }
.apex-qd__summary dd { margin: 0; color: var(--text); font-size: .95rem; }
.apex-qd__offer { border: 1px solid var(--line); border-top: 3px solid var(--red); background: var(--surface); padding: 22px 24px; margin: 0 0 28px; }
.apex-qd__price { font-size: 1.9rem; color: var(--text); margin: 6px 0 16px; }
.apex-qd__paid { color: #4caf6e; font-weight: 600; margin: 6px 0 14px; }
.apex-qd__note { color: var(--muted); font-size: .82rem; margin: 12px 0 0; }
.apex-qd__thread-title { font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px; }
.apex-qd__none { color: var(--muted); }
.apex-qd__thread { display: grid; gap: 14px; }
.apex-qd__msg { border: 1px solid var(--line); background: var(--surface); padding: 18px 22px; border-left: 2px solid var(--red); }
.apex-qd__msg header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.apex-qd__msg header strong { letter-spacing: .12em; font-size: .8rem; }
.apex-qd__msg header time { color: var(--muted); font-size: .8rem; font-family: var(--font-mono); }
.apex-qd__msg-body { color: #d5d9de; font-size: .95rem; line-height: 1.7; }
.apex-qd__msg-body img { max-width: 100%; height: auto; }
.apex-qd__msg-body a { color: #ff4753; }
.apex-qd__file { display: inline-block; margin-top: 12px; border: 1px solid var(--line); padding: 9px 14px; color: var(--text); font-size: .85rem; transition: border-color .25s var(--ease); }
.apex-qd__file:hover { border-color: var(--red); }
.apex-qd__file span { color: var(--muted); }

.apex-quotes-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.apex-quotes-table th, .apex-quotes-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.apex-quotes-table thead th { background: var(--surface); color: var(--muted); font-family: var(--font-display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }

.apex-support__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.apex-support__note { color: var(--muted); font-size: .88rem; }
.apex-support > p:first-child { color: var(--muted); max-width: 64ch; }

.woocommerce-MyAccount-content table.shop_table { font-size: .92rem; }
.woocommerce-MyAccount-content .woocommerce-Address { background: var(--surface); border: 1px solid var(--line); padding: 22px; }
.woocommerce-MyAccount-content fieldset { border: 1px solid var(--line); padding: 20px; margin-bottom: 24px; }
.woocommerce-MyAccount-content legend { padding: 0 8px; color: var(--muted); }

/* Login / register */
.woocommerce-form-login, .woocommerce-form-register {
	max-width: 440px;
	background: var(--surface);
	border: 1px solid var(--line) !important;
	padding: 32px !important;
	margin: 0 !important;
	border-radius: 0 !important;
}
body.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
#customer_login { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
#customer_login .col-1, #customer_login .col-2 { width: 100% !important; float: none !important; }
#customer_login { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
#customer_login::before, #customer_login::after { content: none !important; display: none !important; }
#customer_login > div { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); }
#customer_login h2 { font-size: 1.2rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 18px; }
@media (max-width: 860px) {
	#customer_login { grid-template-columns: 1fr; }
}
.woocommerce-LostPassword { font-size: .86rem; }

/* 25. WC misc ------------------------------------------------------------------------------------------ */
.woocommerce form .show-password-input { display: none; }
.woocommerce-breadcrumb { display: none; }
.apex-quote-button { white-space: nowrap; }

/* 26. Responsive ---------------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
	.apex-bizband__grid, .apex-paths__row { grid-template-columns: 1fr 1fr; }
	.apex-process__steps { grid-template-columns: 1fr 1fr; }
	.apex-trust__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.apex-footer__grid { grid-template-columns: 1fr 1fr; }
	ul.products, .apex-post-grid { grid-template-columns: 1fr 1fr; }
	.apex-gallery__grid { columns: 2; }
	.apex-contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
	.apex-nav {
		position: fixed;
		top: var(--header-h);
		left: 0; right: 0; bottom: 0;
		margin: 0;
		background: rgba(11, 12, 14, .98);
		border-top: 1px solid var(--line);
		padding: 24px;
		transform: translateX(100%);
		transition: transform .4s var(--ease);
		overflow-y: auto;
		z-index: 70;
	}
	body.apex-nav-open .apex-nav { transform: none; }
	body.apex-nav-open { overflow: hidden; }
	.apex-nav__list { flex-direction: column; gap: 0; }
	.apex-nav__list > li > a { font-size: 1.1rem; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
	.apex-nav__list .sub-menu {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		border: 0; background: transparent;
		padding: 0 0 8px 18px;
	}
	.apex-nav__list .sub-menu a { font-size: .96rem; padding: 10px 4px; }
	.apex-nav-toggle { display: block; }
	.apex-header__utils { margin-left: auto; }

	.single-product div.product, .apex-buy__card, .apex-chapter { grid-template-columns: 1fr; }
	.apex-chapter--flip .apex-chapter__media { order: 0; }
	form.woocommerce-checkout {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		grid-template-areas: "express" "sep" "details" "heading" "review";
	}
	form.woocommerce-checkout #order_review { position: static; }
	body.woocommerce-account .woocommerce,
	.apex-main .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: 1fr;
		grid-template-areas: "notices" "nav" "content";
	}
	.apex-ai-teaser__grid { grid-template-columns: 1fr; }
	.apex-cta__grid { grid-template-columns: 1fr; }
	.apex-selector__results, .apex-portal-overview, .apex-systems-grid, .apex-support__grid { grid-template-columns: 1fr; }
	#customer_login { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
	.apex-hero { flex-direction: column; min-height: 0; }
	.apex-hero__half { flex: none; min-height: 70vh; padding-top: clamp(96px, 16vh, 140px); }
	.apex-hero__half--consumer { order: 1; border-right: 0; border-bottom: 1px solid var(--line); }
	.apex-hero__hub {
		order: 2;
		position: relative;
		left: auto; top: auto;
		transform: none;
		display: flex;
		justify-content: center;
		margin: -64px auto;
		z-index: 6;
	}
	.apex-hero__half--business { order: 3; padding-top: clamp(110px, 18vh, 150px); }
	.apex-hero__half:hover { flex-grow: 0; }
}

@media (max-width: 680px) {
	body { font-size: 15px; }
	.apex-container, .apex-container--narrow, .apex-header__inner { width: calc(100% - 36px); }
	.apex-paths__row, .apex-bizband__grid, .apex-process__steps, .apex-trust__grid,
	ul.products, .apex-post-grid, .apex-grid-2, .apex-grid-3, .apex-gallery__grid { grid-template-columns: 1fr; }
	.apex-statbar { grid-template-columns: 1fr 1fr; }
	.apex-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.apex-brand__word { display: none; }
	.apex-steps-nav li { font-size: 0; }
	.apex-steps-nav li::before { font-size: .76rem; }
	table.shop_table td.actions .coupon { float: none; margin-bottom: 12px; }
	.apex-quoteband__inner { flex-direction: column; align-items: flex-start; }
	.apex-flagship__scrim {
		background: linear-gradient(180deg, rgba(11, 12, 14, .4) 0%, rgba(11, 12, 14, .5) 45%, rgba(11, 12, 14, .96) 100%);
	}
	.apex-hero__scrim {
		background: linear-gradient(180deg, rgba(11, 12, 14, .6) 0%, rgba(11, 12, 14, .3) 40%, rgba(11, 12, 14, .94) 100%);
	}
}

/* 27. Reduced motion -------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.rv { opacity: 1; transform: none; }
	.apex-logo__glow { animation: none; opacity: .4; }
	.apex-logo--hub::after { animation: none; }
}

/* Configurator (VANGUARD / AIW-49) ------------------------------------------------------------ */
.apex-config { margin: 0 0 22px; }
.apex-config__intro { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.apex-config__group { border: 1px solid var(--line); background: var(--surface); padding: 16px 18px 10px; margin: 0 0 16px; }
.apex-config__label { font-family: var(--font-display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); padding: 0 8px; }
.apex-config__option { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-bottom: 1px solid rgba(42, 46, 54, .55); cursor: pointer; transition: background .2s var(--ease); }
.apex-config__option:last-child { border-bottom: 0; }
.apex-config__option:hover { background: rgba(225, 29, 46, .05); }
.apex-config__option input { accent-color: var(--red); flex: 0 0 auto; }
.apex-config__name { flex: 1; font-size: .92rem; color: var(--text); }
.apex-config__delta { font-family: var(--font-mono); font-size: .85rem; color: var(--text); white-space: nowrap; }
.apex-config__delta--inc { color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.apex-config__delta .woocommerce-Price-amount { color: inherit; }
.apex-config__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--surface); padding: 16px 18px; margin: 18px 0 0; font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; }
.apex-config__total-value { font-size: 1.3rem; letter-spacing: 0; }

/* Homepage configurator CTA strip */
.apex-config-cta { margin: clamp(56px, 9vw, 96px) 0; }
.apex-config-cta__head { margin-bottom: 26px; }
.apex-config-cta__head h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 6px 0 0; }
.apex-config-cta__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.apex-config-cta__card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 24px 26px; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.apex-config-cta__card:hover { border-color: var(--red); transform: translateY(-3px); }
.apex-config-cta__name { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.apex-config-cta__price { color: var(--muted); font-family: var(--font-mono); font-size: .85rem; }
.apex-config-cta__go { margin-top: 10px; color: #ff4753; font-size: .85rem; letter-spacing: .04em; }

/* Mini cart ------------------------------------------------------------------------------------ */
.apex-cart-wrap { position: relative; display: inline-flex; }
.apex-minicart {
	position: absolute;
	top: calc(100% + 14px);
	right: -8px;
	width: 340px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-top: 3px solid var(--red);
	padding: 18px 20px;
	box-shadow: 0 22px 50px rgba(0, 0, 0, .5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
	z-index: 60;
}
.apex-cart-wrap.has-minicart:hover .apex-minicart,
.apex-cart-wrap.has-minicart:focus-within .apex-minicart {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
}
.apex-minicart::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.apex-minicart .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; }
.apex-minicart .woocommerce-mini-cart-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 10px 0; margin: 0; border-bottom: 1px solid rgba(42, 46, 54, .55); position: relative; }
.apex-minicart .woocommerce-mini-cart-item img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--line); float: none; margin: 0; grid-column: 1; grid-row: 1 / 3; }
.apex-minicart .woocommerce-mini-cart-item a:not(.remove) { color: var(--text); font-size: .88rem; line-height: 1.4; }
.apex-minicart .woocommerce-mini-cart-item .quantity { color: var(--muted); font-family: var(--font-mono); font-size: .8rem; }
.apex-minicart .woocommerce-mini-cart-item a.remove { position: absolute; right: 0; top: 10px; color: var(--muted) !important; font-size: 1.1rem; line-height: 1; width: 20px; height: 20px; text-align: center; }
.apex-minicart .woocommerce-mini-cart-item a.remove:hover { color: #ff4753 !important; background: transparent; }
.apex-minicart .woocommerce-mini-cart-item dl { display: none; }
.apex-minicart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 12px 0 4px; margin: 0; color: var(--text); border-bottom: 0; }
.apex-minicart .woocommerce-mini-cart__total .woocommerce-Price-amount { font-family: var(--font-mono); }
.apex-minicart .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 12px 0 0; }
.apex-minicart .woocommerce-mini-cart__buttons .button { width: 100%; text-align: center; margin: 0; }
.apex-minicart .woocommerce-mini-cart__empty-message { color: var(--muted); font-size: .88rem; margin: 4px 0; }
@media (max-width: 960px) {
	.apex-minicart { display: none; } /* hover has no meaning on touch; the icon goes straight to the cart */
}
