/* Fashion Tex BD
   Layout: white header with the logo, an ink hero carrying the logo's three green swooshes,
   then calm white / mist sections; spec details set in mono like a garment tag. */

@font-face { font-family: "Sora"; src: url("../fonts/sora-var.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
	--ink: #1a2026;
	--ink-2: #252d35;
	--green: #2d6e51;
	--green-dark: #225840;
	--green-on-ink: #6fbf98;
	--mint: #e6f0ea;
	--paper: #ffffff;
	--mist: #f3f6f4;
	--line: #dbe2de;
	--muted: #5a6570;
	--on-ink: #eef2f0;
	--on-ink-muted: #b6c0bb;
	--focus: #2d6e51;

	--f-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
	--f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 6px;
	--header-h: 72px;
	color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--f-body);
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }
.site-main:focus { outline: none; }

.wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.eyebrow {
	font: 500 .78rem/1.2 var(--f-mono);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--green);
	margin-bottom: .9em;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow--light { color: var(--green-on-ink); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--on-ink-muted); max-width: 58ch; }
.lead--dark { color: var(--muted); }
.text-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px;
	border: 2px solid transparent; border-radius: var(--radius);
	font: 600 .98rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--lg { min-height: 52px; padding: 13px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { border-color: rgba(238, 242, 240, .5); color: var(--on-ink); }
.btn--ghost:hover { border-color: var(--on-ink); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--mint); color: var(--green-dark); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(26, 32, 38, .08); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; flex-shrink: 0; }
.site-logo { width: 206px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list a { display: block; padding: 10px 12px; color: var(--ink); font-weight: 600; font-size: .98rem; text-decoration: none; border-radius: var(--radius); }
.nav-list a:hover { color: var(--green); }
.nav-list a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.sub-toggle {
	width: 32px; height: 32px; margin-left: -8px; padding: 0;
	border: 0; background: transparent; cursor: pointer; border-radius: var(--radius);
	display: inline-flex; align-items: center; justify-content: center;
}
.sub-toggle span { width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.sub-toggle[aria-expanded="true"] span { transform: translateY(2px) rotate(-135deg); }
.sub-menu {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: 100%; left: 0; min-width: 240px;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: 0 16px 40px rgba(26, 32, 38, .14);
	display: none;
}
.sub-menu a { font-weight: 400; padding: 8px 12px; }
.sub-menu a:hover { background: var(--mist); }
.has-sub.is-open > .sub-menu { display: block; }
@media (hover: hover) and (min-width: 900px) {
	.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: block; }
}

.nav-toggle {
	display: none; align-items: center; gap: 10px;
	min-height: 44px; padding: 8px 12px;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
	font: 600 .95rem var(--f-body); color: var(--ink); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
	:root { --header-h: 64px; }
	.site-logo { width: 164px; }
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px max(var(--gutter), env(safe-area-inset-right, 0px)) 24px max(var(--gutter), env(safe-area-inset-left, 0px));
		background: var(--paper); border-bottom: 1px solid var(--line);
		box-shadow: 0 20px 40px rgba(26, 32, 38, .12);
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	}
	.nav-open .site-nav { display: flex; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.nav-list > li > a { flex: 1; padding: 14px 4px; font-size: 1.05rem; }
	.nav-list a[aria-current="page"] { box-shadow: none; }
	.sub-toggle { width: 44px; height: 44px; margin: 0; }
	.sub-menu { position: static; display: none; width: 100%; box-shadow: none; border: 0; padding: 0 0 10px 12px; min-width: 0; }
	.has-sub.is-open > .sub-menu { display: block; }
	.nav-cta { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--on-ink); overflow: hidden; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 8vw, 104px); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: end; }
.hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); box-shadow: 0 24px 48px rgba(0, 0, 0, .35); position: relative; z-index: 2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo--1 { grid-column: 1 / 4; grid-row: 1 / 5; }
.hero-photo--2 { grid-column: 4 / 7; grid-row: 2 / 6; }
.hero-photo--3 { grid-column: 2 / 5; grid-row: 4 / 7; z-index: 3; }
/* The three swooshes from the logo, drawn in CSS. */
.hero-swoosh {
	position: absolute; inset: 8% -18% 8% 10%; z-index: 1; pointer-events: none;
	background:
		linear-gradient(155deg, transparent 0 34%, var(--green) 34% 41%, transparent 41% 47%, var(--green) 47% 54%, transparent 54% 60%, var(--green) 60% 65%, transparent 65%);
	opacity: .55; border-radius: 40% 0 0 40%;
}
.hero-visual--empty .hero-swoosh { inset: 0; opacity: .9; border-radius: 0; }
@media (max-width: 899px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-visual { max-width: 420px; justify-self: start; }
	.hero-visual--empty { display: none; }
}

/* ---------- Stats ---------- */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px 24px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__value { font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--f-display); color: var(--green); margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.stat__label { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 699px) {
	.stats-grid { grid-template-columns: 1fr 1fr; }
	.stat, .stat + .stat { padding: 20px 12px 18px 0; border-left: 0; }
	.stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
	.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(28px, 4vw, 48px); }
