/* ==========================================================================
   Tezhano — the storefront's base: resets, type, fields, buttons, dialogs, cards, the shop,
   the product page and the footer. Its colours and shapes are given their final values in
   skin.css (tile and steel, ink, the flame blue), which loads last.
   Logical properties throughout: the same rules lay out RTL and LTR.
   ========================================================================== */

@font-face {
	font-family: "Vazirmatn FD";
	src: url("../fonts/vazirmatn-fd-variable.woff2") format("woff2");
	font-weight: 100 950;
	font-style: normal;
	font-display: swap;
}

/* The names are the base's own («paper», «plum»); their values are Tezhano's, as skin.css sets them again
   under its own names (tile, steel, flame): paper is the tile grey, plum is the flame blue. */
:root {
	--paper: #f3f5f6;
	--paper-2: #e4e8eb;
	--paper-3: #c9d0d6;
	--card: #ffffff;
	--ink: #17202b;
	--ink-2: #3d4854;
	--muted: #5b6672;
	--line: rgb(23 32 43 / 0.1);
	--line-strong: rgb(23 32 43 / 0.22);
	--line-field: rgb(23 32 43 / 0.42);
	--plum: #1f4fe0;
	--plum-2: #173bb0;
	--plum-tint: #e8eeff;
	--plum-light: #b6c6ff;
	--success: #1a7f5a;
	--success-tint: #e2f3ec;
	--warning: #8a5a00;
	--warning-tint: #fbf0d6;
	--danger: #b42318;
	--danger-tint: #fde8e6;

	--font: "Vazirmatn FD", "SF Arabic", "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif;

	--step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
	--step-0: clamp(0.94rem, 0.91rem + 0.15vw, 1rem);
	--step-1: clamp(1.06rem, 1rem + 0.3vw, 1.24rem);
	--step-2: clamp(1.3rem, 1.15rem + 0.7vw, 1.75rem);
	--step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
	--step-4: clamp(2.2rem, 1.6rem + 2.8vw, 4.25rem);
	--step-5: clamp(2.9rem, 1.7rem + 5.6vw, 7.75rem);

	--gutter: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left), env(safe-area-inset-right));
	--max: 1440px;
	--radius: 10px;
	--radius-lg: 14px;
	--header-h: 72px;
	--ease: cubic-bezier(0.2, 0.7, 0.1, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--shadow: 0 18px 40px rgb(23 32 43 / 0.12);
	--star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.6 2.8 6 6.5.7-4.8 4.4 1.3 6.4L12 16.9l-5.8 3.2 1.3-6.4-4.8-4.4 6.5-.7z'/%3E%3C/svg%3E");
	--dir: 1;

	/* Light only: stops Samsung Internet and Chrome from force-darkening the page. */
	color-scheme: only light;
	interpolate-size: allow-keywords;
}

[dir="rtl"] {
	--dir: -1;
}

/* Base ----------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	/* Opening a dialog (overflow: hidden) does not shift the page sideways on Windows and Linux. */
	scrollbar-gutter: stable;
	scroll-padding-top: calc(var(--header-h) + 20px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--step-0);
	font-weight: 400;
	line-height: 1.9;
	font-kerning: normal;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
	overflow-x: hidden;
	overflow-x: clip;
}

html:has(dialog[open]) {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	font-weight: 400;
	line-height: 1.35;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

a {
	color: inherit;
	text-decoration: none;
	text-underline-offset: 0.3em;
	text-decoration-thickness: 1px;
}

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

img {
	vertical-align: middle;
}

button {
	font: inherit;
	color: inherit;
}

::selection {
	background: var(--plum);
	color: var(--card);
}

:focus-visible {
	outline: 2px solid var(--plum);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Focus moved after a tap (see app.js): kept for assistive technology, without the ring. */
[data-quiet-focus]:focus-visible {
	outline: none;
}

/* WooCommerce moves focus to its notices for screen readers; they are not controls. */
:is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper, [class*="woocommerce-NoticeGroup"]):focus-visible {
	outline: none;
}

ins {
	text-decoration: none;
}

bdi[dir="ltr"] {
	unicode-bidi: isolate;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: fixed;
	z-index: 200;
	inset-inline-start: 12px;
	top: -80px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	transition: top 0.2s;
}

.skip-link:focus {
	top: 12px;
}

.svg-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* Icons ---------------------------------------------------------------- */

.icon {
	width: 22px;
	height: 22px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: middle;
}

.icon .icon-fill {
	fill: currentColor;
	stroke: none;
}

.icon .icon-track {
	opacity: 0.32;
}

[dir="rtl"] .icon--dir {
	transform: scaleX(-1);
}

.icon--prev {
	rotate: 180deg;
}

/* Typography helpers ------------------------------------------------------ */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: var(--muted);
	font-size: var(--step--1);
	font-weight: 600;
	line-height: 1.6;
}

.dot {
	width: 7px;
	height: 7px;
	flex: none;
	border-radius: 50%;
	background: var(--plum);
}

.section-index {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--plum);
	font-weight: 700;
}

.section-index::after {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
	opacity: 0.5;
}

.section-title {
	margin: 0;
	font-size: var(--step-4);
	font-weight: 250;
	line-height: 1.22;
}

.section-title em {
	color: var(--plum);
	font-style: normal;
	font-weight: 420;
}

.section-title--small {
	font-size: var(--step-3);
}

.muted {
	color: var(--muted);
}

/* Buttons and links ------------------------------------------------------- */

.button,
a.button,
button.button,
input.button,
.wp-element-button,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 28px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
	-webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
	.button:hover,
	.comment-form .submit:hover {
		border-color: var(--plum);
		background: var(--plum);
		color: var(--card);
	}
}

.button .icon {
	width: 19px;
	height: 19px;
	transition: translate 0.35s var(--ease);
}

@media (hover: hover) {
	.button:hover .icon--arrow {
		translate: calc(4px * var(--dir)) 0;
	}
}

.button--ghost,
a.button--ghost,
button.button--ghost {
	border-color: var(--line-strong);
	background: transparent;
	color: var(--ink);
}

@media (hover: hover) {
	.button--ghost:hover {
		border-color: var(--ink);
		background: transparent;
		color: var(--ink);
	}
}

.button--block {
	width: 100%;
}

.button--small,
a.button--small {
	min-height: 38px;
	padding: 0 16px;
	font-size: 13px;
}

.button:disabled,
.button.disabled,
.button[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.45;
}

.button.loading,
.is-loading {
	position: relative;
	pointer-events: none;
}

.button.loading {
	color: transparent !important;
}

.button.loading::after,
.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 18px;
	height: 18px;
	margin: auto;
	border: 2px solid currentColor;
	border-inline-end-color: transparent;
	border-radius: 50%;
	animation: avgi-spin 0.7s linear infinite;
}

.button.loading::after {
	border-color: var(--paper);
	border-inline-end-color: transparent;
}

.button--ghost.loading::after {
	border-color: var(--ink);
	border-inline-end-color: transparent;
}

.link-underline {
	position: relative;
	padding-bottom: 3px;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	font-weight: 500;
	transition: background-size 0.4s var(--ease);
}

/* A finger-sized hit area around the short underlined link. */
.link-underline::after {
	content: "";
	position: absolute;
	inset: -10px -6px;
}

@media (hover: hover) {
	.link-underline:hover {
		background-size: 0 1px;
	}
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 500;
}

.link-arrow .icon {
	width: 18px;
	height: 18px;
	transition: translate 0.35s var(--ease);
}

@media (hover: hover) {
	.link-arrow:hover .icon--arrow,
	.link-arrow:hover .icon--diagonal {
		translate: calc(4px * var(--dir)) -2px;
	}
}

.icon-button {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: background-color 0.2s;
	-webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
	.icon-button:hover {
		background: rgb(23 32 43 / 0.06);
	}
}

@keyframes avgi-spin {
	to {
		rotate: 360deg;
	}
}

/* Forms ----------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="url"],
input[type="date"],
textarea,
select,
.input-text {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid var(--line-field);
	border-radius: 12px;
	background: var(--card);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.5;
	transition: border-color 0.2s, box-shadow 0.2s;
	appearance: none;
}

textarea {
	min-height: 120px;
	resize: vertical;
}

select {
	padding-inline-end: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23282828' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 18px;
	background-position: right 14px center;
	cursor: pointer;
}

[dir="rtl"] select {
	background-position: left 14px center;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 4px rgb(31 79 224 / 0.14);
}

input:is([type="checkbox"], [type="radio"]):focus-visible {
	outline: 2px solid var(--plum);
	outline-offset: 2px;
}

/* Hidden radios inside option cards (delivery, payment): the card shows the focus. */
.shipping-option:has(input:focus-visible),
.wc_payment_method:has(> input:focus-visible) {
	outline: 2px solid var(--plum);
	outline-offset: 3px;
}

/* On dark surfaces the plum ring is too faint. */
.site-footer :focus-visible,
.dock :focus-visible,
.announcement :focus-visible,
.pay-bar :focus-visible,
.toast :focus-visible {
	outline-color: var(--plum-light);
}

input[dir="ltr"],
input[type="email"],
input[type="tel"],
input[type="url"] {
	direction: ltr;
}

[dir="rtl"] input[dir="ltr"],
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="url"] {
	text-align: right;
}

::placeholder {
	color: #756e65;
	opacity: 1;
}

input[type="checkbox"],
input[type="radio"] {
	width: 20px;
	height: 20px;
	margin: 0;
	flex: none;
	accent-color: var(--ink);
	cursor: pointer;
}

label {
	display: block;
	margin-bottom: 8px;
	color: var(--ink-2);
	font-size: 14px;
	font-weight: 500;
}

.required,
abbr.required {
	color: var(--plum);
	text-decoration: none;
	border: 0;
}

.optional {
	color: var(--muted);
	font-size: 12px;
	font-weight: 400;
}

.form-row {
	margin: 0 0 18px;
	padding: 0;
}

.woocommerce-input-wrapper {
	display: block;
}

.form-row .description {
	display: block;
	margin-top: 6px;
	color: var(--muted);
	font-size: 13px;
}

.form-row.woocommerce-invalid .input-text,
.form-row.woocommerce-invalid select {
	border-color: var(--danger);
}

.checkout-inline-error-message,
.coupon-error-notice {
	margin: 6px 0 0;
	color: var(--danger);
	font-size: 13px;
}

.woocommerce-form__label-for-checkbox,
label.checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}

.password-input {
	position: relative;
	display: block;
}

.show-password-input {
	position: absolute;
	top: 50%;
	inset-inline-end: 6px;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	translate: 0 -50%;
}

.show-password-input::after {
	content: "";
	position: absolute;
	inset: 7px;
	background: var(--muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%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='%23000' stroke-width='1.6'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.show-password-input.display-password::after {
	background: var(--plum);
}

.select-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.select-wrap select {
	min-height: 40px;
	padding-block: 6px;
	padding-inline: 16px 40px;
	border-radius: 999px;
	background-color: transparent;
	background-image: none;
	font-size: 14px;
}

.select-wrap .icon {
	position: absolute;
	inset-inline-end: 14px;
	width: 16px;
	height: 16px;
	pointer-events: none;
}

.search-form {
	position: relative;
	display: flex;
	max-width: 460px;
	margin-inline: auto;
}

.search-form__field {
	padding-inline-end: 56px;
	border-radius: 999px;
}

.search-form__submit {
	position: absolute;
	inset-block: 4px;
	inset-inline-end: 4px;
	width: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--ink);
	color: var(--paper);
	cursor: pointer;
}

.search-form__submit .icon {
	width: 18px;
	height: 18px;
}

/* Chips --------------------------------------------------------------- */

.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 18px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	font-size: 14px;
	white-space: nowrap;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

@media (hover: hover) {
	.chip:hover {
		border-color: var(--ink);
	}
}

.chip[aria-current="page"],
.chip.is-active {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

.chip__count {
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
}

.chip[aria-current="page"] .chip__count,
.chip.is-active .chip__count {
	color: rgb(243 245 246 / 0.6);
}

.chip--quiet {
	height: 34px;
	border-color: transparent;
	background: var(--paper-2);
	font-size: 13px;
}

/* Header ---------------------------------------------------------------- */

/* A flex box, not inline text: inline, the line's baseline space pushed the text 4 px above the middle. */
.announcement {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px var(--gutter);
	background: var(--ink);
	color: rgb(243 245 246 / 0.86);
	font-size: var(--step--1);
	text-align: center;
}

.announcement__text {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
}

.announcement__text .icon--sparkle {
	width: 11px;
	height: 11px;
	color: var(--plum-light);
}

.announcement a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-block: 8px;
	margin-block: -8px;
	text-decoration: underline;
}

.announcement a .icon {
	width: 14px;
	height: 14px;
}

/*
 * Turns in the bar: DigiPay's line on its blue, TorobPay's on its green, then the store's line on the bar's black
 * (template-parts/header/announcement.php sets --turn-N-bg/-fg from each provider's colours). The lines share one
 * cell and slide up in turn, 4 s each (5 s with two); the whole bar, quick links included, takes the colours of
 * the line on show. Paused while pointed at or focused. Reduced motion: the first turn only, in its colours.
 */
.announcement--branded {
	background: var(--turn-1-bg);
	color: var(--turn-1-fg);
}

.announcement__ticker {
	display: inline-grid;
	overflow: hidden;
}

.announcement__line {
	display: inline-flex;
	grid-area: 1 / 1;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--line-fg, inherit);
}

.announcement__line + .announcement__line {
	visibility: hidden;
}

.announcement__line--bnpl {
	gap: 8px;
	font-weight: 500;
}

/* Side by side here: overlapped at this size, DigiPay's wordmark would be cut. A light ring parts DigiPay's blue
   square from its blue turn. */
.announcement .bnpl__logos {
	gap: 4px;
}

.announcement .bnpl__logos img {
	width: 20px;
	height: 20px;
	border-radius: 6px;
	box-shadow: 0 0 0 1px rgb(255 255 255 / 0.6);
}

.announcement .bnpl__logos img + img {
	margin-inline-start: 0;
}

.announcement .bnpl__logos img.bnpl__logo--tile {
	padding: 2px;
}

@media (prefers-reduced-motion: no-preference) {
	.announcement--turns-2 {
		animation: announcement-colours-2 10s infinite;
	}

	.announcement--turns-2 .announcement__line {
		animation: announcement-turn-2 10s ease-in-out infinite;
	}

	.announcement--turns-2 .announcement__line:nth-child(2) {
		animation-delay: -5s;
	}

	.announcement--turns-3 {
		animation: announcement-colours-3 12s infinite;
	}

	.announcement--turns-3 .announcement__line {
		animation: announcement-turn-3 12s ease-in-out infinite;
	}

	.announcement--turns-3 .announcement__line:nth-child(2) {
		animation-delay: -8s;
	}

	.announcement--turns-3 .announcement__line:nth-child(3) {
		animation-delay: -4s;
	}

	.announcement--branded:hover,
	.announcement--branded:hover .announcement__line,
	.announcement--branded:focus-within,
	.announcement--branded:focus-within .announcement__line {
		animation-play-state: paused;
	}
}

