/*
Theme Name: Xact90 Square
Theme URI: https://xact90.com
Author: Created Workshop
Description: October 2026 redesign of the Xact90 storefront. Workshop greens shared with Created Workshop, real shop photography, Archivo type and a square-degree wordmark. Native WooCommerce templates; works with the Xact90 Core plugin.
Version: 2.1.0
Requires at least: 6.5
Requires PHP: 8.1
License: Proprietary
Text Domain: xact90
*/

/* ---------------------------------------------------------------- Fonts */
@font-face { font-family: "Archivo"; src: url("assets/fonts/Archivo-Variable.ttf") format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("assets/fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("assets/fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("assets/fonts/IBMPlexMono-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

/* ---------------------------------------------------------------- Tokens */
:root {
	/* Greens shared with Created Workshop (forest #2B3825, moss #788A6A, bench #EEEEE8), plus Xact90's own working green. */
	--paper: #EFEEE7;
	--paper-2: #E4E5DA;
	--card: #FBFAF6;
	--ink: #1B2118;
	--ink-2: #353B31;
	--steel: #596153;
	--rule: #D3D5C8;
	--line: #858C7C;        /* input and control borders: 3:1 on paper */
	--forest: #22301D;
	--green: #2E6B37;
	--green-deep: #1F4F27;
	--green-tint: #E1EBD6;
	--moss: #788A6A;
	--sprout: #B9D88C;
	--spark: #F0611A;       /* Created Workshop orange, used sparingly */
	--spark-ink: #B3460F;   /* orange for text on light backgrounds */
	--ok: #1F6B3A;
	--err: #A3261B;
	--sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--wrap: 1280px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 76px;
	--r: 10px;
	--r-lg: 18px;
	--shadow: 0 1px 2px rgba(27, 33, 24, .06), 0 8px 24px rgba(27, 33, 24, .08);
}

/* ---------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink-2); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--sans); line-height: 1.05; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); font-weight: 800; font-stretch: 115%; letter-spacing: -.035em; line-height: .96; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); font-weight: 780; font-stretch: 112%; letter-spacing: -.03em; }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 105%; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 1000; top: 8px; left: 8px; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--r); }
::selection { background: var(--sprout); color: var(--ink); }

.help-grid p.eyebrow, .maker-copy p.eyebrow, .launch-copy p.eyebrow { font-size: 13px; }

/* Square-degree mark */
.sq { display: inline-block; width: .62em; height: .62em; border: .17em solid currentColor; flex: none; vertical-align: .05em; }

/* Labels */
.eyebrow { display: flex; align-items: center; gap: .55em; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin: 0 0 1rem; }
.eyebrow .sq { color: var(--spark); }
.eyebrow-light { color: var(--sprout); }
.chip { display: inline-block; padding: 5px 10px; border-radius: 999px; background: rgba(251, 250, 246, .94); color: var(--ink); font-family: var(--mono); font-size: 12.5px; font-weight: 500; line-height: 1.3; box-shadow: 0 1px 3px rgba(0,0,0,.15); }

/* Buttons */
.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, button[type="submit"], .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: 12px 24px;
	font-family: var(--sans); font-size: 16px; font-weight: 650; font-stretch: 105%; letter-spacing: 0; line-height: 1.2; text-decoration: none;
	background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, button[type="submit"]:hover, .wp-block-button__link:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; transform: translateY(-1px); }
.button-primary, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce a.button-primary { background: var(--green); border-color: var(--green); color: #fff; }
.button-primary:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.text-link { font-size: 15px; font-weight: 650; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--spark); padding-bottom: 2px; white-space: nowrap; }
.text-link::after { content: " →"; }
.text-link:hover { color: var(--green); }

/* ---------------------------------------------------------------- Notice bar */
.notice-bar { background: var(--forest); color: #D7DDCC; font-size: 14px; }
.notice-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.notice-bar .sq { color: var(--spark); }
.notice-bar p { margin: 0; }
.notice-bar a { color: #fff; font-weight: 650; text-decoration: underline; text-decoration-color: var(--spark); text-decoration-thickness: 2px; }
.notice-bar a:hover { color: var(--sprout); }
.notice-bar :focus-visible { outline-color: var(--sprout); }

/* ---------------------------------------------------------------- Header and wordmark */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(239, 238, 231, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.admin-bar .site-header { top: 32px; }
.header-row { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.brand { display: block; flex: none; color: var(--ink); text-decoration: none; padding: 6px 0; }
.brand:hover { color: var(--ink); }
.logo { display: inline-flex; align-items: flex-start; font-family: var(--sans); font-size: 30px; font-weight: 850; font-stretch: 118%; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
.logo-90 { color: var(--green); margin-left: .02em; }
.logo-deg { width: .27em; height: .27em; border: .085em solid var(--spark); margin: .06em 0 0 .06em; flex: none; }
.primary-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a, .header-tools a { display: block; padding: 10px 14px; font-size: 15.5px; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: var(--r); }
.nav-links a:hover, .header-tools a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links .current-menu-item > a, .nav-links a[aria-current="page"] { color: var(--green); }
.nav-links li:first-child a { background: var(--green); color: #fff; padding-inline: 18px; margin-right: 6px; }
.nav-links li:first-child a:hover { background: var(--forest); color: #fff; }
.header-tools { display: flex; gap: 2px; border-left: 1px solid var(--rule); padding-left: 14px; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
	.js .menu-toggle { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; min-height: 44px; padding: 8px 16px; background: transparent; border: 1.5px solid var(--line); border-radius: var(--r); color: var(--ink); font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer; }
	.js .menu-toggle:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
	.menu-toggle-icon { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
	.menu-toggle[aria-expanded="true"] .menu-toggle-icon { border-bottom-color: transparent; height: 2px; }
	.js .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow); padding: 8px var(--gutter) 20px; flex-direction: column; align-items: stretch; gap: 8px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
	.js .primary-nav.is-open { display: flex; }
	.primary-nav { flex-wrap: wrap; }
	.nav-links { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-links a, .header-tools a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--rule); border-radius: 0; }
	.nav-links li:first-child a { padding: 14px 16px; margin: 8px 0; border: 0; border-radius: var(--r); }
	.header-tools { border: 0; padding: 0; flex-direction: column; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } .logo { font-size: 26px; } }

/* ---------------------------------------------------------------- Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head > p:last-child { font-size: 1.1rem; color: var(--steel); margin-bottom: 0; max-width: 620px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 48px; max-width: none; flex-wrap: wrap; }
.section-head-row h2 { margin-bottom: 0; }
.section-aside { max-width: 440px; margin: 0; font-size: 1.05rem; color: var(--steel); }

/* ---------------------------------------------------------------- Hero */
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 88px); }
.hero h1 { margin-bottom: .4em; }
.hero-text { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; max-width: 560px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: baseline; font-size: 15.5px; color: var(--steel); }
.hero-points li::before { content: ""; flex: none; width: 10px; height: 10px; border: 2.5px solid var(--green); transform: translateY(1px); }
.hero-photo { position: relative; margin: 0; }
.hero-photo-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.hero-photo figcaption { position: absolute; left: 16px; bottom: 16px; }
.sticker { position: absolute; top: -22px; right: -14px; display: grid; place-content: center; width: 132px; height: 132px; border-radius: 50%; background: var(--spark); color: var(--ink); text-align: center; font-size: 14px; font-weight: 700; line-height: 1.15; transform: rotate(8deg); box-shadow: 0 6px 18px rgba(232, 89, 12, .35); }
.sticker strong { display: block; font-size: 40px; font-weight: 850; font-stretch: 115%; letter-spacing: -.04em; line-height: .95; }
@media (max-width: 900px) {
	.hero-grid { grid-template-columns: minmax(0, 1fr); }
	.hero-photo-img { aspect-ratio: 4 / 3; }
	.sticker { width: 104px; height: 104px; top: -18px; right: -6px; font-size: 12px; }
	.sticker strong { font-size: 30px; }
}

/* Brand ticker */
.brand-ticker { background: var(--forest); color: #E5EADB; overflow: hidden; border-block: 1px solid var(--forest); }
.brand-ticker-track { display: flex; width: max-content; animation: x90-ticker 150s linear infinite; font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.02em; white-space: nowrap; }
.brand-ticker-half { display: flex; flex: none; align-items: center; gap: 28px; padding: 16px 28px 16px 0; }
.tick-sep { color: var(--spark); font-size: .7em; }
@keyframes x90-ticker { to { transform: translateX(-50%); } }
.brand-ticker:hover .brand-ticker-track { animation-play-state: paused; }

/* ---------------------------------------------------------------- Launch band */
.launch { background: var(--green-deep); color: #DCE6D2; }
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.launch h2 { color: #fff; }
.launch-copy p { max-width: 520px; font-size: 1.08rem; }
.launch .text-link { color: #fff; }
.launch .text-link:hover { color: var(--sprout); }
.launch :focus-visible { outline-color: var(--sprout); }
.launch .xact90-notify h2 { color: var(--ink); }
.launch .xact90-notify { background: var(--card); color: var(--ink-2); border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
@media (max-width: 900px) { .launch-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Sander index */
.sander-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.sander-row { padding: 22px 24px 24px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); transition: border-color .15s, box-shadow .15s; }
.sander-row:hover { border-color: var(--moss); box-shadow: var(--shadow); }
.sander-brand { display: block; margin-bottom: 14px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; font-stretch: 115%; letter-spacing: -.03em; color: var(--ink); text-decoration: none; line-height: 1.1; }
.sander-brand::after { content: " →"; color: var(--moss); font-weight: 600; }
.sander-brand:hover { color: var(--green); }
.sander-models { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sander-models a { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: none; background: var(--paper); line-height: 1.3; }
.sander-models a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.index-foot { margin: 28px 0 0; font-size: 1.02rem; color: var(--steel); }

/* ---------------------------------------------------------------- Shop photos */
.shop-photos { background: var(--paper-2); }
.photo-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.photo-strip figure { position: relative; margin: 0; }
.photo-strip img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.photo-strip figcaption { position: absolute; left: 12px; bottom: 12px; }
@media (max-width: 900px) { .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.steps li { padding: clamp(24px, 3vw, 36px); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.step-num { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 50%; background: var(--green-tint); color: var(--green-deep); font-size: 22px; font-weight: 800; }
.steps h3 { font-size: 1.35rem; }
.steps p { margin: 0; color: var(--steel); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Product cards (WooCommerce loop) */
.woocommerce ul.products, ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, ul.products li.product, .woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products[class*="columns-"] li.product { float: none; width: auto; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; padding: 0 0 4px; }
.woocommerce ul.products li.product a img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; background: var(--paper-2); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 18px 20px 6px; margin: 0; font-size: 1.12rem; font-weight: 700; font-stretch: 105%; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
.card-fit { margin: 0; padding: 4px 20px 0; font-family: var(--mono); font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.card-fit span { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: var(--green-tint); color: var(--green-deep); font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.card-tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: var(--spark); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.woocommerce ul.products li.product .star-rating { margin: 10px 20px 0; font-size: 12px; color: var(--spark-ink); }
.woocommerce ul.products li.product .price { display: block; margin: auto 0 0; padding: 14px 20px 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.woocommerce ul.products li.product .price .xact90-preview-price { color: var(--steel); font-weight: 600; font-size: 14px; }
.card-cta { display: flex; justify-content: space-between; margin: 14px 20px 0; padding: 12px 0 16px; border-top: 1px solid var(--rule); font-size: 15px; font-weight: 650; color: var(--ink); }
.card-cta span { color: var(--green); }
.woocommerce ul.products li.product .button { margin: 14px 20px 20px; }
@media (max-width: 1000px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .woocommerce ul.products, ul.products { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Maker */
.maker-section { background: var(--forest); color: #D7DDCC; }
.maker-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.maker-section h2 { color: #fff; }
.maker-copy p { font-size: 1.1rem; max-width: 600px; }
.maker-copy a:not(.text-link) { color: var(--sprout); }
.maker-section .text-link { color: #fff; }
.maker-section .text-link:hover { color: var(--sprout); }
.maker-section :focus-visible { outline-color: var(--sprout); }
.maker-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.maker-facts li { padding: 22px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.maker-facts strong { display: block; color: #fff; font-size: 1.12rem; font-stretch: 105%; margin-bottom: 6px; }
.maker-facts strong::before { content: ""; display: inline-block; width: 9px; height: 9px; border: 2.5px solid var(--spark); margin-right: 9px; vertical-align: 1px; }
.maker-facts span { font-size: 15px; line-height: 1.5; }
@media (max-width: 900px) { .maker-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .maker-facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Reviews */
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quote { margin: 0; padding: 28px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); color: var(--ink-2); display: flex; flex-direction: column; }
.quote-stars { margin: 0 0 14px; color: var(--spark-ink); letter-spacing: .15em; font-size: 16px; }
.quote blockquote { margin: 0 0 20px; flex: 1; }
.quote blockquote p { font-size: 1.15rem; line-height: 1.5; color: var(--ink); margin: 0; }
.quote figcaption { font-size: 14px; line-height: 1.5; border-top: 1px solid var(--rule); padding-top: 14px; }
.quote figcaption strong { display: block; color: var(--ink); }
.quote figcaption span { color: var(--steel); }
.quote-note { margin: 24px 0 0; font-size: 14px; color: var(--steel); }
@media (max-width: 900px) { .quote-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Help */
.help-section { border-top: 1px solid var(--rule); }
.help-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; }
.help-grid p { font-size: 1.15rem; max-width: 540px; }
.help-grid .hero-actions { margin-top: 8px; }
@media (max-width: 860px) { .help-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--forest); color: #BFC7B4; padding: clamp(56px, 7vw, 96px) 0 32px; font-size: 15px; }
.site-footer a { color: #EEF1E7; text-decoration: none; }
.site-footer a:hover { color: var(--sprout); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--sprout); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: clamp(48px, 6vw, 72px); }
.site-footer .eyebrow { color: var(--sprout); }
.footer-line { font-size: 1.25rem; line-height: 1.4; color: #fff; font-weight: 500; max-width: 380px; }
.footer-heading { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9DA894; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; }
.footer-search { margin-top: 24px; max-width: 400px; }
.footer-search label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9DA894; margin-bottom: 8px; }
.footer-search-row { display: flex; gap: 8px; }
.footer-search input[type="search"] { flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px; background: rgba(255,255,255,.06); border: 1px solid #6F7B66; border-radius: var(--r); color: #fff; font: 15px var(--mono); }
.footer-search input::placeholder { color: #9DA894; }
.footer-search button[type="submit"] { min-height: 48px; background: var(--sprout); color: var(--ink); border-color: var(--sprout); }
.footer-search button[type="submit"]:hover { background: #fff; border-color: #fff; color: var(--ink); }
.footer-mark { display: block; padding: clamp(24px, 4vw, 48px) 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); text-decoration: none; overflow: hidden; }
.footer-mark:hover { text-decoration: none; }
.logo-footer { font-size: clamp(4rem, 17.5vw, 15.5rem); color: #F2F4EC; letter-spacing: -.055em; }
.logo-footer .logo-90 { color: var(--sprout); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; font-size: 14px; color: #9DA894; }
.footer-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: #9DA894; max-width: 900px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-pitch { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Pages */
.page-head { border-bottom: 1px solid var(--rule); padding: clamp(48px, 6vw, 88px) 0 clamp(28px, 3vw, 44px); margin-bottom: clamp(36px, 5vw, 64px); }
.page-head h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); margin: 0; max-width: 16ch; }
.page-head .page-lede { margin: 20px 0 0; font-size: 1.2rem; max-width: 640px; }
.page-main { padding-bottom: clamp(64px, 8vw, 120px); }
.entry-content { max-width: 760px; }
.entry-content.entry-wide { max-width: none; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); margin: 2.2em 0 .55em; }
.entry-content h3 { margin: 1.8em 0 .5em; }
.entry-content p, .entry-content li { font-size: 1.06rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content ul li::marker { color: var(--green); }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--green); font-size: 1.15rem; color: var(--ink); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .98rem; }
.entry-content th, .entry-content td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.entry-content th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--line); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content img { border: 1px solid var(--rule); border-radius: var(--r); }
.entry-content code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: 1px 5px; }
.search-result { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.search-result h2 { font-size: 1.4rem; margin: 0 0 .3em; }
.search-result h2 a { color: var(--ink); text-decoration: none; }
.search-result h2 a:hover { color: var(--green); }

/* Forms */
label { font-size: 14.5px; font-weight: 650; color: var(--ink); }
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="password"], input[type="number"], input[type="url"], textarea, select {
	width: 100%; min-height: 48px; padding: 11px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); font: 16px var(--sans); appearance: none; -webkit-appearance: none;
}
textarea { min-height: 120px; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--green); outline-offset: 0; border-color: var(--green); }
input::placeholder, textarea::placeholder { color: #8A867C; }
.x90-search-form label { display: block; margin-bottom: 8px; }
.x90-search-row { display: flex; max-width: 520px; }
.x90-search-row input { border-right: 0; }

/* ---------------------------------------------------------------- Xact90 Core components */
.x90-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.x90-field label span { text-transform: none; letter-spacing: 0; color: var(--steel); }

/* Fit finder */
.xact90-filter { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: clamp(20px, 3vw, 32px); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); margin-bottom: 20px; }
.xact90-filter-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; flex: 1 1 480px; }
.xact90-filter button[type="submit"] { background: var(--green); border-color: var(--green); color: #fff; min-width: 180px; }
.xact90-filter button[type="submit"]:hover { background: var(--ink); border-color: var(--ink); }
.xact90-result-count { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--steel); margin: 0 0 20px; }
.xact90-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.xact90-product-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.xact90-product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.xact90-product-card > a { color: inherit; text-decoration: none; }
.xact90-product-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.xact90-product-card h3 { padding: 18px 20px 6px; margin: 0; font-size: 1.12rem; font-stretch: 108%; line-height: 1.25; }
.xact90-product-card p { margin: 0; padding: 4px 20px 0; font-size: 14px; }
.xact90-product-card .xact90-compatibility { font-family: var(--mono); font-size: 13px; }
.xact90-product-card .xact90-compatibility::before { content: "Fits"; display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; font-family: var(--sans); background: var(--green-tint); color: var(--green-deep); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
.xact90-product-card .price { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--ink); }
.xact90-product-card .price .xact90-preview-price { color: var(--steel); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }
.xact90-product-card .button { margin: 16px 20px 20px; background: transparent; color: var(--ink); }
.xact90-product-card .button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 1000px) { .xact90-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .xact90-product-grid { grid-template-columns: 1fr; } }

/* Empty states, support */
.xact90-empty { padding: clamp(24px, 3vw, 36px); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); margin: 0 0 24px; }
.xact90-empty h2 { font-size: 1.6rem; margin-top: 0; }
.xact90-empty a { font-weight: 600; }
.xact90-support h2:first-child { margin-top: 0; }

/* Notify / Etsy */
.xact90-notify { padding: clamp(22px, 3vw, 32px); background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); margin: 24px 0; }
.xact90-notify h2 { font-size: 1.5rem; font-stretch: 115%; margin: 0 0 14px; }
.xact90-notify-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.xact90-notify-fields button[type="submit"] { background: var(--green); border-color: var(--green); color: #fff; }
.xact90-notify-fields button[type="submit"]:hover { background: var(--ink); border-color: var(--ink); }
.xact90-notify-fine { margin: 14px 0 0; font-size: 13.5px; color: var(--steel); }
.xact90-notify-success, .xact90-notify-error { padding: 12px 14px; font-weight: 600; margin: 0 0 14px; }
.xact90-notify-success { background: #E2F0E6; color: var(--ok); border-left: 4px solid var(--ok); }
.xact90-notify-error { background: #F7E4E1; color: var(--err); border-left: 4px solid var(--err); }
.xact90-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }


/* Reviews archive */
.x90-review-archive > p:first-of-type { max-width: 760px; color: var(--steel); }
.x90-review-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 20px; margin: 24px 0; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); }
.x90-review-controls .x90-field { flex: 1 1 220px; }
.x90-review-count { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--steel); padding-bottom: 14px; }
.x90-review-grid { columns: 3 300px; column-gap: 20px; }
.x90-review-card { break-inside: avoid; margin: 0 0 20px; padding: 22px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); font-size: 15.5px; }
.x90-review-card p:first-child { color: var(--green); letter-spacing: .12em; margin-bottom: 8px; }
.x90-review-card h3 { font-size: 1.1rem; margin: 0 0 6px; }
.x90-review-card small { font-size: 12px; color: var(--steel); }
.x90-review-card img { border: 1px solid var(--rule); border-radius: var(--r); }

/* Notices shown by Xact90 Core */
.xact90-affiliation { font-size: 13.5px; color: var(--steel); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 20px; }
.xact90-product-facts p { font-size: 15.5px; }
.xact90-ship-time { font-size: 13px; color: var(--steel); }

/* ---------------------------------------------------------------- WooCommerce: archive */
.shop-main { padding: clamp(32px, 4vw, 56px) 0 clamp(64px, 8vw, 120px); }
.woocommerce .woocommerce-breadcrumb { margin: 0 0 24px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--steel); }
.woocommerce .woocommerce-breadcrumb a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 4px; }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--green); }
.crumb-sep { margin: 0 10px; color: var(--rule); }
.woocommerce-products-header { border-bottom: 1px solid var(--rule); padding-bottom: 28px; margin-bottom: 32px; }
.woocommerce-products-header__title.page-title { font-size: clamp(2.3rem, 5.4vw, 4.4rem); margin: 0; }
.archive-lede, .term-description p { margin: 16px 0 0; font-size: 1.15rem; max-width: 640px; color: var(--ink-2); }
.woocommerce .woocommerce-result-count { float: none; margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--steel); }
.woocommerce .woocommerce-ordering { float: none; margin: 0; }
.woocommerce .woocommerce-ordering select { min-height: 42px; width: auto; font-size: 14px; }
.shop-main .woocommerce-notices-wrapper + .woocommerce-result-count, .shop-main .woocommerce-result-count { display: inline-block; }
.woocommerce .woocommerce-result-count + .woocommerce-ordering { display: inline-block; float: right; }
.shop-main ul.products { clear: both; margin-top: 24px; }
.woocommerce nav.woocommerce-pagination { margin-top: 40px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: var(--r); color: var(--ink); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------------- WooCommerce: single product */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.woocommerce div.product > * { grid-column: 1 / -1; }
.woocommerce div.product div.images, .woocommerce div.product .xact90-gallery { grid-column: 1; width: auto; float: none; margin: 0; }
.woocommerce div.product div.summary { grid-column: 2; width: auto; float: none; margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.woocommerce div.product .product_title { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1; margin-bottom: 18px; }
.woocommerce div.product .summary .eyebrow { margin-bottom: 14px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 1.3rem; font-weight: 600; color: var(--ink); margin: 18px 0; }
.woocommerce div.product p.price .xact90-preview-price { display: inline-block; padding: 6px 12px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.woocommerce-product-details__short-description { font-size: 1.08rem; }
.fit-plate { display: flex; gap: 16px; padding: 18px 20px; margin: 18px 0; background: var(--green-tint); border: 1px solid var(--green); }
.fit-plate .sq { color: var(--green); font-size: 22px; margin-top: 4px; }
.fit-plate-label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--green-deep); }
.fit-plate strong { display: block; font-size: 1.25rem; font-stretch: 110%; color: var(--ink); line-height: 1.3; margin: 2px 0 6px; }
.fit-plate p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.fit-plate a { color: var(--green-deep); font-weight: 600; }
.woocommerce div.product .product_meta { font-size: 12.5px; color: var(--steel); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 20px; }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 4px; }
.woocommerce div.product .product_meta a { color: var(--ink); }
.woocommerce div.product form.cart { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.woocommerce div.product form.cart .qty { width: 80px; min-height: 48px; }
.woocommerce .quantity .qty { text-align: center; }
.woocommerce div.product .woocommerce-product-rating { margin: 0 0 12px; font-size: 13px; }
.woocommerce .star-rating span::before, .woocommerce .star-rating::before { color: var(--green); }

/* Gallery */
.xact90-main-image { display: block; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper-2); line-height: 0; }
.woocommerce div.product .xact90-gallery img.xact90-product-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.xact90-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.xact90-thumb { display: block; border: 1px solid var(--rule); background: var(--paper-2); line-height: 0; min-height: 24px; }
.xact90-thumb.is-selected { border: 2px solid var(--green); }
.woocommerce div.product .xact90-thumbnails img { display: block; width: 100%; height: 84px; object-fit: cover; }
.gallery-hint { font-size: 11.5px; color: var(--steel); margin: 10px 0 0; }

/* Tabs */
.woocommerce div.product .woocommerce-tabs { margin-top: 24px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 6px; padding: 0; margin: 0; border-bottom: 1px solid var(--rule); overflow-x: auto; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 14px 20px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--steel); white-space: nowrap; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: transparent; box-shadow: inset 0 -3px 0 var(--green); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); }
.woocommerce div.product .woocommerce-tabs .panel { padding: 32px 0 0; margin: 0; max-width: 780px; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { font-size: 1.6rem; }
.woocommerce table.shop_attributes { border: 0; border-top: 1px solid var(--rule); }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--rule); padding: 12px 14px; background: transparent; font-style: normal; }
.woocommerce table.shop_attributes th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; width: 200px; color: var(--ink); }
.woocommerce table.shop_attributes td p { padding: 0; }
.woocommerce #reviews #comments ol.commentlist { padding: 0; }
.woocommerce #reviews #comments ol.commentlist li .comment-text { border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); margin-left: 0; padding: 18px 20px; }
.woocommerce #reviews #comments ol.commentlist li img.avatar { display: none; }
.review-title { font-size: 1.1rem; margin: 8px 0; }
.review-provenance { font-size: 12px; color: var(--steel); }
.woocommerce #review_form #respond { padding: 24px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); }

/* Same-model alternatives */
.related-options { border-top: 1px solid var(--rule); padding-top: clamp(40px, 5vw, 64px); margin-top: clamp(24px, 3vw, 40px); }
.related-options h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }

@media (max-width: 900px) {
	.woocommerce div.product { grid-template-columns: minmax(0, 1fr); }
	.woocommerce div.product div.images, .woocommerce div.product .xact90-gallery, .woocommerce div.product div.summary { grid-column: 1; position: static; }
}

/* ---------------------------------------------------------------- WooCommerce: notices, cart, account */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews { border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); color: var(--ink-2); border-radius: 0; padding: 16px 20px; list-style: none; margin: 0 0 24px; }
.woocommerce-error { border-left-color: var(--err); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce table.shop_table { border: 1px solid var(--rule); border-radius: var(--r); border-collapse: collapse; }
.woocommerce table.shop_table th { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-top: 1px solid var(--rule); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--green); }
.woocommerce form .form-row label { margin-bottom: 6px; display: block; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { border-radius: var(--r); }

/* ---------------------------------------------------------------- Motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.woocommerce ul.products li.product:hover, .xact90-product-card:hover { transform: none; }
}