.section--tint { background: var(--mist); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2 { margin: 0; }
.section-head__note { max-width: 44ch; color: var(--muted); margin: 0; }

/* Category cards */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card a { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper); transition: border-color .15s, box-shadow .15s; height: 100%; }
.cat-card a:hover { border-color: var(--green); box-shadow: 0 10px 28px rgba(26, 32, 38, .08); }
.cat-card__media { display: block; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: var(--mist); }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__body { display: grid; gap: 4px; min-width: 0; }
.cat-card__name { font: 600 1.08rem/1.25 var(--f-display); }
.cat-card__count { font: 500 .8rem/1.2 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
@media (max-width: 999px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .cat-grid { grid-template-columns: 1fr; gap: 12px; } .cat-card a { grid-template-columns: 88px 1fr; } }

/* Placeholder swatch when a product has no photo yet */
.product-card__placeholder {
	display: block; width: 100%; height: 100%; min-height: 100%;
	background: repeating-linear-gradient(155deg, var(--mint) 0 10px, var(--mist) 10px 20px);
}

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.service { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.service:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.service h3 { color: var(--ink); }
.service p { color: var(--muted); margin: 0; }
@media (max-width: 899px) {
	.service-grid { grid-template-columns: 1fr 1fr; }
	.service, .service:not(:nth-child(3n+1)) { padding: 24px 20px 24px 0; border-left: 0; }
	.service:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 559px) {
	.service-grid { grid-template-columns: 1fr; }
	.service, .service:nth-child(even) { padding: 20px 0; border-left: 0; }
}

/* Process: a real sequence, so it is numbered */
.process { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.process li { counter-increment: step; padding: 22px 18px 0 0; border-top: 2px solid var(--line); position: relative; min-width: 0; }
.process li::before { content: counter(step, decimal-leading-zero); display: block; font: 500 .8rem/1 var(--f-mono); color: var(--green); margin-bottom: 12px; letter-spacing: .08em; }
.process li::after { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.process h3 { margin-bottom: 6px; }
.process p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 999px) { .process { grid-template-columns: repeat(3, 1fr); row-gap: 32px; } }
@media (max-width: 559px) {
	.process { grid-template-columns: 1fr; row-gap: 0; }
	.process li { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 24px 22px; }
	.process li::after { top: 0; left: -6px; }
}

/* Product grid and cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
@media (max-width: 1099px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 699px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; } }
.product-card { min-width: 0; }
.product-card__link { display: block; color: var(--ink); text-decoration: none; }
.product-card__media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--mist); margin-bottom: 12px; border: 1px solid var(--line); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
@media (prefers-reduced-motion: no-preference) { .product-card__link:hover .product-card__media img { transform: scale(1.04); } }
.product-card__cat { font: 500 .74rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.product-card__title { font: 600 1rem/1.35 var(--f-body); margin: 0; overflow-wrap: anywhere; }
.product-card__link:hover .product-card__title { color: var(--green); }

/* CTA band */
.cta-band { background: var(--ink); color: var(--on-ink); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: clamp(40px, 6vw, 64px); }
.cta-inner h2 { color: #fff; margin-bottom: 6px; }
.cta-inner p { margin: 0; color: var(--on-ink-muted); }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(28px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .35em; }
.page-hero__lead { color: var(--muted); max-width: 62ch; font-size: 1.08rem; }
.breadcrumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .9rem; color: var(--muted); }
.breadcrumbs li { min-width: 0; overflow-wrap: anywhere; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs--dark { padding-top: 20px; }

/* Search */
.search-form { display: flex; gap: 8px; max-width: 520px; margin-top: 20px; }
.search-form input {
	flex: 1; min-width: 0; min-height: 48px; padding: 10px 14px;
	border: 1px solid #b9c4be; border-radius: var(--radius); background: var(--paper);
	font: 400 1rem var(--f-body); color: var(--ink);
}
.search-form input:focus { border-color: var(--green); outline: 2px solid var(--mint); }
.search-form button { min-height: 48px; padding: 0 18px; border: 0; border-radius: var(--radius); background: var(--ink); color: #fff; font: 600 .98rem var(--f-body); cursor: pointer; }
.search-form button:hover { background: var(--green); }

/* Category chips */
.chips ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; color: var(--ink); text-decoration: none; background: var(--paper); }
.chips a:hover { border-color: var(--green); color: var(--green); }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.result-count { font: 500 .82rem var(--f-mono); color: var(--muted); letter-spacing: .04em; margin-bottom: 18px; }

/* Pagination */
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 40px 0 0; justify-content: center; }
.pagination a, .pagination span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a:hover { border-color: var(--green); color: var(--green); }

/* Empty state */
.empty-state { border: 1px dashed #b9c4be; border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); text-align: center; background: var(--paper); }
.empty-state p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.empty-state .chips ul { justify-content: center; }

/* ---------- Single product ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 899px) { .product-layout { grid-template-columns: 1fr; } }
.gallery { min-width: 0; position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 899px) { .gallery { position: static; } }
.gallery__main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); border: 1px solid var(--line); background: var(--mist); scrollbar-width: none; }
.gallery__main::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 5; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery__thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; }
.gallery__thumbs a { display: block; width: 72px; border: 2px solid transparent; border-radius: 4px; overflow: hidden; }
.gallery__thumbs a[aria-current="true"] { border-color: var(--green); }
.product-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.spec-list { margin: 24px 0; border-top: 1px solid var(--line); }
.spec-list div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font: 500 .8rem/1.6 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 459px) { .spec-list div { grid-template-columns: 1fr; gap: 2px; } }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.product-note { font-size: .92rem; color: var(--muted); }

/* ---------- Content pages ---------- */
.prose { max-width: 70ch; overflow-wrap: break-word; }
.prose--page h2 { margin-top: 1.6em; }
.prose--page h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--green); color: var(--muted); }
.prose .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 899px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.contact-card h2 { font-size: 1.3rem; }
.contact-list { margin: 0 0 20px; }
.contact-list div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 0; }
.contact-list dt { font: 500 .76rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.notice-box { padding: 16px 20px; border-left: 4px solid var(--green); background: var(--mint); border-radius: 0 var(--radius) var(--radius) 0; }
.notice-box p { margin: 0; }

/* ---------- 404 ---------- */
.notfound-inner { max-width: 720px; }
.notfound-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 28px 0 0; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-block: clamp(40px, 6vw, 64px) 32px; }
.footer-logo { display: inline-block; background: var(--paper); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.site-logo--footer { width: 170px; }
.footer-brand p { max-width: 36ch; }
.footer-title { font: 500 .78rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink); margin-bottom: 14px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--green-on-ink); text-decoration: underline; }
.footer-contact li { display: grid; gap: 1px; overflow-wrap: anywhere; }
.footer-contact .label { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-muted); opacity: .8; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 499px) { .footer-grid { grid-template-columns: 1fr; } }

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

