/* =============================================================================
   ZHEVOO — component layer.
   Tokens are NOT defined here: they come from theme.json as
   --wp--preset--color--*, --wp--preset--font-size--*, --wp--preset--spacing--*,
   --wp--preset--shadow--*, --wp--custom--*. A hex value in this file is a bug
   unless it is #fff/#000 inside a color-mix (tests/contract.test.mjs checks).
   Reference: design/reference/assets/styles.css (approved export).
   Sections: 1 colour mode · 2 base · 3 block styles · 4 header · 5 hero ·
             6 value bar · 7 cards · 8 footer · 9 WooCommerce · 10 motion (kept last in the file) ·
             11 stones · 12 gift finder
   ============================================================================= */

/* 1 ── Colour mode ─────────────────────────────────────────────────────────────
   Dark values live in theme.json settings.custom.dark.* (and are overridden by
   every style variation), so a variation brings its own dark palette for free.
   "night" surfaces (hero/footer) are already dark and are not remapped. */
:root[data-theme="dark"] {
	color-scheme: dark;
	--wp--preset--color--base: var(--wp--custom--dark--base);
	--wp--preset--color--base-muted: var(--wp--custom--dark--base-muted);
	--wp--preset--color--base-elevated: var(--wp--custom--dark--base-elevated);
	--wp--preset--color--base-accented: var(--wp--custom--dark--base-accented);
	--wp--preset--color--media: var(--wp--custom--dark--media);
	--wp--preset--color--contrast: var(--wp--custom--dark--contrast);
	--wp--preset--color--text: var(--wp--custom--dark--text);
	--wp--preset--color--text-toned: var(--wp--custom--dark--text-toned);
	--wp--preset--color--text-muted: var(--wp--custom--dark--text-muted);
	--wp--preset--color--text-dimmed: var(--wp--custom--dark--text-dimmed);
	--wp--preset--color--border: var(--wp--custom--dark--border);
	--wp--preset--color--border-accented: var(--wp--custom--dark--border-accented);
	--wp--preset--color--primary: var(--wp--custom--dark--primary);
	--wp--preset--color--primary-link: var(--wp--custom--dark--primary-link);
	--wp--preset--color--primary-deep: var(--wp--custom--dark--primary-deep);
	--wp--preset--color--primary-soft: var(--wp--custom--dark--primary-soft);
	--wp--preset--color--brand: var(--wp--custom--dark--brand);
	--wp--preset--color--on-night: var(--wp--custom--dark--on-night);
	--wp--custom--on-primary: var(--wp--custom--dark--on-primary);
}
:root[data-theme="light"] { color-scheme: light; }

/* 2 ── Base ──────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-wrap: pretty; }
::selection { background: color-mix(in oklab, var(--wp--preset--color--primary) 22%, transparent); }
img { max-width: 100%; height: auto; }
/* Migrated classic posts: [caption] writes an inline width (e.g. 1024px) on the
   figure, and old embeds/tables carry fixed widths — all capped to the column. */
.wp-caption, .wp-block-post-content figure, .wp-block-post-content iframe, .wp-block-post-content video { max-width: 100% !important; }
.wp-caption img { width: 100%; height: auto; }
.wp-caption-text { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--text-muted); text-align: center; margin-block: 0.4rem 0; }
.wp-block-post-content table { display: block; max-width: 100%; overflow-x: auto; }
/* Header, main and footer touch: sections bring their own padding. */
:where(.wp-site-blocks) > * { margin-block-start: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
a, .wp-element-button, .wp-block-button__link {
	transition: color var(--wp--custom--motion--duration) var(--wp--custom--motion--ease),
		background-color var(--wp--custom--motion--duration) var(--wp--custom--motion--ease),
		box-shadow var(--wp--custom--motion--duration) var(--wp--custom--motion--ease);
}
:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid color-mix(in oklab, var(--wp--preset--color--primary) 35%, transparent);
	outline-offset: 2px;
}
/* Persian numerals/prices never reorder inside RTL text. */
.zh-num, .woocommerce-Price-amount, .wc-block-components-product-price { unicode-bidi: isolate; }

/* 3 ── Block styles (inc/block-styles.php) ──────────────────────────────────── */

/* core/button */
.wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--primary-link);
	background: var(--wp--preset--color--base);
	border: 0;
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wp--preset--color--primary) 55%, transparent);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	color: var(--wp--preset--color--primary-deep);
	background: color-mix(in oklab, var(--wp--preset--color--primary) 8%, transparent);
}
.wp-block-button.is-style-soft > .wp-block-button__link {
	color: var(--wp--preset--color--primary-deep);
	background: color-mix(in oklab, var(--wp--preset--color--primary) 10%, transparent);
}
.wp-block-button.is-style-soft > .wp-block-button__link:hover {
	background: color-mix(in oklab, var(--wp--preset--color--primary) 16%, transparent);
}
.wp-block-button.is-style-ghost > .wp-block-button__link {
	color: var(--wp--preset--color--primary-link);
	background: transparent;
}
.wp-block-button.is-style-ghost > .wp-block-button__link:hover {
	color: var(--wp--preset--color--primary-deep);
	background: var(--wp--preset--color--base-elevated);
}
.wp-block-button.is-style-inverse > .wp-block-button__link {
	color: var(--wp--preset--color--night-2);
	background: #fff;
}
.wp-block-button.is-style-inverse > .wp-block-button__link:hover {
	background: color-mix(in oklab, #fff 84%, transparent);
}
.wp-block-button.is-style-ghost-night > .wp-block-button__link {
	color: var(--wp--preset--color--on-night);
	background: transparent;
}
.wp-block-button.is-style-ghost-night > .wp-block-button__link:hover {
	color: #fff;
	background: color-mix(in oklab, #fff 14%, transparent);
}

/* core/group */
.wp-block-group.is-style-card {
	background: var(--wp--preset--color--base);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
	padding: var(--wp--preset--spacing--40);
}
.wp-block-group.is-style-card-soft {
	background: color-mix(in oklab, var(--wp--preset--color--primary) 6%, var(--wp--preset--color--base));
	border-radius: var(--wp--custom--radius--card);
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wp--preset--color--primary) 18%, transparent);
	padding: var(--wp--preset--spacing--40);
}
.wp-block-group.is-style-pill {
	display: inline-flex;
	width: max-content;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
	color: var(--wp--preset--color--primary-deep);
	background: color-mix(in oklab, var(--wp--preset--color--primary) 10%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wp--preset--color--primary) 25%, transparent);
}

.wp-block-group.is-style-informer {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	column-gap: 0.9rem;
	padding: 1rem 1.1rem;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--base-muted);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.9;
	color: var(--wp--preset--color--text-muted);
}
.wp-block-group.is-style-informer::before {
	content: "";
	grid-column: 1;
	grid-row: 1 / span 9;
	width: 20px;
	height: 20px;
	margin-top: 0.2rem;
	background: var(--wp--preset--color--primary-link);
	-webkit-mask: var(--zh-ico, none) center / contain no-repeat;
	mask: var(--zh-ico, none) center / contain no-repeat;
}
.wp-block-group.is-style-informer > * { grid-column: 2; margin: 0 !important; }
.wp-block-group.is-style-informer strong { color: var(--wp--preset--color--contrast); font-weight: 600; }

/* core/paragraph */
p.is-style-kicker {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--primary-link);
	line-height: 1.6;
}
p.is-style-eyebrow {
	display: inline-flex;
	width: max-content;
	max-width: 100%;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--primary-accent);
	background: color-mix(in oklab, #fff 7%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in oklab, #fff 16%, transparent);
	line-height: 1.5;
}
p.is-style-lead {
	font-size: var(--wp--preset--font-size--lg);
	line-height: 2;
	max-width: 46ch;
}
p.is-style-note {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--text-muted);
	line-height: 1.8;
	padding: 0.75rem 1rem;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--base-muted);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
}

