/* ==========================================================================
   Zamco theme
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
	--z-ink: #141618;
	--z-text: #55585b;
	--z-text-strong: #3d4043;
	--z-muted: #5f6264;
	--z-faint: #8a8d8f;
	--z-white: #ffffff;
	--z-stone: #f0efe9;
	--z-stone-2: #e9e7e0;
	--z-tile: #f7f6f2;
	--z-line: #e4e1da;
	--z-line-2: #d8d4cb;
	--z-accent: #365b77;
	--z-accent-hover: #2a4960;
	--z-teal: #6fb0b4;
	--z-teal-text: #3d6f73;
	--z-danger: #a33a2c;
	--z-stock-in: #2f7a4a;
	--z-stock-in-dot: #3d9a5f;
	--z-stock-order: #8a5a12;
	--z-stock-order-dot: #d9a441;
	--z-stock-out: #a33a2c;
	--z-stock-out-dot: #c8483a;
	--z-font-head: 'Albert Sans', 'Helvetica Neue', Arial, sans-serif;
	--z-font-body: 'Kumbh Sans', 'Helvetica Neue', Arial, sans-serif;
	--z-container: 1340px;
	--z-gutter: clamp(16px, 4vw, 50px);
	--z-section: clamp(64px, 8vw, 104px);
	--z-pill: 999px;
	--z-ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
	margin: 0;
	background: var(--z-white);
	color: var(--z-text);
	font-family: var(--z-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

img { display: block; }

a { color: var(--z-ink); text-decoration: none; transition: color .2s var(--z-ease); }
a:hover { color: var(--z-accent); }

:focus-visible { outline: 2px solid var(--z-accent); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--z-font-head);
	font-weight: 400;
	color: var(--z-ink);
	letter-spacing: -0.02em;
	line-height: 1.15;
	margin: 0 0 .6em;
}

p { margin: 0 0 1em; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

.container {
	width: 100%;
	max-width: var(--z-container);
	margin-inline: auto;
	padding-inline: var(--z-gutter);
}
.container--wide { max-width: none; }

.screen-reader-text {
	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 !important;
	top: 12px; left: 12px;
	width: auto; height: auto;
	clip: auto;
	z-index: 1000;
	padding: 12px 20px;
	background: var(--z-ink);
	color: var(--z-white);
	border-radius: var(--z-pill);
}

/* ── Type helpers and buttons ───────────────────────────────────────────── */
.eyebrow {
	font-family: var(--z-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--z-text-strong);
	margin: 0 0 14px;
}
.eyebrow--light { color: var(--z-white); }

.section-title {
	font-size: clamp(32px, 3.6vw, 48px);
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0;
}

.text-link {
	font-size: 15px;
	font-weight: 500;
	color: var(--z-accent);
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	white-space: nowrap;
}
.text-link:hover { color: var(--z-accent-hover); }

.btn,
.button,
button.button,
input[type="submit"].button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 30px;
	border-radius: var(--z-pill);
	border: 1px solid transparent;
	background: var(--z-accent);
	color: var(--z-white);
	font-family: var(--z-font-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s var(--z-ease), color .2s var(--z-ease), border-color .2s var(--z-ease);
}
.btn:hover,
.button:hover { background: var(--z-accent-hover); color: var(--z-white); }

.btn--white { background: var(--z-white); color: var(--z-ink); }
.btn--white:hover { background: var(--z-stone); color: var(--z-ink); }

.btn--outline-light { background: transparent; border-color: var(--z-white); color: var(--z-white); }
.btn--outline-light:hover { background: var(--z-white); color: var(--z-ink); }

.btn--outline { background: transparent; border-color: var(--z-line-2); color: var(--z-ink); }
.btn--outline:hover { background: var(--z-accent); border-color: var(--z-accent); color: var(--z-white); }

.btn--accent { background: var(--z-accent); color: var(--z-white); }
.btn--block { width: 100%; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button-row--center { justify-content: center; }

/* ── Top bar ────────────────────────────────────────────────────────────── */
.topbar {
	background: var(--z-stone);
	color: var(--z-text-strong);
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
	padding: 9px 0;
}
.topbar a { color: var(--z-ink); text-decoration: underline; text-underline-offset: 3px; }
.topbar strong { color: var(--z-ink); font-weight: 600; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--z-white);
	border-bottom: 1px solid var(--z-line);
}
.admin-bar .site-header { top: 32px; }

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	min-height: 76px;
}

.site-logo { display: inline-flex; align-items: center; padding: 10px 0; }
.site-logo img { height: 40px; width: auto; }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	align-items: center; justify-content: center;
	background: none; border: 0; padding: 0;
	color: var(--z-ink);
	cursor: pointer;
}
.nav-toggle .zm-icon--close,
.nav-open .nav-toggle .zm-icon--menu { display: none; }
.nav-open .nav-toggle .zm-icon--close { display: block; }
.nav-backdrop { display: none; }

.site-nav { justify-self: end; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul,
.site-nav .menu { display: flex; align-items: center; gap: 30px; }
.site-nav li { position: relative; display: flex; align-items: center; }
.site-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 15px;
	font-weight: 500;
	color: var(--z-ink);
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--z-accent); }

.submenu-toggle {
	display: inline-flex;
	align-items: center; justify-content: center;
	width: 24px; height: 44px;
	margin-left: 2px;
	background: none; border: 0; padding: 0;
	color: var(--z-ink);
	cursor: pointer;
}
.submenu-toggle svg { transition: transform .2s var(--z-ease); }
.is-open > .submenu-toggle svg { transform: rotate(180deg); }

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -20px;
	min-width: 260px;
	padding: 12px 0;
	background: var(--z-white);
	border: 1px solid var(--z-line);
	box-shadow: 0 18px 40px rgba(20, 22, 24, .08);
	display: none;
	flex-direction: column;
	z-index: 60;
}
.site-nav .sub-menu li { display: block; }
.site-nav .sub-menu a { display: flex; width: 100%; min-height: 40px; padding: 0 22px; font-weight: 400; color: var(--z-text-strong); }
.site-nav .sub-menu a:hover { color: var(--z-accent); background: var(--z-stone); }
.site-nav .menu-icon { display: inline-flex; flex: none; width: 20px; margin-right: 12px; color: var(--z-accent); }
.site-nav .menu-icon .zm-icon { width: 20px; height: 20px; }