@keyframes announcement-turn-2 {
	0% {
		visibility: hidden;
		opacity: 0;
		transform: translateY(100%);
	}

	6%,
	44% {
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	50%,
	100% {
		visibility: hidden;
		opacity: 0;
		transform: translateY(-100%);
	}
}

@keyframes announcement-turn-3 {
	0% {
		visibility: hidden;
		opacity: 0;
		transform: translateY(100%);
	}

	4%,
	29.3% {
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	33.3%,
	100% {
		visibility: hidden;
		opacity: 0;
		transform: translateY(-100%);
	}
}

@keyframes announcement-colours-2 {
	0%,
	46% {
		background-color: var(--turn-1-bg);
		color: var(--turn-1-fg);
	}

	52%,
	96% {
		background-color: var(--turn-2-bg);
		color: var(--turn-2-fg);
	}

	100% {
		background-color: var(--turn-1-bg);
		color: var(--turn-1-fg);
	}
}

@keyframes announcement-colours-3 {
	0%,
	30% {
		background-color: var(--turn-1-bg);
		color: var(--turn-1-fg);
	}

	35%,
	63.5% {
		background-color: var(--turn-2-bg);
		color: var(--turn-2-fg);
	}

	68.5%,
	96.5% {
		background-color: var(--turn-3-bg);
		color: var(--turn-3-fg);
	}

	100% {
		background-color: var(--turn-1-bg);
		color: var(--turn-1-fg);
	}
}

/* Quick links at the ends of the bar: wide screens only (phones have the menu and dock). */
.announcement__links {
	display: none;
}

@media (max-width: 1023px) {
	.announcement--links-only {
		display: none;
	}
}

@media (min-width: 1024px) {
	.announcement {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
		gap: 24px;
	}

	.announcement__text {
		grid-column: 2;
	}

	.announcement__links {
		display: flex;
		gap: 22px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.announcement__links--start {
		grid-column: 1;
		justify-self: start;
	}

	.announcement__links--end {
		grid-column: 3;
		justify-self: end;
	}

	.announcement__links a {
		margin: 0;
		padding-block: 6px;
		color: rgb(243 245 246 / 0.72);
		text-decoration: none;
		transition: color 0.2s;
	}

	.announcement__links a:hover {
		color: var(--paper);
	}

	/* On a provider's colours the links take the bar's text colour. */
	.announcement--branded .announcement__links a {
		color: inherit;
		opacity: 0.85;
	}

	.announcement--branded .announcement__links a:hover {
		color: inherit;
		opacity: 1;
	}
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	/* Nearly opaque instead of a backdrop blur: blurring the page under a sticky bar costs
	   every scrolled frame on phones, and at this opacity the blur was barely visible. */
	background: rgb(243 245 246 / 0.97);
	transition: translate 0.45s var(--ease), border-color 0.3s;
	view-transition-name: site-header;
}

.site-header[data-scrolled] {
	border-color: var(--line);
}

.site-header[data-hidden] {
	translate: 0 -100%;
}

body:has(dialog[open]) .site-header {
	translate: none;
}

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	max-width: var(--max);
	height: var(--header-h);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-header__start {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.site-header__end {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2px;
}

.brand {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ink);
}

.wordmark {
	display: block;
	width: auto;
	height: 34px;
	overflow: visible;
}

.custom-logo {
	width: auto;
	max-height: 46px;
}

.primary-nav__list {
	display: flex;
	gap: clamp(16px, 2.2vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav li {
	position: relative;
}

.primary-nav a {
	position: relative;
	display: block;
	padding-block: 8px;
	font-size: 15px;
	font-weight: 450;
	white-space: nowrap;
}

.primary-nav a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	width: 5px;
	height: 5px;
	margin-inline: auto;
	border-radius: 50%;
	background: var(--plum);
	scale: 0;
	transition: scale 0.3s var(--ease);
}

.primary-nav .current-menu-item > a::after,
.primary-nav .current-menu-ancestor > a::after,
.primary-nav a[aria-current="page"]::after {
	scale: 1;
}

@media (hover: hover) {
	.primary-nav a:hover::after {
		scale: 1;
	}
}

.primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: -18px;
	z-index: 5;
	min-width: 220px;
	margin: 0;
	padding: 10px;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--card);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	translate: 0 6px;
	transition: opacity 0.2s, translate 0.25s var(--ease), visibility 0.2s;
}

.primary-nav li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	translate: 0 0;
}

@media (hover: hover) {
	.primary-nav li:hover > .sub-menu {
		opacity: 1;
		visibility: visible;
		translate: 0 0;
	}
}

.primary-nav .sub-menu a {
	padding: 8px 12px;
	border-radius: 8px;
}

@media (hover: hover) {
	.primary-nav .sub-menu a:hover {
		background: var(--paper-2);
	}
}

.primary-nav .sub-menu a::after {
	display: none;
}

.bag-count {
	position: absolute;
	top: 4px;
	inset-inline-end: 2px;
	min-width: 19px;
	height: 19px;
	padding-inline: 5px;
	border-radius: 10px;
	background: var(--plum);
	color: var(--card);
	font-size: 11px;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
	transition: scale 0.3s var(--ease-out);
}

.bag-count[data-count="0"] {
	scale: 0;
}

.bag-count.is-bumped {
	animation: avgi-bump 0.5s var(--ease-out);
}

@keyframes avgi-bump {
	40% {
		scale: 1.35;
	}
}

.site-header--focused .site-header__inner {
	height: 64px;
}

.back-link,
.secure-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ink-2);
	font-size: 14px;
}

.back-link .icon,
.secure-label .icon {
	width: 18px;
	height: 18px;
}

/* On phones the way back is just an arrow: a 44px touch area around it. */
.back-link {
	position: relative;
}

.back-link::after {
	content: "";
	position: absolute;
	inset: -13px;
}

[dir="rtl"] .icon--back {
	transform: none;
}

[dir="ltr"] .icon--back {
	transform: scaleX(-1);
}

@media (max-width: 1023px) {
	.primary-nav,
	.account-link {
		display: none;
	}

	.wordmark {
		height: 30px;
	}
}

@media (min-width: 1024px) {
	.menu-toggle {
		display: none;
	}
}

@media (max-width: 560px) {
	.back-link span,
	.secure-label span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* Dialogs: drawers, search sheet ------------------------------------------ */

dialog {
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
}

dialog::backdrop {
	background: rgb(23 32 43 / 0.46);
	opacity: 0;
	transition: opacity 0.35s, overlay 0.35s allow-discrete, display 0.35s allow-discrete;
}

dialog[open]::backdrop {
	opacity: 1;
}

@starting-style {
	dialog[open]::backdrop {
		opacity: 0;
	}
}

.drawer {
	position: fixed;
	inset-block: 0;
	width: min(440px, 100vw);
	height: 100vh;
	height: 100dvh;
	margin: 0;
	background: var(--paper);
	box-shadow: var(--shadow);
	transition: translate 0.5s var(--ease-out), overlay 0.5s allow-discrete, display 0.5s allow-discrete;
}

.drawer[open] {
	display: flex;
	flex-direction: column;
}

.drawer--end {
	inset-inline: auto 0;
	translate: calc(100% * var(--dir)) 0;
}

.drawer--start {
	inset-inline: 0 auto;
	translate: calc(-100% * var(--dir)) 0;
}

.drawer[open] {
	translate: 0 0;
}

@starting-style {
	.drawer--end[open] {
		translate: calc(100% * var(--dir)) 0;
	}

	.drawer--start[open] {
		translate: calc(-100% * var(--dir)) 0;
	}
}

.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 14px 14px 24px;
	padding-inline: 24px 14px;
	border-bottom: 1px solid var(--line);
}

.drawer__title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: var(--step-1);
	font-weight: 500;
}

.drawer__title .bag-count {
	position: static;
}

.drawer__body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 24px;
}

/* Menu: the links, help & support and the contact links scroll as one, so a short phone
   screen never squeezes the links into a sliver. The contact links rest at the bottom. */
.drawer__scroll {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* Help & support in the menu: two columns of short links. */

.drawer__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding-block: 8px;
	color: var(--ink-2);
}

.drawer__link .icon {
	width: 20px;
	height: 20px;
}

/* Support phone line on the checkout and order pages. */
.support-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2px 8px;
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 14px;
	text-align: center;
}

.support-line .icon {
	flex: none;
	width: 18px;
	height: 18px;
}

.support-line a {
	position: relative;
	color: var(--ink);
	font-weight: 600;
	white-space: nowrap;
}

.support-line a::after {
	content: "";
	position: absolute;
	inset: -10px -6px;
}

/* Developer credit in the footer's bottom bar. */
.site-credit {
	color: rgb(243 245 246 / 0.55);
}

.site-credit a {
	color: rgb(243 245 246 / 0.8);
	text-decoration: underline;
	text-decoration-color: rgb(243 245 246 / 0.3);
	text-underline-offset: 4px;
}

.search-sheet {
	position: fixed;
	inset: 0 0 auto;
	width: 100%;
	max-height: min(88vh, 760px);
	max-height: min(88dvh, 760px);
	margin: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	background: var(--paper);
	box-shadow: var(--shadow);
	translate: 0 -100%;
	transition: translate 0.5s var(--ease-out), overlay 0.5s allow-discrete, display 0.5s allow-discrete;
}

.search-sheet[open] {
	translate: 0 0;
}

@starting-style {
	.search-sheet[open] {
		translate: 0 -100%;
	}
}

.search-sheet__inner {
	max-width: 1080px;
	margin-inline: auto;
	padding: 20px var(--gutter) 36px;
}

.search-sheet__form {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ink);
	transition: border-color 0.2s, box-shadow 0.2s;
}

/* The underline is the field here: it carries the focus, not a ring around the text. */
.search-sheet__form:focus-within {
	border-bottom-color: var(--plum);
	box-shadow: 0 1px 0 var(--plum);
}

/* The field takes the room that is left; the icon and the close button keep their size
   (on a 360px phone the close button was squeezed to 33px). */
.search-sheet__form > .icon,
.search-sheet__form > .icon-button {
	flex: none;
}

.search-sheet__form > .icon {
	width: 26px;
	height: 26px;
	color: var(--muted);
}

.search-sheet__form input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 64px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.2rem);
	font-weight: 300;
	box-shadow: none;
}

.search-sheet__form input[type="search"]:focus {
	box-shadow: none;
}

.search-sheet__form input[type="search"]::-webkit-search-cancel-button {
	display: none;
}

.search-sheet__body {
	padding-top: 24px;
}

.search-suggest .eyebrow {
	margin-bottom: 12px;
}

.search-results:empty {
	display: none;
}

.search-results__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 24px 0 14px;
}

.search-results__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.search-hit {
	display: grid;
	grid-template-columns: 72px 1fr;
	align-items: center;
	gap: 14px;
	padding: 8px;
	border-radius: 14px;
	transition: background-color 0.2s;
}

.search-hit:focus-visible {
	background: var(--paper-2);
}

@media (hover: hover) {
	.search-hit:hover {
		background: var(--paper-2);
	}
}

.search-hit__image {
	width: 72px;
	aspect-ratio: 1; /* Tezhano: square product photos */
	overflow: hidden;
	border-radius: 8px;
	background: var(--paper-2);
}

.search-hit__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.search-hit__name {
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
}

.search-hit__price {
	color: var(--muted);
	font-size: 13px;
}

.search-results__empty {
	margin: 24px 0 0;
	color: var(--muted);
}

@media (max-width: 760px) {
	.search-results__list {
		grid-template-columns: 1fr;
	}
}

/* Mini cart (inside the bag drawer) ---------------------------------------- */

.widget_shopping_cart_content {
	display: flex;
	flex: 1;
	min-height: 0;
	flex-direction: column;
}

.mini-cart {
	display: flex;
	flex: 1;
	min-height: 0;
	flex-direction: column;
}

.mini-cart .ship-progress {
	margin: 16px 24px 0;
}

.mini-cart__items {
	flex: 1;
	margin: 0;
	padding: 8px 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
}

.mini-cart__item {
	position: relative;
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 16px;
	padding-block: 18px;
	border-bottom: 1px solid var(--line);
	transition: opacity 0.3s;
}

.mini-cart__item.is-updating {
	opacity: 0.45;
	pointer-events: none;
}

.mini-cart__thumb {
	display: block;
	aspect-ratio: 1; /* Tezhano: square product photos */
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--paper-2);
}

.mini-cart__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mini-cart__info {
	display: grid;
	align-content: start;
	gap: 4px;
	min-width: 0;
	padding-inline-end: 28px;
}

.mini-cart__name {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
}

.mini-cart .variation,
.cart-item .variation,
.review-table .variation,
.wc-item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 6px;
	margin: 2px 0 0;
	padding: 0;
	color: var(--muted);
	font-size: 13px;
	list-style: none;
}

.variation dt,
.variation dd,
.wc-item-meta li,
.wc-item-meta p {
	margin: 0;
}

.variation dd p {
	display: inline;
	margin: 0;
}

.mini-cart__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
}

.mini-cart__price {
	font-size: 14px;
	font-weight: 600;
}

.mini-cart__remove {
	position: absolute;
	top: 14px;
	inset-inline-end: -6px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--muted);
	cursor: pointer;
}

@media (hover: hover) {
	.mini-cart__remove:hover {
		background: var(--paper-2);
		color: var(--ink);
	}
}

.mini-cart__remove .icon {
	width: 16px;
	height: 16px;
}

.mini-cart__footer {
	padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
	background: var(--card);
}

.mini-cart__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0 0 4px;
	font-size: 16px;
}

.mini-cart__total strong {
	font-weight: 500;
}

.mini-cart__total .amount {
	font-size: 18px;
	font-weight: 700;
}

.mini-cart__note {
	margin: 0 0 14px;
	color: var(--muted);
	font-size: 13px;
}

.mini-cart__buttons {
	display: grid;
	gap: 8px;
	margin: 0;
}

.mini-cart__buttons .button {
	width: 100%;
}

.mini-cart__buttons .button:not(.checkout) {
	order: 2;
	border-color: var(--line-strong);
	background: transparent;
	color: var(--ink);
}

.mini-cart__buttons .checkout {
	order: 1;
}

.mini-cart--empty {
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 40px 32px;
	text-align: center;
}

.mini-cart__empty-title {
	margin: 10px 0 0;
	font-size: var(--step-2);
	font-weight: 400;
}

.mini-cart__empty-text {
	max-width: 22em;
	color: var(--muted);
}

/* Quantity stepper ------------------------------------------------------ */

.qty-stepper {
	display: inline-flex;
	align-items: center;
	height: 56px;
	padding-inline: 4px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--card);
}

.qty-stepper__btn {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--ink);
	cursor: pointer;
	transition: background-color 0.2s;
}

@media (hover: hover) {
	.qty-stepper__btn:hover:not(:disabled) {
		background: rgb(23 32 43 / 0.07);
	}
}

.qty-stepper__btn:disabled {
	cursor: not-allowed;
	opacity: 0.35;
}

.qty-stepper__btn .icon {
	width: 17px;
	height: 17px;
}

/* The number inside has no border of its own: the whole stepper shows keyboard focus. */
.qty-stepper:focus-within {
	border-color: var(--ink);
	box-shadow: 0 0 0 4px rgb(31 79 224 / 0.14);
}

.qty-stepper input.qty {
	width: 2.8em;
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
}

.qty-stepper--sm {
	height: 38px;
	padding-inline: 2px;
}

.qty-stepper--sm .qty-stepper__btn {
	width: 32px;
	height: 32px;
}

.qty-stepper__value {
	min-width: 1.9em;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

.quantity:not(.qty-stepper) input.qty[type="hidden"] + * {
	display: none;
}

/* Free-shipping progress -------------------------------------------------- */

.ship-progress {
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--paper-2);
}

.ship-progress__text {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-size: 14px;
}

.ship-progress__text .icon {
	width: 20px;
	height: 20px;
	color: var(--plum);
}

.ship-progress__bar {
	display: block;
	height: 4px;
	overflow: hidden;
	border-radius: 2px;
	background: var(--paper-3);
}

.ship-progress__bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--plum);
	transition: inline-size 0.6s var(--ease-out);
}

.ship-progress.is-complete .ship-progress__bar span {
	background: var(--success);
}

/* Toast ---------------------------------------------------------------- */

.toast {
	position: fixed;
	z-index: 120;
	inset-inline: 0;
	bottom: calc(24px + env(safe-area-inset-bottom));
	display: flex;
	align-items: center;
	gap: 10px;
	width: max-content;
	max-width: calc(100vw - 32px);
	margin-inline: auto;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	box-shadow: var(--shadow);
	font-size: 14px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	translate: 0 16px;
	transition: opacity 0.3s var(--ease-out), translate 0.4s var(--ease-out), visibility 0s linear 0.4s;
}

