/*
 * VALT storefront, base layer.
 *
 * Ported from the approved e-commerce wireframe (valt-ecommerce-wireframe.html)
 * and the brand book tokens. The wireframe uses container queries on a device
 * frame; here the same breakpoints are media queries on the viewport:
 *   <= 700px  mobile, <= 900px cart/checkout stack, <= 1000px 2-column grids.
 */

:root {
	--paper: #E4E3DE;
	--sheet: #F6F5F1;      /* bone: light bands */
	--white: #FFFFFF;
	--dark: #16181B;       /* graphite: dark bands */
	--ink: #0A0B0D;        /* obsidian */
	--ink-2: #4A4E55;
	--mute: #8A8F97;
	--line: #CFCEC8;
	--line-d: #3A3E44;
	--steel: #2A2E33;
	--silver: #BFC2C8;
	--silver-hi: #DCDEE2;
	--ok: #2F6B4A;
	--no: #A33A32;
	--f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
	--hdr-h: 64px;
	/* Aliases used by the editorial (content.css) and account (account.css) layers. */
	--color-primary: var(--ink);
	--color-primary-dark: var(--steel);
	--color-text: var(--ink);
	--color-muted: var(--ink-2);
	--color-border: var(--line);
	--color-surface-soft: var(--sheet);
	--color-paper: var(--white);
	--color-sage: var(--sheet);
	--color-accent-lime: var(--silver-hi);
	--font-display: var(--f-display);
	--font-body: var(--f-display);
	--radius: 0;
	--radius-input: 0;
	color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--f-display);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dark :focus-visible, .ftr :focus-visible { outline-color: var(--silver-hi); }
p { margin: 0; max-width: 62ch; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
	width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	top: 8px; left: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 16px;
}