/* core/heading */
/* Doubled class: WooCommerce styles `.wp-block-woocommerce-product-collection h2.wp-block-heading` (0,2,1). */
.wp-block-heading.wp-block-heading.is-style-section-title {
	font-size: var(--wp--preset--font-size--3-xl);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.2;
	max-width: 24ch;
}

/* core/list */
ul.is-style-checks { list-style: none; padding-inline-start: 0; display: grid; gap: 0.5rem; }
ul.is-style-checks > li { position: relative; padding-inline-start: 1.6rem; }
ul.is-style-checks > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.35em;
	width: 1rem;
	height: 1rem;
	background: currentColor;
	color: var(--wp--preset--color--primary);
	-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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
ul.is-style-inline { list-style: none; padding-inline-start: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

ol.is-style-steps { list-style: none; padding-inline-start: 0; display: grid; gap: 0.6rem; counter-reset: zh-step; }
ol.is-style-steps > li { position: relative; padding-inline-start: 2.25rem; min-height: 1.5rem; counter-increment: zh-step; font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--text-toned); line-height: 1.7; }
ol.is-style-steps > li::before {
	content: counter(zh-step, persian);
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	color: var(--wp--preset--color--primary-deep);
	background: color-mix(in oklab, var(--wp--preset--color--primary) 10%, transparent);
}

/* core/image */
.wp-block-image.is-style-stage {
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--media);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
	overflow: hidden;
}
.wp-block-image.is-style-stage img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 14px; }

/* 4 ── Header (parts/header.html) ───────────────────────────────────────────── */
/* Sticky on the template-part wrapper: a sticky child of the wrapper could only
   stick within the wrapper's own height, i.e. not at all. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 90;
}
/* The glass effect lives on ::before: backdrop-filter on .zh-header itself would
   make it the containing block of the navigation's position:fixed mobile
   overlay and clip the menu to the header's height. */
.zh-header { position: relative; isolation: isolate; box-shadow: 0 1px 0 var(--wp--preset--color--border); }
.zh-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in oklab, var(--wp--preset--color--base) 82%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
/* Core's own overlay rule is `.wp-block-navigation:not(.has-background)
   .wp-block-navigation__responsive-container.is-menu-open { background:#fff;
   color:#000 }` — stronger than a plain .zh-header selector, so the open menu
   stayed white in dark mode. Same shape + .zh-header wins. */
.zh-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open,
.zh-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	padding: var(--wp--preset--spacing--40) var(--wp--custom--gutter);
}
.zh-header .wp-block-navigation__responsive-container-close,
.zh-header .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--contrast); }
.zh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 0.25rem; }
.zh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.zh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch; width: 100%; }
.zh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: var(--wp--preset--font-size--base); width: 100%; }
.zh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: 0.8rem 1rem; }
.zh-header__inner { min-height: var(--wp--custom--header-height); }
/* Logo only (the brand mark is dark wine): in dark mode it is drawn in the
   palette's light text colour instead, so it never disappears. */
.zh-header .zh-logo { flex: none; line-height: 0; }
.zh-header .zh-logo img { height: auto; }
:root[data-theme="dark"] .zh-header .zh-logo img { filter: brightness(0) invert(0.93); }
.zh-header .wp-block-navigation-item__content {
	padding: 0.5rem 0.75rem;
	border-radius: var(--wp--custom--radius--control);
}
.zh-header .wp-block-navigation-item__content:hover,
.zh-header .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base-elevated);
}
/* The one highlighted nav item (the gift finder): add class "zh-nav-cta" to the
   navigation link in the editor — no custom block needed. */
.zh-header .zh-nav-cta > .wp-block-navigation-item__content,
.zh-header .zh-header-cta .wp-block-button__link {
	color: var(--wp--preset--color--primary-deep);
	background: color-mix(in oklab, var(--wp--preset--color--primary) 9%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wp--preset--color--primary) 26%, transparent);
}
/* On a phone the navigation folds into the menu button, and the gift finder
   with it (owner, 1405/07/25: «هدیه هوشمند در حالت موبایل هم دیده شود»). A
   core/buttons with class "zh-header-cta" (button: zh-ico-gift) stands in the
   header row; from 600px the navigation shows its own CTA and this one hides.
   Under 390px the row has no room for the word (measured on zhevoo.ir: the
   logo was squeezed at 360px): only the icon, the text stays the link's name.
   Under 340px not even that fits; the menu keeps the gift finder's own item. */
.zh-header .zh-header-cta { flex: none; margin-inline-end: 0.25rem; }
.zh-header .zh-header-cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 36px;
	padding: 0.4rem 0.7rem;
	border-radius: var(--wp--custom--radius--control);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}
.zh-header .zh-header-cta .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: var(--zh-ico, none) center / contain no-repeat;
	mask: var(--zh-ico, none) center / contain no-repeat;
}
@media (max-width: 389px) {
	.zh-header .zh-header-cta .wp-block-button__link { gap: 0; padding: 0.5rem; font-size: 0; }
	.zh-header .zh-header-cta .wp-block-button__link::before { width: 18px; height: 18px; }
}
@media (max-width: 339px), (min-width: 600px) {
	.zh-header .zh-header-cta { display: none; }
}
.zh-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	padding: 0;
	border-radius: var(--wp--custom--radius--control);
	background: transparent;
	color: var(--wp--preset--color--text-toned);
	cursor: pointer;
}
.zh-icon-btn:hover { background: var(--wp--preset--color--base-elevated); color: var(--wp--preset--color--contrast); }
.zh-theme-toggle__sun { display: none; }
:root[data-theme="dark"] .zh-theme-toggle__sun { display: block; }
:root[data-theme="dark"] .zh-theme-toggle__moon { display: none; }