@media (hover: hover) and (min-width: 1000px) {
	.site-nav .menu-item-has-children:hover > .sub-menu { display: flex; }
}
.site-nav .menu-item-has-children:focus-within > .sub-menu,
.site-nav .menu-item-has-children.is-open > .sub-menu { display: flex; }

.header-actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.header-action {
	position: relative;
	display: inline-flex;
	align-items: center; justify-content: center;
	width: 44px; height: 44px;
	background: none; border: 0; padding: 0;
	color: var(--z-ink);
	cursor: pointer;
}
.header-action:hover { color: var(--z-accent); }
.header-quote-wrap { display: inline-flex; }

/* Header basket preview (Phase 3): looks and behaves like the quote list's. */
.header-cart-wrap { position: relative; display: inline-flex; }
.basket-preview { display: none; }
@media (hover: hover) and (pointer: fine) {
	.basket-preview {
		display: block;
		position: absolute;
		top: 100%;
		right: -12px;
		z-index: 60;
		width: 380px;
		padding-top: 12px;
		text-align: left;
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity .18s var(--z-ease), transform .18s var(--z-ease), visibility 0s linear .18s;
	}
	.header-cart-wrap:hover .basket-preview,
	.header-cart-wrap:focus-within .basket-preview {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}
}
.basket-preview__card { padding: 18px; background: var(--z-white); border: 1px solid var(--z-line); box-shadow: 0 18px 40px -18px rgba(20, 22, 24, .28); }
.basket-preview__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.basket-preview__title { font-family: var(--z-font-head); font-size: 17px; color: var(--z-ink); }
.basket-preview__count { font-size: 13px; color: var(--z-muted); }
.basket-preview__empty { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--z-muted); }
.basket-preview__items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--z-line); }
.basket-preview__item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 24px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--z-line); }
.basket-preview__media { display: grid; place-items: center; width: 44px; height: 44px; background: var(--z-tile); color: var(--z-faint); overflow: hidden; }
.basket-preview__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.basket-preview__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.basket-preview__name { font-size: 14px; line-height: 1.35; color: var(--z-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.basket-preview__name:hover { color: var(--z-accent); }
.basket-preview__qty { font-size: 13px; color: var(--z-muted); }
.basket-preview__price { font-family: var(--z-font-head); font-size: 14px; color: var(--z-ink); white-space: nowrap; }
.basket-preview__remove { display: grid; place-items: center; width: 24px; height: 24px; color: var(--z-faint); }
.basket-preview__remove:hover { color: var(--z-danger); }
.basket-preview__more { margin: 10px 0 0; font-size: 13px; color: var(--z-muted); }
.basket-preview__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 14px 0 0; font-size: 14px; color: var(--z-text-strong); }
.basket-preview__total strong { font-family: var(--z-font-head); font-size: 17px; font-weight: 500; color: var(--z-ink); }
.basket-preview__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.basket-preview__button { display: flex; align-items: center; justify-content: center; min-height: 46px; background: var(--z-accent); color: var(--z-white); font-size: 15px; transition: background-color .15s, color .15s, border-color .15s; }
.basket-preview__card > .basket-preview__button { margin-top: 14px; }
.basket-preview__button:hover { background: var(--z-accent-hover); color: var(--z-white); }
.basket-preview__button--outline { background: none; color: var(--z-ink); border: 1px solid var(--z-line-2); }
.basket-preview__button--outline:hover { border-color: var(--z-ink); }

.cart-count,
.quote-count {
	position: absolute;
	top: 5px; right: 3px;
	min-width: 18px; height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--z-accent);
	color: var(--z-white);
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}
.cart-count.is-empty,
.quote-count.is-empty { display: none; }

.search-panel { border-top: 1px solid var(--z-line); background: var(--z-white); padding: 22px 0; }
.search-panel .search-form { max-width: 760px; margin-inline: auto; }

.search-form { position: relative; display: flex; gap: 10px; }
.search-form__field { position: relative; flex: 1 1 auto; min-width: 0; }
.search-form__field > .zm-icon {
	position: absolute;
	top: 50%; left: 18px;
	transform: translateY(-50%);
	color: var(--z-muted);
	pointer-events: none;
}
.search-form .search-form__input {
	width: 100%;
	min-height: 52px;
	padding: 0 22px 0 50px;
	border: 1px solid var(--z-line-2);
	border-radius: var(--z-pill);
	background: var(--z-white);
	font-size: 16px;
	color: var(--z-ink);
}
.search-form__input::placeholder { color: var(--z-muted); }
.search-form__input::-webkit-search-cancel-button { cursor: pointer; }
.search-form .search-form__input:focus { outline: none; border-color: var(--z-accent); box-shadow: 0 0 0 3px rgba(54, 91, 119, .15); }
.search-form__submit {
	min-height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: var(--z-pill);
	background: var(--z-accent);
	color: var(--z-white);
	font-weight: 500;
	cursor: pointer;
	transition: background-color .2s var(--z-ease);
}
.search-form__submit:hover { background: var(--z-accent-hover); }
.search-form.is-loading .search-form__field > .zm-icon { animation: zm-pulse .9s ease-in-out infinite; }
@keyframes zm-pulse { 50% { opacity: .35; } }

/* Shop search, left of the grid or list switch: same height, border and type as the sort menu */
.search-form--shop { flex: 0 1 auto; gap: 8px; }
.search-form--shop .search-form__field { flex: 0 1 340px; width: 340px; }
.search-form--shop .search-form__field .search-form__input { min-height: 46px; padding-left: 44px; font-size: 15px; }
.search-form--shop .search-form__field > .zm-icon { left: 16px; }
.search-form--shop .search-form__submit { min-height: 46px; padding: 0 22px; font-size: 15px; }

