/**
 * Kunfah theme stylesheet.
 *
 * Reserved for layout and behavior that block supports and theme.json
 * cannot express — primarily the header and footer structure. Visual
 * design tokens (color, type, spacing) belong in theme.json, not here.
 *
 * Mobile-first: base rules target small screens; @media (min-width) rules
 * progressively enhance for larger viewports.
 */

a {
	transition: color 0.15s ease;
}

/* -----------------------------------------------------------------------
 * Accessibility utilities
 * ---------------------------------------------------------------------*/

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	width: auto;
	left: var(--wp--preset--spacing--20);
	top: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border-radius: 0.25rem;
	z-index: 100000;
	text-decoration: none;
}

/* -----------------------------------------------------------------------
 * Header — utility bar
 * ---------------------------------------------------------------------*/

.site-header__utility {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--on-dark-muted);
	padding-top: var(--wp--preset--spacing--10);
	padding-bottom: var(--wp--preset--spacing--10);
}

.site-header__utility p {
	margin: 0;
	letter-spacing: 0.02em;
}

.site-header__utility-trust {
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.site-header__utility-trust::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 0.5em;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	vertical-align: middle;
}

.site-header__utility-links {
	column-gap: var(--wp--preset--spacing--40);
}

.site-header__utility a {
	color: var(--wp--preset--color--on-dark-muted);
	text-decoration: none;
}

.site-header__utility a:hover {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
}

/* -----------------------------------------------------------------------
 * Header — main bar
 * ---------------------------------------------------------------------*/

.site-header {
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--border);
	position: sticky;
	top: 0;
	z-index: 40;
}

.site-header__bar {
	padding-top: var(--wp--preset--spacing--40);
	padding-bottom: 0;
}

.site-header__topbar {
	align-items: center;
	column-gap: var(--wp--preset--spacing--40);
	row-gap: var(--wp--preset--spacing--30);
	padding-bottom: var(--wp--preset--spacing--30);
}

.site-header__brand {
	flex: 0 0 auto;
}

.site-header__brand .wp-block-site-title,
.site-header__brand .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--xx-large);
	letter-spacing: -0.01em;
	line-height: 1;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.site-header__tagline {
	margin: 0.25rem 0 0;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.site-header__search {
	flex: 1 1 260px;
	min-width: 200px;
	order: 3;
	width: 100%;
}

.site-header__search .wc-block-product-search {
	width: 100%;
}

.site-header__search .wc-block-product-search__fields {
	display: flex;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	box-shadow: 0 1px 2px rgba(28, 28, 26, 0.05);
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.site-header__search .wc-block-product-search__fields:focus-within {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(30, 75, 62, 0.12);
}

.site-header__search .wc-block-product-search__field {
	flex: 1 1 auto;
	box-sizing: border-box;
	min-width: 0;
	border: 0;
	padding: 0.75rem var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--medium);
	background: transparent;
}

.site-header__search .wc-block-product-search__field:focus {
	outline: none;
}

.site-header__search .wc-block-product-search__button {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	width: 3rem;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.site-header__search .wc-block-product-search__button:hover {
	background: var(--wp--preset--color--primary-dark);
}

.site-header__actions {
	flex: 0 0 auto;
	align-items: center;
	column-gap: var(--wp--preset--spacing--10);
	margin-left: auto;
}

.site-header__actions .wc-block-mini-cart__button,
.site-header__actions .wc-block-customer-account__link {
	color: var(--wp--preset--color--ink);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	transition: background-color 0.15s ease;
}

.site-header__actions .wc-block-mini-cart__button:hover,
.site-header__actions .wc-block-customer-account__link:hover {
	background: var(--wp--preset--color--surface);
}

/*
 * WooCommerce only auto-enqueues customer-account-style.css when the block
 * is inserted via the Block Hooks auto-placement path; placed explicitly in
 * our own header markup (as here), its icon ships with no intrinsic size.
 * Size it ourselves so it doesn't collapse to 0×0.
 */
.site-header__actions .wc-block-customer-account__link svg {
	width: 22px;
	height: 22px;
}

.site-header__nav {
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: var(--wp--preset--spacing--20);
	padding-bottom: var(--wp--preset--spacing--20);
}

.site-header__nav .wp-block-navigation__responsive-container-content {
	background: var(--wp--preset--color--base);
}

.site-header__nav .wp-block-navigation__container {
	column-gap: var(--wp--preset--spacing--40);
}

.site-header__nav a.wp-block-navigation-item__content {
	position: relative;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
	padding-bottom: 0.375rem;
}

.site-header__nav a.wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}

.site-header__nav a.wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--ink);
}

.site-header__nav a.wp-block-navigation-item__content:hover::after {
	transform: scaleX(1);
}

@media (min-width: 62rem) {
	.site-header__search {
		order: 2;
		flex: 1 1 320px;
		width: auto;
	}

	.site-header__actions {
		order: 3;
		margin-left: 0;
	}
}

/* -----------------------------------------------------------------------
 * Header — Categories mega-menu
 * ---------------------------------------------------------------------*/

@media (min-width: 62rem) {
	.site-header__nav .has-mega-menu .wp-block-navigation__submenu-container {
		display: grid;
		grid-template-columns: repeat(2, minmax(180px, 1fr));
		column-gap: var(--wp--preset--spacing--50);
		row-gap: var(--wp--preset--spacing--10);
		min-width: 420px;
		padding: var(--wp--preset--spacing--40);
		border-radius: 0.5rem;
		box-shadow: 0 16px 32px rgba(28, 28, 26, 0.14);
	}

	.site-header__nav .has-mega-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		text-transform: none;
		letter-spacing: normal;
		font-weight: 500;
		padding: 0.5rem 0;
	}

	.site-header__nav .has-mega-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
		display: none;
	}
}

/* -----------------------------------------------------------------------
 * Buttons — hover lift (theme.json handles color/shape/type)
 * ---------------------------------------------------------------------*/

.wp-element-button:hover,
.wp-block-button__link:hover {
	box-shadow: 0 4px 10px rgba(20, 53, 43, 0.25);
}

/* -----------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------*/

.site-footer {
	background: var(--wp--preset--color--primary-dark);
	border-top: 3px solid var(--wp--preset--color--accent);
	margin-top: var(--wp--preset--spacing--70);
	color: var(--wp--preset--color--on-dark-muted);
}

/* Homepage ends on a dark full-bleed CTA — butt it against the footer
 * instead of leaving WordPress's default top-level block gap. .site-footer
 * is nested inside the <footer> template-part wrapper (see parts/footer.html),
 * not the wrapper itself, so this targets it as a descendant. */
main:has(> .home-final-cta) + footer .site-footer {
	margin-top: 0;
}

.site-footer__bar {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--50);
}

.site-footer__columns {
	column-gap: var(--wp--preset--spacing--50);
}

.site-footer__columns h3 {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	color: var(--wp--preset--color--base);
	margin-bottom: var(--wp--preset--spacing--30);
	padding-bottom: var(--wp--preset--spacing--10);
	border-bottom: 2px solid var(--wp--preset--color--accent);
}

.site-footer__columns p {
	color: var(--wp--preset--color--on-dark-muted);
}

.site-footer__columns ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	row-gap: var(--wp--preset--spacing--20);
}

.site-footer__columns a {
	color: var(--wp--preset--color--on-dark-muted);
}