/* 5 ── Hero (patterns/hero-home.php) ─────────────────────────────────────────── */
.zh-hero { position: relative; isolation: isolate; overflow: hidden; }
.zh-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(700px 460px at 92% 108%, color-mix(in oklab, var(--wp--preset--color--primary-accent) 20%, transparent), transparent 58%);
}
.zh-hero h1 mark { background: none; color: var(--wp--preset--color--primary-accent); }
.zh-hero .is-style-lead { color: color-mix(in oklab, #fff 74%, transparent); }
.zh-hero .zh-hero__note { color: color-mix(in oklab, #fff 66%, transparent); }
.zh-hero__trust {
	padding-top: var(--wp--preset--spacing--30);
	box-shadow: 0 -1px 0 color-mix(in oklab, #fff 14%, transparent);
	font-size: var(--wp--preset--font-size--xs);
	color: color-mix(in oklab, #fff 62%, transparent);
}
.zh-hero__trust li::before { color: var(--wp--preset--color--primary-accent); }
.zh-hero__stage {
	position: relative;
	max-width: 520px;
	margin-inline-start: auto;
	border-radius: 1.5rem;
	overflow: hidden;
	background: var(--wp--preset--color--night-2);
	box-shadow: inset 0 0 0 1px color-mix(in oklab, #fff 14%, transparent), var(--wp--preset--shadow--xl);
}
.zh-hero__stage img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.zh-hero__stage figcaption {
	position: absolute;
	inset-inline: 18px;
	bottom: 18px;
	margin: 0;
	padding: 12px 16px;
	border-radius: var(--wp--custom--radius--card);
	background: color-mix(in oklab, var(--wp--preset--color--base) 90%, transparent);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: var(--wp--preset--shadow--sm);
	color: var(--wp--preset--color--text-toned);
	font-size: var(--wp--preset--font-size--xs);
	text-align: start;
}
.zh-hero__stage figcaption strong { display: block; color: var(--wp--preset--color--contrast); font-size: var(--wp--preset--font-size--sm); }
@media (max-width: 781px) {
	.zh-hero__stage { margin-inline: auto; }
}

/* 6 ── Icon set + value bar ──────────────────────────────────────────────────
   Icons are chosen by a class on a standard block (no raw SVG in content, no
   custom block): zh-ico-<name>. Lucide paths, stroke = currentColor via mask.
   Available: leaf, gem, shield, award, gift, heart, sparkles, package, refresh, truck, book, users,
   send, message, zap, pulse, pin, scale. Add one = add a line below + list it
   in docs/BLOCKS-CONTRACT-fa.md. */
.zh-ico-leaf { --zh-ico: 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%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12'/%3E%3C/svg%3E"); }
.zh-ico-gem { --zh-ico: 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%3Cpath d='M6 3h12l4 6-10 13L2 9Z'/%3E%3Cpath d='M11 3 8 9l4 13 4-13-3-6'/%3E%3Cpath d='M2 9h20'/%3E%3C/svg%3E"); }
.zh-ico-shield { --zh-ico: 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%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.zh-ico-award { --zh-ico: 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='12' cy='8' r='6'/%3E%3Cpath d='M15.477 12.89 17 22l-5-3-5 3 1.523-9.11'/%3E%3C/svg%3E"); }
.zh-ico-gift { --zh-ico: 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%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13'/%3E%3Cpath d='M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7'/%3E%3Cpath d='M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E"); }
.zh-ico-heart { --zh-ico: 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%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E"); }
.zh-ico-sparkles { --zh-ico: 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%3Cpath d='m12 3-1.9 5.8a2 2 0 0 1-1.3 1.3L3 12l5.8 1.9a2 2 0 0 1 1.3 1.3L12 21l1.9-5.8a2 2 0 0 1 1.3-1.3L21 12l-5.8-1.9a2 2 0 0 1-1.3-1.3Z'/%3E%3C/svg%3E"); }
.zh-ico-package { --zh-ico: 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%3Cpath d='m7.5 4.27 9 5.15'/%3E%3Cpath d='M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E"); }
.zh-ico-refresh { --zh-ico: 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%3Cpath d='M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16'/%3E%3Cpath d='M16 16h5v5'/%3E%3C/svg%3E"); }
.zh-ico-truck { --zh-ico: 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%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E"); }
.zh-ico-book { --zh-ico: 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%3Cpath d='M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20'/%3E%3C/svg%3E"); }
.zh-ico-users { --zh-ico: 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%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.zh-ico-send { --zh-ico: 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%3Cpath d='M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z'/%3E%3Cpath d='m21.854 2.147-10.94 10.939'/%3E%3C/svg%3E"); }
.zh-ico-message { --zh-ico: 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%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3Cpath d='m10 11-2 3'/%3E%3Cpath d='m16 11-2 3'/%3E%3Cpath d='M14 8v3'/%3E%3Cpath d='M10 8v3'/%3E%3C/svg%3E"); }
.zh-ico-zap { --zh-ico: 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%3Cpath d='M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z'/%3E%3C/svg%3E"); }
.zh-ico-pulse { --zh-ico: 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%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3Cpath d='M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27'/%3E%3C/svg%3E"); }
.zh-ico-pin { --zh-ico: 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%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.zh-ico-scale { --zh-ico: 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%3Cpath d='m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z'/%3E%3Cpath d='m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z'/%3E%3Cpath d='M7 21h10'/%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2'/%3E%3C/svg%3E"); }

/* Value item: group.zh-value-item.zh-ico-* > p (title) + p (detail).
   ::before = tinted tile, ::after = glyph, both in the first grid column. */
.zh-value-item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: 0.75rem;
	align-items: center;
	align-content: center;
}
.zh-value-item > * { grid-column: 2; margin: 0 !important; }
.zh-value-item::before,
.zh-value-item::after {
	content: "";
	grid-column: 1;
	grid-row: 1 / span 2;
	justify-self: center;
	align-self: center;
}
.zh-value-item::before {
	width: 44px;
	height: 44px;
	border-radius: var(--wp--custom--radius--card);
	background: color-mix(in oklab, var(--wp--preset--color--primary) 10%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wp--preset--color--primary) 22%, transparent);
}
.zh-value-item::after {
	width: 22px;
	height: 22px;
	background: var(--wp--preset--color--primary-link);
	-webkit-mask: var(--zh-ico) center / contain no-repeat;
	mask: var(--zh-ico) center / contain no-repeat;
}
.zh-value-item > p:first-child { font-weight: 600; font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--contrast); line-height: 1.5; }
.zh-value-item > p + p { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--text-muted); line-height: 1.6; }

/* Inline list (hero trust row etc.): add class "zh-inline" to a core/list. */
ul.zh-inline { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* 7 ── Cards ─────────────────────────────────────────────────────────────────── */
/* Blog/post cards inside core/query: add class "zh-post-card" to the post-template's
   inner group. Product cards: section 9. */
.zh-post-card {
	height: 100%;
	border-radius: var(--wp--custom--radius--card);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
	overflow: hidden;
	background: var(--wp--preset--color--base);
}
.zh-post-card:hover { box-shadow: inset 0 0 0 1px var(--wp--preset--color--border-accented), var(--wp--preset--shadow--md); }

/* Scenario card: group.is-style-card.zh-scenario-card.zh-ico-* — icon tile via ::before. */
.zh-scenario-card { display: grid; align-content: start; transition: box-shadow var(--wp--custom--motion--duration) var(--wp--custom--motion--ease); }
.zh-scenario-card:hover { box-shadow: inset 0 0 0 1px var(--wp--preset--color--border-accented); }
.zh-scenario-card::before {
	content: "";
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: color-mix(in oklab, var(--wp--preset--color--primary) 9%, transparent);
}
.zh-scenario-card::after {
	content: "";
	position: absolute;
	top: calc(var(--wp--preset--spacing--40) + 11px);
	inset-inline-start: calc(var(--wp--preset--spacing--40) + 11px);
	width: 22px;
	height: 22px;
	background: var(--wp--preset--color--primary-link);
	-webkit-mask: var(--zh-ico) center / contain no-repeat;
	mask: var(--zh-ico) center / contain no-repeat;
	pointer-events: none;
}
.zh-scenario-card > * { margin: 0 !important; }
.zh-card-link a { font-weight: 500; }
.zh-card-link a::after { content: " ←"; }
/* Whole card is clickable through its one link (keyboard focus stays on the link). */
.zh-scenario-card { position: relative; }
.zh-scenario-card .zh-card-link a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Gift teaser (patterns/gift-teaser.php): columns inside a framed card. */
.zh-teaser {
	border-radius: calc(var(--wp--custom--radius--base) * 3);
	background: var(--wp--preset--color--base);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
	overflow: hidden;
}
.zh-teaser__media .wp-block-cover { height: 100%; border-radius: 0; }
.zh-teaser ol.is-style-steps { margin-block: 0.25rem; }
.zh-floating-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	width: max-content;
	max-width: 100%;
	margin: 0;
	padding: 0.5rem 0.8rem;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	color: var(--wp--preset--color--primary-deep);
	background: color-mix(in oklab, var(--wp--preset--color--base) 88%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: var(--wp--preset--shadow--sm);
}
.zh-floating-tag::before {
	content: "";
	width: 14px;
	height: 14px;
	background: var(--wp--preset--color--primary);
	-webkit-mask: var(--zh-ico) center / contain no-repeat;
	mask: var(--zh-ico) center / contain no-repeat;
}

/* Single post (templates/single.html). */
.zh-post-meta { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--text-muted); }
.zh-post-meta .wp-block-post-date { color: inherit; }
.zh-post-cats, .zh-post-tags { font-size: var(--wp--preset--font-size--xs); font-weight: 500; }
.zh-post-nav { box-shadow: 0 -1px 0 var(--wp--preset--color--border); font-size: var(--wp--preset--font-size--sm); }

/* Page head (patterns/page-head.php, templates). */
.zh-page-head h1 { font-size: var(--wp--preset--font-size--4-xl); letter-spacing: -0.025em; }
.wp-block-breadcrumbs { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--text-muted); }
.wp-block-breadcrumbs a { color: var(--wp--preset--color--text-muted); }
.wp-block-breadcrumbs a:hover { color: var(--wp--preset--color--primary-link); }

/* 8 ── Footer (parts/footer.html) ───────────────────────────────────────────── */
.zh-footer { position: relative; overflow: hidden; isolation: isolate; color: var(--wp--preset--color--on-night); }
.zh-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(1100px 500px at 82% -10%, color-mix(in oklab, var(--wp--preset--color--primary) 34%, transparent), transparent 62%);
}
.zh-footer h2, .zh-footer h3 { color: color-mix(in oklab, #fff 64%, transparent); font-size: var(--wp--preset--font-size--xs); font-weight: 600; letter-spacing: 0.06em; }
.zh-footer p { color: color-mix(in oklab, #fff 74%, transparent); font-size: var(--wp--preset--font-size--sm); line-height: 1.9; }
.zh-footer a:where(:not(.wp-element-button)) { color: color-mix(in oklab, #fff 82%, transparent); }
.zh-footer a:where(:not(.wp-element-button)):hover { color: #fff; }
.zh-footer .wp-block-site-title a { color: #fff; }
.zh-footer .wp-block-navigation { font-size: var(--wp--preset--font-size--sm); }
.zh-footer-links { list-style: none; padding-inline-start: 0; display: grid; gap: 0.35rem; }
.zh-footer-links li { font-size: var(--wp--preset--font-size--sm); line-height: 1.8; }
.zh-footer__bottom {
	box-shadow: 0 -1px 0 color-mix(in oklab, #fff 12%, transparent);
	font-size: var(--wp--preset--font-size--xs);
}
.zh-trust-seal { line-height: 0; }
.zh-trust-seal img { display: block; width: 96px; height: auto; border-radius: var(--wp--custom--radius--control); background: color-mix(in oklab, #fff 100%, transparent); padding: 4px; }
.zh-footer__bottom p { font-size: var(--wp--preset--font-size--xs); color: color-mix(in oklab, #fff 64%, transparent); }

/* 9 ── WooCommerce blocks ───────────────────────────────────────────────────── */
/* Product card = the product-template inner group; give it class "zh-product-card"
   (patterns/product-grid.php does). Image stage uses the media colour. */
.zh-product-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--base);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
	overflow: hidden;
}
.zh-product-card:hover { box-shadow: inset 0 0 0 1px var(--wp--preset--color--border-accented), var(--wp--preset--shadow--md); }
.zh-product-card .wc-block-components-product-image,
.zh-product-card .wp-block-woocommerce-product-image {
	background: var(--wp--preset--color--media);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
	margin: 0;
}
.zh-product-card .wc-block-components-product-image img { object-fit: contain; padding: 14px; aspect-ratio: 1; transition: transform var(--wp--custom--motion--duration-slow) var(--wp--custom--motion--ease); }
.zh-product-card:hover .wc-block-components-product-image img { transform: scale(1.035); }
.zh-product-card .wp-block-post-title a { color: var(--wp--preset--color--contrast); }
.zh-product-card:hover .wp-block-post-title a { color: var(--wp--preset--color--primary-deep); }
.zh-product-card__body { display: grid; align-content: start; flex: 1; }
.zh-product-card__body > * { margin: 0 !important; }
.zh-product-card__cat, .zh-product-card__cat a { font-size: var(--wp--preset--font-size--xs); font-weight: 500; color: var(--wp--preset--color--text-muted); }
.zh-product-card__name { line-height: 1.55; font-weight: 600; }
.zh-product-card__foot { margin-top: 0.5rem !important; }
.zh-product-card__foot .wc-block-components-product-price { font-weight: 600; color: var(--wp--preset--color--contrast); line-height: 1.3; }
.zh-product-card__foot .wc-block-components-product-price ins { color: var(--wp--preset--color--primary-deep); }
.zh-product-card__foot .wc-block-components-product-price del { font-size: var(--wp--preset--font-size--xs); }
.zh-product-card__add .wp-block-button__link,
.zh-product-card__add .wc-block-components-product-button__button {
	min-height: 36px;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	color: var(--wp--preset--color--primary-deep);
	background: var(--wp--preset--color--base);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border-accented);
}
.zh-product-card__add .wp-block-button__link:hover,
.zh-product-card__add .wc-block-components-product-button__button:hover {
	color: var(--wp--custom--on-primary);
	background: var(--wp--preset--color--primary);
	box-shadow: none;
}
.wc-block-components-product-sale-badge,
.wp-block-woocommerce-product-sale-badge .onsale {
	border: 0;
	border-radius: 999px;
	font-weight: 500;
	color: var(--wp--preset--color--brand);
	background: var(--wp--preset--color--primary-soft);
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wp--preset--color--primary) 25%, transparent);
}
.wc-block-components-product-price del { color: var(--wp--preset--color--text-muted); font-weight: 400; }
.wc-block-components-product-price ins { text-decoration: none; }

/* Shop layout (templates/archive-product.html & co.). Filter colours are block
   attributes (palette slugs) on the WooCommerce filter blocks, not CSS. */
.zh-shop__filters .wp-block-heading { font-size: var(--wp--preset--font-size--sm); font-weight: 600; margin-block: 0 0.6rem; }
.zh-shop__filters .wc-block-product-filters > * + * { margin-block-start: var(--wp--preset--spacing--40); }
.zh-shop__toolbar { font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--text-muted); }
.zh-shop__toolbar select { font: inherit; padding: 0.4rem 0.6rem; border-radius: var(--wp--custom--radius--control); border: 1px solid var(--wp--preset--color--border-accented); background: var(--wp--preset--color--base); color: var(--wp--preset--color--text); }
.zh-empty { padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--40); text-align: center; border-radius: var(--wp--custom--radius--card); background: var(--wp--preset--color--base-muted); }
.wp-block-search__input { border-radius: var(--wp--custom--radius--control); border-color: var(--wp--preset--color--border-accented); background: var(--wp--preset--color--base); color: var(--wp--preset--color--text); }

/* Product page (templates/single-product.html). */
.zh-product__summary > * { margin-block: 0; }
.zh-product__cat, .zh-product__cat a { font-size: var(--wp--preset--font-size--xs); font-weight: 500; color: var(--wp--preset--color--text-muted); }
.zh-product .wc-block-components-product-price ins { color: var(--wp--preset--color--primary-deep); text-decoration: none; }
.zh-product__media .wc-block-product-gallery-large-image { background: var(--wp--preset--color--media); border-radius: var(--wp--custom--radius--card); overflow: hidden; }

/* Product gallery (inc/gallery.php + assets/js/gallery.js). The .zh-* hooks are
   added by the script, so without it the gallery is WooCommerce's own. */
/* Native swipe with snap points while WooCommerce < 11.3 scrolls the wrong way
   right to left: the photo follows the finger, one photo per flick. */
.zh-gallery--snap .wc-block-product-gallery-large-image__container {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}
.zh-gallery--snap .wc-block-product-gallery-large-image__container::-webkit-scrollbar { display: none; }
.zh-gallery--snap .wc-block-product-gallery-large-image__wrapper { scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden; }
/* Thumbnails: rounded like the cards, and the selected one is marked with a
   ring instead of WooCommerce's dimming (which read as «disabled»). */
.zh-product__media .wc-block-product-gallery-thumbnails__thumbnail__image {
	border-radius: var(--wp--custom--radius--control);
	background: var(--wp--preset--color--media);
}
.zh-product__media .wc-block-product-gallery-thumbnails__thumbnail__image--is-active { filter: none; }
.zh-product__media .wc-block-product-gallery-thumbnails__thumbnail:has(> .wc-block-product-gallery-thumbnails__thumbnail__image--is-active)::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--wp--custom--radius--control);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--primary);
	pointer-events: none;
}
.zh-product__media .wc-block-product-gallery-thumbnails__thumbnail__image:focus-visible { outline: 2px solid var(--wp--preset--color--contrast); outline-offset: -5px; }
/* Right to left, WooCommerce fades the wrong edge (over the first, selected
   thumbnail); the script marks the edges that really hide thumbnails. A mask
   reads only alpha, so any opaque token stands for «visible». */
.wc-block-product-gallery-thumbnails.zh-thumbs-fx.wc-block-product-gallery-thumbnails--overflow-left,
.wc-block-product-gallery-thumbnails.zh-thumbs-fx.wc-block-product-gallery-thumbnails--overflow-right { mask-image: none; }
/* With honest fades the phone strip needs no scrollbar (WooCommerce's desktop default). */
.zh-thumbs-fx .wc-block-product-gallery-thumbnails__scrollable { scrollbar-width: none; }
.zh-thumbs-fx .wc-block-product-gallery-thumbnails__scrollable::-webkit-scrollbar { display: none; }
.wc-block-product-gallery-thumbnails.zh-thumbs-fx.zh-fade-left { mask-image: linear-gradient(90deg, transparent 0, var(--wp--preset--color--contrast) 14%); }
.wc-block-product-gallery-thumbnails.zh-thumbs-fx.zh-fade-right { mask-image: linear-gradient(270deg, transparent 0, var(--wp--preset--color--contrast) 14%); }
.wc-block-product-gallery-thumbnails.zh-thumbs-fx.zh-fade-left.zh-fade-right {
	mask-image: linear-gradient(90deg, transparent 0, var(--wp--preset--color--contrast) 14%, var(--wp--preset--color--contrast) 86%, transparent);
}
/* Arrows (WooCommerce hides them up to 600 px; swiping is the phone's way). */
.zh-product__media .wc-block-next-previous-buttons__button {
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	background: color-mix(in oklab, var(--wp--preset--color--base) 88%, transparent);
	box-shadow: var(--wp--preset--shadow--sm);
}
.zh-product__media .wc-block-next-previous-buttons__button:not([aria-disabled="true"]):hover { background: var(--wp--preset--color--base); }
/* Full-screen view: each photo fits the screen (a square photo filled the width
   and was 1409 px tall on a 900 px screen). The width comes from the photo's
   own ratio (--zh-ratio, inc/gallery.php), so a photo still loading already
   has its size and WooCommerce can scroll to the one it opens on. */
.wc-block-product-gallery-dialog .wc-block-product-gallery-dialog__content img[data-image-id] {
	width: min(100%, 1600px, calc((100vh - 5.5rem) * var(--zh-ratio, 1)));
	width: min(100%, 1600px, calc((100dvh - 5.5rem) * var(--zh-ratio, 1)));
	height: auto;
	max-width: none;
	max-height: calc(100vh - 5.5rem);
	max-height: calc(100dvh - 5.5rem);
	object-fit: contain;
	flex-shrink: 0; /* the view is a fixed-height flex column: photos must not squash to fit it */
}
.wc-block-product-gallery-dialog .wc-block-product-gallery-dialog__close-button {
	display: inline-grid;
	place-items: center;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	padding: 0;
	border-radius: 999px;
}
.wc-block-product-gallery-dialog .wc-block-product-gallery-dialog__close-button:hover { background: var(--wp--preset--color--base-muted); }
.zh-guarantee { box-shadow: 0 -1px 0 var(--wp--preset--color--border); }
.zh-guarantee .zh-value-item > p:first-child { font-weight: 500; font-size: var(--wp--preset--font-size--xs); }

/* 11 ── Stones (blocks/stone-meaning, blocks/stone-glossary) ─────────────────
   --zh-stone is the stone's display swatch from term meta (data, not a token);
   everything else is palette tokens. */
.zh-stone-meaning__dot {
	display: inline-block;
	flex-shrink: 0;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 999px;
	background: var(--zh-stone, var(--wp--preset--color--primary));
	box-shadow: inset 0 0 0 1px color-mix(in oklab, #000 18%, transparent);
	vertical-align: middle;
}
.zh-stone-meaning.is-variant-line {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.6;
	color: var(--wp--preset--color--text-muted);
}
.zh-stone-meaning.is-variant-card {
	display: grid;
	gap: 0.75rem;
	padding: 0.9rem 1rem;
	border-radius: var(--wp--custom--radius--card);
	color: var(--wp--preset--color--primary-deep);
	background: color-mix(in oklab, var(--wp--preset--color--primary) 8%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wp--preset--color--primary) 22%, transparent);
	font-size: var(--wp--preset--font-size--sm);
}
.zh-stone-meaning__item { display: grid; gap: 0.3rem; }
.zh-stone-meaning.is-variant-card p { margin: 0; line-height: 1.8; }
.zh-stone-meaning__label { font-size: var(--wp--preset--font-size--xs); font-weight: 600; letter-spacing: 0.04em; }
.zh-stone-meaning__title { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; color: var(--wp--preset--color--contrast); }
.zh-stone-meaning__desc { color: var(--wp--preset--color--text); }
.zh-stone-meaning__link { font-size: var(--wp--preset--font-size--xs); font-weight: 500; width: max-content; }
.zh-stone-meaning.is-variant-card .zh-stone-meaning__note { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--text-toned); }

.zh-stones.is-layout-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
}
@media (max-width: 1023px) { .zh-stones.is-layout-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zh-stones.is-layout-strip .zh-stone { display: grid; gap: 0.5rem; align-content: start; padding: 1.25rem; background: var(--wp--preset--color--base); }
.zh-stones.is-layout-strip .zh-stone p { margin: 0; }
.zh-stone__name { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-weight: 600; font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--contrast); }
.zh-stone__mean { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--text-muted); line-height: 1.6; }
.zh-stone__more { font-size: var(--wp--preset--font-size--xs); font-weight: 500; }

.zh-stones.is-layout-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
	gap: var(--wp--preset--spacing--30);
}
.zh-stone--tile {
	display: grid;
	gap: 0.65rem;
	align-content: start;
	padding: 1.25rem;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--base);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
	scroll-margin-top: calc(var(--wp--custom--header-height) + 1rem);
}
.zh-stone--tile:hover, .zh-stone--tile:target { box-shadow: inset 0 0 0 1px var(--wp--preset--color--border-accented); }
.zh-stone--tile .zh-stone__name { font-size: var(--wp--preset--font-size--base); }
.zh-stone__alias-anchor { display: block; scroll-margin-top: calc(var(--wp--custom--header-height) + 1rem); }
.zh-stone__badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.zh-stone__badges li {
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
	line-height: 1.5;
	color: var(--wp--preset--color--primary-deep);
	background: color-mix(in oklab, var(--wp--preset--color--primary) 10%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wp--preset--color--primary) 25%, transparent);
}
.zh-stone__desc, .zh-stone__products { margin: 0; font-size: var(--wp--preset--font-size--xs); line-height: 1.8; color: var(--wp--preset--color--text-muted); }
.zh-stone__products a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.zh-stone__products a:hover { color: var(--wp--preset--color--primary-link); }
.zh-stones__empty { color: var(--wp--preset--color--text-muted); }

/* 12 ── Gift finder (blocks/gift-finder) ────────────────────────────────────── */
.zh-gift { max-width: 54rem; margin-inline: auto; }
.zh-gift__progress { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--text-muted); }
.zh-gift:not(.is-enhanced) .zh-gift__progress { display: none; }
.zh-gift__progress li { display: flex; align-items: center; gap: 0.5rem; flex: 1 1 auto; }
.zh-gift__progress li:not(:last-child)::after { content: ""; flex: 1 1 18px; min-width: 14px; height: 2px; background: var(--wp--preset--color--border); }
.zh-gift__progress li.is-done::after { background: var(--wp--preset--color--primary); }
.zh-gift__progress li.is-now { color: var(--wp--preset--color--contrast); font-weight: 600; }
.zh-gift__dot { width: 13px; height: 13px; border-radius: 50%; background: var(--wp--preset--color--base-elevated); box-shadow: inset 0 0 0 1px var(--wp--preset--color--border); }
.zh-gift__progress li.is-done .zh-gift__dot, .zh-gift__progress li.is-now .zh-gift__dot { background: var(--wp--preset--color--primary); box-shadow: none; }
.zh-gift__progress li.is-now .zh-gift__dot { box-shadow: 0 0 0 4px color-mix(in oklab, var(--wp--preset--color--primary) 18%, transparent); }
.zh-gift__form, .zh-gift__results { display: grid; gap: var(--wp--preset--spacing--40); }
.zh-gift__step, .zh-gift__results {
	margin: 0;
	padding: clamp(20px, 3vw, 32px);
	border: 0;
	border-radius: calc(var(--wp--custom--radius--base) * 3);
	background: var(--wp--preset--color--base);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
}
.zh-gift.is-enhanced .zh-gift__step:not(.is-active) { display: none; }
.zh-gift [hidden] { display: none !important; }
.zh-gift__step legend { display: grid; gap: 0.5rem; padding: 0; float: left; width: 100%; }
.zh-gift__step legend + * { clear: both; }
.zh-gift__stepno { display: inline-flex; width: max-content; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: var(--wp--preset--font-size--xs); font-weight: 600; color: var(--wp--preset--color--primary-deep); background: color-mix(in oklab, var(--wp--preset--color--primary) 9%, transparent); }
.zh-gift__title { margin: 0; font-size: var(--wp--preset--font-size--2-xl); font-weight: 700; letter-spacing: -0.02em; color: var(--wp--preset--color--contrast); line-height: 1.35; }
.zh-gift__title:focus { outline: none; }
.zh-gift__sub { margin: 0.5rem 0 1.25rem; font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--text-muted); line-height: 1.9; }
.zh-gift__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); gap: 0.6rem; }
.zh-gift__opt {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem 0.9rem;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--base);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border-accented);
	cursor: pointer;
	transition: background-color var(--wp--custom--motion--duration) var(--wp--custom--motion--ease), box-shadow var(--wp--custom--motion--duration) var(--wp--custom--motion--ease);
}
.zh-gift__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.zh-gift__opt:hover { background: var(--wp--preset--color--base-muted); }
.zh-gift__opt:has(input:focus-visible) { outline: 2px solid color-mix(in oklab, var(--wp--preset--color--primary) 45%, transparent); outline-offset: 2px; }
.zh-gift__opt:has(input:checked) { background: color-mix(in oklab, var(--wp--preset--color--primary) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wp--preset--color--primary) 50%, transparent); }
.zh-gift__ic { width: 32px; height: 32px; margin-bottom: 0.35rem; border-radius: var(--wp--custom--radius--control); background: var(--wp--preset--color--base-elevated); position: relative; }
.zh-gift__ic::after { content: ""; position: absolute; inset: 7px; background: var(--wp--preset--color--text-muted); -webkit-mask: var(--zh-ico) center / contain no-repeat; mask: var(--zh-ico) center / contain no-repeat; }
.zh-gift__opt:has(input:checked) .zh-gift__ic { background: var(--wp--preset--color--primary); }
.zh-gift__opt:has(input:checked) .zh-gift__ic::after { background: var(--wp--custom--on-primary); }
.zh-gift__opt b { font-size: var(--wp--preset--font-size--sm); font-weight: 600; color: var(--wp--preset--color--contrast); line-height: 1.5; }
.zh-gift__opt small { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--text-muted); line-height: 1.6; }
.zh-gift__text { display: grid; gap: 0.5rem; margin: 1.25rem 0 0; }
.zh-gift__text label { font-size: var(--wp--preset--font-size--sm); font-weight: 500; color: var(--wp--preset--color--contrast); }
.zh-gift__text label span { font-weight: 400; color: var(--wp--preset--color--text-muted); }
.zh-gift__text textarea { width: 100%; min-height: 5.5rem; resize: vertical; padding: 0.6rem 0.75rem; font: inherit; font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--contrast); background: var(--wp--preset--color--base); border: 0; border-radius: var(--wp--custom--radius--control); box-shadow: inset 0 0 0 1px var(--wp--preset--color--border-accented); }
.zh-gift__actions { display: flex; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; margin: 1.5rem 0 0; }
.zh-gift__actions .zh-gift__go { margin-inline-start: auto; }
.zh-gift__btn { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 36px; padding: 0.4rem 0.9rem; border: 0; border-radius: var(--wp--custom--radius--control); font: inherit; font-size: var(--wp--preset--font-size--sm); font-weight: 500; color: var(--wp--preset--color--primary-link); background: transparent; cursor: pointer; text-decoration: none; }
.zh-gift__btn:hover { color: var(--wp--preset--color--primary-deep); background: var(--wp--preset--color--base-elevated); }
.zh-gift__btn.is-solid { color: var(--wp--custom--on-primary); background: var(--wp--preset--color--primary); }
.zh-gift__btn.is-solid:hover { color: var(--wp--custom--on-primary); background: color-mix(in oklab, var(--wp--preset--color--primary) 82%, #000); }
.zh-gift__error { margin: 0; padding: 0.75rem 1rem; border-radius: var(--wp--custom--radius--card); font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--error); background: color-mix(in oklab, var(--wp--preset--color--error) 8%, var(--wp--preset--color--base)); }
.zh-gift__head { display: grid; gap: 0.5rem; }
.zh-gift__head .zh-gift__sub { margin-bottom: 0; }
.zh-gift-note {
	display: grid;
	gap: 0.6rem;
	padding: 1.25rem 1.4rem;
	border-radius: calc(var(--wp--custom--radius--base) * 3);
	background: linear-gradient(180deg, color-mix(in oklab, var(--wp--preset--color--primary) 7%, var(--wp--preset--color--base)), var(--wp--preset--color--base));
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wp--preset--color--primary) 22%, transparent);
}
.zh-gift-note p { margin: 0; }
.zh-gift-note__label { font-size: var(--wp--preset--font-size--xs); font-weight: 600; letter-spacing: 0.04em; color: var(--wp--preset--color--primary-link); }
.zh-gift-note__text { font-size: var(--wp--preset--font-size--base); line-height: 2.1; color: var(--wp--preset--color--contrast); }
.zh-gift-note__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.zh-gift-note__status { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--success); }
.zh-gift__recs-title { margin: 0; font-size: var(--wp--preset--font-size--sm); font-weight: 600; }
.zh-gift__recs { display: grid; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.zh-rec { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); animation: zh-fade-in var(--wp--custom--motion--duration-slow) var(--wp--custom--motion--ease-out) both; border-radius: calc(var(--wp--custom--radius--base) * 3); background: var(--wp--preset--color--base); box-shadow: inset 0 0 0 1px var(--wp--preset--color--border); overflow: hidden; }
.zh-rec.is-top { box-shadow: inset 0 0 0 2px var(--wp--preset--color--primary); }
.zh-rec__media { position: relative; display: block; background: var(--wp--preset--color--media); }
.zh-rec__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.zh-rec__rank { position: absolute; z-index: 1; top: 0.6rem; inset-inline-start: 0.6rem; display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 6px; border-radius: 999px; font-size: var(--wp--preset--font-size--xs); font-weight: 600; color: var(--wp--preset--color--text-toned); background: var(--wp--preset--color--base); box-shadow: var(--wp--preset--shadow--sm); }
.zh-rec.is-top .zh-rec__rank { color: var(--wp--custom--on-primary); background: var(--wp--preset--color--primary); }
.zh-rec__body { display: grid; gap: 0.5rem; align-content: center; padding: 1rem 1.2rem; }
.zh-rec__body p { margin: 0; }
.zh-rec__cat { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--text-muted); }
.zh-rec__name a { font-weight: 600; line-height: 1.5; color: var(--wp--preset--color--contrast); }
.zh-rec__why { padding: 0.6rem 0.75rem; border-radius: var(--wp--custom--radius--control); font-size: var(--wp--preset--font-size--sm); line-height: 1.85; color: var(--wp--preset--color--text-toned); background: color-mix(in oklab, var(--wp--preset--color--primary) 7%, transparent); }
.zh-rec__why b { color: var(--wp--preset--color--primary-deep); font-weight: 600; }
.zh-rec__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.zh-rec__price { font-weight: 600; color: var(--wp--preset--color--contrast); }
.zh-rec__price ins { text-decoration: none; color: var(--wp--preset--color--primary-deep); }
.zh-rec__price del { font-size: var(--wp--preset--font-size--xs); font-weight: 400; color: var(--wp--preset--color--text-muted); }
.zh-rec__links { display: flex; gap: 0.4rem; }
.zh-gift__again { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin: 0; }
.zh-gift__disclaimer { margin: 1rem 0 0; font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--text-muted); text-align: center; }
@media (max-width: 599px) {
	.zh-rec { grid-template-columns: 1fr; }
	.zh-rec__media { aspect-ratio: 4 / 3; }
}

/* 13 ── Shop lists: «علاقه‌مندی» / «مقایسه» (inc/lists.php + blocks/wishlist, blocks/compare)
   ------------------------------------------------------------------ */
/* Card corner (block style «فقط نماد»): round icon buttons over the photo. The
   label stays in the accessibility tree, only visually hidden. Start corner:
   the discount badge owns the end corner (z-index 9) and covered them there. */
.zh-product-card { position: relative; }
.zh-product-card > .wp-block-zhevoo-list-buttons.is-style-icons {
	position: absolute; z-index: 10;
	inset-block-start: 0.6rem; inset-inline-start: 0.6rem;
	flex-direction: column; gap: 0.35rem; margin: 0;
}
.is-style-icons .zh-list-btn { width: 2.25rem; height: 2.25rem; padding: 0; justify-content: center; background: var(--wp--preset--color--base); box-shadow: inset 0 0 0 1px var(--wp--preset--color--border), var(--wp--preset--shadow--sm); }
.is-style-icons .zh-list-btn__label {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.is-style-icons .zh-list-btn[aria-pressed="true"], .is-style-icons .zh-list-btn.is-on { background: var(--wp--preset--color--primary); color: var(--wp--custom--on-primary, var(--wp--preset--color--base)); }
.zh-list-btn[aria-pressed="true"] .zh-list-btn__icon path, .zh-list-btn.is-on .zh-list-btn__icon path { fill: currentColor; }
.zh-list-btn--compare[aria-pressed="true"] .zh-list-btn__icon path, .zh-list-btn--compare.is-on .zh-list-btn__icon path { fill: none; }
.zh-list-btn__icon { flex: none; }

/* Header link (blocks/lists-link) — same footprint as the account/cart icons. */
.zh-lists-link__a { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; color: var(--wp--preset--color--contrast); border-radius: var(--wp--preset--border-radius--full); }
.zh-lists-link__a:hover { color: var(--wp--preset--color--primary); }
.zh-lists-link__badge {
	position: absolute; inset-block-start: 0.1rem; inset-inline-end: 0.05rem;
	min-width: 1.1rem; height: 1.1rem; padding-inline: 0.25rem; border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--primary); color: var(--wp--custom--on-primary, var(--wp--preset--color--base));
	font-size: 0.68rem; font-weight: 700; line-height: 1.1rem; text-align: center;
}
.zh-lists-link__badge[hidden] { display: none; }
/* The toggles are links first: without JS a click goes to the list page with
   the product added (post/redirect/get); shop-lists.js turns them into in-place
   toggles. They must therefore be visible without JS — an earlier rule hid
   them until the script ran, which made the no-JS path unreachable. */
.zh-list-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.zh-list-btn {
	display: inline-flex; align-items: center; gap: 0.35rem;
	padding: 0.35rem 0.75rem; border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--base-muted); color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--xs); font-weight: 500; text-decoration: none;
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
	transition: background-color var(--wp--custom--motion--duration-fast) var(--wp--custom--motion--ease),
	            color var(--wp--custom--motion--duration-fast) var(--wp--custom--motion--ease);
}
.zh-list-btn:hover { color: var(--wp--preset--color--contrast); }
.zh-list-btn[aria-pressed="true"], .zh-list-btn.is-on {
	background: var(--wp--preset--color--primary); color: var(--wp--custom--on-primary, var(--wp--preset--color--base));
	box-shadow: none;
}
.zh-list-btn--remove { background: transparent; box-shadow: inset 0 0 0 1px var(--wp--preset--color--border); }
.zh-list-btn--remove:hover { color: var(--wp--preset--color--primary); }

/* Live region: announced, never laid out. */
.zh-lists-live {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ── List pages ─────────────────────────────────────────────────────── */
.zh-list__count, .zh-list__share {
	margin: 0 0 1rem; font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--text-muted);
}
.zh-list__share { margin: 1.25rem 0 0; }
.zh-list__shared {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem;
	margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--base-muted); color: var(--wp--preset--color--text-toned);
	font-size: var(--wp--preset--font-size--sm);
}
.zh-list-card__buy.wp-element-button { padding: 0.45rem 0.9rem; font-size: var(--wp--preset--font-size--sm); }