.toast[hidden] {
	display: none;
}

.toast.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	translate: 0 0;
	transition-delay: 0s;
}

.toast.is-error {
	background: var(--danger);
}

/* Notices --------------------------------------------------------------- */

.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.notice-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	margin: 0 0 20px;
	padding: 14px 18px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: var(--paper-2);
	font-size: 15px;
	line-height: 1.8;
	list-style: none;
}

.woocommerce-message {
	background: var(--success-tint);
}

.woocommerce-error {
	display: block;
	padding-inline-start: 46px;
	background: var(--danger-tint);
	color: #5f1b1b;
	position: relative;
}

.woocommerce-error::before {
	content: "!";
	content: "!" / "";
	position: absolute;
	top: 15px;
	inset-inline-start: 16px;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--danger);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.woocommerce-error li {
	margin: 0;
}

.woocommerce-error li + li {
	margin-top: 4px;
}

.woocommerce-message::before,
.woocommerce-info::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background: var(--plum);
	-webkit-mask: var(--notice-icon) center / contain no-repeat;
	mask: var(--notice-icon) center / contain no-repeat;
}

.woocommerce-message {
	--notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 2.8 2.8L16.5 9.5'/%3E%3C/svg%3E");
}

.woocommerce-message::before {
	background: var(--success);
}

.woocommerce-info {
	--notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 7.8v.2'/%3E%3C/svg%3E");
}

.notice-card__text {
	flex: 1;
	min-width: 180px;
}

.notice-card__text a:not(.button),
.woocommerce-error a:not(.button) {
	text-decoration: underline;
}

.notice-card .button,
.woocommerce-message .button,
.woocommerce-info .button {
	min-height: 44px; /* a finger's target (was 38) */
	padding: 0 16px;
	font-size: 13px;
}

.notice-card__text .button {
	margin-inline-start: 10px;
	float: inline-end;
}

.demo_store {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 60;
	margin: 0;
	padding: 12px var(--gutter);
	background: var(--plum);
	color: var(--card);
	font-size: 14px;
	text-align: center;
}

.demo_store a {
	margin-inline-start: 12px;
	text-decoration: underline;
}

/* Empty states ---------------------------------------------------------- */

.empty-state {
	display: grid;
	justify-items: center;
	gap: 10px;
	max-width: 560px;
	margin-inline: auto;
	padding: clamp(48px, 8vw, 104px) 16px;
	text-align: center;
}

.empty-state__icon {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var(--plum-tint);
	color: var(--plum);
}

.empty-state__icon .icon {
	width: 30px;
	height: 30px;
}

.empty-state h2,
.empty-state h3 {
	margin: 0;
	font-size: var(--step-2);
	font-weight: 400;
}

.empty-state p {
	max-width: 30em;
	margin: 0 0 8px;
	color: var(--muted);
}

.empty-state .search-form {
	width: 100%;
	margin-block: 8px;
}

.empty-state--compact {
	padding-block: 48px;
}

/* Homepage -------------------------------------------------------------- */

.section {
	max-width: var(--max);
	margin-inline: auto;
	padding: clamp(72px, 10vw, 150px) var(--gutter) 0;
}

.section-head {
	margin-bottom: clamp(28px, 4vw, 56px);
}

.section-head--split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 32px;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	align-items: center;
	gap: clamp(32px, 5vw, 96px);
	max-width: var(--max);
	min-height: min(calc(100vh - var(--header-h) - 36px), 980px);
	min-height: min(calc(100svh - var(--header-h) - 36px), 980px);
	margin-inline: auto;
	padding: clamp(20px, 3vw, 48px) var(--gutter) 0;
}

.hero__copy {
	padding-block: clamp(16px, 5vw, 72px);
}

.hero__title {
	margin: 10px 0 30px;
	font-size: var(--step-5);
	font-weight: 200;
	line-height: 1.16;
	animation: avgi-breathe 1.5s 0.05s var(--ease-out) both;
}

.hero__lead {
	display: block;
}

.hero__mark {
	position: relative;
	display: inline-block;
	padding-inline: 0.1em;
	font-weight: 500;
}

.hero__circle {
	position: absolute;
	inset: -16% -18% -24% -16%;
	width: 134%;
	max-width: none;
	height: 140%;
	overflow: visible;
	pointer-events: none;
}

.hero__circle path {
	fill: none;
	stroke: var(--plum);
	stroke-width: 2.2;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: avgi-draw 1.5s 0.85s var(--ease-out) forwards;
}

.hero__text {
	max-width: 31em;
	margin: 0 0 36px;
	color: var(--ink-2);
	font-size: var(--step-1);
	line-height: 2.05;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 30px;
}

.hero__media {
	position: relative;
	justify-self: end;
	width: min(100%, 560px);
	margin: 0;
	isolation: isolate;
}

.arch {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--paper-2);
	clip-path: url("#avgi-arch");
}

.arch img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__arch img {
	animation: avgi-unveil 1.8s 0.1s var(--ease-out) both;
}

.hero__product {
	position: absolute;
	inset-inline-start: calc(-1 * clamp(12px, 3.4vw, 52px));
	bottom: 11%;
	max-width: 290px;
	animation: avgi-rise 1s 1.1s var(--ease-out) both;
}

.hero__product a {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0 16px;
	padding: 14px 18px;
	border-radius: 16px;
	background: rgb(251 249 246 / 0.95);
	box-shadow: var(--shadow);
	transition: translate 0.35s var(--ease);
}

@media (hover: hover) {
	.hero__product a:hover {
		translate: 0 -3px;
	}
}

.hero__product-label {
	grid-column: 1 / -1;
	color: var(--plum);
	font-size: 11px;
	font-weight: 700;
}

.hero__product-name {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7;
}

.hero__product-price {
	grid-column: 1;
	color: var(--muted);
	font-size: 13px;
}

.hero__product-price .price,
.hero__product-price del,
.hero__product-price ins {
	font-size: inherit;
}

.hero__product-icon {
	grid-row: 2 / 4;
	grid-column: 2;
	width: 20px;
	height: 20px;
}

@keyframes avgi-breathe {
	from {
		opacity: 0;
		translate: 0 22px;
	}
}

@keyframes avgi-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes avgi-unveil {
	from {
		opacity: 0.3;
		scale: 1.14;
	}
}

@keyframes avgi-rise {
	from {
		opacity: 0;
		translate: 0 18px;
	}
}

.marquee {
	margin-top: clamp(56px, 8vw, 110px);
	padding-block: 18px;
	overflow: hidden;
	border-block: 1px solid var(--line);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee__track {
	display: flex;
	width: max-content;
	animation: avgi-marquee 42s linear infinite;
}

.marquee.is-offscreen .marquee__track,
.marquee.is-held .marquee__track {
	animation-play-state: paused;
}

@media (hover: hover) {
	.marquee:hover .marquee__track {
		animation-play-state: paused;
	}
}

.marquee__run {
	display: flex;
	flex: none;
	align-items: center;
	gap: 40px;
	padding-inline-end: 40px;
	font-size: var(--step-2);
	font-weight: 250;
	white-space: nowrap;
}

.marquee .icon--sparkle {
	width: 16px;
	height: 16px;
	color: var(--plum);
}

@keyframes avgi-marquee {
	to {
		translate: calc(-50% * var(--dir)) 0;
	}
}

.categories__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: clamp(12px, 2vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-tile {
	display: grid;
	gap: 2px;
}

.cat-tile__media {
	margin-bottom: 16px;
}

.cat-tile__media img {
	transition: scale 1s var(--ease-out);
}

@media (hover: hover) {
	.cat-tile:hover .cat-tile__media img {
		scale: 1.05;
	}
}

.cat-tile__name {
	font-size: var(--step-1);
	font-weight: 500;
}

.cat-tile__count {
	color: var(--muted);
	font-size: var(--step--1);
}

.story {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	align-items: center;
	gap: clamp(32px, 7vw, 128px);
	isolation: isolate;
}

.story__media {
	margin: 0;
}

.story__copy {
	max-width: 34em;
}

.story__text {
	margin: 26px 0 32px;
	color: var(--ink-2);
	font-size: var(--step-1);
	line-height: 2.15;
}

.story__sign {
	margin: 40px 0 0;
	color: var(--muted);
}

.story__sign span {
	color: var(--plum);
	font-weight: 700;
}

.story__watermark {
	position: absolute;
	z-index: -1;
	inset-inline-end: var(--gutter);
	bottom: -0.32em;
	color: rgb(31 79 224 / 0.055);
	font-size: clamp(140px, 24vw, 360px);
	font-weight: 900;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}

.social__strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(8px, 1.4vw, 20px);
	margin: 0;
	padding: 0 0 clamp(16px, 3vw, 48px);
	list-style: none;
}

.social__frame:nth-child(even) {
	translate: 0 clamp(16px, 3vw, 48px);
}

.social__frame a {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--paper-2);
}

.social__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 1s var(--ease-out);
}

@media (hover: hover) {
	.social__frame a:hover img {
		scale: 1.06;
	}
}

.social__overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgb(23 32 43 / 0.3);
	color: #fff;
	opacity: 0;
	transition: opacity 0.3s;
}

.social__overlay .icon {
	width: 30px;
	height: 30px;
}

.social__frame a:focus-visible .social__overlay {
	opacity: 1;
}

@media (hover: hover) {
	.social__frame a:hover .social__overlay {
		opacity: 1;
	}
}

.home-content .entry-content {
	max-width: 780px;
	margin-inline: auto;
}

@media (max-width: 860px) {
	.hero {
		grid-template-columns: 1fr;
		min-height: 0;
		gap: 8px;
	}

	.hero__copy {
		padding-block: 28px 8px;
	}

	.hero__media {
		justify-self: center;
		width: min(100%, 480px);
		margin-top: 28px;
	}

	.hero__product {
		inset-inline-start: 10px;
		bottom: 10px;
		max-width: calc(100% - 20px);
	}

	.story {
		grid-template-columns: 1fr;
	}

	.story__media {
		max-width: 520px;
	}

	.categories__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.social__strip {
		grid-template-columns: repeat(4, 62vw);
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}

	.social__frame {
		scroll-snap-align: start;
	}

	.social__frame:nth-child(even) {
		translate: none;
	}
}

/* Product cards and grids -------------------------------------------------- */

.products:is(ul, ol) {
	--cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	gap: clamp(32px, 3.6vw, 56px) clamp(12px, 1.6vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.products[data-grid="large"],
html[data-grid="large"] .shop-main [data-product-grid] {
	--cols: 2;
}

ul.products::before,
ul.products::after {
	display: none;
}

.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.product-card__media {
	position: relative;
	aspect-ratio: 1; /* Tezhano: square product photos */
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--paper-2);
}

.product-card__image-link {
	display: block;
	height: 100%;
}

.product-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.6s var(--ease), scale 1.2s var(--ease-out);
}

.product-card__image--alt {
	opacity: 0;
}

/* Touch screens never hover: with no box, the lazy second photo is never downloaded. */
@media (hover: none) {
	.product-card__image--alt {
		display: none;
	}
}

@media (hover: hover) {
	.product-card:hover .product-card__image--alt {
		opacity: 1;
	}

	.product-card:hover .product-card__image {
		scale: 1.035;
	}
}

.badge {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	z-index: 2;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--card);
	color: var(--ink);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
}

.badge--sale {
	background: var(--plum);
	color: var(--card);
}

/* A card's badges stack in its top corner: sale or sold out, then the instalment badge.
   Taps pass through to the product link underneath. */
.product-card__badges {
	position: absolute;
	top: 12px;
	inset-inline: 12px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	container-type: inline-size;
	pointer-events: none;
}

.product-card__badges .badge {
	position: static;
}

/* «۴ قسط با دیجی‌پی» (inc/instalments.php): a quarter-filled circle — the first of four
   parts — and who lets you pay in instalments. Drawn, not a logo image: sharp on any screen. */
.pay-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding-block: 4px;
	padding-inline: 8px 11px;
	border-radius: 999px;
	background: rgb(251 249 246 / 0.96);
	box-shadow: 0 0 0 1px rgb(23 32 43 / 0.06), 0 8px 18px -10px rgb(23 32 43 / 0.45);
	color: var(--ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
	white-space: nowrap;
}

.pay-badge .icon {
	width: 15px;
	height: 15px;
	color: var(--plum);
	stroke-width: 2.4;
}

.pay-badge__text {
	min-width: 0;
	overflow: hidden;
}

.pay-badge__with {
	color: var(--muted);
	font-weight: 500;
}

/* Narrow cards (two to a row on small phones, side rows): the circle and «۴ قسط» say enough. */
@container (max-width: 118px) {
	.pay-badge__with {
		display: none;
	}
}

@container (max-width: 190px) {
	.pay-badge--multi .pay-badge__with {
		display: none;
	}
}

/* Under a card's price: «با قسط اول ۴۹۵٬۰۰۰ تومان»; the narrowest cards say «قسط اول ۴۹۵٬۰۰۰ تومان». */
.card-bnpl {
	margin: 1px 0 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.7;
	container-type: inline-size;
}

.card-bnpl .bnpl__money {
	color: var(--plum);
	font-weight: 700;
}

.card-bnpl__short {
	display: none;
}

@container (max-width: 145px) {
	.card-bnpl__long {
		display: none;
	}

	.card-bnpl__short {
		display: inline;
	}
}

/* The product page shows the instalment box under the price; on phones, where the photo
   fills the first screen, the photo carries the badge too (see the phone gallery rules). */
.product-gallery > .pay-badge {
	display: none;
}

.product-card__body {
	display: grid;
	gap: 2px;
	padding-top: 14px;
}

.product-card__title {
	margin: 0;
	font-size: 15px;
	font-weight: 450;
	line-height: 1.7;
}

.product-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	color: var(--ink-2);
	font-size: 14px;
}

.price del {
	color: var(--muted);
	font-size: 0.9em;
	text-decoration-thickness: 1px;
}

.price ins {
	color: var(--plum);
	font-weight: 700;
	text-decoration: none;
}

.woocommerce-Price-currencySymbol {
	margin-inline-start: 1px;
	font-size: 0.82em;
	font-weight: 400;
}

.quick-add {
	position: absolute;
	inset-inline: 10px;
	bottom: 10px;
	z-index: 3;
	padding: 10px 12px 12px;
	border-radius: 14px;
	background: rgb(251 249 246 / 0.97);
	box-shadow: var(--shadow);
	opacity: 0;
	translate: 0 14px;
	transition: opacity 0.3s var(--ease), translate 0.45s var(--ease);
}

.product-card:focus-within .quick-add {
	opacity: 1;
	translate: 0 0;
}

@media (hover: hover) {
	.product-card:hover .quick-add {
		opacity: 1;
		translate: 0 0;
	}
}

.quick-add__label {
	margin: 0 0 7px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.4;
}

.quick-add__sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.quick-add__size {
	min-width: 42px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--line-strong);
	border-radius: 9px;
	background: transparent;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

@media (hover: hover) {
	.quick-add__size:hover:not(:disabled) {
		border-color: var(--ink);
		background: var(--ink);
		color: var(--paper);
	}
}

.quick-add__size:disabled {
	color: var(--muted);
	text-decoration: line-through;
	cursor: not-allowed;
	opacity: 0.55;
}

.quick-add__size.is-done,
.quick-add__single.is-done {
	border-color: var(--success);
	background: var(--success);
	color: #fff;
}

.quick-add--single {
	padding: 6px;
}