.site-footer__columns a:hover {
	color: var(--wp--preset--color--base);
}

.site-footer__trust {
	color: var(--wp--preset--color--on-dark-muted);
	margin-top: var(--wp--preset--spacing--30);
}

.site-footer__divider {
	border-top-color: rgba(255, 255, 255, 0.16);
	opacity: 1;
}

.site-footer__bottom {
	align-items: center;
	padding-top: var(--wp--preset--spacing--30);
	row-gap: var(--wp--preset--spacing--20);
}

.site-footer__brand {
	align-items: baseline;
	column-gap: var(--wp--preset--spacing--30);
}

.site-footer__brand .wp-block-site-title,
.site-footer__brand .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.site-footer__bottom p {
	margin: 0;
	color: var(--wp--preset--color--on-dark-muted);
}

.site-footer__social {
	column-gap: var(--wp--preset--spacing--30);
}

.site-footer__social a {
	color: var(--wp--preset--color--on-dark-muted);
	text-decoration: none;
}

.site-footer__social a:hover {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
}

/* -----------------------------------------------------------------------
 * Standard page / single post content
 * ---------------------------------------------------------------------*/

.page-header {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--20);
}

.page-content {
	padding-bottom: var(--wp--preset--spacing--70);
}

.page-content > * + * {
	margin-top: var(--wp--preset--spacing--30);
}

/*
 * Editorial vertical rhythm: every block (paragraph, heading, list,
 * notice) previously got the same 1rem gap regardless of what it was,
 * which read as one dense, undifferentiated wall of text — no visual
 * cue that a new section had started. A premium long-form page needs
 * asymmetric spacing: generous room before a heading (announcing a new
 * section) and only a small gap between that heading and the text
 * directly under it (keeping them visually paired). Applied to both
 * plain policy pages (.page-content) and the two-column Terms/Privacy
 * layout (.policy-layout__main), which has its own matching base rule.
 */
.page-content > :is(h2, h3, h4),
.policy-layout__main > :is(h2, h3, h4) {
	margin-top: var(--wp--preset--spacing--60);
}

.page-content > :is(h2, h3, h4) + *,
.policy-layout__main > :is(h2, h3, h4) + * {
	margin-top: var(--wp--preset--spacing--20);
}

/* -----------------------------------------------------------------------
 * Policy / business-content pages (Shipping, Returns, Terms, Privacy,
 * FAQ, Contact, About, Trade & Wholesale, Schools & Businesses, Brands)
 * — shared utility classes so long-form content stays readable and
 * on-brand instead of looking like a raw legal document.
 * ---------------------------------------------------------------------*/

.page-header--policy {
	padding-bottom: var(--wp--preset--spacing--30);
}

.page-header__eyebrow {
	margin: 0 0 var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--accent-dark);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

/*
 * Fixed (non-fluid) font-size, deliberately not the "large" preset:
 * theme.json's fluid type scale clamps "large" up to 36px on a wide
 * viewport — nearly as big as the H1 above it (48px) — which read as
 * oversized and unbalanced. 1.125rem is a modest, size-stable step up
 * from body text, the way an editorial lede should read.
 *
 * margin-left: 0 !important — WordPress's constrained-layout CSS
 * forces `margin-inline: auto !important` on every direct child block,
 * which is meant for intentionally narrower/centered elements. Applied
 * here (a child narrower than its container only to control line
 * length, not to be centered), it silently indented this paragraph
 * ~24px off the H1's left edge. This override — matching the same
 * documented exception already used for .policy-layout — restores
 * left alignment with the heading above it.
 */
.policy-intro {
	color: var(--wp--preset--color--muted);
	font-size: 1.125rem;
	line-height: 1.6;
	max-width: 38rem;
	margin-left: 0 !important;
}

.policy-notice {
	background: var(--wp--preset--color--surface);
	border-left: 3px solid var(--wp--preset--color--accent);
	border-radius: 0.5rem;
	padding: var(--wp--preset--spacing--30);
}

.policy-notice p {
	margin: 0;
}

.policy-meta {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	padding-top: var(--wp--preset--spacing--20);
	border-top: 1px solid var(--wp--preset--color--border);
}

/*
 * Optional "on this page" layout for the longest documents (Terms,
 * Privacy) only — authored directly inside those pages' content, not a
 * template-level feature, since most policy pages are short enough that
 * a table of contents would add noise rather than usefulness.
 */
/* !important: WordPress core sets a `gap` inline style directly on
 * `.wp-block-columns` (from the block's own spacing attribute/default),
 * which otherwise wins over an external column-gap rule of equal
 * specificity — this is the one deliberate override in this stylesheet.
 *
 * The nav is intentionally NOT position:sticky. It looked appealing on
 * paper, but sticky positioning on a flex item whose height is stretched
 * to match a much taller sibling is unreliable across engines — a plain,
 * always-in-place nav column is simple, predictable, and still gives a
 * reader the full list of sections without an "awkward sticky element"
 * (explicitly something to avoid per the Task 010 brief). */
.policy-layout {
	column-gap: var(--wp--preset--spacing--60) !important;
	align-items: flex-start;
	margin-top: var(--wp--preset--spacing--10);
}

.policy-layout__nav-label {
	margin: 0 0 var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.policy-layout__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--10);
	border-left: 1px solid var(--wp--preset--color--border);
}

.policy-layout__nav a {
	display: block;
	padding: 0.2rem 0 0.2rem var(--wp--preset--spacing--20);
	margin-left: -1px;
	border-left: 2px solid transparent;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.policy-layout__nav a:hover,
.policy-layout__nav a:focus-visible {
	color: var(--wp--preset--color--primary-dark);
	border-left-color: var(--wp--preset--color--accent);
}

.policy-layout__main {
	min-width: 0;
}

@media (min-width: 782px) {
	.policy-layout__main {
		padding-left: var(--wp--preset--spacing--50);
		border-left: 1px solid var(--wp--preset--color--border);
	}
}

.policy-layout__main > * + * {
	margin-top: var(--wp--preset--spacing--30);
}

/* -----------------------------------------------------------------------
 * Contact page — form + contact information two-column layout
 * ---------------------------------------------------------------------*/

.contact-layout {
	column-gap: var(--wp--preset--spacing--60) !important; /* see .policy-layout for why !important is needed here */
	margin-top: var(--wp--preset--spacing--10);
}

.contact-layout__info {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.5rem;
	padding: var(--wp--preset--spacing--40);
	box-sizing: border-box;
	align-self: flex-start;
}

.contact-info-block + .contact-info-block {
	margin-top: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--preset--color--border);
}

.contact-info-block h2 {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--ink);
	margin: 0 0 var(--wp--preset--spacing--20);
}

.contact-info-block__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.contact-info-block__list a {
	color: var(--wp--preset--color--ink);
	font-weight: 500;
}

/* Fixed size (not the fluid "large" preset, which clamped to 36px on
 * a wide screen — see .contact-form__input above for the same issue).
 * Still a deliberate step up from the 13px labels around it, since
 * this is the page's primary contact method, but no longer runs away
 * at wide viewports. */
.contact-info-block__email {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.375rem;
	color: var(--wp--preset--color--primary-dark);
}

.contact-info-block__details {
	margin: 0;
}

.contact-info-block__details > div {
	display: flex;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
}

.contact-info-block__details > div + div {
	margin-top: var(--wp--preset--spacing--10);
}