.search-suggest {
	position: absolute;
	top: calc(100% + 8px);
	left: 0; right: 0;
	z-index: 40;
	list-style: none;
	margin: 0;
	padding: 8px;
	max-height: min(70vh, 520px);
	overflow-y: auto;
	background: var(--z-white);
	border: 1px solid var(--z-line);
	border-radius: 16px;
	box-shadow: 0 24px 50px rgba(20, 22, 24, .14);
}
.search-suggest[hidden] { display: none; }
.search-suggest__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 10px;
	border-radius: 10px;
	color: var(--z-ink);
}
.search-suggest__item[aria-selected="true"] .search-suggest__link,
.search-suggest__link:hover { background: var(--z-tile); color: var(--z-ink); }
.search-suggest__media {
	flex: 0 0 52px;
	width: 52px; height: 52px;
	display: flex;
	align-items: center; justify-content: center;
	background: var(--z-tile);
	border-radius: 8px;
	overflow: hidden;
	color: var(--z-faint);
}
.search-suggest__media img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.search-suggest__text { display: flex; flex-direction: column; min-width: 0; }
.search-suggest__name { font-family: var(--z-font-head); font-size: 16px; line-height: 1.3; }
.search-suggest__meta { font-size: 13px; color: var(--z-muted); }
.search-suggest__all a {
	display: flex;
	justify-content: center;
	min-height: 44px;
	align-items: center;
	margin-top: 4px;
	border-top: 1px solid var(--z-line);
	font-size: 15px;
	font-weight: 500;
	color: var(--z-accent);
}
.search-suggest__all[aria-selected="true"] a { background: var(--z-tile); }
.search-suggest__empty { padding: 14px 12px; font-size: 15px; color: var(--z-muted); }

/* ── Home: hero ─────────────────────────────────────────────────────────── */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 3.2fr) minmax(0, 1fr);
	gap: 14px;
	padding: 14px;
}
.hero__main,
.hero__side {
	position: relative;
	min-height: clamp(520px, 72vh, 720px);
	overflow: hidden;
	background: #2a2622;
}
.hero__img,
.hero__side-img,
.band__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero__main::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(18, 18, 18, .38);
}
.hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	min-height: inherit;
	max-width: 860px;
	padding: clamp(28px, 5vw, 64px);
}
.hero__title {
	font-size: clamp(40px, 4.7vw, 70px);
	line-height: 1.04;
	letter-spacing: -0.035em;
	color: var(--z-white);
	margin: 0 0 22px;
}
.hero__text { font-size: 18px; color: var(--z-white); max-width: 560px; margin: 0 0 34px; }

.hero__side-panel { position: absolute; inset: 0; display: block; color: var(--z-white); }
.hero__side-panel[hidden] { display: none; }
.hero__side-panel:hover { color: var(--z-white); }
.hero__side-panel:focus-visible { outline-color: var(--z-white); outline-offset: -6px; }
.hero__side-img { object-position: 62% 50%; transition: transform .8s var(--z-ease); }
.hero__side-panel:hover .hero__side-img { transform: scale(1.04); }
.hero__side-caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	padding: 26px 28px;
	background: rgba(18, 18, 18, .55);
}
.hero__side-caption .eyebrow { margin-bottom: 6px; font-size: 12px; }
.hero__side-title { font-family: var(--z-font-head); font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; }

/* ── Home: sections ─────────────────────────────────────────────────────── */
.section { padding-block: var(--z-section); }
.section + .section { padding-top: 0; }

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 40px;
	margin-bottom: 44px;
}
.section-head--split { align-items: flex-start; }
.section-head--split .eyebrow { flex: 1 1 280px; padding-top: 14px; }
.section-head--split .section-title { flex: 1 1 520px; }

.dept-tiles {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.dept-tile a { display: block; text-align: center; color: var(--z-ink); }
.dept-tile__media {
	display: flex;
	align-items: center; justify-content: center;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--z-stone);
	border-right: 1px solid var(--z-white);
}
.dept-tile:nth-child(even) .dept-tile__media { background: var(--z-stone-2); }
.dept-tile__img {
	width: 62%;
	height: 62%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform .6s var(--z-ease);
}
.dept-tile a:hover .dept-tile__img { transform: scale(1.05); }
.dept-tile__label {
	display: block;
	padding: 20px 10px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.band {
	position: relative;
	display: flex;
	align-items: center; justify-content: center;
	min-height: 560px;
	overflow: hidden;
	background: #2a2622;
}
.band::after { content: ''; position: absolute; inset: 0; background: rgba(18, 18, 18, .56); }
.band__content {
	position: relative;
	z-index: 1;
	max-width: 780px;
	padding: 80px var(--z-gutter);
	text-align: center;
}
.band__title {
	font-size: clamp(34px, 4.4vw, 60px);
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--z-white);
	margin: 0 0 20px;
}
.band__text { font-size: 17px; color: var(--z-white); margin: 0 0 34px; }

.visit {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
	align-items: center;
	gap: 36px clamp(40px, 7vw, 110px);
	padding-block: clamp(64px, 7vw, 100px);
}
.visit__mark { color: var(--z-accent); }
.visit__mark .excellence-mark { display: block; width: 100%; max-width: 440px; height: auto; }
.visit__main { display: flex; flex-direction: column; gap: 28px; }
.visit__title { font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.025em; margin: 0; }
.visit__body { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
@media (max-width: 799px) {
	.visit { grid-template-columns: minmax(0, 1fr); }
	.visit__mark .excellence-mark { max-width: 280px; }
}
.visit__details { font-size: 15px; line-height: 1.7; color: var(--z-text-strong); }
.visit__details p { margin: 0; }

/* ── Home: search band ──────────────────────────────────────────────────── */
.home-search { margin: 0 14px; padding-block: clamp(34px, 4.5vw, 54px); background: var(--z-stone); }
.home-search__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
	gap: 18px 56px;
	align-items: center;
}
.home-search__title { font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -0.025em; margin: 0 0 6px; }
.home-search__text { margin: 0; font-size: 16px; color: var(--z-text-strong); }
.search-form--home .search-form__field .search-form__input { min-height: 60px; font-size: 17px; padding-left: 54px; }
.search-form--home .search-form__field > .zm-icon { left: 20px; }
.search-form--home .search-form__submit { min-height: 60px; padding: 0 34px; font-size: 16px; }
@media (max-width: 899px) { .home-search__inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) {
	.search-form--home { flex-direction: column; }
	.search-form--home .search-form__submit { width: 100%; min-height: 54px; }
}