/* ---------- Fixes after Phase 2 testing ---------- */
/* On phones the admin toolbar scrolls away, so the sticky header must sit at the very top. */
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
/* Category chips scroll sideways on phones instead of stacking into many rows. */
@media (max-width: 699px) {
	.chips ul { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
	.chips li { flex: 0 0 auto; }
	.empty-state .chips ul { flex-wrap: wrap; justify-content: center; margin-inline: 0; padding-inline: 0; }
}

/* ---------- Phase 3: photo cropping ---------- */
/* Keep heads and collars in view when tall photos are cropped. */
.hero-photo img, .product-card__media img, .cat-card__media img { object-position: 50% 22%; }

/* ---------- Phase 4: quote form ---------- */
.quote-form { margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field .req { color: #b42318; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=month], .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 10px 12px;
	border: 1px solid #b9c4be; border-radius: var(--radius); background: var(--paper);
	font: 400 1rem/1.4 var(--f-body); color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 3px solid var(--mint); outline-offset: 0; }
.field input[type=file] { font: 400 .95rem var(--f-body); padding: 10px; border: 1px dashed #b9c4be; border-radius: var(--radius); background: var(--mist); width: 100%; }
.field [aria-invalid="true"] { border-color: #b42318 !important; background: #fff8f7; }
.field-error { color: #b42318; font-size: .9rem; margin: 0; }
.field-hint { color: var(--muted); font-size: .86rem; margin: 0; }
.field--check { grid-template-columns: 22px 1fr; align-items: start; gap: 10px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.field--check label { font-weight: 400; font-size: .94rem; }
.field--check .field-error { grid-column: 1 / -1; }
.form-note { font-size: .86rem; color: var(--muted); margin: 14px 0 18px; }
.quote-form button[disabled] { opacity: .7; cursor: progress; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-product { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist); }
.form-product img { width: 64px; height: 80px; object-fit: cover; border-radius: 4px; }
.form-product .label { display: block; font: 500 .74rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form-product strong { display: block; }
.form-product .code { font: 500 .82rem var(--f-mono); color: var(--green); }
.form-product__change { font-size: .9rem; }
.form-alert { border: 1px solid #f1b7b0; background: #fff4f2; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; }
.form-alert p { margin: 0; font-weight: 600; color: #8a1c12; }
.form-alert ul { margin: 8px 0 0; padding-left: 1.2em; }
.form-alert a { color: #8a1c12; }
.form-success { border: 1px solid #b7d9c6; background: var(--mint); border-radius: var(--radius); padding: 20px 24px; }
.form-success h3 { color: var(--green-dark); }
.form-success p:last-child { margin-bottom: 0; }

/* WhatsApp button, shown only when a real number is saved in Site Info */
.wa-float {
	position: fixed; z-index: 40;
	right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px;
	background: #1f8f4e; color: #fff; font-weight: 600; text-decoration: none;
	box-shadow: 0 10px 28px rgba(26, 32, 38, .28);
}
.wa-float:hover { background: #18733f; color: #fff; }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }
@media (max-width: 499px) { .wa-float span { display: none; } .wa-float { padding: 0 13px; } }

/* ---------- Phase 5: staff panel (/manage) ---------- */
.m-page { background: var(--mist); min-height: 60vh; }
.m-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 899px) { .m-shell { grid-template-columns: 1fr; } }
.m-side { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 899px) { .m-side { position: static; } .m-side nav ul { display: flex; flex-wrap: wrap; gap: 6px; } }
.m-hello { font-size: .9rem; color: var(--muted); }
.m-hello strong { color: var(--ink); }
.m-side ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; }
.m-side a { display: block; padding: 9px 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600; }
.m-side a:hover { background: var(--mist); }
.m-side a[aria-current="page"] { background: var(--ink); color: #fff; }
.m-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #b42318; color: #fff; font: 600 .72rem/1.6 var(--f-body); }
.m-side-note a, .m-logout { font-weight: 400; font-size: .92rem; color: var(--muted); padding: 4px 12px; }
.m-main { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); min-width: 0; }
.m-main h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.m-main h2 { font-size: 1.2rem; margin-top: 28px; }
.m-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.m-head h1 { margin: 0; }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 20px; }
@media (max-width: 599px) { .m-cards { grid-template-columns: 1fr; } }
.m-card { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); }
.m-card:hover { border-color: var(--green); }
.m-card__n { font: 700 2rem/1 var(--f-display); color: var(--green); }
.m-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.m-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.m-filter input, .m-filter select { min-height: 44px; padding: 8px 12px; border: 1px solid #b9c4be; border-radius: var(--radius); font: 400 .95rem var(--f-body); background: var(--paper); }
.m-filter input { flex: 1 1 220px; min-width: 0; }
.m-count, .m-muted { color: var(--muted); font-size: .92rem; }
.m-table-wrap { overflow-x: auto; }
.m-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.m-table th { text-align: left; font: 500 .74rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.m-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.m-table a { font-weight: 600; }
.m-thumb img { width: 48px; height: 60px; object-fit: cover; border-radius: 4px; }
.m-row-actions { white-space: nowrap; }
.m-row-actions a, .m-row-actions form { display: inline-block; margin-right: 12px; }
.m-mono { font-family: var(--f-mono); font-size: .88rem; }
.m-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); font-size: .8rem; }
.m-pill--new { background: #fff4f2; border-color: #f1b7b0; color: #8a1c12; font-weight: 600; }
.m-notice { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 18px; border: 1px solid; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.m-notice ul { margin: 0; padding-left: 1.2em; }
.m-notice--ok { background: var(--mint); border-color: #b7d9c6; color: var(--green-dark); }
.m-notice--bad { background: #fff4f2; border-color: #f1b7b0; color: #8a1c12; }
.m-notice--warn { background: #fff8e6; border-color: #f0d48a; color: #6b4e00; }
.m-inline { display: inline; }
.m-link { background: none; border: 0; padding: 0; color: var(--green); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.m-link--danger { color: #b42318; }
.m-danger { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.m-label { font-weight: 600; font-size: .95rem; }
.m-sub { font-weight: 400 !important; font-size: .9rem !important; color: var(--muted); }
.m-photos { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 8px; }
.m-photos figure { margin: 0; width: 96px; }
.m-photos img { width: 96px; height: 120px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.m-photos figcaption { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.m-radio { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.m-radio legend { margin-bottom: 6px; }
.m-radio label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.m-form .wp-editor-wrap { border: 1px solid #b9c4be; border-radius: var(--radius); overflow: hidden; }
.m-gate { max-width: 460px; margin: 40px auto; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
@media (max-width: 599px) { .m-table th:nth-child(4), .m-table td:nth-child(4) { display: none; } .m-table td { padding: 8px 6px; } }

/* ===== Phase 5b: website text & photos editor ===== */
.m-help { margin: 6px 0 0; color: var(--muted); font-size: .86rem; }
.m-small { font-size: .86rem; margin: 2px 0 6px; }
.m-check { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 400 !important; margin: 4px 0 8px; }
.m-imgprev { margin: 4px 0 6px; }
.m-imgprev img { width: 96px; height: 120px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: var(--mist); }
.m-imgprev--wide img { width: auto; max-width: 100%; height: 72px; object-fit: contain; padding: 8px; }
.m-imgfield input[type=file] { display: block; max-width: 100%; }
.m-form h2 { margin-top: 8px; }
.site-logo.site-logo--custom { width: auto; height: auto; max-width: 206px; max-height: 56px; }
@media (max-width: 599px) { .site-logo.site-logo--custom { max-width: 164px; max-height: 44px; } }
.page-photo { margin: 0 0 32px; }
.page-photo img { width: 100%; height: auto; max-height: 480px; object-fit: cover; border-radius: var(--radius); display: block; }