.contact-info-block__details dt {
	color: var(--wp--preset--color--muted);
	flex-shrink: 0;
	white-space: nowrap;
}

.contact-info-block__details dd {
	margin: 0;
	text-align: right;
	color: var(--wp--preset--color--ink);
	font-weight: 500;
}

.contact-info-block__unconfirmed {
	color: var(--wp--preset--color--muted);
	font-style: italic;
	font-weight: 400;
}

/* -----------------------------------------------------------------------
 * Contact form
 * ---------------------------------------------------------------------*/

.contact-form__status {
	padding: var(--wp--preset--spacing--30);
	border-radius: 0.5rem;
	margin-bottom: var(--wp--preset--spacing--40);
}

.contact-form__status p {
	margin: 0;
}

.contact-form__status--success {
	background: var(--wp--preset--color--surface);
	border-left: 3px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary-dark);
}

.contact-form__status--error {
	background: #fbeee6;
	border-left: 3px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-dark);
}

.contact-form__status--error ul {
	margin: var(--wp--preset--spacing--10) 0 0;
	padding-left: 1.25rem;
}

/* Honeypot: kept in normal flow (not display:none, which some spam
 * scripts specifically skip) but moved off-screen and out of the tab
 * order (tabindex="-1" in the markup) and hidden from assistive tech
 * (aria-hidden="true" in the markup) — invisible and unreachable for a
 * real visitor, still present for a script that fills every field. */
.contact-form__hp-wrap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-form__field + .contact-form__field {
	margin-top: var(--wp--preset--spacing--30);
}

.contact-form__label {
	display: block;
	margin-bottom: var(--wp--preset--spacing--10);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.contact-form__optional {
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

/* font-size is fixed at 1rem, not the "medium" fluid preset — that
 * preset clamps up to 20px on a wide screen (same fluid-typography
 * issue documented on .policy-intro), which made every field's text,
 * including the "Choose a subject…" select, read oversized next to
 * the form's 13px labels. */
.contact-form__input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem var(--wp--preset--spacing--30);
	font-family: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.4rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form__input:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(30, 75, 62, 0.12);
}

.contact-form__select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236e6b62' stroke-width='1.5'%3E%3Cpath d='M5 7l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	padding-right: 2.5rem;
}

.contact-form__textarea {
	resize: vertical;
	min-height: 8rem;
}

.contact-form__submit {
	margin-top: var(--wp--preset--spacing--40);
	border: none;
	cursor: pointer;
}

@media (max-width: 62rem) {
	.contact-layout__info {
		margin-top: var(--wp--preset--spacing--20);
	}
}

/* FAQ accordions (native core/details — no JavaScript). */
.page-content .wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--20) 0;
}

.page-content .wp-block-details summary {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
}

.page-content .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.page-content .wp-block-details summary::after {
	content: "+";
	flex: 0 0 auto;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--accent);
	line-height: 1;
}

.page-content .wp-block-details[open] summary::after {
	content: "\2212"; /* minus sign */
}

.page-content .wp-block-details p {
	margin: var(--wp--preset--spacing--20) 0 0;
	color: var(--wp--preset--color--muted);
}

.page-content table {
	border-collapse: collapse;
	width: 100%;
}

.page-content table td {
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--wp--preset--color--border);
	vertical-align: top;
}

/* -----------------------------------------------------------------------
 * Homepage — shared section rhythm
 * ---------------------------------------------------------------------*/

.home-section__heading {
	margin-bottom: var(--wp--preset--spacing--50);
}

.home-section__lede {
	color: var(--wp--preset--color--muted);
	margin-top: var(--wp--preset--spacing--10);
}

/* -----------------------------------------------------------------------
 * Homepage — hero
 * ---------------------------------------------------------------------*/

.home-hero {
	background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-dark) 100%);
	position: relative;
	overflow: hidden;
}

/* The copy column is exactly the global content width (720px) so its
 * left edge lines up with "Shop by Category" and every section below
 * (Task 021) — previously a separately-centred 40rem box sat 40px to the
 * right of them. Line lengths stay short via the subtitle's own max-width. */
.home-hero .home-hero__inner {
	position: relative;
	z-index: 1;
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
	max-width: var(--wp--style--global--content-size, 720px);
}

.home-hero__eyebrow {
	color: var(--wp--preset--color--on-dark-muted);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	margin: 0 0 var(--wp--preset--spacing--20);
}

.home-hero__title {
	color: var(--wp--preset--color--base);
	margin: 0 0 var(--wp--preset--spacing--30);
}

/*
 * font-size fixed at 1.25rem (overriding the pattern's "large" block
 * attribute) and margin-left forced to 0 — see .policy-intro for why:
 * the fluid "large" preset clamped up to 36px here, nearly matching
 * the 48px H1 above it, and the auto-margin WordPress forces on any
 * narrower constrained-layout child indented it off the eyebrow/H1's
 * left edge.
 */
.home-hero__subtitle {
	color: var(--wp--preset--color--on-dark-muted);
	margin: 0 0 var(--wp--preset--spacing--40);
	max-width: 34rem;
	font-size: 1.25rem;
	margin-left: 0 !important;
}

.home-hero__actions .wp-block-button:first-child .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary-dark);
}

.home-hero__actions .wp-block-button:first-child .wp-block-button__link:hover {
	background: var(--wp--preset--color--surface);
}

.home-hero__actions .is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--base);
	border-color: rgba(255, 255, 255, 0.55);
}

.home-hero__actions .is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--base);
	box-shadow: none;
}

.home-hero__art {
	position: absolute;
	top: 0;
	right: -8%;
	width: 60%;
	max-width: 34rem;
	height: 100%;
	color: var(--wp--preset--color--base);
	opacity: 0.9;
	pointer-events: none;
}

.home-hero__art svg {
	width: 100%;
	height: 100%;
}

@media (max-width: 62rem) {
	.home-hero__art {
		display: none;
	}
}

/* -----------------------------------------------------------------------
 * Homepage — shop by category
 * ---------------------------------------------------------------------*/

.home-categories {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--60);
}

/*
 * .category-card-grid / .category-card are shared, not homepage-specific —
 * the category archive's "subcategories" block reuses them too, so the
 * two visual treatments never drift apart.
 */
.category-card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	/* Explicit rather than relying on the "normal" default resolving to
	 * stretch — guarantees every card (1st, last, any count) fills its
	 * grid cell identically instead of sizing to its own content. */
	align-items: stretch;
	justify-items: stretch;
	gap: var(--wp--preset--spacing--30);
}

@media (min-width: 48rem) {
	.category-card-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--wp--preset--spacing--20);
	width: 100%;
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--20);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.75rem;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.category-card:hover,
.category-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(28, 28, 26, 0.1);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.category-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.25rem;
	height: 4.25rem;
	padding: 1.1rem;
	box-sizing: border-box;
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
	transition: background-color 0.15s ease;
}

.category-card:hover .category-card__icon,
.category-card:focus-visible .category-card__icon {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary-dark);
}

.category-card__icon svg {
	width: 100%;
	height: 100%;
}

.category-card__name {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}

.category-card__count {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--tiny);
}

/*
 * Premium photo-tile variant: a real category image (or an abstract
 * icon-on-tint fallback when no image is set) filling a fixed-ratio
 * card, category name + "Shop now" overlaid on a bottom gradient scrim.
 * Used by both the homepage "Shop by Category" section and the category
 * archive's subcategory grid (kunfah_render_category_card()).
 */