/* ── Home: how it works (catalogue mode) ────────────────────────────────── */
.how { padding-block: var(--z-section); background: var(--z-stone); }
.how .section-head { margin-bottom: 56px; }
.how-steps {
	list-style: none;
	margin: 0 0 48px; padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 32px;
	counter-reset: none;
}
.how-step__num {
	display: block;
	margin-bottom: 18px;
	font-family: var(--z-font-head);
	font-size: clamp(48px, 4.6vw, 68px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--z-accent);
}
.how-step__title { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 10px; }
.how-step__text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--z-text-strong); }
@media (max-width: 999px) { .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .how-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ── Product grids and cards ────────────────────────────────────────────── */
ul.products {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 44px 22px;
}
ul.products.products--row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1199px) { ul.products.products--row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.product-card { display: flex; flex-direction: column; min-width: 0; }
.product-card__link { display: block; color: var(--z-ink); }
.product-card__link:hover { color: var(--z-ink); }

.product-card__media {
	position: relative;
	display: flex;
	align-items: center; justify-content: center;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--z-tile);
}
/* The whole photo, as large as the tile allows: wide photos fill the width, tall ones the height. */
.product-card__media img,
.product-card__img {
	width: 84%;
	height: 84%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform .5s var(--z-ease);
}
.product-card__link:hover .product-card__media img { transform: scale(1.05); }

.product-card__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	color: var(--z-faint);
}
.product-card__placeholder span {
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--z-muted);
}

.product-card__badge {
	position: absolute;
	top: 14px; left: 14px;
	padding: 4px 12px;
	border-radius: var(--z-pill);
	background: var(--z-ink);
	color: var(--z-white);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.product-card__cat {
	display: block;
	margin: 16px 0 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--z-muted);
}
.product-card__title {
	font-family: var(--z-font-head);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--z-ink);
	transition: color .2s var(--z-ease);
}
.product-card__link:hover .product-card__title { color: var(--z-accent); }

.product-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 10px;
}
.product-card__meta { display: flex; flex-direction: column; min-width: 0; }

.price {
	font-family: var(--z-font-head);
	font-size: 17px;
	color: var(--z-ink);
}
.price del { color: var(--z-faint); margin-right: 6px; font-size: .9em; }
.price ins { text-decoration: none; }
/* A linked client's own price (Phases 2 and 3). */
.price-label { display: block; font-family: var(--z-font-body); font-size: 12px; line-height: 1.4; color: var(--z-muted); }

.stock-line { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--z-stock-in); }
.stock-line::before {
	content: '';
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--z-stock-in-dot);
}
.stock-line--order { color: var(--z-stock-order); }
.stock-line--order::before { background: var(--z-stock-order-dot); }
.stock-line--out { color: var(--z-stock-out); }
.stock-line--out::before { background: var(--z-stock-out-dot); }

.price-request { font-family: var(--z-font-head); font-size: 15px; color: var(--z-ink); }
/* On cards the price label adds the product, like the round button beside it. */
button.price-request--add {
	appearance: none;
	background: none; border: 0; padding: 0; margin: 0;
	font: inherit; font-family: var(--z-font-head); font-size: 15px; line-height: 1.3;
	color: var(--z-accent);
	text-align: left;
	cursor: pointer;
	text-decoration: underline transparent;
	text-underline-offset: 3px;
	transition: text-decoration-color .15s, color .15s;
}
button.price-request--add:hover { color: var(--z-ink); text-decoration-color: currentColor; }
/* List rows have their own "Add to quote list" button, so the label would only repeat it. */
.zamco-list-view .shop-results .price-request--add { display: none; }

.product-card__add {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center; justify-content: center;
	width: 44px; height: 44px;
	min-height: 0;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--z-line-2);
	background: var(--z-white);
	color: var(--z-ink);
}
.product-card__add:hover { background: var(--z-accent); border-color: var(--z-accent); color: var(--z-white); }
.product-card__add.loading { opacity: .5; pointer-events: none; }
.product-card__add.added { background: var(--z-accent); border-color: var(--z-accent); color: var(--z-white); }
.product-card .added_to_cart { display: none; }

/* Trade shop: a quote icon beside the basket button (both round). */
.product-card__actions { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.product-card__quote { color: var(--z-accent); }
.product-card__quote.is-in-list .zm-icon { display: none; }

/* Trade shop product page: "Add to quote list" under the basket form. */
.product-quote { margin: 14px 0 6px; }
.product-quote__add { display: inline-flex; align-items: center; gap: 8px; }
.product-quote .product-quote__add .zq-add__count,
.product-quote .product-quote__add.is-in-list .zq-add__count { display: none; }
.product-quote .product-quote__add.is-in-list .zm-icon { display: inline-block; }
.product-quote__note { margin: 8px 0 0; font-size: 13px; color: var(--z-muted); }

/* Extras that only the list view shows */
.product-card__details,
.product-card__row-add { display: none; }

/* ── Shop ───────────────────────────────────────────────────────────────── */
.shop-main { padding-top: 36px; padding-bottom: 110px; }

.shop-topline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	margin-bottom: 34px;
}
.breadcrumb { font-size: 13px; color: var(--z-muted); }
.breadcrumb a { color: var(--z-muted); }
.breadcrumb a:hover { color: var(--z-accent); }
.breadcrumb__sep { margin: 0 8px; }

.shop-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 40px;
	margin-bottom: 30px;
}
.shop-title {
	display: flex;
	align-items: center;
	gap: .3em;
	font-size: clamp(38px, 4.4vw, 60px);
	line-height: 1.05;
	letter-spacing: -0.035em;
	margin: 0 0 10px;
}
.shop-title__icon { display: inline-flex; flex: none; color: #a59e90; } /* deeper stone, readable on white */
.shop-title__icon .zm-icon { width: .8em; height: .8em; stroke-width: 1.3; }
.shop-count .woocommerce-result-count { margin: 0; font-size: 15px; color: var(--z-muted); }

/* Grid or list, beside the sort menu */
.shop-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.view-toggle {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--z-line-2);
	border-radius: var(--z-pill);
	background: var(--z-white);
}
.view-toggle__btn {
	display: inline-flex;
	align-items: center; justify-content: center;
	width: 42px; height: 38px;
	border: 0;
	border-radius: var(--z-pill);
	background: none;
	color: var(--z-muted);
	cursor: pointer;
	transition: background-color .2s var(--z-ease), color .2s var(--z-ease);
}
.view-toggle__btn:hover { color: var(--z-ink); }
.view-toggle__btn[aria-pressed="true"] { background: var(--z-accent); color: var(--z-white); }

