/* Printerland v2.1 design layer.
   Loaded last (functions.php printerland_v21_enqueue, priority 100): it
   re-points the older --pl-* tokens to the v2.1 palette so every existing
   component follows, then restyles header, homepage, product cards and
   shared chrome. Measured from the approved comp (.impeccable/mocks/
   home-b.png): navy bar #223654, ink #0E2041, terracotta #BE4F33, pale
   panels #EEF2F7 on a white page (see DESIGN.md). */

:root {
	--v-bg: #FFFFFF;
	--v-surface: #FFFFFF;
	--v-panel: #EEF2F7;
	--v-line: #E1E6EE;
	--v-navy: #223654;
	--v-ink: #0E2041;
	--v-text: #33415C;
	--v-muted: #5F6B80;
	--v-accent: #BE4F33;
	--v-accent-hover: #A8432A;
	--v-green: #16833E;
	--v-radius: 12px;
	--v-radius-lg: 16px;
	--v-shadow: 0 1px 2px rgb(14 32 65 / 0.06), 0 4px 14px -6px rgb(14 32 65 / 0.14);
	--v-shadow-lg: 0 12px 32px -12px rgb(14 32 65 / 0.28);
	--v-font: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--v-gutter: 12px;
	--v-max: 1280px;

	/* Older theme tokens now resolve to v2.1 values. */
	--pl-font: var(--v-font);
	--pl-ink: var(--v-ink);
	--pl-navy: var(--v-navy);
	--pl-navy-rgb: 34, 54, 84;
	--pl-navy-mid: #2E4A70;
	--pl-mist: var(--v-panel);
	--pl-accent: var(--v-accent);
	--pl-accent-hover: var(--v-accent-hover);
	--pl-accent-gradient: var(--v-accent);
	--pl-navy-gradient: var(--v-navy);
	--pl-navy-sheen: var(--v-navy);
	--pl-white-gradient: var(--v-surface);
	--pl-gray-gradient: var(--v-panel);
	--pl-radius-card: var(--v-radius);
	--pl-gray-600: var(--v-muted);
	--pl-gray-100: var(--v-panel);
	--pl-shadow-card: var(--v-shadow);
	--pl-shadow-card-lg: var(--v-shadow-lg);
	--pl-shadow-chip: none;
}
@media (min-width: 768px) { :root { --v-gutter: 20px; } }

/* ---------- Base ---------- */
body,
button, input, select, textarea,
.ast-button, .button, h1, h2, h3, h4, h5, h6 {
	font-family: var(--v-font);
}
body {
	background: var(--v-bg);
	color: var(--v-text);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { color: var(--v-ink); letter-spacing: 0; text-wrap: balance; }
::selection { background: rgb(200 85 56 / 0.2); color: var(--v-ink); }
:focus-visible { outline: 3px solid rgb(190 79 51 / 0.55); outline-offset: 2px; }
.price, .amount, .v21-trust, .woocommerce-Price-amount { font-variant-numeric: tabular-nums; }
html { scrollbar-color: #B9C3D2 transparent; }
input, select { caret-color: var(--v-accent); }

.v21-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 10px;
	background: var(--v-accent);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.1s ease;
}
.v21-btn:hover { background: var(--v-accent-hover); color: #fff; }
.v21-btn:active { transform: translateY(1px); }
.v21-btn .ph-svg-icon { width: 20px; height: 20px; }

/* Sticky positioning works only without a scroll container on html/body:
   overflow-x:hidden there (old theme CSS) made body the scroller and
   silently disabled every position:sticky. clip keeps the no-sideways-
   scroll guarantee without creating one. */
html, body { overflow-x: clip !important; }
:root { --v-sticky-top: 56px; }
@media (min-width: 1024px) { :root { --v-sticky-top: 76px; } }

/* ---------- Header ----------
   One grid, two shapes. Phones (approved comp): white logo row over a
   full-bleed navy band with Catalog + search. Desktop: one 76px row —
   logo, Catalog, wide search, phone + hours, labeled icons. */
.ph-topbar { display: none; }
@media (min-width: 1024px) {
	.ph-topbar { display: block; background: var(--v-ink); }
	.ph-topbar-inner { max-width: var(--v-max); }
}
.ph-header.v21-header {
	position: sticky;
	top: -52px; /* phones: logo row scrolls away, Catalog + search stay pinned */
	z-index: 999;
	background: linear-gradient(var(--v-surface) 0 52px, var(--v-navy) 52px);
	border-bottom: 0;
	box-shadow: 0 1px 0 var(--v-line);
}
.v21-header .v21-hdr {
	max-width: var(--v-max);
	margin: 0 auto;
	padding: 0 var(--v-gutter);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-rows: 52px 56px;
	grid-template-areas: "logo phone icons" "cat search search";
	align-items: center;
	column-gap: 8px;
	row-gap: 0;
	flex-wrap: nowrap;
}
.v21-hdr .ph-logo {
	grid-area: logo;
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--v-ink);
	margin: 0;
}
.v21-hdr .ph-mega-menu-wrap { grid-area: cat; }
.v21-hdr .ph-search-wrap { grid-area: search; }
.v21-hdr .v21-header-phone { grid-area: phone; }
.v21-hdr .ph-header-icons { grid-area: icons; }
.v21-hdr .ph-mobile-menu-toggle,
.v21-hdr .ph-mobile-nav-drawer { display: none !important; }

/* Phone block */
.v21-header-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-self: start;
	min-height: 44px;
	padding: 0 4px;
	color: var(--v-ink);
	text-decoration: none;
	white-space: nowrap;
}
.v21-header-phone:hover { color: var(--v-accent); }
.v21-header-phone .ph-svg-icon { width: 22px; height: 22px; color: var(--v-navy); flex: 0 0 auto; }
.v21-phone-text { display: none; flex-direction: column; line-height: 1.15; }
.v21-phone-text strong { font-size: 1rem; font-weight: 700; }
.v21-phone-text small { font-size: 0.74rem; color: var(--v-muted); font-weight: 500; }
@media (min-width: 600px) { .v21-phone-text { display: flex; } .v21-phone-text small { display: none; } }