.category-card-grid--tiles {
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 48rem) {
	.category-card-grid--tiles {
		grid-template-columns: repeat(4, 1fr);
	}
}

.category-card--tile {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	padding: 0;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
	border: none;
}

.category-card--tile:hover,
.category-card--tile:focus-visible {
	transform: none;
	box-shadow: 0 14px 30px rgba(28, 28, 26, 0.18);
}

.category-card__media {
	position: absolute;
	inset: 0;
}

/* Original abstract SVG artwork (inc/category-artwork.php) — fills the
 * tile exactly, no cropping/stretching concerns since it's vector and
 * rendered at the card's own aspect ratio to begin with. */
.category-art {
	display: block;
	width: 100%;
	height: 100%;
}

.category-card--tile:hover .category-art,
.category-card--tile:focus-visible .category-art {
	transform: scale(1.045);
	transition: transform 0.4s ease;
}

.category-card__scrim {
	position: absolute;
	inset: auto 0 0 0;
	height: 60%;
	background: linear-gradient(to top, rgba(20, 20, 18, 0.72) 0%, rgba(20, 20, 18, 0.22) 60%, transparent 100%);
	pointer-events: none;
}

.category-card__label {
	position: absolute;
	inset: auto var(--wp--preset--spacing--30) var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	text-align: left;
	color: var(--wp--preset--color--base);
}

.category-card__label .category-card__name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	line-height: 1.2;
}

.category-card__label .category-card__count {
	color: inherit;
	opacity: 0.8;
	font-size: var(--wp--preset--font-size--tiny);
}

.category-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.15rem;
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.9;
}

.category-card__cta svg {
	transition: transform 0.15s ease;
}

.category-card--tile:hover .category-card__cta svg,
.category-card--tile:focus-visible .category-card__cta svg {
	transform: translateX(3px);
}

/* -----------------------------------------------------------------------
 * Homepage — featured products (core/query + WooCommerce product blocks)
 * ---------------------------------------------------------------------*/

.home-featured {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

/*
 * .product-grid / .product-card are shared by the homepage Featured
 * Products section AND the Shop/Category archives — one card design used
 * everywhere a product grid appears, whether built from core/post-template
 * (homepage) or woocommerce/product-template (archives); both render the
 * same <li> shape, so one set of rules covers both.
 */
.product-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 48rem) {
	.product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 78rem) {
	.product-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.product-grid > li {
	list-style: none;
	/* WordPress core adds its own flow-layout block-gap spacing to
	 * post-template/product-template children as `li + li { margin-top }`
	 * — meant for a normal vertical stack, not aware this grid repurposes
	 * the block as a CSS Grid (which already spaces items via `gap`).
	 * Left in place, it only hits items 2+ in each row (never the first,
	 * since `li + li` needs a preceding sibling), so every row's first
	 * card sits measurably higher than the rest. Grid `gap` alone is
	 * the correct/only spacing mechanism here. */
	margin-top: 0;
}

.product-card {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.75rem;
	padding: var(--wp--preset--spacing--30);
	height: 100%;
	box-sizing: border-box;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(28, 28, 26, 0.1);
}

/* Product image (Task 021): a uniform square frame on a neutral surface,
 * with the WHOLE photo shown inside it (object-fit: contain) instead of
 * zoom-cropped to fill the square — tall packaging (brushes, bottles)
 * and wide kits were losing their labels. The pattern's block attributes
 * set the same aspect-ratio/contain inline; this rule keeps it true for
 * any card markup. `multiply` lets white photo backgrounds take on the
 * frame colour so white-background and coloured shots read as one set. */
.product-card .wc-block-components-product-image {
	margin-bottom: var(--wp--preset--spacing--20);
	overflow: hidden;
	border-radius: 0.5rem;
	background: var(--wp--preset--color--surface);
}

.product-card .wc-block-components-product-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 0.75rem;
	box-sizing: border-box;
	mix-blend-mode: multiply;
}

.product-card img {
	border-radius: 0.5rem;
	transition: transform 0.25s ease;
}

.product-card:hover img {
	transform: scale(1.035);
}

/* Reserve a fixed two-line height for the title so price sits at the
 * same position on every card regardless of title length; longer
 * titles clip instead of pushing content below them. */
.product-card .wp-block-post-title {
	margin: 0 0 0.375rem;
	line-height: 1.4;
	/*
	 * -webkit-line-clamp is unreliable when the title is itself a flex
	 * item (as it is here, inside the flex-column card) — its computed
	 * height doesn't reliably shrink to the clamped visual size across
	 * browsers. A plain max-height + overflow:hidden clips to exactly
	 * two lines regardless of layout context, which is what actually
	 * keeps price/button position consistent across cards.
	 */
	max-height: calc(1.4em * 2);
	overflow: hidden;
}

.product-card .wp-block-post-title a {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.product-card .wc-block-components-product-price {
	color: var(--wp--preset--color--primary-dark);
	font-weight: 600;
}

.product-card .wc-block-components-product-price del {
	color: var(--wp--preset--color--muted);
	opacity: 1;
	font-weight: 400;
}

.product-card .wc-block-components-product-price ins {
	color: var(--wp--preset--color--accent-dark);
	text-decoration: none;
}

/* Sale badge (Task 015): WooCommerce's own on-sale flag, restyled from
 * its default pink pill into a small, tasteful terracotta tag matching
 * the Kunfah palette — sale-badge-percent.js swaps its generic "Sale"
 * text for an accurate "N% OFF" computed from the real price shown. */
.wc-block-components-product-sale-badge {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	z-index: 1;
	padding: 0.3rem 0.65rem;
	background: var(--wp--preset--color--accent);
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(28, 28, 26, 0.18);
}

.wc-block-components-product-sale-badge__text {
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.product-card .wc-block-components-product-image {
	position: relative;
}

/* The single-product gallery's classic (non-block) "Sale!" ribbon —
 * restyled to match the brand's pill badge instead of WooCommerce's
 * default olive circle, and pulled inside the image instead of
 * bleeding off its edge. The price panel itself carries the accurate
 * "N% OFF" figure (see .kunfah-price-savings); this stays a small,
 * secondary on-image indicator. */
body.woocommerce .wp-block-woocommerce-product-image-gallery span.onsale,
body.woocommerce .woocommerce-product-gallery span.onsale {
	top: 0.6rem;
	left: 0.6rem;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	padding: 0.3rem 0.65rem;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 1;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(28, 28, 26, 0.18);
}

/* Push the button to the bottom of the card regardless of how much
 * space the title/price above it took up, so buttons stay aligned
 * horizontally across a row of cards with uneven content. */
.product-card .wp-block-woocommerce-product-button {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--20);
}

.product-card .wp-block-woocommerce-product-button .wp-block-button__link {
	width: 100%;
	text-align: center;
	box-sizing: border-box;
	background: transparent;
	color: var(--wp--preset--color--primary-dark);
	border: 1.5px solid var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--tiny);
}

.product-card .wp-block-woocommerce-product-button .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

/* -----------------------------------------------------------------------
 * Homepage — brands
 * ---------------------------------------------------------------------*/

