/* ==========================================================================
   Latitude Tracking — Adventure & Outdoors Theme
   Design system + components + layout + WooCommerce styling
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
	/* Colour palette — deep forests, trail orange, big-sky blue */
	--c-forest: #1f4d3a;
	--c-pine: #2e6b4f;
	--c-summit: #0f2c22;
	--c-trail: #e9762b;
	--c-trail-soft: #f4a261;
	--c-sky: #3a7ca5;
	--c-sand: #f4efe6;
	--c-stone: #5b6b63;
	--c-ink: #12211b;
	--c-white: #ffffff;
	--c-mist: #f7f9f7;
	--c-line: #e2e6e1;

	--c-bg: var(--c-white);
	--c-text: var(--c-ink);
	--c-muted: #5b6b63;
	--c-accent: var(--c-trail);
	--c-accent-ink: #b8551a;

	/* Typography */
	--font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--font-head: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;

	/* Layout */
	--container: 1200px;
	--container-wide: 1360px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--radius: 16px;
	--radius-sm: 10px;
	--radius-pill: 999px;

	/* Elevation */
	--shadow-sm: 0 1px 2px rgba(15, 44, 34, 0.08), 0 2px 8px rgba(15, 44, 34, 0.06);
	--shadow-md: 0 10px 30px rgba(15, 44, 34, 0.12);
	--shadow-lg: 0 24px 60px rgba(15, 44, 34, 0.18);

	/* Motion */
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--speed: 0.25s;
}

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* Overflow guard: keep embeds/media/wide content within the viewport */
iframe, table, pre { max-width: 100%; }
iframe { border: 0; }
table { display: block; overflow-x: auto; }

a {
	color: var(--c-accent-ink);
	text-decoration: none;
	transition: color var(--speed) var(--ease);
}
a:hover { color: var(--c-trail); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	line-height: 1.12;
	margin: 0 0 0.5em;
	color: var(--c-summit);
	letter-spacing: -0.01em;
	overflow-wrap: break-word;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1.1rem; overflow-wrap: break-word; }

ul, ol { padding-left: 1.25rem; }

blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.5rem;
	border-left: 4px solid var(--c-trail);
	background: var(--c-mist);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-style: italic;
}

code, pre {
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	background: var(--c-mist);
	border-radius: 6px;
}
code { padding: 0.15em 0.4em; font-size: 0.9em; }
pre { padding: 1rem; overflow: auto; }

hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.5rem 0; }

:focus-visible {
	outline: 3px solid var(--c-sky);
	outline-offset: 2px;
	border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Accessibility helpers
   -------------------------------------------------------------------------- */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--c-summit); color: #fff; padding: 0.75rem 1.25rem;
	border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 760px; }

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.section--mist { background: var(--c-mist); }
.section--sand { background: var(--c-sand); }
.section--summit { background: var(--c-summit); color: #dfeae4; }
.section--summit h1, .section--summit h2, .section--summit h3 { color: #fff; }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.eyebrow {
	display: inline-block;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-trail);
	margin-bottom: 0.75rem;
}
.section__lead { font-size: 1.2rem; color: var(--c-muted); max-width: 60ch; }
.text-center .section__lead { margin-inline: auto; }