/* Icons */
.v21-hdr .ph-header-icons { display: flex; align-items: center; gap: 2px; margin: 0; }
.v21-hdr .ph-icon {
	position: relative;
	width: 44px;
	height: 44px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	color: var(--v-ink);
	border-radius: 10px;
	text-decoration: none;
}
.v21-hdr .ph-icon:hover { background: var(--v-panel); color: var(--v-ink); }
.v21-hdr .ph-icon .ph-svg-icon { width: 24px; height: 24px; }
.v21-ico-label { display: none; font-size: 0.72rem; font-weight: 500; line-height: 1; color: var(--v-text); }
.v21-hdr .ph-icon-badge {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--v-accent);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	box-shadow: 0 0 0 2px var(--v-surface);
}
.v21-hdr .ph-cart-count.is-empty { display: none; }
.v21-hdr .ph-lang-current {
	min-height: 32px;
	padding: 0 10px;
	border-radius: 999px;
	border: 1px solid var(--v-line);
	background: var(--v-surface);
	color: var(--v-ink);
	font-size: 0.8rem;
	font-weight: 700;
}
@media (max-width: 767px) {
	.v21-hdr .ph-wishlist-icon,
	.v21-hdr .ph-compare-icon { display: none; }
}

/* Catalog toggle — phones: on the navy band */
.v21-hdr .ph-mega-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 10px 0 4px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	box-shadow: none;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 600;
	cursor: pointer;
}
.v21-hdr .ph-mega-menu-toggle:hover,
.v21-hdr .ph-mega-menu-toggle[aria-expanded="true"] { background: rgb(255 255 255 / 0.12); }
.v21-hdr .ph-mega-menu-toggle .ph-svg-icon-menu { width: 24px; height: 24px; transform: none !important; }
.v21-hdr .ph-mega-menu-toggle .ph-svg-icon-chevron-down { width: 16px; height: 16px; opacity: 0.85; }
@media (max-width: 419px) { .v21-hdr .ph-mega-menu-toggle .ph-svg-icon-chevron-down { display: none; } }