.home-brands {
	background: var(--wp--preset--color--surface);
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.home-brands__more {
	margin-top: 0;
}

.home-brands__heading-row {
	align-items: flex-end !important;
	margin-bottom: var(--wp--preset--spacing--40);
}

/* -----------------------------------------------------------------------
 * Brand slider (homepage curated selection)
 * ---------------------------------------------------------------------*/

.brand-slider {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
}

.brand-slider__track {
	display: flex;
	gap: 0.75rem;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	margin: 0;
	padding: 0.25rem 0.25rem 0.75rem;
	list-style: none;
	/* Thin, unobtrusive scrollbar where supported; touch swipe works
	 * regardless via native overflow-x scrolling. */
	scrollbar-width: thin;
}

.brand-slider__item {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: 9.5rem;
}

.brand-slider__item .brand-card {
	height: 100%;
}

.brand-slider__nav {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary-dark);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.brand-slider__nav:hover:not(:disabled),
.brand-slider__nav:focus-visible {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--surface);
}

.brand-slider__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

@media (max-width: 47.99rem) {
	.brand-slider__nav {
		display: none;
	}
}

/*
 * .brand-grid / .brand-card — shared between the homepage "Brands We
 * Carry" teaser and the full /brands/ directory page, so the same
 * typographic brand treatment appears everywhere brands are shown (no
 * logo image asset with confirmed usage rights exists yet — see
 * docs/POLICY_REVIEW.md — so brand identity is expressed through
 * typography, a bordered card, and a restrained accent-line hover
 * rather than an invented or scraped logo).
 */
.brand-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--30);
}

@media (min-width: 40rem) {
	.brand-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 62rem) {
	.brand-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.brand-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--10);
	min-height: 8rem;
	padding: var(--wp--preset--spacing--30);
	box-sizing: border-box;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.5rem;
	text-decoration: none;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.brand-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}

.brand-card:hover,
.brand-card:focus-visible {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 10px 24px rgba(28, 28, 26, 0.08);
	text-decoration: none;
}

.brand-card:hover::before,
.brand-card:focus-visible::before {
	transform: scaleX(1);
}

.brand-card__name {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	color: var(--wp--preset--color--ink);
	text-align: center;
}

.brand-card__cta {
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--muted);
}

.brand-card:hover .brand-card__cta,
.brand-card:focus-visible .brand-card__cta {
	color: var(--wp--preset--color--primary-dark);
}

.brand-card__count {
	font-size: var(--wp--preset--font-size--tiny);
	color: var(--wp--preset--color--muted);
}

/* -----------------------------------------------------------------------
 * Brands directory page (/brands/)
 * ---------------------------------------------------------------------*/

.brands-index {
	padding-top: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--60);
}

.brands-index__jump {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.brands-index__jump a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--primary-dark);
	text-decoration: none;
	background: var(--wp--preset--color--surface);
}

.brands-index__jump a:hover,
.brands-index__jump a:focus-visible {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.brands-index__group {
	margin-bottom: var(--wp--preset--spacing--50);
	scroll-margin-top: 6rem;
}

.brands-index__letter {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	color: var(--wp--preset--color--accent);
	margin: 0 0 var(--wp--preset--spacing--30);
}

/* -----------------------------------------------------------------------
 * Homepage — deals / featured collections
 * ---------------------------------------------------------------------*/

.home-deals {
	background: #fbeee6;
}

.home-deals__inner {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.home-deals__collection .product-card {
	background: var(--wp--preset--color--base);
	border-radius: 0.75rem;
	padding: var(--wp--preset--spacing--30);
	border-top: 3px solid var(--wp--preset--color--accent);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-deals__collection .product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(28, 28, 26, 0.08);
}

/* -----------------------------------------------------------------------
 * Homepage — why shop kunfah
 * ---------------------------------------------------------------------*/

.home-why-shop {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.home-why-shop__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--50);
}

@media (min-width: 48rem) {
	.home-why-shop__grid {
		grid-template-columns: repeat(4, 1fr);
		gap: var(--wp--preset--spacing--40);
	}
}

.home-why-shop__item {
	position: relative;
}

@media (min-width: 48rem) {
	.home-why-shop__item + .home-why-shop__item {
		border-left: 1px solid var(--wp--preset--color--border);
		padding-left: var(--wp--preset--spacing--40);
	}
}

.home-why-shop__number {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
	line-height: 1;
	color: var(--wp--preset--color--border);
	margin: 0 0 var(--wp--preset--spacing--30);
}

.home-why-shop__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--primary);
}

.home-why-shop__icon svg {
	width: 100%;
	height: 100%;
}

.home-why-shop__item h3 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.home-why-shop__item p {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* -----------------------------------------------------------------------
 * Homepage — B2B / trade band
 * ---------------------------------------------------------------------*/

.home-b2b {
	background: var(--wp--preset--color--surface);
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.home-b2b__inner {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

/*
 * Every other homepage section's heading text sits at the page's
 * standard "content" edge (720px column) even though its section
 * background spans the wider 1200px column — .home-section__heading
 * gets this for free by nesting one level inside a single wide-aligned
 * wrapper. .home-b2b__header sits inside an *extra* wide-aligned
 * wrapper (.home-b2b__inner), so WordPress's automatic nested-layout
 * width resolves differently and it was landing flush with the wide
 * 1200px edge instead — visibly further left/out of line with every
 * section above and below it. This computes the exact gap between the
 * two column widths (currently 240px) so the heading text lines up
 * with the rest of the page regardless of viewport width.
 */
.home-b2b__header {
	max-width: 40rem;
	margin-bottom: var(--wp--preset--spacing--50);
	margin-left: 0 !important;
}

/*
 * The wide/content column difference (used to compute the offset
 * below) only exists once the viewport is wide enough to actually
 * render the 1200px wide column — below that, wide and content
 * collapse to the same padded width and flush-left (above) is
 * already correct, matching how every other section behaves at
 * narrow/tablet widths.
 */
@media (min-width: 75rem) {
	.home-b2b__header {
		margin-left: calc((var(--wp--style--global--wide-size, 1200px) - var(--wp--style--global--content-size, 720px)) / 2) !important;
	}
}

.home-b2b__eyebrow {
	margin: 0 0 var(--wp--preset--spacing--10);
	color: var(--wp--preset--color--accent-dark);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.home-b2b__header .wp-block-heading {
	margin: 0 0 var(--wp--preset--spacing--10);
}

.home-b2b__header p {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

.home-b2b__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--40);
}

@media (min-width: 56rem) {
	.home-b2b__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.home-b2b-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.75rem;
	padding: var(--wp--preset--spacing--50);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

/* A restrained, per-card decorative watermark — distinct abstract motif
 * for each card (not imagery of an actual facility, per CLAUDE.md/Task
 * 011's image policy) so "Trade & Wholesale" and "Schools & Businesses"
 * read as visually distinct without adding any real photography. */
.home-b2b-card::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 7rem;
	height: 7rem;
	opacity: 0.07;
	pointer-events: none;
}

.home-b2b-card:nth-child(1)::after {
	background-image: repeating-linear-gradient(135deg, var(--wp--preset--color--primary) 0 2px, transparent 2px 14px);
}

.home-b2b-card:nth-child(2)::after {
	background-image: radial-gradient(var(--wp--preset--color--accent) 1.5px, transparent 1.5px);
	background-size: 16px 16px;
}

.home-b2b-card:hover,
.home-b2b-card:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(28, 28, 26, 0.08);
	border-color: var(--wp--preset--color--primary);
}

.home-b2b-card__icon {
	width: 2.5rem;
	height: 2.5rem;
	margin-bottom: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--accent);
}

.home-b2b-card__icon svg {
	width: 100%;
	height: 100%;
}

.home-b2b-card h3 {
	margin: 0 0 var(--wp--preset--spacing--10);
}

.home-b2b-card p {
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--muted);
	flex-grow: 1;
}