/* Topographic decorative background (adventure feel) */
.topo {
	position: relative;
	background-image:
		radial-gradient(circle at 20% 30%, rgba(46, 107, 79, 0.06) 0, transparent 40%),
		radial-gradient(circle at 80% 70%, rgba(58, 124, 165, 0.06) 0, transparent 40%);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn,
.button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	padding: 0.95rem 1.6rem;
	border-radius: var(--radius-pill);
	border: 2px solid transparent;
	cursor: pointer;
	text-align: center;
	transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease);
	background: var(--c-trail);
	color: #fff;
	box-shadow: var(--shadow-sm);
}
.btn:hover,
.button:hover,
.wp-block-button__link:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	background: var(--c-accent-ink);
}
.btn--lg { padding: 1.15rem 2rem; font-size: 1.1rem; }
.btn--secondary {
	background: transparent;
	color: var(--c-summit);
	border-color: currentColor;
	box-shadow: none;
}
.btn--secondary:hover { background: var(--c-summit); color: #fff; border-color: var(--c-summit); }
.btn--ghost {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
	box-shadow: none;
}
.btn--ghost:hover { background: #fff; color: var(--c-summit); border-color: #fff; }
.btn--block { display: flex; width: 100%; }

.btn__arrow { transition: transform var(--speed) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Top bar + header
   -------------------------------------------------------------------------- */
.topbar {
	background: var(--c-summit);
	color: #cfe0d7;
	font-size: 0.85rem;
}
.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.5rem;
}
.topbar a { color: #fff; }
.topbar__contact { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 0.4rem; }
@media (max-width: 680px) {
	.topbar__message { display: none; }
	.topbar__inner { justify-content: center; }
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--c-line);
	transition: box-shadow var(--speed) var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding-block: 0.85rem;
}
.site-branding { display: flex; align-items: center; }
.site-title {
	font-family: var(--font-head);
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	line-height: 1;
	color: var(--c-summit);
}
.site-title a { color: inherit; }
.site-title .mark { color: var(--c-trail); }
.site-description { margin: 0; font-size: 0.8rem; color: var(--c-muted); }
.custom-logo { max-height: 52px; width: auto; }

.main-navigation { margin-left: auto; }
.nav__list {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}
.nav__list a {
	font-family: var(--font-head);
	font-weight: 500;
	color: var(--c-summit);
	position: relative;
	padding-block: 0.4rem;
}
.nav__list a::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 0; height: 2px;
	background: var(--c-trail);
	transition: width var(--speed) var(--ease);
}
.nav__list a:hover::after,
.nav__list .current-menu-item > a::after { width: 100%; }

.nav__list .sub-menu {
	position: absolute;
	list-style: none;
	background: #fff;
	box-shadow: var(--shadow-md);
	border-radius: var(--radius-sm);
	padding: 0.5rem;
	min-width: 220px;
	margin: 0;
	display: none;
	z-index: 20;
}
.nav__list li { position: relative; }
.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu { display: block; }
.nav__list .sub-menu a { display: block; padding: 0.5rem 0.75rem; border-radius: 6px; }
.nav__list .sub-menu a:hover { background: var(--c-mist); }
.nav__list .sub-menu a::after { display: none; }

.header__actions { display: flex; align-items: center; gap: 1rem; }

/* Prominent login action in the header. Solid trail-orange pill so it stands
   out next to the ghost Shop button and the cart icon. Stays visible on every
   breakpoint (see the <=480px rule below, which hides only .btn--secondary). */
.header-login {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1;
	padding: 0.65rem 1.15rem;
	border-radius: var(--radius-pill);
	background: var(--c-trail);
	color: #fff;
	box-shadow: var(--shadow-sm);
	white-space: nowrap;
	transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}
.header-login:hover {
	color: #fff;
	background: var(--c-accent-ink);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}
.header-login svg { flex: none; }

.header-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: var(--c-summit);
}
.header-cart__count {
	position: absolute;
	top: -8px; right: -10px;
	background: var(--c-trail);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	min-width: 18px; height: 18px;
	border-radius: 999px;
	display: grid; place-items: center;
	padding: 0 4px;
}

/* Mobile nav toggle */
.menu-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0.4rem;
	color: var(--c-summit);
}
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 980px) {
	.menu-toggle { display: inline-flex; }
	.main-navigation {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(84vw, 360px);
		background: #fff;
		box-shadow: var(--shadow-lg);
		transform: translateX(100%);
		transition: transform var(--speed) var(--ease);
		padding: 5rem 1.75rem 2rem;
		overflow-y: auto;
		margin: 0;
	}
	.main-navigation.is-open { transform: translateX(0); }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
	.nav__list a { padding: 0.75rem 0; border-bottom: 1px solid var(--c-line); }
	.nav__list .sub-menu { position: static; display: block; box-shadow: none; padding-left: 1rem; }
	.nav-backdrop {
		position: fixed; inset: 0; background: rgba(15, 44, 34, 0.5);
		opacity: 0; visibility: hidden; transition: opacity var(--speed) var(--ease); z-index: 99;
	}
	.nav-backdrop.is-open { opacity: 1; visibility: visible; }
	.menu-close {
		position: absolute; top: 1.25rem; right: 1.25rem;
		background: none; border: 0; cursor: pointer; color: var(--c-summit);
	}
}
@media (min-width: 981px) { .menu-close { display: none; } }