/* Search */
.v21-hdr .ph-search-wrap { position: relative; margin: 0; max-width: none; width: auto; left: auto; transform: none; }
.v21-hdr .ph-search-form {
	display: flex;
	align-items: center;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--v-surface);
	box-shadow: none;
	flex-direction: row-reverse;
}
.v21-hdr .ph-search-input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 12px 0 4px !important;
	font-size: 0.98rem;
	color: var(--v-ink);
}
.v21-hdr .ph-search-input::placeholder { color: #7B8699; opacity: 1; }
/* type="search": no native look or clear button next to our own submit. */
.v21-hdr .ph-search-input { -webkit-appearance: none; appearance: none; }
.v21-hdr .ph-search-input::-webkit-search-cancel-button { display: none; }
/* Dropdown: scrolls inside itself when 8 results outgrow a phone screen;
   hover and keyboard focus show the row the arrows are on. */
.v21-hdr .ph-search-results { max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
.ph-search-result:hover, .ph-search-result:focus-visible, .ph-search-view-all:focus-visible { background: var(--pl-gray-100); outline: none; }
.ph-search-result img { flex-shrink: 0; }
.ph-search-result strong { white-space: nowrap; }
.v21-hdr .ph-search-submit {
	position: static !important;
	transform: none !important;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 10px;
	background: transparent !important;
	color: var(--v-muted) !important;
	box-shadow: none;
}
.v21-hdr .ph-search-submit .ph-svg-icon { width: 22px; height: 22px; }
.v21-hdr .ph-search-results { top: calc(100% + 6px); border-radius: var(--v-radius); box-shadow: var(--v-shadow-lg); }

/* Desktop: one row */
@media (min-width: 1024px) {
	.ph-header.v21-header { top: 0; background: var(--v-surface); }
	.v21-header .v21-hdr {
		grid-template-columns: auto auto minmax(0, 1fr) auto auto;
		grid-template-rows: 76px;
		grid-template-areas: "logo cat search phone icons";
		column-gap: 16px;
	}
	.v21-hdr .ph-logo { font-size: 1.55rem; margin-right: 8px; }
	.v21-hdr .ph-mega-menu-toggle {
		min-height: 48px;
		padding: 0 18px 0 14px;
		background: var(--v-navy);
		color: #fff;
	}
	.v21-hdr .ph-mega-menu-toggle:hover,
	.v21-hdr .ph-mega-menu-toggle[aria-expanded="true"] { background: var(--v-ink); }
	.v21-hdr .ph-search-form {
		height: 48px;
		border: 1.5px solid #D5DCE6;
		flex-direction: row;
		overflow: hidden;
		transition: border-color 0.15s ease, box-shadow 0.15s ease;
	}
	.v21-hdr .ph-search-form:focus-within { border-color: var(--v-navy); box-shadow: 0 0 0 3px rgb(34 54 84 / 0.12); }
	.v21-hdr .ph-search-input { padding: 0 16px !important; }
	.v21-hdr .ph-search-submit {
		flex-basis: 56px;
		width: 56px;
		height: 100%;
		border-radius: 0;
		background: var(--v-accent) !important;
		color: #fff !important;
	}
	.v21-hdr .ph-search-submit:hover { background: var(--v-accent-hover) !important; }
	.v21-phone-text small { display: block; }
	.v21-hdr .v21-header-phone { justify-self: auto; }
}
@media (min-width: 1280px) {
	.v21-hdr .ph-icon { width: auto; min-width: 58px; height: 56px; padding: 0 6px; }
	.v21-ico-label { display: block; }
	.v21-hdr .ph-icon-badge { right: 10px; }
}

/* Catalog panel — desktop dropdown */
.v21-mm-sublinks { display: none; }
.v21-mm-bar { display: none; }
.v21-mm-icon {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--v-panel);
	color: var(--v-navy);
}
.v21-mm-icon .ph-svg-icon { width: 20px; height: 20px; stroke-width: 1.75; }
.v21-mm-head {
	grid-column: 1 / -1;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
}
.v21-mm-title { font-size: 1.15rem; font-weight: 700; color: var(--v-ink); text-decoration: none; }
.v21-mm-all { font-weight: 600; color: var(--v-accent); text-decoration: none; white-space: nowrap; }
.v21-mm-all:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) {
	.v21-hdr .ph-mega-menu {
		width: min(1080px, calc(100vw - 2 * var(--v-gutter)));
		margin-top: 12px;
		padding: 12px;
		gap: 12px;
		border-radius: var(--v-radius-lg);
		border: 1px solid var(--v-line);
		box-shadow: var(--v-shadow-lg);
		background: var(--v-surface);
	}
	.v21-hdr .ph-mega-menu-categories { width: 300px; padding-right: 0; border: 0; }
	.v21-hdr .ph-mega-menu-category-item { border-radius: 10px; padding: 0; }
	.v21-hdr .ph-mega-menu-category {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 8px 10px;
		color: var(--v-ink);
		font-weight: 600;
		text-decoration: none;
	}
	.v21-hdr .ph-mega-menu-category > .ph-svg-icon-chevron-right { margin-left: auto; width: 16px; height: 16px; color: var(--v-muted); opacity: 0; transition: opacity 0.15s ease; }
	.v21-hdr .ph-mega-menu-category-item.is-active,
	.v21-hdr .ph-mega-menu-category-item:hover { background: var(--v-panel); }
	.v21-hdr .ph-mega-menu-category-item.is-active .v21-mm-icon { background: var(--v-surface); }
	.v21-hdr .ph-mega-menu-category-item.is-active .ph-mega-menu-category { color: var(--v-accent); }
	.v21-hdr .ph-mega-menu-category-item.is-active .ph-svg-icon-chevron-right { opacity: 1; }
	.v21-hdr .ph-mega-menu-right { background: var(--v-panel); border-radius: 12px; padding: 18px; margin: 0; }
	.v21-hdr .ph-mega-menu-subcats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; }
	/* Menu tiles: name left, product photo right (same card language as
	   the category page). */
	.v21-hdr .ph-mega-menu-subcat-pill {
		display: flex;
		flex-direction: row-reverse;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		min-height: 96px;
		padding: 12px 10px 12px 16px;
		background: var(--v-surface);
		border: 1px solid transparent;
		border-radius: 12px;
		color: var(--v-ink);
		font-size: 0.95rem;
		font-weight: 600;
		line-height: 1.25;
		text-decoration: none;
	}
	.v21-hdr .ph-mega-menu-subcat-pill:hover { color: var(--v-accent); border-color: #C9D2DE; box-shadow: var(--v-shadow); }
	.v21-hdr .ph-mega-menu-subcat-pill > span { flex: 1 1 auto; min-width: 0; }
	.v21-hdr .ph-mega-menu-subcat-img { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 8px; object-fit: contain; background: #fff; mix-blend-mode: multiply; }
}

/* Catalog panel — phones: full-screen sheet with a title bar */
@media (max-width: 1023px) {
	.v21-hdr .ph-mega-menu { padding: 0 0 24px !important; background: var(--v-surface); }
	.v21-mm-bar {
		position: sticky;
		top: 0;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 60px;
		padding: 0 8px 0 20px;
		background: var(--v-surface);
		border-bottom: 1px solid var(--v-line);
	}
	.v21-mm-bar strong { font-size: 1.25rem; font-weight: 800; color: var(--v-ink); }
	.v21-hdr .v21-mm-bar .ph-mega-menu-close {
		position: static !important;
		width: 44px !important;
		height: 44px !important;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: 0 !important;
		border-radius: 10px !important;
		background: var(--v-panel) !important;
		color: var(--v-ink) !important;
		box-shadow: none !important;
	}
	.v21-hdr .ph-mega-menu-categories { padding: 8px 12px 0; }
	.v21-hdr .ph-mega-menu-category-item { padding: 0 !important; border-radius: 12px; background: none !important; }
	.v21-hdr .ph-mega-menu-category {
		display: flex;
		align-items: center;
		gap: 14px;
		min-height: 60px;
		padding: 8px 8px !important;
		border-bottom: 1px solid var(--v-line);
		color: var(--v-ink);
		font-size: 1.05rem !important;
		font-weight: 600;
		text-decoration: none;
	}
	.v21-hdr .ph-mega-menu-category-item.is-active .ph-mega-menu-category { color: var(--v-ink); }
	.v21-hdr .ph-mega-menu-category .v21-mm-icon { width: 44px; height: 44px; }
	.v21-hdr .ph-mega-menu-category .v21-mm-icon .ph-svg-icon { width: 22px; height: 22px; }
	.v21-hdr .ph-mega-menu-category > .ph-svg-icon-chevron-right { margin-left: auto; width: 18px; height: 18px; color: var(--v-muted); }
	.v21-hdr .v21-mm-bar .ph-mega-menu-close { padding: 0 !important; }
	.v21-hdr .v21-mm-bar .ph-mega-menu-close svg { flex: 0 0 22px; width: 22px !important; height: 22px !important; }
	.v21-hdr .ph-mega-menu-right {
		margin: 0 !important;
		width: auto !important;
		padding: 8px 12px 0 !important;
		background: var(--v-surface) !important;
		border-radius: 0;
	}
	.v21-hdr .ph-mega-menu-subcats { display: flex !important; flex-direction: column; gap: 0; }
	.v21-hdr .ph-mega-menu-subcat-pill {
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 8px !important;
		background: none !important;
		box-shadow: none !important;
		border-bottom: 1px solid var(--v-line);
		border-radius: 0 !important;
		text-decoration: none;
	}
	.v21-hdr .ph-mega-menu-subcat-img { flex: 0 0 60px; width: 60px !important; height: 60px !important; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--v-line); }
	.v21-hdr .ph-mega-menu-back {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		min-height: 44px;
		margin: 0;
		padding: 0 8px;
		border: 0 !important;
		border-radius: 10px;
		background: none !important;
		box-shadow: none !important;
		color: var(--v-navy);
		font-weight: 600;
	}
	.v21-hdr .v21-mm-head { padding: 8px 8px 12px; border-bottom: 1px solid var(--v-line); margin-bottom: 8px; }
	.v21-hdr .v21-mm-head .ph-mega-menu-subcats-head { font-size: 1.2rem; font-weight: 800; color: var(--v-ink); text-decoration: none; }
	.v21-hdr .ph-mega-menu-subcat-pill { min-height: 76px; color: var(--v-ink); font-weight: 600; font-size: 1rem; }
}