.home-b2b-card .wp-block-buttons {
	margin: 0;
}

/* -----------------------------------------------------------------------
 * Homepage — final CTA
 * ---------------------------------------------------------------------*/

.home-final-cta {
	position: relative;
	overflow: hidden;
	background: radial-gradient(120% 140% at 12% 15%, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--primary-dark) 55%, #10261f 100%);
	text-align: center;
}

.home-final-cta__art {
	position: absolute;
	inset: 0;
	opacity: 0.55;
	pointer-events: none;
}

.home-final-cta__art svg {
	width: 100%;
	height: 100%;
}

.home-final-cta > .wp-block-group {
	position: relative;
	z-index: 1;
	max-width: 38rem;
	margin-left: auto;
	margin-right: auto;
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.home-final-cta__eyebrow {
	margin: 0 0 var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--on-dark-muted);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.home-final-cta__title {
	color: var(--wp--preset--color--base);
	margin: 0 0 var(--wp--preset--spacing--20);
}

.home-final-cta__subtitle {
	color: var(--wp--preset--color--on-dark-muted);
	margin: 0 auto var(--wp--preset--spacing--40);
	max-width: 30rem;
}

.home-final-cta .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary-dark);
}

.home-final-cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--surface);
}

.home-final-cta .is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--base);
	border-color: rgba(255, 255, 255, 0.55);
}

.home-final-cta .is-style-outline .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--base);
	background: transparent;
	box-shadow: none;
}

/* -----------------------------------------------------------------------
 * Shop & category archive — header area
 * ---------------------------------------------------------------------*/

.shop-header {
	padding-top: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--30);
}

.shop-header .wp-block-woocommerce-breadcrumbs {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: var(--wp--preset--spacing--20);
}

.shop-header .wp-block-woocommerce-breadcrumbs a {
	color: var(--wp--preset--color--muted);
}

.shop-header .wp-block-woocommerce-breadcrumbs a:hover {
	color: var(--wp--preset--color--primary-dark);
}

.shop-header .wp-block-query-title {
	margin: 0 0 var(--wp--preset--spacing--20);
}

/* margin-left override: see .policy-intro for why this is necessary. */
.shop-header__lede {
	color: var(--wp--preset--color--muted);
	max-width: 42rem;
	margin-left: 0 !important;
}

.shop-header--category {
	padding-top: var(--wp--preset--spacing--40);
}

/* -----------------------------------------------------------------------
 * Category hero banner — Task 015: original wide artwork
 * (inc/category-artwork.php), not a cropped product photo. Name +
 * description overlaid directly on the artwork with a legibility scrim.
 * ---------------------------------------------------------------------*/

.category-banner {
	margin: 0 auto;
	max-width: var(--wp--style--global--wide-size, 1200px);
	padding: 0 var(--wp--style--root--padding-right, 1.5rem) 0 var(--wp--style--root--padding-left, 1.5rem);
	box-sizing: border-box;
}

.category-banner {
	position: relative;
	height: 14rem;
	border-radius: 1rem;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

@media (min-width: 48rem) {
	.category-banner {
		height: 17rem;
	}
}

.category-banner .category-art {
	position: absolute;
	inset: 0;
}

/* Legibility scrim for the title/description overlaid on the artwork —
 * a real gradient over real (if abstract) artwork, not text floating
 * over nothing. */
.category-banner__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(20, 20, 18, 0.68) 0%, rgba(20, 20, 18, 0.28) 45%, transparent 75%);
	pointer-events: none;
}

.category-banner__content {
	position: relative;
	z-index: 1;
	padding: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--base);
	max-width: 42rem;
}

.category-banner__title {
	margin: 0 0 0.35rem;
	color: inherit;
	font-size: var(--wp--preset--font-size--xx-large);
}

.category-banner__description {
	margin: 0;
	color: inherit;
	opacity: 0.92;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.category-banner__description p {
	margin: 0;
}

/* -----------------------------------------------------------------------
 * Subcategories
 * ---------------------------------------------------------------------*/

.subcategories {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 0 auto;
	padding: var(--wp--preset--spacing--40) var(--wp--style--root--padding-right, 1.5rem) var(--wp--preset--spacing--20) var(--wp--style--root--padding-left, 1.5rem);
	box-sizing: border-box;
}

.subcategories__heading {
	font-size: var(--wp--preset--font-size--large);
	margin: 0 0 var(--wp--preset--spacing--30);
}

/* -----------------------------------------------------------------------
 * Shop layout — filters sidebar + product grid
 * ---------------------------------------------------------------------*/

.shop-layout {
	align-items: flex-start;
	gap: var(--wp--preset--spacing--50);
	padding-top: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--70);
	flex-direction: column;
}

@media (min-width: 64rem) {
	.shop-layout {
		flex-direction: row;
	}
}

.shop-layout__sidebar {
	flex: 0 0 auto;
	width: 100%;
}

@media (min-width: 64rem) {
	.shop-layout__sidebar {
		width: 16rem;
		position: sticky;
		top: calc(4.5rem + var(--wp--preset--spacing--30));
	}
}

.shop-layout__main {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}

.shop-filter-group {
	padding-bottom: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.shop-filter-group h4 {
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--ink);
	margin: 0 0 var(--wp--preset--spacing--20);
}

/* Product Filters' own interactive controls (checkboxes, price slider,
 * clear button) inherit the design system's accent/primary colors rather
 * than WooCommerce's default blue, without touching their markup. */
.shop-layout__sidebar input[type="checkbox"] {
	accent-color: var(--wp--preset--color--primary);
}

.shop-layout__sidebar .wc-block-components-filter-submit-button,
.shop-layout__sidebar .wc-block-product-filter-clear-button__button {
	color: var(--wp--preset--color--primary-dark);
}

/*
 * Price filter: WooCommerce lays out the slider + the two "$min"/"$max"
 * number fields in a 3-column CSS grid ("auto 1fr auto"). The "auto"
 * columns size themselves from the number inputs' unconstrained native
 * width (~170px each, from the browser's default input `size`), which
 * overflows a 256px sidebar before the slider track even gets a share of
 * the space — the underlying cause of the slider handle/track running
 * outside the sidebar. Giving the inputs a real width lets the grid's
 * "auto" columns size correctly and the slider gets what's left via 1fr.
 */
.shop-layout__sidebar .wc-block-product-filter-price-slider__left input,
.shop-layout__sidebar .wc-block-product-filter-price-slider__right input {
	width: 4.5rem;
	max-width: 100%;
	box-sizing: border-box;
	font-size: var(--wp--preset--font-size--small);
}

.shop-layout__sidebar .wp-block-woocommerce-product-filter-price-slider {
	color: var(--wp--preset--color--primary);
}