.quick-add__single {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	height: 40px;
	border: 0;
	border-radius: 10px;
	background: var(--ink);
	color: var(--paper);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.quick-add__single .icon {
	width: 16px;
	height: 16px;
}

@media (max-width: 1100px) {
	.products:is(ul, ol) {
		--cols: 3;
	}
}

@media (max-width: 760px) {
	.products:is(ul, ol) {
		--cols: 2;
		gap: 30px 10px;
	}

	/* «You may also like» and other suggestion rows: one swipeable row with a peek of the
	   next card, instead of a grid that leaves a lone card on the last line. */
	:is(.related, .up-sells, .cross-sells, .cart-suggestions) .products:is(ul, ol) {
		grid-template-columns: none;
		grid-auto-columns: 44vw;
		grid-auto-flow: column;
		gap: 10px;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}

	:is(.related, .up-sells, .cross-sells, .cart-suggestions) .products:is(ul, ol)::-webkit-scrollbar {
		display: none;
	}

	:is(.related, .up-sells, .cross-sells, .cart-suggestions) .products > li {
		scroll-snap-align: start;
	}

	.products[data-grid="large"],
	html[data-grid="large"] .shop-main [data-product-grid] {
		--cols: 1;
	}

	.product-card__title {
		font-size: 14px;
	}

	.price {
		font-size: 13px;
	}

	.badge {
		top: 8px;
		inset-inline-start: 8px;
		padding: 2px 9px;
		font-size: 11px;
	}

	.product-card__badges {
		top: 8px;
		inset-inline: 8px;
		gap: 4px;
	}

	.pay-badge {
		gap: 5px;
		padding-block: 3px;
		padding-inline: 7px 9px;
		font-size: 11px;
	}

	.pay-badge .icon {
		width: 14px;
		height: 14px;
	}

	.card-bnpl {
		font-size: 11.5px;
	}
}

/* Catalog -------------------------------------------------------------- */

.shop-main,
.product-main {
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: 0;
	padding: 0;
	color: var(--muted);
	font-size: var(--step--1);
	list-style: none;
}

.breadcrumb a {
	padding-block: 10px;
}

.breadcrumb li + li::before {
	content: "/";
	content: "/" / "";
	margin-inline-end: 10px;
	opacity: 0.45;
}

@media (hover: hover) {
	.breadcrumb a:hover {
		color: var(--ink);
	}
}

.shop-hero {
	padding-block: clamp(20px, 3vw, 36px) clamp(18px, 3vw, 34px);
}

.shop-hero__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 16px;
}

.shop-hero__title {
	margin: 0;
	font-size: var(--step-5);
	font-weight: 200;
	line-height: 1.12;
}

.shop-hero__count {
	margin: 0;
	color: var(--muted);
}

.term-description,
.page-description {
	max-width: 46em;
	margin-top: 14px;
	color: var(--ink-2);
	font-size: var(--step-1);
	line-height: 2;
}

.term-description p:last-child,
.page-description p:last-child {
	margin-bottom: 0;
}

.category-nav {
	display: grid;
	gap: 10px;
	margin-bottom: 18px;
}

.shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 30px;
	padding-block: 12px;
	border-block: 1px solid var(--line);
}

.woocommerce-result-count {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.shop-toolbar__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sort-form {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.sort-form__label {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	font-weight: 400;
}

.grid-toggle {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
}

.grid-toggle button {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--muted);
	cursor: pointer;
}

.grid-toggle .icon {
	width: 18px;
	height: 18px;
}

.grid-toggle button[aria-pressed="true"] {
	background: var(--ink);
	color: var(--paper);
}

.woocommerce-pagination {
	display: flex;
	justify-content: center;
	margin-top: clamp(44px, 6vw, 80px);
}

.woocommerce-pagination ul,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 8px;
	border-radius: 999px;
	font-size: 15px;
	transition: background-color 0.2s;
}

.page-numbers.current {
	background: var(--ink);
	color: var(--paper);
}

@media (hover: hover) {
	a.page-numbers:hover {
		background: rgb(23 32 43 / 0.07);
	}
}

.page-numbers .icon {
	width: 18px;
	height: 18px;
}

@media (max-width: 640px) {
	.shop-toolbar {
		flex-wrap: wrap;
	}

	.woocommerce-result-count {
		display: none;
	}

	.shop-toolbar__actions {
		justify-content: space-between;
		width: 100%;
	}

	.sort-form__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* Product page ---------------------------------------------------------- */

.product-top {
	padding-block: 18px 22px;
}

.product-layout {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: start;
	gap: clamp(28px, 4.4vw, 88px);
}

.product-layout > section,
.product-layout > .related,
.product-layout > .up-sells {
	grid-column: 1 / -1;
}

.product-gallery {
	position: relative;
}

.product-gallery__track {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.product-gallery__track > * {
	min-width: 0;
}

.product-gallery__track > :first-child,
.product-gallery__track > :last-child:nth-child(even) {
	grid-column: 1 / -1;
}

.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image--placeholder {
	position: relative;
	aspect-ratio: 1; /* Tezhano: square product photos */
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--paper-2);
}

.woocommerce-product-gallery__image a {
	display: block;
	height: 100%;
	cursor: zoom-in;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image--placeholder img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-gallery__track > :first-child img {
	view-transition-name: product-photo;
}

.product-gallery .badge {
	top: 16px;
	inset-inline-start: 16px;
}

.product-gallery__nav {
	display: none;
}

.woocommerce-product-gallery__trigger {
	display: none;
}

.product-summary {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	padding-bottom: 32px;
}

.product-eyebrow {
	position: relative;
	display: inline-flex;
	margin: 0 0 4px;
	color: var(--plum);
}

.product-eyebrow::after {
	content: "";
	position: absolute;
	inset: -12px -10px;
}

.product_title {
	margin: 0 0 12px;
	font-size: var(--step-3);
	font-weight: 300;
	line-height: 1.32;
}

.product-summary .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	font-size: 13px;
}

.woocommerce-review-link {
	color: var(--muted);
	text-decoration: underline;
}

.product-summary > .price {
	margin: 0 0 6px;
	color: var(--ink);
	font-size: var(--step-1);
	font-weight: 500;
}

.woocommerce-product-details__short-description {
	margin: 18px 0 28px;
	color: var(--ink-2);
	line-height: 2;
}

.woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

.variations {
	display: grid;
	gap: 22px;
	margin-bottom: 14px;
}

.variation-field__head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 12px;
}

.variation-field__label {
	font-size: 14px;
	font-weight: 600;
}

.variation-field__value {
	color: var(--muted);
	font-size: 14px;
}

.variation-field__guide {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-block: -10px;
	margin-inline-start: auto;
	padding: 10px 0;
	border: 0;
	background: none;
	color: var(--ink-2);
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}

.variation-field__guide .icon {
	width: 18px;
	height: 18px;
}

.swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.swatch {
	position: relative;
	margin: 0;
	cursor: pointer;
}

/* The radio stays for keyboards and screen readers, but a tap lands on the visible swatch:
   iOS Safari treats a fully transparent control under the finger as hidden and may take the
   first tap for a hover instead of a click. */
.swatch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.swatch__label {
	display: grid;
	place-items: center;
	min-width: 56px;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: var(--card);
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

@media (hover: hover) {
	.swatch:hover .swatch__label {
		border-color: var(--ink);
	}
}

.swatch input:checked + .swatch__label {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

.swatch input:focus-visible + .swatch__label {
	outline: 2px solid var(--plum);
	outline-offset: 2px;
}

.swatch input:disabled,
.swatch.is-soldout input {
	cursor: not-allowed;
}

.swatch input:disabled + .swatch__label,
.swatch.is-soldout .swatch__label {
	background: linear-gradient(to top left, transparent calc(50% - 0.6px), var(--line-strong) 50%, transparent calc(50% + 0.6px)) var(--paper-2);
	color: var(--muted);
	border-color: var(--line);
}

/* Colour swatches (inc/variations.php): a round dot with the colour's name under it. */
.swatches--color {
	gap: 6px 4px;
}

.swatch--color .swatch__label {
	display: grid;
	justify-items: center;
	gap: 6px;
	min-width: 60px;
	height: auto;
	padding: 4px 2px 2px;
	border: 0;
	border-radius: 14px;
	background: none;
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.4;
}

.swatch__dot {
	display: block;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--swatch, var(--paper-2));
	box-shadow: inset 0 0 0 1px rgb(23 32 43 / 0.1);
	transition: box-shadow 0.2s var(--ease), scale 0.2s var(--ease);
}

.swatch__dot.is-light {
	box-shadow: inset 0 0 0 1px var(--line-strong);
}

.swatch--color input:checked + .swatch__label {
	border: 0;
	background: none;
	color: var(--ink);
	font-weight: 600;
}

.swatch--color input:checked + .swatch__label .swatch__dot {
	box-shadow: inset 0 0 0 1px rgb(23 32 43 / 0.1), 0 0 0 3px var(--paper), 0 0 0 4.5px var(--ink);
}

@media (hover: hover) {
	.swatch--color:hover .swatch__label {
		border: 0;
		color: var(--ink);
	}

	.swatch--color:hover .swatch__dot {
		scale: 1.06;
	}
}

.swatch--color input:focus-visible + .swatch__label {
	outline: none;
}

.swatch--color input:focus-visible + .swatch__label .swatch__dot {
	outline: 2px solid var(--plum);
	outline-offset: 5px;
}

.swatch--color.is-soldout .swatch__label,
.swatch--color input:disabled + .swatch__label {
	background: none;
	color: var(--muted);
}

.swatch--color.is-soldout .swatch__dot,
.swatch--color input:disabled + .swatch__label .swatch__dot {
	opacity: 0.5;
	background-image: linear-gradient(to top left, transparent calc(50% - 0.8px), var(--ink) 50%, transparent calc(50% + 0.8px));
}

/* Product cards: the colours a product comes in. */
.card-colors {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin: 8px 0 0;
}

.card-colors__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--swatch, var(--paper-2));
	box-shadow: inset 0 0 0 1px rgb(23 32 43 / 0.1);
}

.card-colors__dot.is-light {
	box-shadow: inset 0 0 0 1px var(--line-strong);
}

.card-colors__more {
	color: var(--muted);
	font-size: 12px;
	line-height: 1;
}

/* Quick add on cards: colours with their dot. */
.quick-add__size--color {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-inline: 8px 10px;
}

.quick-add__dot {
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--swatch, var(--paper-2));
	box-shadow: inset 0 0 0 1px rgb(23 32 43 / 0.12);
}

.quick-add__dot.is-light {
	box-shadow: inset 0 0 0 1px var(--line-strong);
}

.variation-field__select {
	max-width: 320px;
}

.js .variation-field__select {
	display: none;
}

.no-js .swatches {
	display: none;
}

.reset_variations {
	justify-self: start;
	color: var(--muted);
	font-size: 13px;
	text-decoration: underline;
}

.variation-hint {
	margin: 0 0 12px;
	color: var(--plum);
	font-size: 14px;
	font-weight: 500;
}

.variation-hint:empty {
	margin: 0;
}

.variations.is-shaking {
	animation: avgi-shake 0.45s var(--ease);
}

@keyframes avgi-shake {
	20%,
	60% {
		translate: 6px 0;
	}

	40%,
	80% {
		translate: -6px 0;
	}
}

.single_variation_wrap .woocommerce-variation {
	margin-bottom: 14px;
}

.woocommerce-variation-price .price {
	font-size: var(--step-1);
}

.woocommerce-variation-description p {
	color: var(--ink-2);
}

.stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	color: var(--ink-2);
	font-size: 14px;
}

.stock::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--success);
}

.stock.out-of-stock::before {
	background: var(--danger);
}

.stock.available-on-backorder::before {
	background: var(--warning);
}

.buy-row {
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.buy-row .quantity {
	flex: none;
}

.buy-row .single_add_to_cart_button {
	flex: 1;
	min-height: 56px;
}

.single_add_to_cart_button.disabled {
	opacity: 1;
	cursor: pointer;
}

/* WooCommerce adds a «View cart» link after any button that adds to the bag. The bag opens
   instead, and the link would push the button row wider than a phone screen. */
.added_to_cart.wc-forward {
	display: none !important;
}

/* A newly chosen colour's photo arrives with a soft fade (product.js). */
.woocommerce-product-gallery img.is-new {
	animation: avgi-photo-in 0.55s var(--ease-out);
}

@keyframes avgi-photo-in {
	from {
		opacity: 0.2;
		scale: 1.03;
	}
}

.single_add_to_cart_button.wc-variation-is-unavailable {
	opacity: 0.45;
	cursor: not-allowed;
}

.single_add_to_cart_button .icon {
	width: 20px;
	height: 20px;
}

.service-notes {
	display: grid;
	gap: 8px;
	margin: 22px 0 0;
	padding: 18px 20px;
	border-radius: 14px;
	background: var(--paper-2);
	list-style: none;
	font-size: 14px;
}

.service-notes li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.service-notes .icon {
	width: 18px;
	height: 18px;
	margin-top: 4px;
	color: var(--plum);
}

.product-summary > .woocommerce-info,
.product-summary > p.woocommerce-info {
	margin-top: 8px;
}

.product-accordion {
	margin-top: 34px;
	border-top: 1px solid var(--line);
}

.product-accordion__item {
	border-bottom: 1px solid var(--line);
}

.product-accordion__item::details-content {
	block-size: 0;
	overflow: hidden;
	transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete;
}

.product-accordion__item[open]::details-content {
	block-size: auto;
}

.product-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 18px;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}

.product-accordion__summary::-webkit-details-marker {
	display: none;
}

.product-accordion__summary .icon {
	width: 18px;
	height: 18px;
	transition: rotate 0.35s var(--ease);
}

.product-accordion__item[open] > .product-accordion__summary .icon {
	rotate: 45deg;
}

.product-accordion__panel {
	padding-bottom: 24px;
	color: var(--ink-2);
	font-size: 15px;
	line-height: 2;
}

.woocommerce-product-attributes,
.shop_attributes {
	width: 100%;
	margin: 0 0 14px;
	border-collapse: collapse;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
	text-align: start;
	vertical-align: top;
}

.woocommerce-product-attributes th {
	width: 38%;
	color: var(--muted);
	font-weight: 500;
}

.woocommerce-product-attributes td p {
	margin: 0;
}

.related,
.up-sells {
	margin-top: clamp(72px, 9vw, 130px);
}

.related > h2,
.up-sells > h2,
.cross-sells > h2 {
	margin-bottom: clamp(24px, 3vw, 40px);
	font-size: var(--step-3);
	font-weight: 300;
}