/* ---------- layout primitives ---------- */
.w, .wrap { max-width: 1180px; margin: 0 auto; padding-inline: 40px; }
.band { padding-block: 72px; }
.band.dark { background: var(--dark); color: var(--silver-hi); }
.band.bone { background: var(--sheet); }
.col { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-stretch: 125%;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0;
	line-height: 1.12;
	text-wrap: balance;
}
h1 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 600; }
h2 { font-size: clamp(22px, 2.9vw, 34px); font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; letter-spacing: .12em; }
h4 { font-size: 11px; font-weight: 600; letter-spacing: .16em; }
.h-page { font-size: clamp(26px, 3.4vw, 40px); }
.eb { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.dark .eb { color: var(--mute); }
.lead { font-size: 17px; color: var(--ink-2); }
.dark .lead { color: var(--silver); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; }
.muted { color: var(--ink-2); }
.dark .muted { color: var(--mute); }
.tnum { font-variant-numeric: tabular-nums; }
.code { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; }
.small { font-size: 13.5px; }

/* ---------- controls ---------- */
.btn,
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 22px;
	border: 1px solid var(--ink);
	border-radius: 0;
	background: var(--ink);
	color: var(--white);
	font-family: var(--f-display);
	font-stretch: 125%;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.btn:hover,
.woocommerce .button:hover { background: var(--steel); border-color: var(--steel); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.dark .btn { background: var(--silver-hi); border-color: var(--silver-hi); color: var(--ink); }
.dark .btn:hover { background: var(--white); border-color: var(--white); }
.dark .btn.ghost { background: transparent; color: var(--silver-hi); border-color: var(--silver); }
.dark .btn.ghost:hover { background: var(--silver-hi); color: var(--ink); }
.btn.full { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 11px; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; flex: none; }
.link {
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	border: 0;
	border-bottom: 1px solid currentColor;
	padding: 0 0 2px;
	background: none;
	cursor: pointer;
}
.link.xs { font-size: 11px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .lbl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.inp {
	min-height: 46px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--white);
	padding: 0 12px;
	width: 100%;
	font-size: 15px;
}
.inp:focus { border-color: var(--ink); outline: none; }
.dark .inp { background: transparent; border-color: var(--line-d); color: var(--silver-hi); }
.dark .inp::placeholder { color: var(--mute); }
.hr { height: 1px; background: var(--line); width: 100%; }
.dark .hr { background: var(--line-d); }
.pill {
	display: inline-flex;
	align-items: center;
	font-family: var(--f-mono);
	font-size: 10.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	border: 1px solid currentColor;
	padding: 2px 7px;
	white-space: nowrap;
}
.pill.solid { background: var(--ink); border-color: var(--ink); color: var(--white); }
.scale { display: inline-flex; gap: 3px; vertical-align: middle; }
.scale i { width: 14px; height: 6px; border: 1px solid var(--ink); }
.scale i.f { background: var(--ink); }

/* Images: real media in the placeholder slots of the wireframe. */
.media { position: relative; background: var(--sheet); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.dark .media { background: var(--steel); }
.r45 { aspect-ratio: 4 / 5; }
.r11 { aspect-ratio: 1; }
.r169 { aspect-ratio: 16 / 9; }
.r32 { aspect-ratio: 3 / 2; }
.r21 { aspect-ratio: 21 / 9; }
.media .noimg {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-2);
}

/* ---------- header ---------- */
.topbar {
	background: var(--ink);
	color: var(--silver);
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: center;
	padding: 8px 16px;
}
.hdr { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 50; }
.admin-bar .hdr { top: 32px; }
.hdr .w { display: flex; align-items: center; gap: 28px; min-height: var(--hdr-h); }
.hdr .logo { width: 74px; flex: none; color: var(--ink); display: block; }
.hdr .logo svg, .ftr .logo svg { display: block; width: 100%; height: auto; }
.hdr nav { display: flex; gap: 22px; flex: 1; }
.hdr nav ul { display: contents; list-style: none; margin: 0; padding: 0; }
.hdr nav li { display: contents; }
.hdr nav a {
	text-decoration: none;
	font-stretch: 125%;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding-block: 4px;
	border-bottom: 1px solid transparent;
}
.hdr nav a:hover, .hdr nav a.on, .hdr nav .current-menu-item > a { border-bottom-color: var(--ink); }
.hdr .icons { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.ic {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	position: relative;
	text-decoration: none;
	color: inherit;
}
.ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.ic .badge {
	position: absolute;
	top: 6px;
	right: 4px;
	background: var(--ink);
	color: var(--white);
	font-family: var(--f-mono);
	font-size: 10px;
	min-width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 3px;
}
.ic .badge[data-count="0"] { display: none; }
.hdr .burger { display: none; }
.hdr-search { display: none; border-top: 1px solid var(--line); padding-block: 12px; }
.hdr-search.open { display: block; }
.hdr-search form { display: flex; gap: 8px; }
.drawer { display: none; border-bottom: 1px solid var(--line); background: var(--white); }
.drawer.open { display: block; }
.drawer a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 52px;
	border-top: 1px solid var(--line);
	text-decoration: none;
	font-stretch: 125%;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.hdr.slim .w { justify-content: space-between; }

/* ---------- home ---------- */
.hero .w { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .media { min-height: 280px; }
.manif { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.manif .big {
	font-stretch: 125%;
	font-weight: 300;
	font-size: clamp(22px, 2.6vw, 32px);
	line-height: 1.3;
	letter-spacing: 0;
	max-width: 30ch;
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.pillars > div { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lines a { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.lines a:hover .link { border-bottom-width: 2px; }
.prods { grid-template-columns: repeat(4, 1fr); }
.shops { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.shoplist { display: flex; flex-direction: column; }
.shoplist > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line-d); }
.shoplist b { font-stretch: 125%; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.shoplist .empty-note { grid-template-columns: 1fr; }
.map {
	position: relative;
	background-color: var(--steel);
	background-image:
		linear-gradient(var(--line-d) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
	background-size: 48px 48px;
	min-height: 280px;
}
.map .pin {
	position: absolute;
	width: 28px;
	height: 28px;
	transform: translate(-50%, -100%);
	color: var(--silver-hi);
}
.map .pin svg { width: 100%; height: 100%; stroke: currentColor; fill: var(--dark); stroke-width: 1.5; }
.map .cap {
	position: absolute;
	left: 12px;
	bottom: 12px;
	font-family: var(--f-mono);
	font-size: 10.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mute);
	background: var(--dark);
	padding: 6px 8px;
}
.b2b { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.b2b .panel { border: 1px solid var(--line); background: var(--white); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.ig { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ig a { display: block; }

/* ---------- product card ---------- */
.product-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; position: relative; }
.product-card .product-card-media { display: block; }
.product-card .product-card-media img { transition: transform .35s ease; }
.product-card:hover .product-card-media img { transform: scale(1.02); }
.product-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.product-card .product-card-title {
	font-stretch: 125%;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin: 0;
}
.product-card .product-card-title a { text-decoration: none; }
.product-card .product-card-title a::after { content: ""; position: absolute; inset: 0; }
.product-card .sub { font-size: 13px; color: var(--ink-2); }
.product-card .pr { font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.product-card .pr del { color: var(--mute); margin-right: 6px; }
.product-card .pr ins { text-decoration: none; }
.product-card .product-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1;
}
.product-card.is-out-of-stock .product-card-media img { opacity: .55; }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--silver); padding-block: 48px 28px; }
.ftr .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.ftr .cols > div { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.ftr .cols a { text-decoration: none; }
.ftr .cols a:hover { text-decoration: underline; }
.ftr h4 { color: var(--mute); margin-bottom: 4px; }
.ftr .logo { width: 110px; color: var(--silver); display: block; }
.ftr .muted { color: var(--mute); }
.ftr .legal {
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid var(--line-d);
	font-family: var(--f-mono);
	font-size: 11px;
	color: var(--mute);
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

/* ---------- toast ---------- */
.toast {
	position: fixed;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	width: max-content;
	max-width: calc(100vw - 32px);
	background: var(--ink);
	color: var(--white);
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: .06em;
	padding: 12px 16px;
	display: flex;
	gap: 16px;
	align-items: center;
	z-index: 60;
}
.toast[hidden] { display: none; }
.toast a { color: var(--silver-hi); }

/* ---------- generic page chrome ---------- */
.crumb { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--ink-2); padding-block: 16px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.empty { border: 1px dashed var(--line); padding: 32px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty p { max-width: none; }
.site-main { padding-block: 40px 72px; }

/* WooCommerce notices in brand style. */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	list-style: none;
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--ink);
	background: var(--sheet);
	font-size: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
}
.woocommerce .woocommerce-error::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before { content: none; }
.woocommerce-error { border-left-color: var(--no); }
.woocommerce-error li { list-style: none; }
.woocommerce-message .button,
.woocommerce-info .button { order: 2; min-height: 38px; padding: 0 14px; font-size: 11px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
	.prods { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 782px) {
	.admin-bar .hdr { top: 46px; }
}
@media (max-width: 700px) {
	:root { --hdr-h: 56px; }
	.w, .wrap { padding-inline: 16px; }
	.band { padding-block: 48px; }
	.hdr nav, .hdr .hide-m { display: none; }
	.hdr .burger { display: inline-flex; }
	.hdr .w { gap: 8px; }
	.hdr .logo { width: 62px; margin-right: auto; }
	.hero .w { grid-template-columns: 1fr; gap: 28px; }
	.hero .media { order: -1; }
	.manif { grid-template-columns: 1fr; gap: 20px; }
	.pillars { grid-template-columns: 1fr; }
	.lines { grid-template-columns: 1fr; }
	.prods { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.shops { grid-template-columns: 1fr; }
	.b2b { grid-template-columns: 1fr; }
	.ig { grid-template-columns: repeat(3, 1fr); }
	.ftr .cols { grid-template-columns: 1fr 1fr; }
	.ftr .cols > div:first-child { grid-column: 1 / -1; }
	.toast { bottom: 76px; }
}
@media (min-width: 701px) {
	.drawer { display: none !important; }
}
.shoplist > div.on b { text-decoration: underline; text-underline-offset: 4px; }
.map .pin.on { color: var(--white); z-index: 1; transform: translate(-50%, -100%) scale(1.25); }