.shop-toolbar {
	padding-bottom: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* -----------------------------------------------------------------------
 * Pagination
 * ---------------------------------------------------------------------*/

.shop-pagination {
	margin-top: var(--wp--preset--spacing--50);
	justify-content: center;
	gap: var(--wp--preset--spacing--20);
}

.shop-pagination a,
.shop-pagination span {
	color: var(--wp--preset--color--ink);
}

.shop-pagination .current {
	color: var(--wp--preset--color--primary-dark);
	font-weight: 700;
}

/* -----------------------------------------------------------------------
 * Checkout — distraction-free header (native WooCommerce pattern: no
 * full site nav during checkout, deliberately kept minimal). See
 * parts/checkout-header.html and templates/page-checkout.html.
 * ---------------------------------------------------------------------*/

.checkout-header {
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-top: var(--wp--preset--spacing--30);
	padding-bottom: var(--wp--preset--spacing--30);
}

.checkout-header__brand .wp-block-site-title,
.checkout-header__brand .wp-block-site-title a {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.checkout-header__trust {
	align-items: center;
	column-gap: var(--wp--preset--spacing--30);
}

.checkout-header__secure {
	margin: 0;
	color: var(--wp--preset--color--muted);
	white-space: nowrap;
}

.checkout-header__trust .wc-block-mini-cart__button,
.checkout-header__trust a {
	color: var(--wp--preset--color--ink);
}

/* Cart & Checkout — the WooCommerce blocks already handle layout,
 * responsiveness and most styling natively; these rules only bring
 * focus states and the "placeholder" shipping/tax notices in line
 * with the rest of the site's accessibility/brand conventions. */
.wp-block-woocommerce-cart a:focus-visible,
.wp-block-woocommerce-cart button:focus-visible,
.wp-block-woocommerce-cart input:focus-visible,
.wp-block-woocommerce-checkout a:focus-visible,
.wp-block-woocommerce-checkout button:focus-visible,
.wp-block-woocommerce-checkout input:focus-visible,
.wp-block-woocommerce-checkout select:focus-visible,
.checkout-header a:focus-visible,
.checkout-header button:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* -----------------------------------------------------------------------
 * Single product page
 * ---------------------------------------------------------------------*/

.product-main {
	margin-bottom: var(--wp--preset--spacing--60);
}

.product-main__gallery img {
	border-radius: 0.75rem;
}

/*
 * Main gallery stage (Task 022). Every slide is the same square stage with
 * the WHOLE photo shown inside it (object-fit: contain) on the neutral
 * surface — the same treatment as the product cards. Before, each image
 * simply took the column's full width at its own aspect ratio, so very tall
 * packaging (brushes: 512×1747px) ran two screens long and wide sets
 * (Crayola 10-pack: 512×207px) shrank to a strip. Square stages also keep
 * flexslider's height constant between slides. The stage is capped at
 * 35rem so a stacked (tablet) layout doesn't produce a near-full-screen
 * image; on desktop the column is narrower than the cap anyway.
 */
.product-main__gallery .woocommerce-product-gallery {
	max-width: 35rem;
	margin-inline: auto;
}

.product-main__gallery .woocommerce-product-gallery__image {
	background: var(--wp--preset--color--surface);
	border-radius: 0.75rem;
	overflow: hidden;
}

.product-main__gallery .woocommerce-product-gallery__image > a > img,
.product-main__gallery .woocommerce-product-gallery__image > img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: clamp(0.75rem, 4%, 1.5rem);
	box-sizing: border-box;
	mix-blend-mode: multiply;
	border-radius: 0;
}

/* Thumbnails: same square frame, whole image (inc/woocommerce.php serves
 * the uncropped "medium" size for them). */
.product-main__gallery .flex-control-thumbs li img {
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: contain;
	padding: 0.25rem;
	box-sizing: border-box;
	background: var(--wp--preset--color--surface);
	border-radius: 0.5rem;
}

.product-main__brand {
	display: block;
	margin-bottom: 0.35rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--accent-dark);
}

.product-main__brand a {
	color: inherit;
}

.product-main__title {
	margin-bottom: var(--wp--preset--spacing--10);
}

/* Product-page price — deliberately the single strongest element in the
 * purchase panel (Task 015 §10): large, bold, unmistakably CAD, with a
 * clear Was/Now/Savings hierarchy when (and only when) a real sale price
 * is set. The "CAD" suffix is a static label (Kunfah sells in CAD only,
 * no locale switching), appended via ::after so it can never drift out
 * of sync with the number it labels. */
.product-main__summary .wp-block-woocommerce-product-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.6rem;
	row-gap: 0.25rem;
	color: var(--wp--preset--color--primary-dark);
	margin: 0 0 var(--wp--preset--spacing--20);
}

.product-main__summary .wc-block-components-product-price,
.product-main__summary .wc-block-components-product-price ins {
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.product-main__summary .wc-block-components-product-price > .amount::after,
.product-main__summary .wc-block-components-product-price ins .amount::after {
	content: " CAD";
	font-size: 1rem;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
	letter-spacing: 0;
}

.product-main__summary .wc-block-components-product-price del {
	order: -1;
	flex-basis: 100%;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	color: var(--wp--preset--color--muted);
	opacity: 1;
}

.product-main__summary .wc-block-components-product-price del .amount::after {
	content: "";
}

.product-main__summary .wc-block-components-product-price del::before {
	content: "Was ";
	font-weight: 400;
}

.product-main__summary .kunfah-price-savings {
	order: 2;
	align-self: center;
	padding: 0.3rem 0.7rem;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--tiny);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 999px;
	white-space: nowrap;
}

.product-main__summary .wc-block-components-product-stock-indicator {
	display: inline-block;
	margin-bottom: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.product-main__summary .wc-block-components-product-stock-indicator--out-of-stock {
	color: var(--wp--preset--color--accent-dark);
}

.product-main__summary .wp-block-woocommerce-product-summary {
	color: var(--wp--preset--color--muted);
	margin-bottom: var(--wp--preset--spacing--30);
}

.product-main__summary .wp-block-woocommerce-add-to-cart-with-options {
	margin-bottom: var(--wp--preset--spacing--30);
}

/* -----------------------------------------------------------------------
 * Variable product colour selector (native WooCommerce
 * "Add to Cart with Options" block, "chips" display style — not a
 * <select> dropdown). No hex colour values exist in the source product
 * data, so swatches are deliberately hidden rather than showing an
 * invented colour; the chip's text label is the only identifier, kept
 * legible and with an unmistakable selected state.
 * ---------------------------------------------------------------------*/

.wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute-name {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.wc-block-product-filter-chips__fieldset {
	border: none;
	margin: 0;
	padding: 0;
}

.wc-block-product-filter-chips__items {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--10);
	list-style: none;
	margin: 0;
	padding: 0;
}

.wc-block-product-filter-chips__swatch {
	display: none;
}

.wc-block-product-filter-chips__item {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 2.5rem;
	padding: 0.5rem var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--base);
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.wc-block-product-filter-chips__item:hover {
	border-color: var(--wp--preset--color--primary);
}

.wc-block-product-filter-chips__item[aria-checked="true"] {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.wc-block-product-filter-chips__item:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.wc-block-product-filter-chips__count {
	display: none;
}

.wc-block-product-filter-chips__show-more {
	margin-top: var(--wp--preset--spacing--10);
	color: var(--wp--preset--color--primary-dark);
	font-size: var(--wp--preset--font-size--small);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

.wp-block-woocommerce-add-to-cart-with-options-variation-description {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.product-main__summary .wp-block-woocommerce-product-meta {
	padding-top: var(--wp--preset--spacing--20);
	border-top: 1px solid var(--wp--preset--color--border);
}

.product-main__meta-row {
	gap: var(--wp--preset--spacing--10) var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.product-main__meta-row a {
	color: var(--wp--preset--color--muted);
}

.product-main__meta-row a:hover {
	color: var(--wp--preset--color--primary-dark);
}

.wp-block-woocommerce-product-details {
	margin-bottom: var(--wp--preset--spacing--60);
}

/* Restyle the classic WooCommerce product tabs (Description / Additional
 * Information / Reviews) — rendered by wp:woocommerce/product-details —
 * into a clean underlined tab bar consistent with the rest of the site,
 * rather than WooCommerce's default boxed-tab look. */
.wp-block-woocommerce-product-details .wc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--40);
	margin: 0 0 var(--wp--preset--spacing--40);
	padding: 0 0 var(--wp--preset--spacing--20);
	border-bottom: 1px solid var(--wp--preset--color--border);
	list-style: none;
}

.wp-block-woocommerce-product-details .wc-tabs li {
	margin: 0;
}

.wp-block-woocommerce-product-details .wc-tabs li a {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--muted);
	text-decoration: none;
}

.wp-block-woocommerce-product-details .wc-tabs li.active a {
	color: var(--wp--preset--color--ink);
}

.wp-block-woocommerce-product-details .woocommerce-Tabs-panel {
	max-width: 46rem;
}

.wp-block-woocommerce-product-details .woocommerce-Tabs-panel h2 {
	font-size: var(--wp--preset--font-size--x-large);
}

/* -----------------------------------------------------------------------
 * Product page — purchase panel trust badges
 * ---------------------------------------------------------------------*/

.product-trust-badges {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	margin: 0 0 var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--30);
	list-style: none;
	background: var(--wp--preset--color--surface);
	border-radius: 0.75rem;
}

.product-trust-badges__item {
	display: flex;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--20);
}