/* List view: one product per row, with code, unit and a quantity box */
.zamco-list-view .shop-results ul.products { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--z-line); }
.zamco-list-view .shop-results .product-card {
	flex-direction: row;
	align-items: center;
	gap: 14px 32px;
	padding: 14px 0;
	border-bottom: 1px solid var(--z-line);
}
.zamco-list-view .shop-results .product-card__link {
	flex: 1 1 auto;
	min-width: 0;
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	column-gap: 20px;
	align-items: center;
}
.zamco-list-view .shop-results .product-card__media { grid-column: 1; grid-row: 1 / span 3; width: 76px; aspect-ratio: 1 / 1; }
.zamco-list-view .shop-results .product-card__link > :not(.product-card__media) { grid-column: 2; }
.zamco-list-view .shop-results .product-card__link:hover .product-card__media img { transform: none; }
.zamco-list-view .shop-results .product-card__placeholder span,
.zamco-list-view .shop-results .product-card__badge { display: none; }
.zamco-list-view .shop-results .product-card__placeholder .zm-icon { width: 30px; height: 30px; }
.zamco-list-view .shop-results .product-card__cat { margin: 0 0 2px; }
.zamco-list-view .shop-results .product-card__title { font-size: 17px; }
.zamco-list-view .shop-results .product-card__details { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 4px; font-size: 13px; color: var(--z-muted); }
.zamco-list-view .shop-results .product-card__foot { flex: 0 0 auto; margin: 0; padding: 0; gap: 28px; }
.zamco-list-view .shop-results .product-card__meta { min-width: 150px; }
.zamco-list-view .shop-results .product-card__row-add { display: block; }
.zamco-list-view .shop-results .product-card__foot:has(.product-card__row-add) .product-card__add { display: none; }

.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select,
.shop-filters select {
	min-height: 46px;
	padding: 0 44px 0 18px;
	border: 1px solid var(--z-line-2);
	border-radius: var(--z-pill);
	background: var(--z-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23141618' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 18px center;
	appearance: none;
	font-size: 15px;
	color: var(--z-ink);
	cursor: pointer;
}

.notice-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	margin-bottom: 44px;
	padding: 16px 22px;
	background: var(--z-stone);
	font-size: 15px;
	color: var(--z-text-strong);
}

.shop-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 48px 56px;
	align-items: start;
}

.filters-toggle > summary {
	display: none;
	list-style: none;
	min-height: 48px;
	padding: 0 20px;
	align-items: center;
	border: 1px solid var(--z-line-2);
	border-radius: var(--z-pill);
	font-weight: 500;
	color: var(--z-ink);
	cursor: pointer;
}
.filters-toggle > summary::-webkit-details-marker { display: none; }

.filter-title {
	font-family: var(--z-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--z-ink);
	margin: 0 0 16px;
}
.filter-links { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.filter-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 32px; font-size: 15px; color: var(--z-text-strong); }
.filter-links a[aria-current="page"] { color: var(--z-ink); font-weight: 600; }
.filter-links a:hover { color: var(--z-accent); }
.filter-links .is-current > a { color: var(--z-ink); font-weight: 600; }
.filter-sublinks {
	list-style: none;
	margin: 4px 0 10px;
	padding: 0 0 0 14px;
	border-left: 1px solid var(--z-line);
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.filter-sublinks a {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 30px;
	font-size: 14px;
	font-weight: 400;
	color: var(--z-text);
}
.filter-sublinks a[aria-current="page"] { color: var(--z-ink); font-weight: 600; }
.filter-count { color: var(--z-muted); font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; }
.filter-form.is-autosubmit .filter-apply { display: none; }

.filter-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 16px; font-size: 15px; color: var(--z-text-strong); cursor: pointer; }
.filter-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--z-accent); }

/* Attribute filters (inc/filters.php): links that tick and untick, with result counts. */
.filter-group { margin: 34px 0 0; }
.filter-options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.filter-option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 34px;
	font-size: 15px;
	color: var(--z-text-strong);
}
.filter-option:hover { color: var(--z-accent); }
.filter-option__label { flex: 1 1 auto; min-width: 0; }
.filter-box {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border: 1px solid var(--z-line-2);
	border-radius: 5px;
	background: var(--z-white);
	color: transparent;
	transition: background-color .15s var(--z-ease), border-color .15s var(--z-ease);
}
.filter-option:hover .filter-box { border-color: var(--z-accent); }
.filter-option[aria-checked="true"] { color: var(--z-ink); font-weight: 500; }
.filter-option[aria-checked="true"] .filter-box { border-color: var(--z-accent); background: var(--z-accent); color: var(--z-white); }
.filter-swatch {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(20, 22, 24, .18);
}
.filter-more > summary {
	display: inline-flex;
	min-height: 34px;
	align-items: center;
	list-style: none;
	font-size: 14px;
	color: var(--z-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.filter-more > summary::-webkit-details-marker { display: none; }
.filter-more[open] > summary { order: 2; }
.filter-more { display: flex; flex-direction: column; }
.filter-more__hide,
.filter-more[open] .filter-more__show { display: none; }
.filter-more[open] .filter-more__hide { display: inline; }

.active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0 0 26px;
}
.active-filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 12px 0 14px;
	border: 1px solid var(--z-line-2);
	border-radius: var(--z-pill);
	background: var(--z-white);
	font-size: 14px;
	color: var(--z-ink);
}
.active-filter:hover { border-color: var(--z-ink); }
.active-filter__label { color: var(--z-muted); }
.active-filter svg { color: var(--z-muted); }
.active-filters__clear { font-size: 14px; color: var(--z-accent); text-decoration: underline; text-underline-offset: 3px; }

.woocommerce-pagination { margin-top: 70px; }
.woocommerce-pagination ul.page-numbers {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
	display: inline-flex;
	align-items: center; justify-content: center;
	min-width: 44px; height: 44px;
	padding: 0 14px;
	border-radius: var(--z-pill);
	font-size: 15px;
	color: var(--z-ink);
}
.woocommerce-pagination .page-numbers a:hover { background: var(--z-stone); }
.woocommerce-pagination .page-numbers .current { background: var(--z-accent); color: var(--z-white); }
.woocommerce-pagination .page-numbers .prev,
.woocommerce-pagination .page-numbers .next { border: 1px solid var(--z-line-2); padding: 0 22px; }