@media (max-width: 899px) {
	.product-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	/* The photos sit above the summary on a phone. Colours and the buy button come straight
	   after the title, the price and the instalment box under it, so the photos are still in
	   view when a colour is tapped; the short description follows the button. */
	.product-summary {
		display: flex;
		flex-direction: column;
	}

	.product-summary > * {
		order: 3;
	}

	.product-summary > :is(.product-eyebrow, .product_title, .woocommerce-product-rating, .price, .bnpl) {
		order: 0;
	}

	.product-summary > :is(form.cart, .stock) {
		order: 1;
	}

	.product-summary > .woocommerce-product-details__short-description {
		order: 2;
	}

	.product-summary > .bnpl {
		margin-bottom: 22px;
	}

	.product-layout__gallery {
		margin-inline: calc(-1 * var(--gutter));
	}

	.product-gallery__track {
		display: flex;
		gap: 0;
		padding-inline: 0;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 0;
		scrollbar-width: none;
	}

	.product-gallery__track::-webkit-scrollbar {
		display: none;
	}

	.product-gallery__track > * {
		flex: 0 0 100%;
		border-radius: 0;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.product-gallery .badge {
		inset-inline-start: var(--gutter);
	}

	.product-gallery:has(.product-gallery__nav) .badge {
		top: 44px;
	}

	/* In the top corner, under the photo counter and any sale badge: the photo's lower edge
	   is behind the dock on the first screen. */
	.product-gallery > .pay-badge {
		position: absolute;
		z-index: 2;
		top: 16px;
		inset-inline-start: var(--gutter);
		display: inline-flex;
		max-width: calc(100% - 2 * var(--gutter));
		pointer-events: none;
	}

	.product-gallery:has(.product-gallery__nav) > .pay-badge {
		top: 44px;
	}

	.product-gallery > .badge ~ .pay-badge {
		top: 46px;
	}

	.product-gallery:has(.product-gallery__nav) > .badge ~ .pay-badge {
		top: 74px;
	}

	.product-gallery__nav {
		position: absolute;
		z-index: 2;
		inset-inline: var(--gutter);
		top: 12px;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 0;
		pointer-events: none;
	}

	.product-gallery__counter {
		flex: none;
		padding: 1px 10px;
		border-radius: 999px;
		background: rgb(23 32 43 / 0.7);
		color: #fff;
		font-size: 12px;
		line-height: 1.8;
	}

	.product-gallery__dots {
		display: flex;
		flex: 1;
		gap: 4px;
		pointer-events: auto;
	}

	.product-gallery__dot {
		position: relative;
		flex: 1;
		height: 28px;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}

	.product-gallery__dot::before {
		content: "";
		position: absolute;
		inset-inline: 0;
		top: 50%;
		height: 3px;
		border-radius: 2px;
		background: rgb(255 255 255 / 0.45);
		box-shadow: 0 0 0 0.5px rgb(23 32 43 / 0.12);
		translate: 0 -50%;
		transition: background-color 0.3s;
	}

	.product-gallery__dot[aria-current="true"]::before {
		background: #fff;
	}

	.product-gallery__dot::after {
		content: "";
		position: absolute;
		inset: -6px 0;
	}

	.product-summary {
		position: static;
	}
}

/* Tablets in portrait (600–899px) and phones on their side: a photo the full width of the
   screen would be taller than the screen and push the name, price and buy button out of sight
   (on a phone on its side not even the garment would show). Two thirds of the width at most and
   never taller than the screen under the header, the next photo peeking in beside it. */
@media (min-width: 600px) and (max-width: 899px), (max-width: 899px) and (max-height: 500px) {
	.product-gallery__track {
		gap: 8px;
		padding-inline: var(--gutter);
		scroll-padding-inline: var(--gutter);
	}

	.product-gallery__track > * {
		flex-basis: 66%;
		flex-basis: min(66%, calc((100svh - var(--header-h) - 24px) * 0.8));
		border-radius: var(--radius);
	}

	.product-gallery__track > :only-child {
		margin-inline: auto;
	}

	/* Counter, dots and badges stay on the photo in front, clear of its rounded corner. The
	   photo is as wide as above; here 100% is the whole gallery, so 66% − 1.32 × gutter is the
	   same 66% of the track inside its gutters. */
	.product-gallery__nav {
		inset-inline: calc(var(--gutter) + 12px) calc(34% + 0.32 * var(--gutter) + 12px);
		inset-inline-end: calc(100% - var(--gutter) - min(66% - 1.32 * var(--gutter), (100svh - var(--header-h) - 24px) * 0.8) + 12px);
	}

	.product-gallery .badge,
	.product-gallery > .pay-badge {
		inset-inline-start: calc(var(--gutter) + 12px);
	}
}

/* Star ratings and reviews ----------------------------------------------- */

.star-rating {
	position: relative;
	display: inline-block;
	width: 5.4em;
	height: 1.08em;
	overflow: hidden;
	font-size: 15px;
	line-height: 1;
	vertical-align: middle;
}

.star-rating::before,
.star-rating span::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 5.4em;
	-webkit-mask: var(--star) 0 0 / 1.08em 1.08em repeat-x;
	mask: var(--star) 0 0 / 1.08em 1.08em repeat-x;
}

.star-rating::before {
	background: var(--line-strong);
}

.star-rating span {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	overflow: hidden;
	color: transparent;
	font-size: 0;
}

.star-rating span::before {
	background: var(--plum);
	font-size: 15px;
}

p.stars {
	margin: 4px 0 14px;
}

p.stars span {
	display: inline-flex;
	gap: 0;
}

p.stars a {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 40px;
	font-size: 0;
}

p.stars a::before {
	content: "";
	position: absolute;
	inset: 5px;
	background: var(--line-strong);
	-webkit-mask: var(--star) center / contain no-repeat;
	mask: var(--star) center / contain no-repeat;
	transition: background-color 0.15s;
}

p.stars.selected a::before {
	background: var(--plum);
}

@media (hover: hover) {
	p.stars:hover a::before {
		background: var(--plum);
	}
}

p.stars.selected a.active ~ a::before {
	background: var(--line-strong);
}

@media (hover: hover) {
	p.stars:hover a:hover ~ a::before,
	p.stars.selected:hover a:hover ~ a::before {
		background: var(--line-strong);
	}
}

@media (hover: hover) {
	p.stars.selected:hover a:not(:hover ~ a)::before {
		background: var(--plum);
	}
}

.reviews__summary {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 18px;
	padding: 18px 20px;
	border-radius: 14px;
	background: var(--paper-2);
}

.reviews__average {
	font-size: 2.6rem;
	font-weight: 300;
	line-height: 1;
}

.reviews__count {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 13px;
}

.reviews__list,
.commentlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.reviews__list .review,
.commentlist > li {
	padding-block: 16px;
	border-bottom: 1px solid var(--line);
}

.comment_container {
	display: flex;
	gap: 14px;
}

.review-initial {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--plum-tint);
	color: var(--plum);
	font-weight: 700;
}

.comment-text {
	flex: 1;
	min-width: 0;
}

.comment-text .star-rating {
	float: inline-end;
	font-size: 13px;
}

.comment-text .star-rating span::before {
	font-size: 13px;
}

.comment-text .meta {
	margin: 0 0 6px;
	color: var(--muted);
	font-size: 13px;
}

.woocommerce-review__author {
	color: var(--ink);
	font-weight: 600;
}

.woocommerce-review__dash {
	opacity: 0.5;
}

.comment-text .description p {
	margin: 0;
}

.reviews__empty {
	color: var(--muted);
}

.reviews__form {
	margin-top: 24px;
}

.comment-reply-title {
	display: block;
	margin-bottom: 12px;
	font-size: var(--step-1);
	font-weight: 500;
}

.comment-form p {
	margin: 0 0 14px;
}

.comment-form-rating label,
.comment-form label {
	display: block;
}

.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

/* Content pages, journal, 404 ---------------------------------------------- */

.content-page,
.archive-page {
	max-width: var(--max);
	margin-inline: auto;
	padding: clamp(24px, 4vw, 56px) var(--gutter) 0;
}

.entry {
	max-width: 780px;
	margin-inline: auto;
}

.entry__head {
	margin-bottom: clamp(24px, 4vw, 48px);
	text-align: center;
}

.entry__title {
	margin: 0;
	font-size: var(--step-4);
	font-weight: 250;
	line-height: 1.25;
}

.entry__media {
	margin: 0 0 40px;
	overflow: hidden;
	border-radius: var(--radius-lg);
}

.entry__media img {
	display: block;
	width: 100%;
}

.entry-content {
	font-size: 17px;
	line-height: 2.1;
}

.entry-content > * + * {
	margin-top: 1.1em;
}

.entry-content h2 {
	margin-top: 2em;
	font-size: var(--step-2);
	font-weight: 500;
}

.entry-content h3 {
	margin-top: 1.6em;
	font-size: var(--step-1);
	font-weight: 600;
}

.entry-content a {
	text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
	padding-inline-start: 1.4em;
}

.entry-content blockquote {
	margin-inline: 0;
	padding-inline-start: 22px;
	border-inline-start: 2px solid var(--plum);
	color: var(--ink-2);
	font-size: var(--step-1);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: start;
}

.entry-content th {
	color: var(--muted);
	font-weight: 600;
}

.entry-content .wp-block-table {
	margin-inline: 0;
	overflow-x: auto;
}

.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
	border: 0;
	border-bottom: 1px solid var(--line);
}

.entry-content .wp-block-table thead {
	border: 0;
	border-bottom: 1px solid var(--line-strong);
}

.entry-content .wp-block-table tbody tr:nth-child(odd) {
	background: rgb(23 32 43 / 0.025);
}

.entry-content img {
	border-radius: var(--radius);
}

.entry-content .alignwide {
	max-width: none;
	margin-inline: min(0px, (100% - min(1100px, 100vw - 2 * var(--gutter))) / 2);
}

.drawer .entry-content :is(.alignwide, .alignfull) {
	max-width: 100%;
	margin-inline: 0;
}

.entry-content .alignfull {
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

/* Information pages: terms, privacy, returns, delivery, guide, FAQ, about, contact
   (inc/info-pages.php, template-parts/info/page.php). */

.info-main {
	padding-top: clamp(12px, 3vw, 40px);
}

.info-page {
	max-width: 1120px;
	margin-inline: auto;
}

.info-hero {
	display: grid;
	gap: 28px;
	align-items: center;
	margin-bottom: clamp(24px, 5vw, 56px);
	padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 64px);
	border-radius: var(--radius-lg);
	background: var(--paper-2);
}

.info-hero__eyebrow {
	margin-bottom: 10px;
	color: var(--plum);
}

.info-hero__title {
	margin: 0;
	font-size: var(--step-4);
	font-weight: 300;
	line-height: 1.3;
}

.info-hero__summary {
	max-width: 62ch;
	margin: 18px 0 0;
	color: var(--ink-2);
	font-size: var(--step-1);
	line-height: 2;
}

.info-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 22px 0 0;
	color: var(--muted);
	font-size: 13px;
}

.info-hero__meta > span,
.info-hero__print {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 4px 12px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--card);
	color: var(--ink-2);
	font: inherit;
	font-size: 13px;
}

.info-hero__print {
	cursor: pointer;
}

.info-hero__print .icon {
	width: 16px;
	height: 16px;
}

.info-hero__media {
	width: min(100%, 380px);
	margin: 0 auto;
}

@media (min-width: 860px) {
	.info-hero--media {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	}
}

.info-layout {
	display: grid;
	gap: 24px;
}

.info-content {
	max-width: 72ch;
	font-size: 16.5px;
}

/* Section headings and lists of the page text only (not those inside forms or widgets). */
.info-content > h2 {
	margin-top: 1.6em;
	padding-top: 1.4em;
	border-top: 1px solid var(--line);
	scroll-margin-top: calc(var(--header-h) + 24px);
}

.info-content > h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

:is(.info-content, .faq-item__answer) > ul {
	padding-inline-start: 0;
	list-style: none;
}

:is(.info-content, .faq-item__answer) > ul > li {
	position: relative;
	padding-inline-start: 22px;
}

:is(.info-content, .faq-item__answer) > ul > li::before {
	position: absolute;
	inset-inline-start: 4px;
	top: 0.95em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--plum);
	content: "";
}

:is(.info-content, .faq-item__answer) > :is(ul, ol) > li + li {
	margin-top: 0.5em;
}

.info-content a {
	color: var(--plum);
	text-decoration-color: rgb(31 79 224 / 0.35);
	text-underline-offset: 4px;
}

.info-content strong {
	color: var(--ink);
	font-weight: 700;
}

/* Table of contents: folded on phones, sticky beside the text on wide screens. */
.info-toc {
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--card);
}

.info-toc__summary {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 18px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.info-toc__summary::-webkit-details-marker {
	display: none;
}

.info-toc__count {
	color: var(--muted);
	font-size: 13px;
	font-weight: 400;
}

.info-toc__chevron {
	width: 18px;
	height: 18px;
	margin-inline-start: auto;
	transition: rotate 0.25s var(--ease);
}

.info-toc[open] .info-toc__chevron {
	rotate: 180deg;
}

.info-toc__list {
	max-height: min(60vh, 520px);
	margin: 0;
	padding: 0 8px 10px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	counter-reset: toc;
}

.info-toc__list li {
	counter-increment: toc;
}

.info-toc__list a {
	display: flex;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.7;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.info-toc__list a::before {
	min-width: 1.4em;
	color: var(--muted);
	content: counter(toc, persian);
}

.info-toc__list a[aria-current="true"] {
	background: var(--plum-tint);
	color: var(--plum);
	font-weight: 600;
}

@media (hover: hover) {
	.info-toc__list a:hover {
		background: var(--paper-2);
	}
}

@media (min-width: 1024px) {
	.info-layout.has-toc {
		grid-template-columns: 290px minmax(0, 1fr);
		gap: 56px;
		align-items: start;
	}

	.info-toc {
		position: sticky;
		top: calc(var(--header-h) + 24px);
	}
}

/* FAQ: answers open in place. */
.faq-item {
	border-bottom: 1px solid var(--line);
}

.info-content .faq-item {
	margin-top: 0;
}

.faq-item__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 14px 2px;
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.8;
	list-style: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.faq-item__question::-webkit-details-marker {
	display: none;
}

.faq-item__icon {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--plum);
	transition: rotate 0.25s var(--ease);
}

.faq-item[open] .faq-item__icon {
	rotate: 45deg;
}

.faq-item__answer {
	padding: 0 2px 18px;
	color: var(--ink-2);
}

.faq-item__answer > * + * {
	margin-top: 0.8em;
}

/* Help, and the other pages. */
.info-help {
	display: grid;
	gap: 18px;
	align-items: center;
	margin-top: clamp(40px, 6vw, 72px);
	padding: clamp(22px, 4vw, 36px);
	border-radius: var(--radius-lg);
	background: var(--ink);
	color: rgb(243 245 246 / 0.78);
}

.info-help__title {
	margin: 0 0 6px;
	color: var(--paper);
	font-size: var(--step-2);
	font-weight: 500;
}

.info-help__text {
	margin: 0;
	line-height: 1.9;
}

.info-help__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.info-help__actions .button {
	gap: 8px;
}

.info-help__actions .button .icon {
	width: 18px;
	height: 18px;
}

.info-help .button--primary {
	background: var(--paper);
	color: var(--ink);
}

.info-help .button--ghost {
	border-color: rgb(243 245 246 / 0.4);
	background: transparent;
	color: var(--paper);
}

@media (max-width: 559px) {
	.info-help__actions {
		display: grid;
	}

	.info-help__actions .button {
		width: 100%;
	}
}

@media (min-width: 860px) {
	.info-help {
		grid-template-columns: minmax(0, 1fr) auto;
	}
}

.info-related {
	margin-top: clamp(40px, 6vw, 72px);
}

.info-related__title {
	margin: 0 0 16px;
	font-size: var(--step-2);
	font-weight: 500;
}

.info-related__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.info-card {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--card);
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.2s;
}

.info-card__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--plum-tint);
	color: var(--plum);
}

.info-card__icon .icon {
	width: 22px;
	height: 22px;
}

.info-card__text {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.info-card__text strong {
	font-size: 15px;
	font-weight: 600;
}

.info-card__text span {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.7;
}

.info-card__arrow {
	flex: none;
	width: 18px;
	height: 18px;
	margin-inline-start: auto;
	color: var(--muted);
}

@media (hover: hover) {
	.info-card:hover {
		border-color: var(--ink);
	}
}

.info-page--contact-us .info-layout {
	display: block;
}

.info-page--contact-us .info-content {
	max-width: none;
}

.info-page--contact-us .info-content > p {
	max-width: 72ch;
}

/* Wide screens: the ways to reach us beside the form. */
@media (min-width: 1024px) {
	.info-page--contact-us .contact {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		align-items: start;
		max-width: none;
	}

	.info-page--contact-us .contact__channels {
		grid-template-columns: minmax(0, 1fr);
	}

	.info-page--contact-us .contact__form {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
}

@media print {
	.site-header,
	.site-footer,
	.dock,
	.announcement,
	.info-toc,
	.info-help,
	.info-related,
	.info-hero__print {
		display: none !important;
	}

	.info-hero {
		padding: 0;
		background: none;
	}

	.info-layout {
		display: block;
	}
}

.page-hero {
	max-width: 780px;
	margin: 0 auto clamp(36px, 5vw, 64px);
	text-align: center;
}

.page-hero__title {
	margin: 0;
	font-size: var(--step-4);
	font-weight: 250;
}

.page-hero__text {
	margin-top: 12px;
	color: var(--ink-2);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 28px);
}

.post-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	margin-bottom: 16px;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--paper-2);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 1s var(--ease-out);
}