/* Header row fit on mobile: push actions to the right once the nav is
   off-canvas, and drop the inline Shop button on the smallest widths so the
   logo + toggle + cart (+ login) never overlap. Shop also lives in the menu. */
@media (max-width: 980px) {
	.header__actions { margin-left: auto; }
}
@media (max-width: 480px) {
	.header__inner { gap: 0.75rem; }
	.header__actions { gap: 0.6rem; }
	.header__actions .btn--secondary { display: none; }
	/* Keep the login action prominent on the smallest screens. It is NOT
	   hidden like the inline Shop button; the label collapses to save room
	   while the solid pill + icon keep it clearly tappable. */
	.header-login {
		display: inline-flex;
		padding: 0.6rem 0.8rem;
	}
	.header-login span { display: none; }
	.header-login svg { width: 18px; height: 18px; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
	position: relative;
	color: #fff;
	background: linear-gradient(160deg, #0f2c22 0%, #1f4d3a 55%, #2e6b4f 100%);
	overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero::after {
	content: "";
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(180deg, rgba(15,44,34,0.35), rgba(15,44,34,0.75));
}
.hero__inner {
	position: relative;
	z-index: 2;
	padding-block: clamp(4rem, 11vw, 8.5rem);
	max-width: 720px;
}
.hero__eyebrow { color: var(--c-trail-soft); }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero__sub { font-size: 1.2rem; color: #dfeae4; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__badges {
	display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
	margin-top: 2.5rem; padding-top: 1.75rem;
	border-top: 1px solid rgba(255,255,255,0.18);
}
.hero__badge { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: #dfeae4; }
.hero__badge svg { color: var(--c-trail-soft); flex: none; }

/* --------------------------------------------------------------------------
   8. Feature cards / audience cards / steps
   -------------------------------------------------------------------------- */
.card {
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	padding: 1.75rem;
	box-shadow: var(--shadow-sm);
	transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
	height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
	width: 56px; height: 56px;
	border-radius: 14px;
	display: grid; place-items: center;
	background: var(--c-sand);
	color: var(--c-forest);
	margin-bottom: 1.1rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--c-muted); margin: 0; }

.audience-card {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	min-height: 260px;
	display: flex;
	align-items: flex-end;
	color: #fff;
	background: var(--c-forest);
	box-shadow: var(--shadow-sm);
}
.audience-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.audience-card::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(15,44,34,0) 30%, rgba(15,44,34,0.85));
}
.audience-card__body { position: relative; z-index: 2; padding: 1.5rem; }
.audience-card__body h3 { color: #fff; margin-bottom: 0.25rem; }
.audience-card__body p { color: #dfeae4; margin: 0; font-size: 0.95rem; }

/* Steps */
.step { position: relative; padding-left: 3.5rem; }
.step__num {
	position: absolute; left: 0; top: 0;
	width: 2.5rem; height: 2.5rem;
	border-radius: 50%;
	background: var(--c-trail);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 700;
	display: grid; place-items: center;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--c-muted); margin: 0; }

/* Pricing / value strip */
.value-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	text-align: center;
}
.value-strip__item { padding: 1.25rem; }
.value-strip__num { font-family: var(--font-head); font-size: 2.25rem; font-weight: 700; color: var(--c-trail); }
.value-strip__label { color: var(--c-muted); font-size: 0.95rem; }
@media (max-width: 700px) { .value-strip { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
	background: linear-gradient(120deg, var(--c-trail) 0%, var(--c-trail-soft) 100%);
	color: #fff;
	border-radius: var(--radius);
	padding: clamp(2rem, 5vw, 3.5rem);
	text-align: center;
	box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 55ch; margin-inline: auto; }

/* --------------------------------------------------------------------------
   9. Blog / content
   -------------------------------------------------------------------------- */
.page-hero {
	background: var(--c-mist);
	border-bottom: 1px solid var(--c-line);
	padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-hero h1 { margin-bottom: 0.5rem; }

.content-area { padding-block: clamp(2.5rem, 6vw, 4rem); }
.content-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 900px) { .content-with-sidebar { grid-template-columns: 1fr; } }

.post-card {
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
	display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.post-card__meta { font-size: 0.82rem; color: var(--c-muted); display: flex; gap: 0.75rem; flex-wrap: wrap; }
.post-card h2, .post-card h3 { font-size: 1.3rem; margin: 0; }
.post-card__excerpt { color: var(--c-muted); }
.read-more { font-family: var(--font-head); font-weight: 600; margin-top: auto; }

.entry-header { margin-bottom: 1.5rem; }
.entry-meta { font-size: 0.9rem; color: var(--c-muted); display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.entry-content > * { max-width: 100%; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); font-size: 0.9rem; color: var(--c-muted); display: flex; gap: 1.5rem; flex-wrap: wrap; }
.post-thumbnail { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.75rem; }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 44px; height: 44px; padding: 0 0.75rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--c-line);
	color: var(--c-summit); font-family: var(--font-head); font-weight: 600;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--c-trail); color: #fff; border-color: var(--c-trail); }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--c-muted); margin-bottom: 1rem; }
.breadcrumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; margin-right: 0.4rem; color: var(--c-line); }