.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.woocommerce-no-products-found .woocommerce-info {
	list-style: none;
	margin: 0 0 30px;
	padding: 16px 22px;
	background: var(--z-stone);
	border-left: 0;
	font-size: 15px;
	color: var(--z-text-strong);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
}
.woocommerce-error { background: #f8ebe8; color: var(--z-danger); }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button,
.woocommerce-info .button { min-height: 40px; padding: 0 20px; order: 2; }

/* ── Single product ─────────────────────────────────────────────────────── */
.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 48px 72px;
	align-items: start;
}
.single-product div.product > .related,
.single-product div.product > .upsells { grid-column: 1 / -1; margin-top: 70px; }

.woocommerce-product-gallery { position: relative; background: var(--z-tile); }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; }
.woocommerce-product-gallery__image a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.woocommerce-product-gallery__image img {
	width: 78% !important;
	height: 78%;
	object-fit: contain;
	mix-blend-mode: multiply;
}
.woocommerce-product-gallery--without-images .woocommerce-product-gallery__image img { width: 100% !important; height: 100%; mix-blend-mode: normal; }
.woocommerce-product-gallery .flex-control-thumbs {
	list-style: none;
	margin: 12px 0 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	background: var(--z-white);
}
.woocommerce-product-gallery .flex-control-thumbs img { background: var(--z-tile); cursor: pointer; opacity: .6; mix-blend-mode: multiply; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; }
.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 16px; right: 16px;
	z-index: 5;
	display: flex;
	align-items: center; justify-content: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--z-white);
	font-size: 0;
	color: transparent;
}
.woocommerce-product-gallery__trigger::before {
	content: '';
	width: 18px; height: 18px;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141618' stroke-width='1.6'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M16.2 16.2 21 21M11 8v6M8 11h6'/%3E%3C/svg%3E");
}
.woocommerce-product-gallery__trigger img { display: none !important; }

.summary { min-width: 0; max-width: 560px; }
.product-eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--z-muted);
	margin-bottom: 14px;
}
.product_title {
	font-size: clamp(34px, 3.4vw, 46px);
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0 0 22px;
}
.summary > .price { display: block; font-size: 30px; letter-spacing: -0.02em; margin: 0 0 4px; }
.summary > .price .price-request { font-size: 24px; letter-spacing: -0.01em; }
.summary > .price .price-label { font-size: 14px; letter-spacing: 0; margin-bottom: 2px; }
.price-note { font-size: 14px; color: var(--z-muted); margin: 0 0 24px; }

.trade-prompt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin-bottom: 28px;
	padding: 18px 20px;
	border: 1px solid var(--z-line);
	font-size: 15px;
	color: var(--z-text-strong);
}
.trade-prompt a { font-weight: 500; color: var(--z-accent); border-bottom: 1px solid currentColor; }

.summary .stock {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	font-size: 15px;
	color: var(--z-stock-in);
}
.summary .stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--z-stock-in-dot); }
.summary .stock.available-on-backorder { color: var(--z-stock-order); }
.summary .stock.available-on-backorder::before { background: var(--z-stock-order-dot); }
.summary .stock.out-of-stock { color: var(--z-stock-out); }
.summary .stock.out-of-stock::before { background: var(--z-stock-out-dot); }

.summary form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 34px; }
.quantity {
	display: inline-flex;
	align-items: center;
	min-height: 54px;
	border: 1px solid var(--z-line-2);
	border-radius: var(--z-pill);
	background: var(--z-white);
}
.quantity:has(input[type="hidden"]) { display: none; }
.quantity input.qty {
	width: 52px;
	height: 52px;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 16px;
	color: var(--z-ink);
	-moz-appearance: textfield;
}
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-step {
	width: 48px; height: 52px;
	border: 0;
	background: none;
	font-size: 20px;
	color: var(--z-ink);
	cursor: pointer;
}
.qty-step:hover { color: var(--z-accent); }
.single_add_to_cart_button { flex: 1 1 220px; min-height: 54px; font-size: 16px; }

/* Spec sheets and other files from Business Central (inc/product-info.php). */
.product-documents { display: grid; gap: 10px; margin: 0 0 30px; }
.product-doc {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 64px;
	padding: 10px 18px 10px 12px;
	border: 1px solid var(--z-line-2);
	border-radius: 14px;
	background: var(--z-white);
	color: var(--z-ink);
	text-decoration: none;
	transition: border-color .2s var(--z-ease), background-color .2s var(--z-ease);
}
.product-doc:hover { border-color: var(--z-ink); background: var(--z-tile); color: var(--z-ink); }
.product-doc:focus-visible { outline: 2px solid var(--z-accent); outline-offset: 2px; }
.product-doc__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: rgba(54, 91, 119, .1);
	color: var(--z-accent);
}
.product-doc__text { display: grid; flex: 1 1 auto; min-width: 0; }
.product-doc__label { font-size: 15px; font-weight: 500; line-height: 1.3; }
.product-doc__meta { font-size: 13px; color: var(--z-muted); }
.product-doc__go { flex: 0 0 auto; color: var(--z-muted); transition: color .2s var(--z-ease), transform .2s var(--z-ease); }
.product-doc:hover .product-doc__go { color: var(--z-ink); transform: translate(2px, -2px); }

.product-details { margin: 0 0 34px; border-top: 1px solid var(--z-line); font-size: 15px; }
.product-details > div {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 0;
	border-bottom: 1px solid var(--z-line);
}
.product-details dt { color: var(--z-muted); }
.product-details dd { margin: 0; color: var(--z-ink); text-align: right; }

.product-section { margin-top: 30px; }
.product-section h2 {
	font-family: var(--z-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin: 0 0 12px;
}
.product-section__body { font-size: 15px; line-height: 1.75; color: var(--z-text-strong); }

.related > h2,
.upsells > h2 {
	font-size: clamp(30px, 3vw, 40px);
	letter-spacing: -0.03em;
	margin: 0 0 40px;
}
.related ul.products,
.upsells ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 44px 26px; }
@media (max-width: 999px) {
	.related ul.products,
	.upsells ul.products {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 30%;
		gap: 20px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		padding-bottom: 14px;
	}
	.related .product-card,
	.upsells .product-card { scroll-snap-align: start; }
}
@media (max-width: 599px) {
	.related ul.products,
	.upsells ul.products { grid-template-columns: none; grid-auto-columns: 46%; gap: 14px; }
}