/* Info links inside the catalog panel (mobile takeover); desktop keeps them in the topbar. */
.v21-menu-links { display: none; }
@media (max-width: 1023px) {
	.v21-menu-links {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 4px 12px;
		padding: 16px 12px 24px;
		margin-top: 8px;
		border-top: 1px solid var(--v-line);
	}
	.v21-menu-links a { color: var(--v-ink); font-weight: 600; padding: 10px 0; text-decoration: none; }
	.ph-mega-menu.is-drilldown .v21-menu-links { display: none; }
}

/* ---------- Homepage v2.1 ---------- */
.home .entry-content > .v21-finder,
.home .entry-content > .v21-cats,
.home .entry-content > .v21-rail,
.home .entry-content > .v21-help,
.home .entry-content > .v21-trust { max-width: var(--v-max); margin-left: auto; margin-right: auto; }
.home .entry-content > * + .v21-cats,
.home .entry-content > * + .v21-rail { margin-top: 28px; }
.home .entry-content > .v21-rail + .v21-rail { margin-top: 36px; }
.home .entry-content > * + .v21-rail-legacy,
.home .entry-content > * + .v21-help,
.home .entry-content > * + .v21-trust { margin-top: 16px; }
.home .site-content > .ast-container,
.home #primary { padding-left: 0 !important; padding-right: 0 !important; margin-top: 0 !important; }
.home .entry-header { display: none; }
.home .site-content { background: var(--v-bg); }
.home .entry-content { padding: 12px var(--v-gutter) 32px; }

/* Hero (inc/homepage-v21.php printerland_v21_hero) */
.v21-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	background: linear-gradient(120deg, var(--v-panel) 0%, #F7F9FC 60%, #EEF2F8 100%);
	border-radius: var(--v-radius-lg);
	padding: 18px 12px 18px 18px;
	overflow: hidden;
}
.v21-hero-title {
	margin: 0 0 8px;
	font-size: clamp(1.5rem, 6vw, 2.6rem);
	line-height: 1.08;
	font-weight: 800;
	color: var(--v-ink);
	letter-spacing: -0.01em;
}
.v21-hero-lead { margin: 0 0 14px; color: var(--v-muted); font-size: clamp(0.92rem, 3.4vw, 1.1rem); line-height: 1.4; max-width: 34ch; }
.v21-hero-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; }
.v21-hero-cta .ph-svg-icon { width: 18px; height: 18px; }
.v21-hero-media { position: relative; display: block; text-decoration: none; }
.v21-hero-img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; mix-blend-mode: multiply; }
.v21-hero-badge {
	position: absolute; top: 6%; left: 4%;
	background: var(--v-accent); color: #fff; font-weight: 800; font-size: 0.9rem;
	padding: 4px 9px; border-radius: 8px;
}
.v21-hero-price {
	position: absolute; right: 4%; bottom: 6%;
	background: #fff; color: var(--v-ink); font-weight: 800; font-size: 0.95rem;
	padding: 5px 10px; border-radius: 999px; box-shadow: 0 2px 10px rgba(15, 30, 60, 0.12);
}
@media (min-width: 768px) {
	.v21-hero { padding: 28px 28px 28px 40px; gap: 24px; min-height: 320px; }
	.v21-hero-img { max-height: 340px; }
}
/* The finder now sits between the supplies row and the brands. */
.home .v21-rail + .v21-finder, .home .v21-finder { margin-top: 28px; }