/* Widgets */
.widget { margin-bottom: 2rem; }
.widget__title { font-size: 1.15rem; margin-bottom: 0.75rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 0.4rem 0; border-bottom: 1px solid var(--c-line); }
.widget a { color: var(--c-summit); }

/* --------------------------------------------------------------------------
   10. WooCommerce
   -------------------------------------------------------------------------- */
.woo-wrapper { padding-block: clamp(2rem, 5vw, 3.5rem); }

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.25rem, 3vw, 2rem);
	margin: 0; padding: 0; list-style: none;
}
@media (max-width: 900px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .woocommerce ul.products { grid-template-columns: 1fr; } }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	padding: 1.25rem;
	box-shadow: var(--shadow-sm);
	transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
	display: flex; flex-direction: column;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.woocommerce ul.products li.product a img { border-radius: var(--radius-sm); margin-bottom: 1rem; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--c-summit);
	padding: 0; margin-bottom: 0.35rem;
}
.woocommerce ul.products li.product .price {
	color: var(--c-forest); font-weight: 700; font-size: 1.15rem;
}
.woocommerce ul.products li.product .price del { color: var(--c-muted); font-weight: 400; margin-right: 0.4rem; }
.woocommerce ul.products li.product .button { margin-top: auto; }

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	background: var(--c-trail); color: #fff;
	border-radius: var(--radius-pill);
	min-height: auto; min-width: auto;
	padding: 0.3rem 0.8rem; font-family: var(--font-head); font-weight: 600;
	top: 1rem; left: 1rem; margin: 0;
}

/* Buttons — inherit theme button system */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--c-trail);
	color: #fff;
	font-family: var(--font-head);
	font-weight: 600;
	border-radius: var(--radius-pill);
	padding: 0.8rem 1.4rem;
	transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--c-accent-ink); color: #fff; transform: translateY(-2px);
}

/* Shop toolbar */
.woocommerce .woocommerce-result-count { color: var(--c-muted); }
.woocommerce .woocommerce-ordering select {
	padding: 0.6rem 0.9rem; border: 1px solid var(--c-line); border-radius: var(--radius-sm); font-family: var(--font-body);
}

/* Single product */
.single-product div.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.single-product div.product .images,
.single-product div.product .summary { margin: 0 !important; width: auto !important; float: none !important; }
.single-product div.product .product_title { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.single-product div.product p.price { color: var(--c-forest); font-size: 1.6rem; font-weight: 700; }
.single-product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 1rem; }
.single-product .related.products { grid-column: 1 / -1; }
@media (max-width: 820px) { .single-product div.product { grid-template-columns: 1fr; } }