/* ── Pages, forms and My account ────────────────────────────────────────── */
.page-main { padding-top: 56px; padding-bottom: 110px; }
.page-header { margin-bottom: 40px; }
.page-title { font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.035em; margin: 0; }
.entry-content > * { max-width: 100%; }
.entry-content p a,
.entry-content li a:not([class]) { color: var(--z-accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content .wc-block-components-button,
.entry-content .wc-block-components-product-name { text-decoration: none; }
.entry-list { display: grid; gap: 40px; }
.entry-title { font-size: 28px; margin: 0 0 10px; }
.page-404 { max-width: 760px; }
.page-404 .search-form { margin: 30px 0; }

label { font-size: 15px; color: var(--z-text-strong); }
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
	max-width: 100%;
	border: 1px solid var(--z-line-2);
	border-radius: 8px;
	background: var(--z-white);
	padding: 12px 14px;
	font-size: 16px;
}
input:focus,
select:focus,
textarea:focus { outline: none; border-color: var(--z-accent); box-shadow: 0 0 0 3px rgba(54, 91, 119, .15); }

.woocommerce form .form-row { margin: 0 0 18px; }
.woocommerce form .form-row label { display: block; margin-bottom: 6px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea { width: 100%; }
.woocommerce form .form-row .required { color: var(--z-danger); text-decoration: none; }
.woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.password-input { position: relative; display: block; }
.password-input input { padding-right: 52px; }
.show-password-input {
	position: absolute;
	top: 50%; right: 6px;
	width: 44px; height: 44px;
	transform: translateY(-50%);
	border: 0;
	background: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6264' stroke-width='1.6'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
	font-size: 0;
	cursor: pointer;
}
.show-password-input.display-password { opacity: .55; }
.woocommerce-LostPassword { margin-top: 14px; }

.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 40px 64px;
	align-items: start;
}
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 1000px; }
.u-columns.col2-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.woocommerce-form-login,
.woocommerce-form-register,
.account-request__form {
	padding: 34px;
	background: var(--z-stone);
	border: 0;
	margin: 0;
}
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--z-line); }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--z-line); }
.woocommerce-MyAccount-navigation a { display: flex; min-height: 50px; align-items: center; font-size: 15px; color: var(--z-text-strong); }
.woocommerce-MyAccount-navigation .is-active a { color: var(--z-ink); font-weight: 600; }
.woocommerce-MyAccount-content { min-width: 0; }

.shop_table,
.woocommerce-orders-table,
.woocommerce-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
.shop_table th,
.shop_table td,
.woocommerce-table th,
.woocommerce-table td {
	padding: 14px 12px;
	border-bottom: 1px solid var(--z-line);
	text-align: left;
	vertical-align: middle;
}
.shop_table thead th { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--z-muted); }
.woocommerce-orders-table .button { min-height: 38px; padding: 0 18px; font-size: 14px; }
.woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }

.muted { color: var(--z-muted); }
.order-bc-number { margin: 0 0 24px; font-size: 15px; color: var(--z-text-strong); }

.bc-address {
	margin: 0 0 40px;
	padding: 28px 30px;
	background: var(--z-tile);
	border: 1px solid var(--z-line);
}
.bc-address__title { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 6px; }
.bc-address__note { font-size: 14px; color: var(--z-muted); margin: 0 0 20px; }
.bc-address__body { display: flex; flex-wrap: wrap; gap: 20px 60px; }
.bc-address address { font-style: normal; font-size: 15px; line-height: 1.7; color: var(--z-ink); }
.bc-address__details { margin: 0; font-size: 15px; display: grid; gap: 6px; }
.bc-address__details > div { display: flex; gap: 14px; }
.bc-address__details dt { min-width: 130px; color: var(--z-muted); }
.bc-address__details dd { margin: 0; color: var(--z-ink); }

/* ── Basket and checkout blocks ─────────────────────────────────────────── */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout { font-family: var(--z-font-body); }
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	min-height: 54px;
	border-radius: var(--z-pill) !important;
	background: var(--z-accent) !important;
	color: var(--z-white) !important;
	font-weight: 500;
}
.wc-block-components-button:not(.is-link):hover { background: var(--z-accent-hover) !important; }
.wc-block-components-text-input input,
.wc-block-components-combobox .components-combobox-control input,
.wc-block-components-textarea { border-radius: 8px !important; border-color: var(--z-line-2) !important; }
.wc-block-components-product-name { font-family: var(--z-font-head); color: var(--z-ink); }
.wc-block-cart-item__image img { background: var(--z-tile); mix-blend-mode: multiply; }
.wc-block-components-totals-wrapper,
.wc-block-components-sidebar .wc-block-components-panel { border-color: var(--z-line) !important; }
.wc-block-components-title.wc-block-components-title { font-family: var(--z-font-head); font-weight: 400; letter-spacing: -0.02em; }
.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { font-family: var(--z-font-head); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--z-stone); color: var(--z-text-strong); }
.site-footer > .container { padding-top: 80px; padding-bottom: 40px; }
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 40px 60px;
}
.site-footer__brand .site-logo img { height: 46px; }
.site-footer__brand p { margin: 18px 0 0; max-width: 360px; font-size: 15px; line-height: 1.7; }
.site-footer__title {
	font-family: var(--z-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--z-ink);
	margin: 0 0 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-links a { display: inline-flex; min-height: 30px; align-items: center; font-size: 15px; color: var(--z-text-strong); }
.footer-links a:hover { color: var(--z-accent); }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px 24px;
	margin-top: 64px;
	padding-top: 24px;
	border-top: 1px solid #dcd8cf;
	font-size: 13px;
	color: var(--z-text);
}
.site-footer__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.site-footer__credit { display: inline-flex; color: var(--z-text); opacity: .75; transition: opacity .15s, color .15s; }
.site-footer__credit:hover { opacity: 1; color: var(--z-ink); }
.site-footer__credit .m7alpha-logo { display: block; height: 20px; width: auto; }