.zh-list__empty {
	padding: 2.5rem 1.5rem; text-align: center;
	animation: zh-scale-in var(--wp--custom--motion--duration-slow) var(--wp--custom--motion--ease-out) both;
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--base-muted);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
}
.zh-list__empty-title { margin: 0 0 0.5rem; font-size: var(--wp--preset--font-size--lg); font-weight: 600; }
.zh-list__empty-text { margin: 0 0 1.25rem; color: var(--wp--preset--color--text-muted); }
.zh-list__empty-cta { margin: 0; }

.zh-list__grid { display: grid; gap: 1rem; }
.zh-list.is-cols-1 .zh-list__grid { grid-template-columns: 1fr; }
.zh-list.is-cols-2 .zh-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zh-list.is-cols-3 .zh-list__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zh-list.is-cols-4 .zh-list__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 899px) { .zh-list.is-cols-3 .zh-list__grid, .zh-list.is-cols-4 .zh-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .zh-list .zh-list__grid { grid-template-columns: 1fr; } }

.zh-list-card {
	display: flex; flex-direction: column; min-width: 0;
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--base);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
	overflow: hidden;
}
.zh-list-card__media { display: block; aspect-ratio: 1; background: var(--wp--preset--color--base-muted); }
.zh-list-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.zh-list-card__noimg { display: block; width: 100%; height: 100%; }
.zh-list-card__body { display: grid; gap: 0.35rem; padding: 0.9rem; }
.zh-list-card__name { margin: 0; font-size: var(--wp--preset--font-size--base); line-height: 1.55; font-weight: 600; }
.zh-list-card__name a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.zh-list-card__name a:hover { color: var(--wp--preset--color--primary-deep); }
.zh-list-card__stone { margin: 0; font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--text-muted); display: flex; align-items: center; gap: 0.35rem; }
.zh-list-card__price { margin: 0; font-weight: 600; }
.zh-list-card__actions { margin: 0.35rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.zh-list-card__stock { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--text-muted); }