@media (hover: hover) {
	.post-card:hover .post-card__media img {
		scale: 1.04;
	}
}

.post-card__date {
	margin: 0 0 4px;
	color: var(--muted);
	font-size: 13px;
}

.post-card__title {
	margin: 0 0 8px;
	font-size: var(--step-1);
	font-weight: 500;
}

.post-card__excerpt {
	color: var(--ink-2);
	font-size: 15px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	max-width: 780px;
	margin: 56px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.post-navigation a {
	display: grid;
}

.post-navigation .nav-next {
	text-align: end;
}

.comments {
	max-width: 780px;
	margin: 64px auto 0;
}

.comment-list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.comment-list .comment-body {
	padding-block: 16px;
	border-bottom: 1px solid var(--line);
}

.comment-meta {
	color: var(--muted);
	font-size: 13px;
}

.not-found {
	display: grid;
	place-items: center;
	min-height: 70vh;
	padding: 40px var(--gutter);
	text-align: center;
}

.not-found__inner {
	display: grid;
	justify-items: center;
	gap: 14px;
	max-width: 560px;
}

.not-found__code {
	margin: 0;
	color: var(--plum);
	font-size: clamp(5rem, 3rem + 10vw, 11rem);
	font-weight: 100;
	line-height: 1;
}

.not-found__title {
	margin: 0;
	font-size: var(--step-3);
	font-weight: 300;
}

.not-found__text {
	color: var(--muted);
}

.not-found .search-form {
	width: 100%;
}

.not-found__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px 28px;
	margin-top: 12px;
}

@media (max-width: 860px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.post-grid {
		grid-template-columns: 1fr;
	}
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
	margin-top: clamp(96px, 13vw, 200px);
	overflow: hidden;
	background: var(--ink);
	color: rgb(243 245 246 / 0.74);
	font-size: 15px;
}

.site-footer a {
	color: var(--paper);
	transition: color 0.2s;
}

@media (hover: hover) {
	.site-footer a:hover {
		color: var(--plum-light);
	}
}

.newsletter {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 20px 48px;
	align-items: center;
	max-width: var(--max);
	margin-inline: auto;
	padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(32px, 4vw, 48px);
	border-bottom: 1px solid rgb(243 245 246 / 0.12);
}

.newsletter__title {
	margin: 0 0 6px;
	color: var(--paper);
	font-size: var(--step-2);
	font-weight: 500;
}

.newsletter__text p {
	margin: 0;
}

.newsletter__field {
	display: flex;
	gap: 8px;
	padding: 6px;
	border: 1px solid rgb(243 245 246 / 0.24);
	border-radius: 999px;
	background: rgb(243 245 246 / 0.06);
	transition: border-color 0.2s;
}

.newsletter__field:focus-within {
	border-color: rgb(243 245 246 / 0.6);
}

.newsletter__field input[type="email"] {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 0 16px;
	border: 0;
	background: transparent;
	color: var(--paper);
	text-align: left;
	box-shadow: none;
}

.newsletter__field input[type="email"]::placeholder {
	color: rgb(243 245 246 / 0.45);
}

.newsletter__field input[type="email"]:focus {
	box-shadow: none;
}

.newsletter__button {
	flex: none;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s;
}

.newsletter__button:disabled {
	opacity: 0.6;
}

.newsletter__trap {
	position: absolute;
	inset-inline-start: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.newsletter__message {
	margin: 10px 4px 0;
	color: var(--paper);
	font-size: 14px;
}

.newsletter__message.is-error {
	color: var(--plum-light);
}

.newsletter__fine {
	margin: 10px 4px 0;
	color: rgb(243 245 246 / 0.55);
	font-size: 13px;
}

.newsletter__fine a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 720px) {
	.newsletter {
		grid-template-columns: minmax(0, 1fr);
	}

	.newsletter__button {
		padding: 0 18px;
	}
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0 18px;
	margin: -8px 0;
	padding: 0;
	list-style: none;
}

/* The line of text was the whole target (20px tall): padded to a comfortable tap, with the
   list's negative margin keeping the footer's spacing as it was. */
.site-footer__legal a {
	display: inline-block;
	padding-block: 8px;
	color: rgb(243 245 246 / 0.7);
	text-decoration: underline;
	text-decoration-color: rgb(243 245 246 / 0.3);
	text-underline-offset: 4px;
}

/* Contact page ([avgi_contact], avgi-commerce). */
.contact {
	display: grid;
	gap: 28px;
	max-width: 880px;
	margin-inline: auto;
}