.product-trust-badges__icon {
	flex: 0 0 auto;
	display: flex;
	width: 1.5rem;
	height: 1.5rem;
	color: var(--wp--preset--color--primary);
}

.product-trust-badges__icon svg {
	width: 100%;
	height: 100%;
}

.product-trust-badges__title {
	display: block;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
}

.product-trust-badges__text {
	display: block;
	font-size: var(--wp--preset--font-size--tiny);
	color: var(--wp--preset--color--muted);
}

/* -----------------------------------------------------------------------
 * Product page — recommendations ("More from Brand")
 * ---------------------------------------------------------------------*/

.product-recs {
	margin-bottom: var(--wp--preset--spacing--60);
}

.product-recs__heading {
	align-items: baseline !important;
	margin-bottom: var(--wp--preset--spacing--30);
}

.product-recs__heading a {
	white-space: nowrap;
}

/* -----------------------------------------------------------------------
 * Product gallery lightbox
 * ---------------------------------------------------------------------*/

.woocommerce-product-gallery__image,
.woocommerce-product-gallery__wrapper .flex-active-slide {
	cursor: zoom-in;
}

.kunfah-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
}

/* An authored `display` rule always beats the browser's own default
 * `[hidden] { display: none }` (author styles win over user-agent styles
 * regardless of selector specificity) — without this, setting the
 * `hidden` attribute in JS would not actually hide the lightbox. */
.kunfah-lightbox[hidden] {
	display: none;
}

body.kunfah-lightbox-open {
	overflow: hidden;
}

.kunfah-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 18, 0.92);
}

.kunfah-lightbox__stage {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: var(--wp--preset--spacing--30);
	box-sizing: border-box;
}

.kunfah-lightbox__figure {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: min(90vw, 62rem);
	max-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
}

.kunfah-lightbox__image {
	max-width: 100%;
	max-height: 72vh;
	object-fit: contain;
	border-radius: 0.5rem;
	background: var(--wp--preset--color--base);
}

.kunfah-lightbox__counter {
	color: var(--on-dark-muted, #d9ded2);
	font-size: var(--wp--preset--font-size--small);
}

.kunfah-lightbox__close,
.kunfah-lightbox__nav {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.kunfah-lightbox__close:hover,
.kunfah-lightbox__nav:hover,
.kunfah-lightbox__close:focus-visible,
.kunfah-lightbox__nav:focus-visible {
	background: rgba(255, 255, 255, 0.22);
}

.kunfah-lightbox__close {
	top: var(--wp--preset--spacing--30);
	right: var(--wp--preset--spacing--30);
}

.kunfah-lightbox__nav--prev {
	left: var(--wp--preset--spacing--20);
}

.kunfah-lightbox__nav--next {
	right: var(--wp--preset--spacing--20);
}

@media (max-width: 47.99rem) {
	.kunfah-lightbox__nav--prev { left: 0.5rem; }
	.kunfah-lightbox__nav--next { right: 0.5rem; }
	.kunfah-lightbox__close { top: 0.75rem; right: 0.75rem; }
}

.kunfah-lightbox__thumbs {
	flex: 0 0 auto;
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
}

.kunfah-lightbox__thumb {
	flex: 0 0 auto;
	width: 3.5rem;
	height: 3.5rem;
	padding: 0;
	border-radius: 0.375rem;
	overflow: hidden;
	border: 2px solid transparent;
	background: none;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.kunfah-lightbox__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kunfah-lightbox__thumb:hover,
.kunfah-lightbox__thumb:focus-visible {
	opacity: 1;
}

.kunfah-lightbox__thumb[aria-current="true"] {
	opacity: 1;
	border-color: var(--wp--preset--color--base);
}

/* -----------------------------------------------------------------------
 * Accessibility — visible focus states for interactive shop controls
 * ---------------------------------------------------------------------*/

.shop-layout a:focus-visible,
.shop-layout button:focus-visible,
.shop-layout input:focus-visible,
.category-card:focus-visible,
.shop-pagination a:focus-visible,
.product-main a:focus-visible,
.product-main button:focus-visible,
.product-main input:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* -----------------------------------------------------------------------
 * Ordering-disabled notice (Task 021A — inc/ordering.php)
 * ---------------------------------------------------------------------*/

.kunfah-ordering-notice {
	margin: var(--wp--preset--spacing--30) 0;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: 0.5rem;
	color: var(--wp--preset--color--ink);
}

.kunfah-ordering-notice p {
	margin: 0;
}
/* Product-card stock message (Task 024, inc/stock-messages.php). Small,
 * quiet text under the price; the wording itself carries the meaning
 * ("Out of stock — check back soon." / "Only 2 left in stock." /
 * "12 available."), colour is only a secondary cue. */
.product-card .wc-block-components-product-stock-indicator {
	margin: 0.15rem 0 0;
	font-size: var(--wp--preset--font-size--tiny);
	line-height: 1.4;
	color: var(--wp--preset--color--muted);
}

.product-card .wc-block-components-product-stock-indicator--out-of-stock {
	color: var(--wp--preset--color--accent-dark);
	font-weight: 600;
}
/* Same stock message in classic shortcode loops (Deals page [sale_products]). */
ul.products li.product p.stock {
	margin: 0.15rem 0 0.5rem;
	font-size: var(--wp--preset--font-size--tiny);
	color: var(--wp--preset--color--muted);
}

ul.products li.product p.stock.out-of-stock {
	color: var(--wp--preset--color--accent-dark);
	font-weight: 600;
}