/* ── Compare table ──────────────────────────────────────────────────── */
/* A comparison is tabular data, so it stays a real <table>. On a phone the
   table scrolls sideways with the row labels stuck to the inline-start edge;
   cards cannot show "which one differs" across columns. */
/* position:relative makes the scroller the containing block of the table's
   screen-reader-text spans (position:absolute); without it they escaped the
   overflow clip and widened the whole page by ~115px at 390px (staging). */
.zh-compare__scroll { position: relative; overflow-x: auto; overscroll-behavior-x: contain; border-radius: var(--wp--preset--border-radius--lg); }
.zh-compare__table { width: 100%; border-collapse: collapse; background: var(--wp--preset--color--base); min-width: 36rem; }
.zh-compare__table th, .zh-compare__table td {
	padding: 0.75rem 0.9rem; text-align: start; vertical-align: top;
	border-block-end: 1px solid var(--wp--preset--color--border); font-size: var(--wp--preset--font-size--sm);
}
.zh-compare__table thead th { border-block-end-width: 2px; }
.zh-compare__rowhead {
	position: sticky; inset-inline-start: 0; z-index: 1;
	background: var(--wp--preset--color--base-muted); font-weight: 600; white-space: nowrap;
	width: 8rem; min-width: 8rem;
}
.zh-compare__product { min-width: 12rem; }
.zh-compare__product .zh-list-card { box-shadow: none; border: 0; background: transparent; }
.zh-compare__product .zh-list-card__media { aspect-ratio: 4 / 3; }
.zh-compare__product .zh-list-card__actions { display: none; }
.zh-compare__table tr.is-diff .zh-compare__cell { background: color-mix(in oklab, var(--wp--preset--color--primary) 7%, transparent); }
.zh-compare__none { color: var(--wp--preset--color--text-muted); }
@media (max-width: 599px) {
	.zh-compare__product { min-width: 10rem; }
	.zh-compare__rowhead { width: 6.5rem; min-width: 6.5rem; }
}