.contact__channels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact__channel {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 76px;
	padding: 14px 18px;
	border: 1px solid var(--line-strong);
	border-radius: 16px;
	background: var(--card);
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.contact__channel,
.contact__channel *,
.entry-content .contact__channel {
	color: inherit;
	text-decoration: none;
}

.entry-content .contact__channel {
	color: var(--ink);
}

.contact__channel .icon {
	flex: none;
	width: 26px;
	height: 26px;
	color: var(--plum);
}

.contact__channel span {
	display: grid;
	gap: 2px;
	color: var(--muted);
	font-size: 14px;
}

.contact__channel strong {
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
}

@media (hover: hover) {
	.contact__channel:hover {
		border-color: var(--ink);
	}
}

.contact__address {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	color: var(--ink-2);
	font-style: normal;
	line-height: 2;
}

.contact__address .icon {
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 5px;
	color: var(--plum);
}

.contact__form {
	padding: clamp(20px, 4vw, 36px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--card);
}

.contact__title,
.entry-content .contact__title {
	margin: 0 0 6px;
	font-size: var(--step-2);
}

.contact__hint {
	margin: 0 0 20px;
	color: var(--muted);
	font-size: 14px;
}

.contact__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

@media (max-width: 640px) {
	.contact__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.contact__trap {
	position: absolute;
	inset-inline-start: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.contact__message {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--success-tint);
	color: var(--success);
}

.contact__message.is-error {
	background: var(--danger-tint);
	color: var(--danger);
}

.contact__submit {
	width: 100%;
}

/* Newsletter confirmation and unsubscribe pages (avgi-commerce). */
.email-status {
	display: grid;
	place-items: center;
	min-height: 52vh;
	padding: clamp(40px, 8vw, 96px) var(--gutter);
}

.email-status__card {
	width: min(520px, 100%);
	padding: clamp(28px, 5vw, 44px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--card);
	text-align: center;
}

.email-status__title {
	margin: 0 0 12px;
	font-size: var(--step-2);
}

.email-status__text {
	margin: 0 0 24px;
	color: var(--ink-2);
	line-height: 2;
}

.email-status__form {
	margin: 0 0 12px;
}

.email-status__form .button,
.email-status__links .button {
	width: 100%;
}

.email-status__links {
	margin: 0;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
	gap: 40px;
	max-width: var(--max);
	margin-inline: auto;
	padding: clamp(56px, 7vw, 100px) var(--gutter) 28px;
}

.footer-brand__mark {
	display: inline-flex;
	margin-bottom: 18px;
}

.footer-brand__mark .wordmark {
	height: 44px;
	color: var(--paper);
}

.footer-brand__tagline {
	margin: 0;
	color: var(--paper);
	font-size: var(--step-1);
}

.footer-col__title {
	margin: 0 0 16px;
	color: rgb(243 245 246 / 0.6);
	font-size: 13px;
	font-weight: 600;
}

.footer-links {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

/* Touch screens of any width (tablets too): finger-sized footer and reassurance links. */
@media (pointer: coarse) {
	.footer-links {
		gap: 0;
	}

	.footer-links a {
		min-height: 40px;
	}

	.assurances a {
		min-height: 40px;
	}
}

/* Phones: finger-sized footer links, same rhythm as before. */
@media (max-width: 760px) {
	.footer-links {
		gap: 0;
	}

	.footer-links a {
		min-height: 40px;
	}

	/* Contact details get the full width so the phone number stays on one line, with the
	   trust seal beside them instead of below. */
	.site-footer__grid > .footer-col:last-child {
		display: grid;
		grid-column: 1 / -1;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: start;
		column-gap: 16px;
	}

	.site-footer__grid > .footer-col:last-child > * {
		grid-column: 1;
	}

	.site-footer__grid > .footer-col:last-child > .footer-col__title {
		grid-column: 1 / -1;
	}

	.site-footer__grid > .footer-col:last-child > .trust-seals {
		grid-row: 2 / span 2;
		grid-column: 2;
		margin-top: 0;
	}

	/* The brand's three links share one row, so no column is left half empty. */
	.site-footer__grid > .footer-col--inline {
		grid-column: 1 / -1;
	}

	.footer-col--inline .footer-links {
		display: flex;
		flex-wrap: wrap;
		column-gap: 28px;
	}

}

.footer-links--contact bdi {
	white-space: nowrap;
}

.footer-links .icon {
	width: 18px;
	height: 18px;
	opacity: 0.7;
}

.footer-address {
	margin-top: 16px;
	color: rgb(243 245 246 / 0.6);
	font-size: 14px;
	font-style: normal;
	line-height: 1.9;
}

.site-footer__bottom {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: var(--max);
	margin-inline: auto;
	padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
	border-top: 1px solid rgb(243 245 246 / 0.12);
	font-size: 13px;
}

.site-footer__bottom p {
	margin: 0;
}

.trust-seals {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.footer-col .trust-seals {
	margin-top: 22px;
}

/* Each badge sits on a white rounded square tile. */
.trust-seals a {
	display: grid;
	/* One cell exactly the tile's inner box: an auto row took the logo's own height and pushed
	   it past the bottom padding (eNamad's image is taller than wide). */
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
	place-items: center;
	width: 92px;
	height: 92px;
	padding: 8px;
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 0 0 1px rgb(243 245 246 / 0.12);
	transition: translate 0.3s var(--ease);
}

.trust-seals img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* eNamad's logo is fetched again when its server refuses it (app.js): the tile shows a soft
   placeholder meanwhile, and the seal's name if the logo never arrives. The link still works. */
.trust-seals a > * {
	grid-area: 1 / 1;
}

.trust-seals a.is-waiting img,
.trust-seals a.is-unavailable img {
	visibility: hidden;
}

.trust-seals a.is-waiting::after {
	content: "";
	grid-area: 1 / 1;
	width: 58%;
	height: 62%;
	border-radius: 12px;
	background: #ece8e1;
	animation: avgi-seal-wait 1.2s var(--ease) infinite alternate;
}

@keyframes avgi-seal-wait {
	from {
		opacity: 0.45;
	}
}

.trust-seals__fallback {
	color: var(--ink);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.6;
	text-align: center;
}

@media (hover: hover) {
	.trust-seals a:hover {
		translate: 0 -2px;
	}
}

.site-footer--focused .trust-seals a {
	box-shadow: 0 0 0 1px var(--line);
}

.site-footer--focused {
	margin-top: 64px;
	background: transparent;
	color: var(--muted);
}

.site-footer--focused .site-footer__bottom {
	border-color: var(--line);
}

/* Narrower desktops: the brand takes its own row and the four link columns share the width. */
@media (max-width: 1180px) {
	.site-footer__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 960px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Motion ---------------------------------------------------------------- */

[data-reveal] {
	opacity: 0;
	translate: 0 28px;
	transition: opacity 0.9s var(--ease-out), translate 1.1s var(--ease-out);
	transition-delay: calc(var(--reveal-i, 0) * 70ms);
}

[data-reveal].is-visible {
	opacity: 1;
	translate: 0 0;
}

/* Phones: shorter, lighter entrances, so content keeps up with a quick thumb. */
@media (max-width: 768px) {
	[data-reveal] {
		translate: 0 18px;
		transition-duration: 0.6s, 0.75s;
		transition-delay: calc(var(--reveal-i, 0) * 55ms);
	}

	.hero__title {
		animation-duration: 1.1s;
	}

	.hero__arch img {
		animation-name: avgi-unveil-soft;
		animation-duration: 1.3s;
	}

	.hero__circle path {
		animation-duration: 1.1s;
		animation-delay: 0.55s;
	}

	.hero__product {
		animation-duration: 0.8s;
		animation-delay: 0.7s;
	}
}

@keyframes avgi-unveil-soft {
	from {
		opacity: 0.4;
		scale: 1.06;
	}
}

@view-transition {
	navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.32s;
}

::view-transition-group(product-photo) {
	animation-duration: 0.45s;
	animation-timing-function: var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.button.loading::after,
	.is-loading::after,
	.blockUI.blockOverlay::before,
	.pay-handoff__spinner {
		animation-duration: 1.6s !important;
		animation-iteration-count: infinite !important;
	}

	.marquee__track {
		animation: none;
	}

	[data-reveal] {
		opacity: 1;
		translate: none;
	}
}

@media print {
	.site-header,
	.announcement,
	.site-footer,
	.dock,
	.toast,
	dialog {
		display: none !important;
	}

	body {
		background: #fff;
	}
}

/* WooCommerce blockUI overlay, used while carts and checkouts update. */
.blockUI.blockOverlay::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 22px;
	margin: -11px 0 0 -11px;
	border: 2px solid var(--ink);
	border-inline-end-color: transparent;
	border-radius: 50%;
	animation: avgi-spin 0.7s linear infinite;
}

/* The chosen variation's price replaces the main price, so the duplicate is hidden. */
.js .woocommerce-variation-price {
	display: none;
}

/* ==========================================================================
   Mobile
   A floating dock, bottom sheets, story-style galleries and touch quick add.
   ========================================================================== */

.dock,
.card-plus {
	display: none;
}

/* Tactile feedback on touch. */
.button,
.chip,
.dock__item,
.dock__cta,
.card-plus,
.quick-add__size,
.qty-stepper__btn {
	touch-action: manipulation;
	transition-property: background-color, border-color, color, scale, rotate, translate, opacity;
}

.button:active,
.chip:active,
.dock__cta:active,
.quick-add__size:active,
.swatch:active .swatch__label {
	scale: 0.97;
}

/* Touch quick add: a "+" opens the sizes on the card itself. */
@media (hover: none) {
	.card-plus {
		position: absolute;
		z-index: 4;
		bottom: 8px;
		inset-inline-end: 8px;
		display: grid;
		place-items: center;
		width: 38px;
		height: 38px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: rgb(251 249 246 / 0.96);
		box-shadow: 0 6px 16px -6px rgb(23 32 43 / 0.38);
		color: var(--ink);
		cursor: pointer;
		transition-duration: 0.35s;
		transition-timing-function: var(--ease);
	}

	.card-plus .icon {
		width: 18px;
		height: 18px;
	}

	.card-plus::after {
		content: "";
		position: absolute;
		inset: -6px;
		border-radius: 50%;
	}

	.card-plus.is-loading .icon {
		opacity: 0;
	}

	.card-plus.is-done {
		background: var(--success);
		color: #fff;
	}

	.product-card.is-quick-open .card-plus {
		background: var(--ink);
		color: var(--paper);
		rotate: 45deg;
	}

	/* Closed panels are hidden from keyboards and switch access too, not only from the eye. */
	.quick-add {
		inset-inline: 8px;
		bottom: 54px;
		padding: 10px;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.3s var(--ease), translate 0.45s var(--ease), visibility 0s linear 0.45s;
	}

	.product-card:hover .quick-add,
	.product-card:focus-within .quick-add {
		opacity: 0;
		translate: 0 10px;
	}

	.product-card.is-quick-open .quick-add {
		opacity: 1;
		visibility: visible;
		translate: 0 0;
		pointer-events: auto;
		transition-delay: 0s;
	}

	.quick-add--single {
		display: none;
	}

	.quick-add__size {
		height: 40px;
	}

	/* The panel never grows past the photo: options sit two (colours) or more (sizes) to a
	   row, and a long list scrolls under the label, fading out at the bottom while more options
	   are below (has-more, app.js), so a cut-off row reads as "scroll", not as a broken box. */
	.quick-add {
		display: flex;
		flex-direction: column;
		max-height: calc(100% - 62px);
		overflow: hidden;
	}

	.quick-add__sizes {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
		gap: 5px;
		min-height: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: none;
	}

	.quick-add__sizes::-webkit-scrollbar {
		display: none;
	}

	.quick-add__sizes.has-more {
		-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent);
		mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent);
	}

	.quick-add__sizes:has(.quick-add__size--color) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Each option fills its cell (the cells are the list items), so the columns line up. */
	.quick-add__size {
		width: 100%;
		min-width: 0;
		height: 38px;
		padding-inline: 4px;
	}

	.quick-add__size--color {
		justify-content: center;
		gap: 5px;
		overflow: hidden;
		padding-inline: 4px;
		font-size: 12px;
		white-space: nowrap;
	}

	.quick-add__size--color .quick-add__dot {
		width: 11px;
		height: 11px;
	}
}

@media (max-width: 900px) {
	/* The dock ------------------------------------------------------------ */

	.dock {
		position: fixed;
		z-index: 45;
		inset-inline: 12px;
		bottom: calc(10px + env(safe-area-inset-bottom));
		display: block;
		height: 66px;
		overflow: hidden;
		border-radius: 22px;
		background: rgb(23 32 43 / 0.97);
		box-shadow: 0 0 0 1px rgb(243 245 246 / 0.12), 0 18px 40px -14px rgb(23 32 43 / 0.5);
		color: var(--paper);
		transition: translate 0.5s var(--ease-out);
		view-transition-name: dock;
	}

	/* Large phones in landscape, foldables and small tablets: a centred dock. */
	@media (min-width: 600px) {
		.dock {
			max-width: 440px;
			margin-inline: auto;
		}
	}

	/* Short landscape screens: a slimmer dock, icons beside their labels. */
	@media (max-height: 500px) {
		.dock {
			height: 52px;
			bottom: calc(6px + env(safe-area-inset-bottom));
		}

		.dock__item {
			grid-auto-flow: column;
			align-items: center;
			gap: 6px;
			padding-block: 6px;
		}

		.dock__item[aria-current="page"]::after {
			top: -1px;
		}
	}

	body:has(dialog[open]) .dock,
	body.is-typing .dock {
		translate: 0 calc(100% + 28px);
	}

	.dock__nav,
	.dock__panel {
		position: absolute;
		inset: 0;
		display: flex;
		align-items: center;
		transition: translate 0.55s var(--ease-out), opacity 0.3s var(--ease);
	}

	.dock__nav {
		justify-content: space-around;
		padding-inline: 4px;
	}

	.dock__panel {
		gap: 12px;
		padding: 8px;
		padding-inline-start: 18px;
		opacity: 0;
		translate: 0 100%;
	}

	.dock[data-mode="panel"] .dock__nav {
		opacity: 0;
		translate: 0 -100%;
	}

	.dock[data-mode="panel"] .dock__panel {
		opacity: 1;
		translate: 0 0;
	}

	.dock__item {
		position: relative;
		display: grid;
		justify-items: center;
		gap: 3px;
		min-width: 66px;
		padding: 9px 6px 6px;
		border: 0;
		border-radius: 16px;
		background: none;
		color: rgb(243 245 246 / 0.6);
		font-size: 11px;
		font-weight: 500;
		line-height: 1.3;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.dock__item .icon {
		width: 23px;
		height: 23px;
	}

	.dock__item[aria-current="page"],
	.dock__item[aria-expanded="true"] {
		color: var(--paper);
	}

	.dock__item[aria-current="page"]::after {
		content: "";
		position: absolute;
		top: 2px;
		inset-inline: 0;
		width: 5px;
		height: 5px;
		margin-inline: auto;
		border-radius: 50%;
		background: var(--plum-light);
	}

	.dock__item:active {
		scale: 0.92;
	}

	.dock__item .bag-count {
		top: 3px;
		inset-inline-end: 14px;
		background: var(--plum-light);
		color: var(--ink);
	}

	.dock__info {
		display: grid;
		flex: 1;
		min-width: 0;
		line-height: 1.55;
	}

	.dock__name {
		display: flex;
		align-items: center;
		min-width: 0;
		color: rgb(243 245 246 / 0.66);
		font-size: 12px;
		white-space: nowrap;
	}

	.dock__title {
		overflow: hidden;
		min-width: 0;
		text-overflow: ellipsis;
	}

	/* The chosen colour (and size) beside the name. */
	.dock__choice {
		display: inline-flex;
		flex: none;
		align-items: center;
		gap: 5px;
		margin-inline-start: 8px;
		padding-inline-start: 8px;
		border-inline-start: 1px solid rgb(243 245 246 / 0.22);
		color: rgb(243 245 246 / 0.9);
		line-height: 1.2;
	}

	.dock__choice[hidden] {
		display: none;
	}

	.dock__dot {
		flex: none;
		width: 9px;
		height: 9px;
		border-radius: 50%;
		background: var(--swatch, currentColor);
		box-shadow: 0 0 0 1px rgb(243 245 246 / 0.4);
	}

	.dock__price {
		color: var(--paper);
		font-size: 14px;
		font-weight: 700;
	}

	.dock__price .price {
		color: inherit;
		font-size: inherit;
	}

	.dock__price del {
		color: rgb(243 245 246 / 0.6);
		font-weight: 400;
	}

	.dock__price ins {
		color: var(--plum-light);
	}

	.dock__cta {
		display: inline-flex;
		flex: none;
		align-items: center;
		gap: 8px;
		height: 50px;
		padding: 0 20px;
		border: 0;
		border-radius: 15px;
		background: var(--paper);
		color: var(--ink);
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
	}

	.dock__cta .icon {
		width: 19px;
		height: 19px;
	}

	/* Focus and scrollIntoView land above the dock, never behind it. */
	html:has(body.has-dock) {
		scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
	}

	.has-dock .site-header .bag-button {
		display: none;
	}

	.has-dock .site-footer__bottom {
		padding-bottom: calc(100px + env(safe-area-inset-bottom));
	}

	.has-dock .toast {
		bottom: calc(92px + env(safe-area-inset-bottom));
	}

	/* WooCommerce's store notice sits above the dock instead of over it. */
	.has-dock .demo_store {
		bottom: calc(86px + env(safe-area-inset-bottom));
	}

	/* Product page on phones -------------------------------------------- */

	.buy-row .single_add_to_cart_button {
		white-space: nowrap;
	}

	.buy-row .qty-stepper {
		height: 56px;
	}

	/* 320px phones: the stepper and the button share the row without spilling out of it. */
	@media (max-width: 359px) {
		.buy-row .qty-stepper .qty-stepper__btn {
			width: 36px;
		}

		.buy-row .qty-stepper input.qty {
			width: 2.2em;
		}

		.buy-row .single_add_to_cart_button {
			padding-inline: 16px;
		}

		/* Five colours still fit on one line. */
		.swatch--color .swatch__label {
			min-width: 54px;
		}

		/* The dock keeps room for the name and the chosen colour. */
		.dock__cta {
			padding-inline: 16px;
		}

		.dock__cta .icon {
			display: none;
		}
	}

	.product-top {
		padding-block: 14px 16px;
	}

	.product_title {
		font-size: clamp(1.6rem, 1.3rem + 2vw, 2.1rem);
	}

	.sort-form select,
	.select-wrap select {
		font-size: 16px;
	}
}

/* Bottom sheets: the bag and the size guide rise from the bottom on phones. */
@media (max-width: 600px) {
	.drawer--end {
		inset: auto 0 0;
		width: 100%;
		height: auto;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 26px 26px 0 0;
		translate: 0 100%;
	}

	.drawer--end[open] {
		translate: 0 0;
	}

	@starting-style {
		.drawer--end[open] {
			translate: 0 100%;
		}
	}

	.drawer--end.is-dragging {
		transition: none;
	}

	.drawer--end .drawer__head {
		position: relative;
		padding-top: 22px;
		border-bottom-color: transparent;
		touch-action: none;
	}

	.drawer--end .drawer__head::before {
		content: "";
		position: absolute;
		top: 9px;
		inset-inline: 0;
		width: 42px;
		height: 4px;
		margin-inline: auto;
		border-radius: 2px;
		background: var(--line-strong);
	}

	.drawer--end .drawer__body {
		padding-top: 4px;
	}

	.mini-cart__items {
		padding-inline: 18px;
	}

	.mini-cart__footer {
		padding-inline: 18px;
	}

	.drawer--start {
		width: 100%;
	}
}

/* Homepage on phones ---------------------------------------------------- */

@media (max-width: 760px) {
	.hero {
		padding-top: 8px;
	}

	.hero__copy {
		padding-block: 28px 0;
	}

	.hero__title {
		margin-bottom: 22px;
		font-size: clamp(3rem, 2rem + 6vw, 4.2rem);
	}

	.hero__mark {
		margin-inline-start: 0.16em;
	}

	.hero__text {
		margin-bottom: 26px;
		font-size: 1rem;
	}

	/* The photo leads on phones: the product is seen on the first screen. */
	.hero__media {
		order: -1;
		margin-top: 0;
	}

	.categories__list {
		grid-template-columns: none;
		grid-auto-columns: 64vw;
		grid-auto-flow: column;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}

	.categories__list::-webkit-scrollbar {
		display: none;
	}

	.categories__list li {
		scroll-snap-align: start;
	}

	.story__watermark {
		top: 0;
		bottom: auto;
		font-size: 44vw;
		line-height: 0.9;
	}

	.section-title {
		font-size: clamp(2rem, 1.4rem + 4vw, 2.6rem);
	}

	.marquee__run {
		font-size: 1.15rem;
	}
}

/* DigiPay instalments (inc/digipay.php) --------------------------------- */

.bnpl {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 440px;
	margin: 16px 0 4px;
	padding: 10px 16px;
	padding-inline-start: 10px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--card);
	color: var(--ink);
}

/* One logo per active provider, overlapping like avatars. */
.bnpl__logos {
	display: flex;
	flex: none;
}

.bnpl__logos img {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	box-shadow: 0 0 0 2px var(--card);
	object-fit: cover;
}

.bnpl__logos img + img {
	margin-inline-start: -12px;
}

/* A transparent mark (TorobPay's clover) sits on a white tile, like the square app icons beside it. */
.bnpl__logos img.bnpl__logo--tile {
	padding: 5px;
	background: #fff;
	object-fit: contain;
}

.bnpl__text {
	display: grid;
	flex: 1;
	min-width: 0;
	margin: 0;
	line-height: 1.65;
}

.bnpl__amount {
	font-size: 15px;
}

.bnpl__money {
	font-weight: 700;
	white-space: nowrap;
}

.bnpl__currency {
	font-size: 0.82em;
	font-weight: 400;
}

.bnpl__label {
	color: var(--muted);
	font-size: 12.5px;
}

.bnpl__parts {
	display: flex;
	flex: none;
	gap: 3px;
}

.bnpl__parts i {
	width: 10px;
	height: 4px;
	border-radius: 2px;
	background: var(--line-strong);
}

.bnpl__parts i:first-child {
	background: var(--plum);
}

.bnpl--dark {
	border-color: transparent;
	background: var(--ink);
	color: var(--paper);
}

.bnpl--dark .bnpl__logos img {
	box-shadow: 0 0 0 2px var(--ink);
}

.bnpl--dark .bnpl__label {
	color: rgb(243 245 246 / 0.62);
}

.bnpl--dark .bnpl__parts i {
	background: rgb(243 245 246 / 0.24);
}

.bnpl--dark .bnpl__parts i:first-child {
	background: var(--plum-light);
}

/* The bare hidden attribute must win over the spans' display. */
.bnpl [hidden] {
	display: none;
}

/* Product photography ------------------------------------------------------ */

/* Studio packshots on white melt into the paper tone, so studio and lifestyle photos read as one set. */
.product-card__media img,
.cat-tile__media img,
.woocommerce-product-gallery__image img,
.track__thumb {
	mix-blend-mode: multiply;
}

.product-card__media .product-card__image--alt {
	mix-blend-mode: normal;
}

/* Reassurance under the buy button (inc/woocommerce.php) ----------------- */

.assurances {
	display: grid;
	gap: 2px;
	margin: 18px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--line);
	list-style: none;
}

.assurances li,
.assurances a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 34px;
	color: var(--ink-2);
	font-size: 13.5px;
}

.assurances a {
	color: inherit;
}

.assurances .icon {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--plum);
}

@media (hover: hover) {
	.assurances a:hover {
		color: var(--ink);
	}
}

/* Wishlist, share, questions, installable app (theme 3.0) ------------------------- */

/* The heart on product cards, opposite the badges. */
.card-wish {
	position: absolute;
	top: 8px;
	inset-inline-end: 8px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(251 249 246 / 0.9);
	color: var(--ink);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, scale 0.2s var(--ease-out);
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.card-wish .icon {
	width: 20px;
	height: 20px;
}

.product-card__badges {
	inset-inline-end: 56px;
}

.card-wish:active {
	scale: 0.92;
}

@media (hover: hover) {
	.card-wish:hover {
		background: var(--card);
		color: var(--plum);
	}
}

[data-wish].is-saved {
	color: var(--plum);
}

[data-wish].is-saved .icon-heart {
	fill: currentColor;
}

[data-wish].is-popping .icon {
	animation: avgi-heart 0.45s var(--ease-out);
}

@keyframes avgi-heart {
	40% {
		scale: 1.3;
	}
}

/* Save · Share · Ask, under the buy box. */
.product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.product-action {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--ink-2);
	font: inherit;
	font-size: 13.5px;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, background-color 0.2s;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.product-action .icon {
	width: 18px;
	height: 18px;
	color: var(--plum);
}

.product-action:active {
	background: var(--paper-2);
}

@media (hover: hover) {
	.product-action:hover {
		border-color: var(--line-strong);
		color: var(--ink);
	}
}

.product-action.is-saved {
	border-color: var(--plum);
	background: var(--plum-tint);
	color: var(--plum);
}

/* Wishlist count in the menu. */
.wish-count {
	min-width: 22px;
	height: 22px;
	padding-inline: 6px;
	border-radius: 11px;
	background: var(--plum);
	color: var(--card);
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}

.drawer__install,
.footer-install {
	border: 0;
	background: none;
	font: inherit;
	cursor: pointer;
	text-align: start;
}

.footer-install {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 9px 16px;
	border: 1px solid rgb(243 245 246 / 0.24);
	border-radius: 999px;
	color: var(--paper);
	font-size: 14px;
}

.footer-install .icon {
	width: 18px;
	height: 18px;
}

@media (hover: hover) {
	.footer-install:hover {
		border-color: rgb(243 245 246 / 0.5);
	}
}

/* Wishlist page. */
.wishlist-page {
	padding-top: clamp(32px, 5vw, 64px);
	padding-bottom: clamp(48px, 7vw, 96px);
}

.wishlist__loading {
	padding-block: 48px;
	color: var(--muted);
	text-align: center;
}

.wishlist-page .recently-viewed {
	margin-top: clamp(56px, 7vw, 100px);
}

/* Recently viewed on product pages. */
.product-layout > .recently-viewed {
	grid-column: 1 / -1;
}

/* iPhone install guide. */
.install-guide {
	display: grid;
	justify-items: center;
	gap: 16px;
	text-align: center;
}

.install-guide__icon {
	width: 72px;
	height: 72px;
	border-radius: 18px;
	box-shadow: var(--shadow);
}

.install-guide__lead {
	margin: 0;
	color: var(--ink-2);
}

.install-guide__steps {
	display: grid;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: start;
}

.install-guide__steps li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var(--paper-2);
	font-size: 14.5px;
	line-height: 1.6;
}