.woocommerce-tabs ul.tabs { border: 0; padding: 0; margin: 0 0 1.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce-tabs ul.tabs li {
	border: 1px solid var(--c-line); border-radius: var(--radius-pill); background: #fff; padding: 0; margin: 0;
}
.woocommerce-tabs ul.tabs li.active { background: var(--c-summit); border-color: var(--c-summit); }
.woocommerce-tabs ul.tabs li a { color: var(--c-summit); font-family: var(--font-head); font-weight: 600; padding: 0.5rem 1.1rem; }
.woocommerce-tabs ul.tabs li.active a { color: #fff; }

/* Cart & checkout */
.woocommerce table.shop_table { border-radius: var(--radius); border-color: var(--c-line); }
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce form.checkout_coupon,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
	border-radius: var(--radius-sm);
}
.woocommerce .woocommerce-message { border-top-color: var(--c-pine); }
.woocommerce-info { border-top-color: var(--c-sky); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row input.input-text,
.select2-container .select2-selection {
	border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem;
}

/* Mobile overflow guard for WooCommerce cart/checkout.
   WooCommerce's own CSS uses floats and fixed/percentage table cells that can
   exceed narrow viewports (320–414px). These rules let the cart/checkout
   tables and coupon/quantity controls reflow within the container instead of
   being clipped by the body overflow guard. Scoped to <=600px so the
   desktop/tablet (>=601px) layout is unchanged. */
@media (max-width: 600px) {
	.woocommerce table.shop_table,
	.woocommerce-page table.shop_table {
		display: block;
		width: 100%;
		overflow-x: auto;
	}
	.woocommerce form.checkout_coupon .form-row,
	.woocommerce form.checkout_coupon .form-row-first,
	.woocommerce form.checkout_coupon .form-row-last {
		width: 100%;
		float: none;
		margin-right: 0;
	}
	.woocommerce .quantity,
	.woocommerce .quantity .qty {
		max-width: 100%;
	}
	.woocommerce .cart-collaterals .cart_totals,
	.woocommerce .cart-collaterals .cross-sells,
	.woocommerce-cart .cart-collaterals .cart_totals {
		width: 100%;
		float: none;
	}
}

/* --------------------------------------------------------------------------
   11. Forms (generic)
   -------------------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="tel"], input[type="number"], textarea, select {
	width: 100%;
	font-family: var(--font-body);
	font-size: 1rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--c-text);
	transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
input:focus, textarea:focus, select:focus {
	border-color: var(--c-sky);
	box-shadow: 0 0 0 3px rgba(58, 124, 165, 0.15);
	outline: none;
}
.search-form { display: flex; gap: 0.5rem; }
.search-form .search-submit { width: auto; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
	background: var(--c-summit);
	color: #b9cbc1;
	padding-top: clamp(3rem, 6vw, 4.5rem);
}
.site-footer a { color: #dfeae4; }
.site-footer a:hover { color: #fff; }
.footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 2rem;
	padding-bottom: 3rem;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .site-title { color: #fff; }
.footer__tagline { color: #b9cbc1; max-width: 34ch; }
.site-footer .widget__title { color: #fff; font-size: 1.05rem; }
.site-footer .widget li { border-bottom-color: rgba(255,255,255,0.1); }
.footer__bottom {
	border-top: 1px solid rgba(255,255,255,0.12);
	padding-block: 1.5rem;
	display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	font-size: 0.85rem;
}
.footer__menu { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   13. Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
/* Responsive top-spacing scale — values scale down on small screens via clamp(),
   consistent with the theme's existing clamp() spacing system. */
.mt-1 { margin-top: clamp(0.5rem, 1.5vw, 1rem); }
.mt-2 { margin-top: clamp(0.75rem, 2vw, 1.5rem); }
.mt-3 { margin-top: clamp(1rem, 3vw, 2rem); }
.mt-4 { margin-top: clamp(1.25rem, 4vw, 2.5rem); }
.mt-5 { margin-top: clamp(1.5rem, 5vw, 3rem); }
.stack > * + * { margin-top: 1rem; }
/* Centered, wrapping row of buttons (replaces inline flex styles). */
.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.is-hidden { display: none !important; }
.no-scroll { overflow: hidden; }

/* 404 */
.error-404 { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.error-404 .code { font-family: var(--font-head); font-size: clamp(5rem, 18vw, 11rem); color: var(--c-sand); line-height: 1; font-weight: 700; }