/* 14 ── Account: mobile login (inc/otp-login.php) ────────────────────────────── */
.zh-otp {
	max-width: 30rem; margin-block-end: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--40); border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--base); box-shadow: inset 0 0 0 1px var(--wp--preset--color--border);
}
.zh-otp__title { margin: 0 0 0.4rem; font-size: var(--wp--preset--font-size--lg); }
.zh-otp__lead { margin: 0 0 0.9rem; color: var(--wp--preset--color--text-muted); font-size: var(--wp--preset--font-size--sm); }
.zh-otp__form { display: grid; gap: 0.5rem; }
.zh-otp__label { font-weight: 600; font-size: var(--wp--preset--font-size--sm); }
.zh-otp__input {
	width: 100%; box-sizing: border-box; padding: 0.75rem 0.9rem; font: inherit; font-size: var(--wp--preset--font-size--base);
	letter-spacing: 0.06em; text-align: left; border-radius: var(--wp--custom--radius--control);
	border: 1px solid var(--wp--preset--color--border-accented); background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast);
}
.zh-otp__input:focus-visible { outline: 2px solid color-mix(in oklab, var(--wp--preset--color--primary) 35%, transparent); outline-offset: 1px; border-color: var(--wp--preset--color--primary); }
.zh-otp__submit { justify-self: start; margin-top: 0.25rem; }
.zh-otp__alt { margin-top: 0.6rem; }
.zh-otp__link { background: none; border: 0; padding: 0; color: var(--wp--preset--color--primary-deep); text-decoration: underline; cursor: pointer; font: inherit; font-size: var(--wp--preset--font-size--sm); }
.zh-otp__msg { margin: 0 0 0.8rem; padding: 0.6rem 0.8rem; border-radius: var(--wp--custom--radius--control); font-size: var(--wp--preset--font-size--sm); }
.zh-otp__msg.is-info { background: var(--wp--preset--color--base-muted); color: var(--wp--preset--color--contrast); }
.zh-otp__msg.is-error { background: color-mix(in oklab, var(--wp--preset--color--primary) 12%, transparent); color: var(--wp--preset--color--primary-deep); }
.zh-otp__or { display: flex; align-items: center; gap: 0.75rem; max-width: 30rem; color: var(--wp--preset--color--text-muted); font-size: var(--wp--preset--font-size--xs); }
.zh-otp__or::before, .zh-otp__or::after { content: ""; flex: 1; height: 1px; background: var(--wp--preset--color--border); }