.install-guide__glyph {
	display: grid;
	flex: none;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--card);
	color: var(--plum);
}

.install-guide__glyph .icon {
	width: 18px;
	height: 18px;
}

.install-guide__done {
	width: 100%;
}

/* Reviews: spread of stars, filters, photos, helpful votes, the store's replies --------- */

.reviews__summary {
	display: grid;
	gap: 16px 28px;
}

.reviews__score {
	display: flex;
	align-items: center;
	gap: 18px;
}

.reviews__bars {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.reviews__bar {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 28px;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 30px;
	padding: 2px 6px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: none;
	color: var(--ink-2);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}

.reviews__bar:disabled {
	cursor: default;
	opacity: 0.5;
}

.reviews__bar[aria-pressed="true"] {
	border-color: var(--plum);
	background: var(--card);
}

.reviews__bar-label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.reviews__bar-label .icon {
	width: 13px;
	height: 13px;
	color: var(--plum);
}

.reviews__bar-label .icon-star,
.icon--star .icon-star {
	fill: currentColor;
}

.reviews__bar-track {
	height: 6px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--paper-3);
}

.reviews__bar-fill {
	display: block;
	height: 100%;
	border-radius: 3px;
	background: var(--plum);
}

.reviews__bar-count {
	color: var(--muted);
	text-align: end;
}

@media (min-width: 640px) {
	.reviews__summary {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
	}
}

.reviews__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.reviews__tools .chip {
	height: 36px;
	padding-inline: 14px;
	background: none;
	color: var(--ink);
	font: inherit;
	font-size: 13.5px;
	cursor: pointer;
}

.reviews__tools .chip .icon {
	width: 16px;
	height: 16px;
}

.reviews__tools .chip[aria-pressed="true"] {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

/* A compact pill (the form fields' 52px minimum would make it as tall as an input). */
.reviews__sort select {
	height: 36px;
	min-height: 36px;
	padding-inline: 12px 30px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background-color: transparent;
	font-size: 13.5px;
}

/* Below 16px, iPhone zooms the whole page in when the list is tapped. */
@media (pointer: coarse) {
	.reviews__sort select {
		height: 44px;
		min-height: 44px;
		font-size: 16px;
	}
}

.reviews__none {
	flex-basis: 100%;
	margin: 8px 0 0;
	color: var(--muted);
}

.reviews__locked {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 20px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--paper-2);
	color: var(--ink-2);
	font-size: 14px;
}

.reviews__locked .icon {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 3px;
	color: var(--plum);
}

.reviews__locked p {
	margin: 0;
}

.reviews__locked a {
	display: inline-block;
	margin-top: 4px;
	color: var(--plum);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.review-photos {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.review-photos__link {
	display: block;
	overflow: hidden;
	border-radius: 10px;
}

.review-photos img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
}

.review-helpful {
	margin: 10px 0 0;
}

.review-helpful__button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 4px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: none;
	color: var(--ink-2);
	font: inherit;
	font-size: 12.5px;
	cursor: pointer;
	touch-action: manipulation;
}

.review-helpful__button .icon {
	width: 14px;
	height: 14px;
}

.review-helpful__button.is-voted {
	border-color: var(--plum);
	background: var(--plum-tint);
	color: var(--plum);
	cursor: default;
}

.review-helpful__count {
	color: var(--muted);
	font-weight: 600;
}

.commentlist .children,
.comment-list .children {
	margin: 12px 0 0;
	padding: 0;
	padding-inline-start: clamp(16px, 5vw, 54px);
	list-style: none;
}

.is-store-reply > .comment_container,
.is-store-reply > .comment__body {
	padding: 14px;
	border-radius: 14px;
	background: var(--plum-tint);
}

.review-store-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 6px;
	color: var(--plum);
	font-size: 12.5px;
	font-weight: 700;
}

.review-store-badge .icon {
	width: 14px;
	height: 14px;
}

.comment-form-photos {
	margin: 0 0 16px;
}

.comment-form-photos input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.comment-form-photos__button {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px dashed var(--line-strong);
	border-radius: 999px;
	color: var(--ink-2);
	font-size: 14px;
	cursor: pointer;
}

.comment-form-photos__button .icon {
	width: 18px;
	height: 18px;
	color: var(--plum);
}

.comment-form-photos input[type="file"]:focus-visible + .comment-form-photos__button,
.comment-form-photos__button:focus-within {
	outline: 2px solid var(--plum);
	outline-offset: 2px;
}

.comment-form-photos__preview {
	display: flex;
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.comment-form-photos__preview img {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	object-fit: cover;
}

.avgi-trap {
	position: absolute !important;
	inset-inline-start: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.avgi-pow-note {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 13px;
}

/* A review photo, large. */
.photo-viewer {
	width: 100vw;
	height: 100dvh;
	margin: 0;
	padding: 0;
	background: rgb(24 24 24 / 0.92);
}

.photo-viewer[open] {
	display: grid;
	place-items: center;
}

.photo-viewer img {
	max-width: calc(100vw - 32px);
	max-height: calc(100dvh - 96px);
	border-radius: var(--radius);
	object-fit: contain;
}

.photo-viewer__close {
	position: absolute;
	top: max(12px, env(safe-area-inset-top));
	inset-inline-end: 12px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgb(243 245 246 / 0.14);
	color: var(--paper);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

/* «موجود شد خبرم کن» ----------------------------------------------------------------- */

.stock-alert {
	margin-top: 16px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--card);
}

.stock-alert__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 16px;
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}

.stock-alert__toggle::-webkit-details-marker {
	display: none;
}

.stock-alert__toggle .icon {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--plum);
}

.stock-alert__form {
	display: grid;
	gap: 12px;
	padding: 0 16px 16px;
}

.stock-alert__form .form-row {
	margin: 0;
}

.stock-alert__form label {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
}

.stock-alert__form :is(input, select) {
	width: 100%;
}

.stock-alert__fields {
	display: grid;
	gap: 12px;
}

@media (min-width: 560px) {
	.stock-alert__fields {
		grid-template-columns: 1fr 1fr;
	}
}

.stock-alert__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

.stock-alert__submit .icon {
	width: 18px;
	height: 18px;
}

.stock-alert__note {
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
}

.stock-alert__message {
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--plum-tint);
	color: var(--plum);
	font-size: 14px;
}

.stock-alert__message.is-error {
	background: rgb(192 20 42 / 0.08);
	color: var(--danger);
}

.stock-alert__form.is-done :is(.stock-alert__fields, .stock-alert__submit, .stock-alert__note, .form-row) {
	display: none;
}

/* Article comments ------------------------------------------------------------------------ */

.comments__title {
	margin: 0 0 18px;
	font-size: var(--step-2);
	font-weight: 400;
}

.comments__empty {
	color: var(--muted);
}

.comment-list > li,
.comment-list .children > li {
	padding-block: 16px;
	border-bottom: 1px solid var(--line);
}

.comment-list .children > li:last-child {
	border-bottom: 0;
}

.comment__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.comment__who {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

.comment__author {
	font-weight: 600;
}

.comment__date {
	color: var(--muted);
	font-size: 12.5px;
}

.comment__text p {
	margin: 0 0 0.6em;
	line-height: 1.95;
}

.comment__waiting {
	margin: 0 0 8px;
	color: var(--muted);
	font-size: 13px;
}

.comment__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
	font-size: 13px;
}

.comment__reply a {
	color: var(--plum);
	font-weight: 600;
}

.comment-notes {
	color: var(--muted);
	font-size: 13px;
}

.comment-form :is(input[type="text"], input[type="email"], textarea) {
	width: 100%;
}

.optional {
	color: var(--muted);
	font-weight: 400;
}

/* Magazine ---------------------------------------------------------------------------------- */

/* main.blog only: WordPress also puts «blog» on <body> of the posts page, which boxed the whole page. */
.site-main.blog,
.blog-post {
	max-width: var(--max);
	margin-inline: auto;
	padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(48px, 7vw, 96px);
}

.blog-hero {
	max-width: 780px;
	margin: 0 auto clamp(32px, 5vw, 64px);
	text-align: center;
}

.blog-hero .eyebrow a {
	color: inherit;
}

.blog-hero__title {
	margin: 10px 0 0;
	font-size: var(--step-4);
	font-weight: 250;
	line-height: 1.2;
}

.blog-hero__text {
	margin: 14px auto 0;
	max-width: 36em;
	color: var(--ink-2);
}

.blog-cats {
	margin-top: 24px;
}

.blog-cats .chip-list {
	flex-wrap: wrap;
	justify-content: center;
}

.blog-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(32px, 4vw, 52px) clamp(16px, 2vw, 28px);
}

@media (min-width: 600px) {
	.blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.blog-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.blog-card {
	display: grid;
	align-content: start;
	gap: 14px;
}

.blog-card__media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius-lg, 16px);
	background: var(--paper-2);
}

.blog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 0.8s var(--ease-out);
}

@media (hover: hover) {
	.blog-card:hover .blog-card__media img {
		scale: 1.04;
	}
}

.blog-card__placeholder {
	display: grid;
	position: absolute;
	inset: 0;
	place-items: center;
	background: var(--plum-tint);
	color: var(--plum);
}

.blog-card__placeholder .icon {
	width: 40px;
	height: 40px;
}

.blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
}

.blog-card__category {
	display: inline-block;
	padding-block: 4px;
	color: var(--plum);
	font-weight: 600;
}

.blog-card__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: var(--step-1);
	font-weight: 500;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.blog-card__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--ink-2);
	font-size: 14.5px;
	line-height: 1.9;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.blog-card__date {
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
}

.blog-card--featured {
	grid-column: 1 / -1;
}

.blog-card--featured .blog-card__title {
	font-size: var(--step-3);
	font-weight: 400;
	line-height: 1.4;
}

@media (min-width: 900px) {
	.blog-card--featured {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		align-items: center;
		gap: clamp(28px, 4vw, 56px);
	}

	.blog-card--featured .blog-card__media {
		aspect-ratio: 16 / 10;
	}

	.blog-card--featured .blog-card__body {
		display: grid;
		gap: 14px;
	}
}

.blog-pagination {
	margin-top: clamp(40px, 6vw, 72px);
}

.blog-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.blog-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
}

.blog-pagination .page-numbers.current {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
}

/* A post. */
.post-article__head {
	max-width: 780px;
	margin: 0 auto clamp(24px, 4vw, 40px);
	text-align: center;
}

.post-article__crumbs ol {
	justify-content: center;
}

.post-article__title {
	margin: 14px 0 0;
	font-size: var(--step-4);
	font-weight: 300;
	line-height: 1.3;
}

.post-article__lead {
	margin: 16px auto 0;
	max-width: 36em;
	color: var(--ink-2);
	font-size: var(--step-1);
	line-height: 1.9;
}

.post-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 10px;
	margin: 20px 0 0;
	color: var(--muted);
	font-size: 13.5px;
}

.post-article__meta .review-initial {
	width: 30px;
	height: 30px;
	font-size: 13px;
}

.post-article__author {
	color: var(--ink);
	font-weight: 600;
}

.post-article__updated {
	flex-basis: 100%;
	font-size: 12.5px;
}

.post-article__cover {
	max-width: 1040px;
	margin: 0 auto clamp(28px, 4vw, 48px);
}

.post-article__cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg, 16px);
}

.post-article__cover figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.post-article__layout {
	max-width: 1040px;
	margin-inline: auto;
}

.post-article__layout:not(.has-toc) {
	max-width: 780px;
}

.post-article__content h2,
.post-article__content h3 {
	scroll-margin-top: calc(var(--header-h) + 24px);
}

.post-article__foot {
	display: grid;
	gap: 16px;
	max-width: 780px;
	margin: 36px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.post-article__tags {
	flex-wrap: wrap;
}

.blog-related,
.blog-shop {
	margin-top: clamp(56px, 7vw, 100px);
}

.blog-related__title {
	margin: 0 0 clamp(20px, 3vw, 32px);
	font-size: var(--step-3);
	font-weight: 300;
}

.blog-post .comments {
	margin-top: clamp(56px, 7vw, 96px);
}

.blog-post .post-navigation {
	max-width: 780px;
	margin: 48px auto 0;
}

.comments__held {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--plum-tint);
	color: var(--plum);
	font-size: 14px;
}

.comments__held .icon {
	flex: none;
	width: 18px;
	height: 18px;
}

/* Anything marked hidden stays hidden, whatever display its component sets. */
[hidden] {
	display: none !important;
}

/* Customer club (Tezhano Commerce): product line and the club page ------------------------------- */

/* Under the price: «۸۹ امتیاز باشگاه با این خرید · ۸۹٬۰۰۰ تومان», a chip that opens the club page. */
.club-hint {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	width: fit-content;
	max-width: 100%;
	margin: 8px 0 0;
	padding: 5px 12px;
	padding-inline-end: 5px;
	border-radius: 999px;
	background: var(--plum-tint);
	color: var(--plum);
	font-size: 13px;
	line-height: 1.7;
	text-decoration: none;
	transition: background-color 0.2s;
}

.club-hint .icon {
	flex: none;
	width: 16px;
	height: 16px;
}

.club-hint__text strong {
	font-weight: 700;
}

.club-hint__value {
	padding: 1px 10px;
	border-radius: 999px;
	background: var(--card);
	color: var(--ink-2);
	font-size: 12px;
	white-space: nowrap;
}

@media (hover: hover) {
	.club-hint:hover {
		background: #e5d6c8;
	}
}

@media (max-width: 899px) {
	/* With the price, not after the description (see the phone order of .product-summary). */
	.product-summary > .club-hint {
		order: 0;
		align-self: flex-start;
	}
}

/* Sold-out colours remain actionable through the existing stock alert form. */
.swatch--color.is-soldout .swatch__dot { position: relative; opacity: .72; background-image: none; }
.swatch--color.is-soldout .swatch__dot::before,
.swatch--color.is-soldout .swatch__dot::after { content: ''; position: absolute; width: 28px; height: 2px; top: 18px; left: 5px; background: var(--paper); box-shadow: 0 0 0 1px var(--ink); transform: rotate(45deg); }
.swatch--color.is-soldout .swatch__dot::after { transform: rotate(-45deg); }
.swatch__soldout-note { font-size: 10px; color: var(--plum); }
.swatch--color button.swatch__label { cursor: pointer; font-family: inherit; }
.swatch--color button.swatch__label:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.stock-alert-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 32px 24px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); overflow-y: auto; }
.stock-alert-dialog::backdrop { background: rgb(23 32 43 / .5); }
.stock-alert-dialog__close { position: absolute; inset-inline-end: 8px; top: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 30px; cursor: pointer; }
.stock-alert-dialog__eyebrow { color: var(--plum); font-size: 13px; margin: 0 0 12px; }
.stock-alert-dialog h2 { font-size: 24px; line-height: 1.5; padding-inline-end: 16px; margin: 0 0 8px; }
.stock-alert-dialog__intro { color: var(--muted); font-size: 15px; line-height: 1.9; margin-bottom: 16px; }
.stock-alert-dialog .stock-alert__form { padding: 0; }
.stock-alert-dialog .stock-alert__fields { grid-template-columns: 1fr; }
.stock-alert-dialog .stock-alert__submit { width: 100%; justify-content: center; }
.stock-alert-dialog [hidden] { display: none !important; }
html.stock-alert-dialog-open { overflow: hidden; }

/* ---------------------------------------------------------------- Tezhano (inc/tezhano.php) */

/* The short spec line under a product's name: products that share a name differ here. */
.product-card__spec {
	margin: 2px 0 6px;
	color: var(--muted);
	font-size: var(--step--1);
	line-height: 1.7;
}

.product-spec {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	align-items: baseline;
	margin: -4px 0 14px;
	color: var(--ink-2);
	font-size: var(--step-0);
	line-height: 1.8;
}

.product-spec__code {
	color: var(--muted);
	font-size: var(--step--1);
	letter-spacing: 0.02em;
}