/* Finder */
.v21-finder {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	align-items: center;
	background: var(--v-panel);
	border-radius: var(--v-radius-lg);
	padding: 18px 16px 14px;
	overflow: hidden;
}
.v21-finder-title {
	margin: 0 0 12px;
	font-size: clamp(1.45rem, 5.2vw, 2rem);
	line-height: 1.12;
	font-weight: 800;
	color: var(--v-ink);
	letter-spacing: -0.005em;
}
.v21-finder-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	align-items: end;
}
.v21-finder-submit { grid-column: 1 / -1; min-height: 48px; font-size: 1.05rem; }
@media (min-width: 720px) {
	.v21-finder-form { grid-template-columns: 1fr 1fr auto; }
	.v21-finder-submit { grid-column: auto; padding: 0 28px; }
}
.v21-field { display: grid; gap: 6px; min-width: 0; }
.v21-field label { font-size: 0.85rem; font-weight: 500; color: var(--v-text); }
.v21-field input,
.v21-select select {
	width: 100%;
	height: 48px;
	border: 1px solid #D5DCE6 !important;
	border-radius: 10px !important;
	background: var(--v-surface) !important;
	padding: 0 14px !important;
	font-size: 1rem;
	color: var(--v-ink);
	box-shadow: none !important;
}
.v21-field input::placeholder { color: #8791A3; opacity: 1; }
.v21-field input:focus,
.v21-select select:focus { border-color: var(--v-navy) !important; outline: 3px solid rgb(34 54 84 / 0.15); outline-offset: 0; }
.v21-select { position: relative; }
.v21-select select { appearance: none; -webkit-appearance: none; padding-right: 40px !important; cursor: pointer; }
.v21-select .ph-svg-icon { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; color: var(--v-ink); }
.v21-finder-or,
.v21-finder-or:hover,
.v21-finder-or:focus {
	background: none !important;
	box-shadow: none !important;
	border: 0 !important;
	border-radius: 0;
}
.v21-finder-or {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin-top: 12px;
	padding: 6px 0;
	background: none;
	border: 0;
	color: var(--v-text);
	font-size: 0.9rem;
	cursor: pointer;
}
.v21-finder-or::before,
.v21-finder-or::after { content: ""; flex: 1; height: 1px; background: #CDD5E0; }
.v21-finder-or:hover span { color: var(--v-accent); text-decoration: underline; text-underline-offset: 3px; }
.v21-finder-body { min-width: 0; display: contents; }
.v21-finder-title { grid-column: 1; }
.v21-finder-form { grid-column: 1 / -1; }
.v21-finder-art {
	grid-column: 2;
	grid-row: 1;
	width: 92px;
	height: auto;
	mix-blend-mode: multiply;
	align-self: start;
	margin: -6px -4px 0 0;
}
@media (min-width: 480px) {
	.v21-finder { grid-template-columns: 1fr 18%; padding: 16px 18px 12px; column-gap: 12px; }
	.v21-field input, .v21-select select { padding: 0 10px !important; font-size: 0.95rem; }
	.v21-select select { padding-right: 32px !important; }
	.v21-select .ph-svg-icon { right: 8px; }
	.v21-finder-body { display: block; grid-column: 1; }
	.v21-finder-title { margin-bottom: 10px; }
	.v21-finder-art { grid-row: 1; width: 100%; max-width: 220px; align-self: center; margin: 0; }
	.v21-finder-or { margin-top: 8px; }
}
@media (min-width: 1024px) {
	.v21-finder { grid-template-columns: 1fr 260px; padding: 32px 40px 24px; }
	.v21-finder-title { font-size: 2.25rem; margin-bottom: 18px; }
	.v21-finder-art { max-width: 260px; }
}

/* Brand quick-picks under the finder */
.v21-finder-brands {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-size: 0.82rem;
	color: var(--v-muted);
}
.v21-finder-brands span { margin-right: 2px; }
@media (max-width: 719px) {
	.v21-finder-brands {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin: 6px -16px 0;
		padding: 0 16px 2px;
	}
	.v21-finder-brands::-webkit-scrollbar { display: none; }
	.v21-finder-brands span { display: none; }
	.v21-finder-brands button { flex: 0 0 auto; }
}
.v21-finder-brands button,
.v21-finder-brands button:focus,
.v21-finder-brands button:hover {
	min-height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid #D5DCE6;
	background: var(--v-surface);
	color: var(--v-ink);
	font-size: 0.82rem;
	font-weight: 600;
	box-shadow: none;
	cursor: pointer;
}
.v21-finder-brands button:hover { border-color: var(--v-navy); }
.v21-finder-brands button[aria-pressed="true"] { background: var(--v-navy); border-color: var(--v-navy); color: #fff; }

/* Category tiles */
.v21-cats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
@media (min-width: 480px) { .v21-cats { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1024px) {
	.v21-cats { grid-template-columns: repeat(8, 1fr); gap: 12px; }
	.v21-cat { min-height: 104px; font-size: 0.9rem; gap: 10px; }
	.v21-cat .ph-svg-icon { width: 36px; height: 36px; }
}
@media (max-width: 1023px) { .v21-cat:nth-child(n+7) { display: none; } }
.v21-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 76px;
	padding: 10px 4px;
	background: var(--v-panel);
	border-radius: var(--v-radius);
	color: var(--v-ink);
	font-size: 0.84rem;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	hyphens: auto;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.v21-cat .ph-svg-icon { width: 30px; height: 30px; stroke-width: 1.6; color: var(--v-navy); }
.v21-cat span { overflow-wrap: normal; word-break: normal; }
@media (min-width: 480px) and (max-width: 767px) { .v21-cat { font-size: 0.72rem; } .v21-cat .ph-svg-icon { width: 26px; height: 26px; } }
.v21-cat:hover { background: #E2E8F1; color: var(--v-accent); }
.v21-cat:hover .ph-svg-icon { color: var(--v-accent); }

/* Rails (deals + homepage product rows) */
.v21-rail-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 8px 0 12px;
}
.v21-rail-head h2 { margin: 0; font-size: 1.45rem; font-weight: 700; min-width: 0; }
.v21-rail-nav a { white-space: nowrap; }
@media (max-width: 479px) { .v21-rail-head h2 { font-size: 1.2rem; } }
.v21-rail-nav { display: flex; align-items: center; gap: 8px; }
.v21-rail-arrow,
.v21-rail-arrow:hover,
.v21-rail-arrow:focus {
	display: none;
	width: 40px;
	height: 40px;
	padding: 0;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	border: 1px solid var(--v-line);
	background: var(--v-surface);
	color: var(--v-ink);
	box-shadow: none;
	cursor: pointer;
}
.v21-rail-arrow:hover { border-color: var(--v-navy); }
@media (min-width: 1024px) and (hover: hover) { .v21-rail-arrow { display: inline-flex; } }
.v21-rail-head a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--v-ink);
	font-weight: 500;
	text-decoration: none;
	min-height: 44px;
}
.v21-rail-head a:hover { color: var(--v-accent); }
.v21-rail-head .ph-svg-icon { width: 18px; height: 18px; }
.woocommerce ul.products.v21-rail-track,
ul.products.v21-rail-track {
	display: flex !important;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	margin: 0 calc(var(--v-gutter) * -1) !important;
	padding: 2px var(--v-gutter) 10px !important;
	scrollbar-width: none;
}
ul.products.v21-rail-track::-webkit-scrollbar { display: none; }
ul.products.v21-rail-track > li.product {
	flex: 0 0 max(152px, calc((100% - 20px) / 3.1));
	width: auto !important;
	margin: 0 !important;
	scroll-snap-align: start;
}
@media (min-width: 1024px) {
	.woocommerce ul.products.v21-rail-track,
	ul.products.v21-rail-track { margin: 0 !important; padding: 2px 0 10px !important; }
	ul.products.v21-rail-track > li.product { flex-basis: calc((100% - 50px) / 6); }
}
/* The rail sells in one tap: no cart icon here. */
.v21-rail .add_to_cart_button { display: none !important; }

/* Homepage product rows become rails on phones/tablets. */
.home .ph-prow { background: transparent !important; padding: 8px 0 !important; }
.home .ph-prow .ph-bleed-inner { max-width: calc(var(--v-max) + 2 * var(--v-gutter)); margin: 0 auto; padding: 0 var(--v-gutter) !important; }
.home .ph-prow-title { font-size: 1.35rem; margin: 16px 0 12px; }
@media (max-width: 1023px) {
	.home .ph-prow ul.products:not(.v21-rail-track),
	.woocommerce .home .ph-prow ul.products:not(.v21-rail-track) {
		display: flex !important;
		gap: 10px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin: 0 calc(var(--v-gutter) * -1) !important;
		padding: 2px var(--v-gutter) 10px !important;
		scrollbar-width: none;
	}
	.home .ph-prow ul.products:not(.v21-rail-track)::-webkit-scrollbar { display: none; }
	.home .ph-prow ul.products li.product .add_to_cart_button { display: none !important; }
	.home .ph-prow ul.products li.product .printerland-quick-buy { width: 100% !important; }
	.home .ph-prow ul.products > li.product { flex: 0 0 max(152px, calc((100% - 20px) / 2.3)); width: auto !important; margin: 0 !important; scroll-snap-align: start; }
}

/* ---------- Product card (every loop) ---------- */
.woocommerce ul.products li.product,
ul.products li.product {
	display: flex;
	flex-direction: column;
	background: var(--v-surface);
	border: 1px solid var(--v-line) !important;
	border-radius: var(--v-radius);
	padding: 10px;
	box-shadow: none;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
	text-align: left;
}
ul.products li.product:hover { box-shadow: var(--v-shadow); border-color: #D3DAE4; }
ul.products li.product .astra-shop-thumbnail-wrap { position: relative; margin: 0 0 8px; border-radius: 8px; overflow: hidden; }
ul.products li.product .astra-shop-thumbnail-wrap img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
	margin: 0 !important;
}
.woocommerce ul.products li.product .onsale,
ul.products li.product .onsale {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: auto !important;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 4px 9px;
	border-radius: 8px;
	background: var(--v-accent);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.3;
}
ul.products li.product .ast-on-card-button,
ul.products li.product .ast-woo-product-category { display: none !important; }
ul.products li.product .astra-shop-summary-wrap {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 4px;
	padding: 0;
}
ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.86rem !important;
	font-weight: 600;
	line-height: 1.3;
	color: var(--v-ink);
	margin: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
}
ul.products li.product a:hover .woocommerce-loop-product__title { color: var(--v-accent); }
.v21-stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	color: var(--v-muted);
}
.v21-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #B7C0CD; }
.v21-stock.is-in { color: var(--v-green); }
.v21-stock.is-in::before { background: #2EA043; }
ul.products li.product .price {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	justify-content: flex-end;
	min-height: calc(0.8rem * 1.2 + 1.12rem * 1.2);
	margin: 2px 0 8px !important;
	color: var(--v-ink) !important;
	font-size: 1.12rem !important;
	font-weight: 800;
	line-height: 1.2;
}
ul.products li.product .price del { order: -1; font-size: 0.8rem; font-weight: 500; color: var(--v-muted) !important; opacity: 1; }
ul.products li.product .price ins { text-decoration: none; color: var(--v-accent); font-weight: 800; }
ul.products li.product .price .screen-reader-text { position: absolute; }
/* Actions: "Comandă acum" (buy-now modal) + icon-only add to cart on simple products. */
ul.products li.product .astra-shop-summary-wrap { position: relative; }
ul.products li.product .printerland-quick-buy {
	order: 10;
	width: 100%;
	min-height: 42px;
	margin-top: auto;
	border: 0;
	border-radius: 10px;
	background: var(--v-accent);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	padding: 0 10px;
}
ul.products li.product .printerland-quick-buy:hover { background: var(--v-accent-hover); }
ul.products li.product.product-type-simple.instock .add_to_cart_button {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 40px;
	height: 40px;
	min-height: 0;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 10px;
	background: var(--v-panel) !important;
	color: transparent !important;
	font-size: 0 !important;
	border: 0;
}
ul.products li.product.product-type-simple.instock .add_to_cart_button::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--v-navy);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / 22px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E") center / 22px no-repeat;
}
ul.products li.product.product-type-simple.instock .add_to_cart_button:hover { background: #E2E8F1 !important; }
ul.products li.product.product-type-simple.instock .add_to_cart_button.loading::before { opacity: 0.4; }
ul.products li.product.product-type-simple.instock .add_to_cart_button.added::before { background: var(--v-green); }
ul.products li.product .added_to_cart { display: none !important; }
/* Simple in-stock cards: CTA leaves room for the cart icon at its right. */
ul.products li.product.product-type-simple.instock:has(.add_to_cart_button) .printerland-quick-buy { width: calc(100% - 48px); }
ul.products li.product.product-type-simple.instock { position: relative; }
ul.products li.product.product-type-simple.instock .astra-shop-summary-wrap { position: static; }
ul.products li.product.product-type-simple.instock .add_to_cart_button { right: 10px; bottom: 10px; }
.v21-rail ul.products li.product .printerland-quick-buy,
.v21-rail ul.products li.product.product-type-simple.instock:has(.add_to_cart_button) .printerland-quick-buy { width: 100%; }
/* Variable / out-of-stock cards keep WooCommerce's own full-width button. */
ul.products li.product:not(.instock) .button,
ul.products li.product.product-type-variable .button {
	width: 100%;
	min-height: 42px;
	margin-top: auto !important;
	border-radius: 10px;
	background: var(--v-panel) !important;
	color: var(--v-ink) !important;
	font-weight: 600;
	text-align: center;
}
ul.products li.product .ph-loop-actions { top: 0; right: 0; }
.v21-rail ul.products li.product .ph-loop-actions { display: none; }
@media (hover: hover) {
	ul.products li.product .ph-loop-actions { opacity: 0; transition: opacity 0.15s ease; }
	ul.products li.product:hover .ph-loop-actions,
	ul.products li.product:focus-within .ph-loop-actions { opacity: 1; }
}
ul.products li.product .ph-loop-action { background: rgb(255 255 255 / 0.92); border-radius: 8px; box-shadow: none; }

/* ---------- Product grids (archive, related, shortcodes) ---------- */
.woocommerce ul.products:not(.v21-rail-track),
ul.products:not(.v21-rail-track) {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 10px;
	margin: 0 0 24px !important;
	padding: 0 !important;
}
ul.products:not(.v21-rail-track)::before,
ul.products:not(.v21-rail-track)::after { display: none !important; }
ul.products:not(.v21-rail-track) > li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	clear: none !important;
}
@media (min-width: 640px) { ul.products:not(.v21-rail-track) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px; } }
@media (min-width: 1024px) {
	ul.products.columns-4:not(.v21-rail-track),
	.related ul.products, .up-sells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
	.home ul.products.columns-5:not(.v21-rail-track) { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
@media (min-width: 1280px) {
	.archive ul.products:not(.v21-rail-track),
	.search ul.products:not(.v21-rail-track) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 479px) {
	/* Narrow cards: cart icon rides the image corner so "Comandă acum" keeps one line. */
	ul.products:not(.v21-rail-track) li.product .ph-loop-actions { display: none; }
	ul.products li.product.product-type-simple.instock .add_to_cart_button { top: 10px; right: 10px; bottom: auto; width: 38px; height: 38px; background: rgb(255 255 255 / 0.94) !important; box-shadow: 0 1px 4px rgb(14 32 65 / 0.18); }
	ul.products li.product.product-type-simple.instock:has(.add_to_cart_button) .printerland-quick-buy { width: 100%; }
	ul.products li.product .printerland-quick-buy { font-size: 0.86rem; white-space: nowrap; }
	ul.products li.product .price { font-size: 1.02rem !important; }
}
/* Archive head */
.archive .woocommerce-products-header__title,
.archive h1.page-title {
	font-size: clamp(1.6rem, 4vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--v-ink);
	margin: 4px 0 8px;
}
.woocommerce-breadcrumb { font-size: 0.84rem; color: var(--v-muted); }
.woocommerce-breadcrumb a { color: var(--v-muted); }
.woocommerce-breadcrumb a:hover { color: var(--v-accent); }
.woocommerce-ordering select {
	height: 44px;
	border-radius: 10px;
	border: 1px solid var(--v-line);
	background-color: var(--v-surface);
	color: var(--v-ink);
	font-size: 0.95rem;
}
.woocommerce-pagination ul.page-numbers li .page-numbers.current { background: var(--v-accent); border-color: var(--v-accent); color: #fff; }

/* ---------- Product page ---------- */
.single-product .onsale {
	top: 12px !important;
	left: 12px !important;
	right: auto !important;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	line-height: 1.3 !important;
	padding: 5px 11px !important;
	border-radius: 8px !important;
	background: var(--v-accent) !important;
	font-size: 0.95rem !important;
	font-weight: 700;
}
.printerland-buybox {
	background: var(--v-surface);
	box-shadow: none;
	border: 1px solid var(--v-line);
	border-radius: var(--v-radius-lg);
}
.printerland-buybox .woocommerce-breadcrumb {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 6px;
}
.printerland-buybox .product_title { font-size: clamp(1.3rem, 3.4vw, 1.75rem); font-weight: 800; line-height: 1.2; color: var(--v-ink); }
.printerland-buybox .ast-woo-product-category { font-size: 0.82rem; }
.printerland-buybox .price {
	display: flex !important;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 12px;
	color: var(--v-ink) !important;
	font-size: 1.9rem !important;
	font-weight: 800;
}
.printerland-buybox .price del { order: 2; font-size: 1rem; font-weight: 500; color: var(--v-muted) !important; opacity: 1; }
.printerland-buybox .price ins { text-decoration: none; color: var(--v-accent); }
.printerland-buybox form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px !important; }
.single-product .printerland-buybox form.cart .single_add_to_cart_button.button {
	min-height: 48px;
	border-radius: 10px !important;
	background: var(--v-surface) !important;
	border: 1.5px solid var(--v-navy) !important;
	color: var(--v-navy) !important;
	padding: 0 22px !important;
	font-weight: 700 !important;
}
.single-product .printerland-buybox form.cart .single_add_to_cart_button.button:hover { background: var(--v-panel) !important; }
.printerland-buybox .printerland-pdp-buy-now {
	display: flex;
	width: 100%;
	max-width: 420px;
	min-height: 52px;
	height: auto;
	margin: 4px 0 16px;
	border-radius: 10px;
	background: var(--v-accent);
	box-shadow: none;
	font-size: 1.08rem;
}
.printerland-buybox .printerland-pdp-buy-now:hover { background: var(--v-accent-hover); }
.printerland-trust-strip .ph-svg-icon, .ph-stock-badge .ph-svg-icon { color: var(--v-navy); }
.woocommerce-tabs ul.tabs li a { font-weight: 600; color: var(--v-muted); }
.woocommerce-tabs ul.tabs li.active a { color: var(--v-ink); }
.related > h2, .up-sells > h2 { font-size: 1.45rem; font-weight: 700; }

/* ---------- Cart / checkout (WooCommerce Blocks) ---------- */
@media (max-width: 599px) {
	.wp-block-woocommerce-cart table.wc-block-cart-items,
	.wp-block-woocommerce-cart table.wc-block-cart-items tbody { display: block; width: 100% !important; }
	.wp-block-woocommerce-cart table.wc-block-cart-items thead { display: none; }
	.wp-block-woocommerce-cart .wc-block-cart-items__row {
		display: grid !important;
		grid-template-columns: 76px minmax(0, 1fr);
		column-gap: 14px;
		padding: 12px 0 !important;
	}
	.wp-block-woocommerce-cart .wc-block-cart-item__image { grid-row: 1 / span 2; width: auto !important; padding: 0 !important; }
	.wp-block-woocommerce-cart .wc-block-cart-item__product { padding: 0 !important; }
	/* Line total duplicates the unit price at qty 1 and the summary total below. */
	.wp-block-woocommerce-cart .wc-block-cart-item__total { display: none !important; }
}
.woocommerce-message:focus, .woocommerce-info:focus, .woocommerce-error:focus, .wc-block-components-notice-banner:focus { outline: none; }
.wp-block-woocommerce-cart .wc-block-components-sale-badge { white-space: normal; font-size: 0.72rem; }
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.contained {
	background: var(--v-accent) !important;
	color: #fff !important;
	border-radius: 10px !important;
	min-height: 52px;
	font-weight: 700 !important;
	font-size: 1.05rem !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover { background: var(--v-accent-hover) !important; }
.wc-block-components-totals-wrapper, .wc-block-cart__totals-title { color: var(--v-ink); }
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select__select { border-radius: 10px !important; }

/* ---------- Help block ---------- */
.v21-help {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--v-navy);
	color: #fff;
	border-radius: var(--v-radius-lg);
	padding: 18px 16px;
}
.v21-help-icon {
	flex: 0 0 auto;
	display: none;
	align-items: center;
	padding-right: 16px;
	border-right: 1px solid rgb(255 255 255 / 0.28);
}
.v21-help-icon .ph-svg-icon { width: 44px; height: 44px; stroke-width: 1.5; color: #fff; }
@media (min-width: 420px) { .v21-help-icon { display: flex; } }
.v21-help .v21-help-body h2 { color: #fff; font-size: 1.15rem; font-weight: 700; margin: 0 0 12px; line-height: 1.3; }
.v21-help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.v21-help-actions .v21-btn { font-size: 1.1rem; letter-spacing: 0.01em; }
.v21-help-showroom {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: #fff;
	font-weight: 500;
	text-decoration: none;
}
.v21-help-meta { margin: 10px 0 0; font-size: 0.86rem; color: rgb(255 255 255 / 0.78); }
.v21-help-showroom:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.v21-help-showroom .ph-svg-icon { width: 20px; height: 20px; }
@media (min-width: 1024px) {
	.v21-help { padding: 24px 40px; }
	.v21-help h2 { font-size: 1.5rem; }
}

/* ---------- Trust row ---------- */
.v21-trust {
	list-style: none;
	margin: 0;
	padding: 8px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--v-panel);
	border-radius: var(--v-radius-lg);
}
@media (min-width: 560px) { .v21-trust { grid-template-columns: repeat(4, 1fr); } }
.v21-trust li { margin: 0; position: relative; }
.v21-trust li + li::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: #CFD7E2; }
@media (max-width: 559px) {
	.v21-trust li:nth-child(3)::before { display: none; }
	.v21-trust li:nth-child(n+3) { border-top: 1px solid #CFD7E2; }
}
.v21-trust a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 12px 8px;
	text-align: center;
	color: var(--v-ink);
	font-size: 0.84rem;
	line-height: 1.3;
	text-decoration: none;
}
.v21-trust a:hover { color: var(--v-accent); }
.v21-trust .ph-svg-icon { width: 30px; height: 30px; stroke-width: 1.5; color: var(--v-navy); }

/* ---------- Brands ---------- */
.home .phv2-brands-section { max-width: var(--v-max); margin: 24px auto 0; }
.home .phv2-brands-title { font-size: 1.35rem; margin: 0 0 12px; }
.home .phv2-brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 640px) { .home .phv2-brands { grid-template-columns: repeat(6, 1fr); } }
.home .phv2-brand-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 64px;
	padding: 10px;
	background: var(--v-surface);
	border: 1px solid var(--v-line);
	border-radius: var(--v-radius);
	color: var(--v-ink);
	font-weight: 700;
	text-decoration: none;
}
.home .phv2-brand-pill img { max-height: 36px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter 0.15s ease, opacity 0.15s ease; }
.home .phv2-brand-pill:hover { border-color: #C9D2DE; }
.home .phv2-brand-pill:hover img { filter: none; opacity: 1; }

/* ---------- Details, notices, floating controls ---------- */
details > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--v-ink); min-height: 44px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.15s ease;
}
details[open] > summary::before { transform: rotate(45deg); }
.home .entry-content > p:empty { display: none; }
.home .ph-seo-bleed { background: transparent !important; padding: 8px 0 !important; margin: 16px 0 0 !important; }
.home .ph-seo-bleed .ph-bleed-inner { max-width: var(--v-max); margin: 0 auto; padding: 0 !important; }
.home .ph-seo-text { border-top: 1px solid var(--v-line); padding-top: 8px; }
.home .ph-seo-text p { max-width: 72ch; color: var(--v-text); }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border: 1px solid var(--v-line) !important;
	border-radius: var(--v-radius);
	background: var(--v-panel);
	color: var(--v-ink);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--v-green); }
.woocommerce-message .button { border-radius: 10px; background: var(--v-navy) !important; }
.ph-mega-menu-close { background: var(--v-accent) !important; border: 0 !important; box-shadow: 0 4px 12px rgb(14 32 65 / 0.2) !important; }
#ast-scroll-top { width: 40px; height: 40px; border-radius: 10px; background: var(--v-navy); }
@media (max-width: 767px) { #ast-scroll-top { display: none !important; } }
ul.products li.product .star-rating { display: none !important; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	.v21-finder { animation: v21-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
	@keyframes v21-rise { from { transform: translateY(8px); } to { transform: none; } }
}

/* Old (struck) price: readable muted ink, no opacity fade (WCAG AA). */
.price del, .price del *, .v21-rail .price del * { color: var(--v-muted) !important; opacity: 1 !important; }