/* 16 ── Gateway prices (inc/gateway-pricing.php): each installment price, stated up front ── */
.zh-gateway-prices { margin-block: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30); font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--text-toned); }
.zh-gateway-prices p { margin-block: 0; }
.zh-gateway-prices__amount { font-weight: 700; color: var(--wp--preset--color--text); unicode-bidi: isolate; }
/* دیجی‌پی's widget is 100% wide plus its padding: on a phone that pushed the whole product page sideways. */
.zh-product__summary .digipay-widget { box-sizing: border-box; }
.zh-gateway-note td { font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--text-toned); }
.zh-gateway-order-note { padding: var(--wp--preset--spacing--30); border-inline-start: 3px solid var(--wp--preset--color--warning); background: var(--wp--preset--color--base-muted); }

/* 10 ── Motion (last) ───────────────────────────────────────────────────────────────── */
/* Duration/ease values come from the approved design system (Nuxt UI v4):
   100 / 150 / 200ms and cubic-bezier(0, 0, 0.2, 1) for entrances. Short scale+fade
   for things that appear, colour only on interactive elements. No bounces. */
@keyframes zh-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zh-scale-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }


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

/* 15 ── Dark mode: WooCommerce and core pieces with hard-coded light colours ── */
:root[data-theme="dark"] .woocommerce form .input-text,
:root[data-theme="dark"] .woocommerce-Input,
:root[data-theme="dark"] .woocommerce form select,
:root[data-theme="dark"] .woocommerce form textarea,
:root[data-theme="dark"] .select2-container--default .select2-selection--single {
	background: var(--wp--preset--color--base-elevated);
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--border-accented);
}
:root[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--wp--preset--color--contrast); }
:root[data-theme="dark"] .select2-dropdown { background: var(--wp--preset--color--base-elevated); color: var(--wp--preset--color--contrast); }
:root[data-theme="dark"] .woocommerce form .form-row .required,
:root[data-theme="dark"] span.required { color: var(--wp--preset--color--primary); }
:root[data-theme="dark"] .wc-block-components-notice-banner,
:root[data-theme="dark"] .woocommerce-info,
:root[data-theme="dark"] .woocommerce-message,
:root[data-theme="dark"] .woocommerce-error {
	background: var(--wp--preset--color--base-elevated);
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--border-accented);
}
:root[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li,
:root[data-theme="dark"] .wp-block-woocommerce-product-details .wc-tabs li {
	background: var(--wp--preset--color--base-elevated);
	border-color: var(--wp--preset--color--border);
}
:root[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li.active,
:root[data-theme="dark"] .wp-block-woocommerce-product-details .wc-tabs li.active { background: var(--wp--preset--color--base); }
:root[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li a,
:root[data-theme="dark"] .wp-block-woocommerce-product-details .wc-tabs li a { color: var(--wp--preset--color--text-toned); }
:root[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
:root[data-theme="dark"] .wp-block-woocommerce-product-details .wc-tabs li.active a { color: var(--wp--preset--color--contrast); }
:root[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs::before,
:root[data-theme="dark"] .wp-block-woocommerce-product-details .wc-tabs::before { border-color: var(--wp--preset--color--border); }
:root[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li::before,
:root[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
:root[data-theme="dark"] .wp-block-search__inside-wrapper {
	background: var(--wp--preset--color--base-elevated);
	border-color: var(--wp--preset--color--border-accented);
}
:root[data-theme="dark"] .woocommerce table.shop_table,
:root[data-theme="dark"] .woocommerce table.shop_table td,
:root[data-theme="dark"] .woocommerce table.shop_table th { border-color: var(--wp--preset--color--border); }
:root[data-theme="dark"] #add_payment_method #payment,
:root[data-theme="dark"] .woocommerce-checkout #payment { background: var(--wp--preset--color--base-elevated); }
:root[data-theme="dark"] .woocommerce-checkout #payment div.payment_box { background: var(--wp--preset--color--base-accented); color: var(--wp--preset--color--contrast); }
:root[data-theme="dark"] .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--wp--preset--color--base-accented); }