/* ── Log in and request an account ───────────────────────────────────── */
.form-hint { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--z-muted); }
.account-request { scroll-margin-top: 120px; }
.account-request__intro { margin: 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--z-text-strong); }
.account-request__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; }
.account-request__form > * { grid-column: 1 / -1; }
.account-request__form > .account-request__field--town,
.account-request__form > .account-request__field--postcode { grid-column: auto; }
.account-request__form select,
.account-request__form textarea { width: 100%; }
.account-request__errors { margin: 0 0 18px; }
.account-request__captcha { margin: 4px 0 18px; min-height: 78px; }
.account-request--sent { padding: 34px; background: var(--z-stone); }
.account-request--sent h2 { margin-top: 0; }
@media (max-width: 480px) {
	.account-request__form > .account-request__field--town,
	.account-request__form > .account-request__field--postcode { grid-column: 1 / -1; }
}
.account-company__facts { display: grid; gap: 10px; margin: 0 0 14px; }
.account-company__facts div { display: grid; gap: 2px; }
.account-company__facts dt { font-size: 13px; color: var(--z-muted); }
.account-company__facts dd { margin: 0; font-size: 16px; color: var(--z-ink); }
.account-company { margin: 28px 0 8px; padding: 0; border: 0; }
.account-company legend { margin: 0 0 12px; font-family: var(--z-font-head); font-size: 20px; color: var(--z-ink); }
.account-company__note { margin: 0; font-size: 15px; color: var(--z-text-strong); }
.account-email-note { display: block; margin-top: 6px; font-size: 13px; color: var(--z-muted); }
#account_email[readonly] { background: var(--z-tile); color: var(--z-text-strong); }
.account-company-name { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 0; padding: 12px 16px; background: var(--z-tile); border-left: 3px solid var(--z-accent); font-size: 17px; color: var(--z-ink); }
.account-company-name .zm-icon { color: var(--z-accent); }
.account-choose { margin: 28px 0; padding: 22px; background: var(--z-tile); border-left: 3px solid var(--z-accent); }
.account-choose__title { margin: 0 0 8px; font-size: 22px; }
.account-choose p { margin: 0 0 16px; color: var(--z-text-strong); }
.account-choose__form { display: grid; gap: 10px; }
.account-choose__option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--z-white); border: 1px solid var(--z-line); cursor: pointer; }
.account-choose__option:has(input:checked) { border-color: var(--z-accent); }
.account-choose__option input { margin-top: 4px; accent-color: var(--z-accent); }
.account-choose__option strong { display: block; color: var(--z-ink); }
.account-choose__option small { display: block; margin-top: 2px; color: var(--z-muted); font-size: 14px; }
.account-choose__form .button { justify-self: start; margin-top: 6px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1099px) {
	.zamco-list-view .shop-results .product-card { flex-wrap: wrap; }
	.zamco-list-view .shop-results .product-card__foot { flex: 1 1 100%; justify-content: space-between; padding-left: 96px; }
}
@media (max-width: 599px) {
	.zamco-list-view .shop-results .product-card__link { grid-template-columns: 60px minmax(0, 1fr); column-gap: 14px; }
	.zamco-list-view .shop-results .product-card__media { width: 60px; }
	.zamco-list-view .shop-results .product-card__foot { flex-wrap: wrap; gap: 10px 16px; padding-left: 0; }
	.zamco-list-view .shop-results .product-card__meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; }
	.zamco-list-view .shop-results .product-card__row-add { flex: 1 1 100%; }
	.zamco-list-view .shop-results .zq-row { justify-content: space-between; }
}

@media (max-width: 1199px) {
	.site-nav > ul,
	.site-nav .menu { gap: 22px; }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 999px) {
	.site-header__inner { grid-template-columns: auto 1fr auto; gap: 8px; }
	.nav-toggle { display: inline-flex; }
	.site-logo { justify-self: center; }
	.site-logo img { height: 34px; }

	.site-nav {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 70;
		width: min(86vw, 360px);
		padding: 90px 24px 40px;
		background: var(--z-white);
		box-shadow: 0 0 60px rgba(20, 22, 24, .18);
		overflow-y: auto;
		transform: translateX(-102%);
		transition: transform .3s var(--z-ease);
	}
	.nav-open .site-nav { transform: none; }
	.nav-open .nav-toggle { position: relative; z-index: 80; }
	.nav-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(20, 22, 24, .35); }
	.nav-backdrop[hidden] { display: none; }
	.site-nav > ul,
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--z-line); }
	.site-nav a { min-height: 54px; font-size: 17px; }
	.submenu-toggle { width: 44px; height: 54px; }
	.site-nav .sub-menu {
		position: static;
		width: 100%;
		min-width: 0;
		padding: 0 0 12px;
		border: 0;
		box-shadow: none;
	}
	.site-nav .sub-menu li { border: 0; }
	.site-nav .sub-menu a { min-height: 42px; padding: 0 12px; font-size: 15px; }
	.site-nav .menu-item-has-children:focus-within > .sub-menu { display: none; }
	.site-nav .menu-item-has-children.is-open > .sub-menu { display: flex; }

	.hero { grid-template-columns: 1fr; }
	.hero__side { min-height: 320px; }

	.shop-layout { grid-template-columns: 1fr; gap: 28px; }
	.shop-tools { flex: 1 1 100%; }
	.search-form--shop { flex: 1 1 260px; }
	.search-form--shop .search-form__field { flex: 1 1 auto; width: auto; }
	.filters-toggle > summary { display: flex; }
	.filters-toggle[open] > summary { margin-bottom: 24px; }
	.shop-filters { max-width: none; }

	.single-product div.product { grid-template-columns: 1fr; gap: 36px; }
	.summary { max-width: none; }

	.woocommerce-account .woocommerce { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 599px) {
	ul.products,
	ul.products.products--row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
	.product-card__title { font-size: 16px; }
	.price { font-size: 16px; }
	.product-card__foot { align-items: flex-end; }
	/* Two round buttons on a narrow card: a little smaller. */
	.product-card__actions .product-card__add { width: 38px; height: 38px; }
	.hero__main,
	.hero__side { min-height: 480px; }
	.hero__side { min-height: 280px; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.search-form--default { flex-direction: column; }
	.search-form--shop { flex: 1 1 100%; }
	.search-form--shop .search-form__submit { display: none; }
	.dept-tile__media { border-right: 0; }
}

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