/* ==========================================================================
   Heaven — main.css
   Global design system: tokens, base, layout, components, header, footer.
   Mobile-first. Page-specific styles live in home / shop / product / checkout / content.css
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
	--c-bg: #FBF8F4;
	--c-surface: #FFFFFF;
	--c-sand: #F3EEE7;
	--c-ink: #1F1B18;
	--c-ink-2: #5E5650;
	--c-ink-3: #8B8279;
	--c-line: #E7DFD5;
	--c-sky: #DDE7EE;
	--c-sky-ink: #3F5F7A;
	--c-blush: #F4E1D8;
	--c-clay: #B4472E;
	--c-success: #3F6B4E;
	--c-warning: #8A6100;
	--c-error: #B3261E;
	--c-overlay: rgba(31, 27, 24, .5);

	--f-serif: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, 'Times New Roman', serif;
	--f-sans: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

	--fs-display: clamp(2.75rem, 1.55rem + 5.6vw, 5.5rem);
	--fs-h1: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem);
	--fs-h2: clamp(1.875rem, 1.5rem + 1.7vw, 2.75rem);
	--fs-h3: clamp(1.375rem, 1.25rem + .6vw, 1.75rem);
	--fs-lg: 1.125rem;
	--fs-md: 1rem;
	--fs-sm: .875rem;
	--fs-xs: .75rem;

	--gutter: 16px;
	--container: 1360px;
	--section-y: clamp(56px, 9vw, 112px);

	--r-xs: 4px;
	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 20px;
	--r-pill: 999px;

	--ease: cubic-bezier(.2, .7, .2, 1);
	--spring: cubic-bezier(.34, 1.45, .55, 1);
	--t-fast: .18s;
	--t: .28s;
	--t-slow: .5s;

	--shadow-1: 0 1px 2px rgba(31, 27, 24, .06);
	--shadow-2: 0 10px 34px rgba(31, 27, 24, .10);
	--shadow-3: 0 24px 70px rgba(31, 27, 24, .20);

	/* Glass, as in iOS 26 (owner's wish): the phone header, the tab bar, the buy bar and the two catalogue buttons
	   float over the page as glass capsules; the round buttons on photos are glass too. Safari cannot bend what is
	   behind glass (backdrop-filter: url() draws nothing there), so glass is blur, stronger colour, a rim of light
	   (--glass-rim, see «Glass rim» below) and a soft shadow. */
	--glass: linear-gradient(180deg, rgba(255, 255, 255, .64), rgba(255, 255, 255, .44));
	--glass-filter: blur(20px) saturate(1.8);
	--glass-shadow:
		inset 0 1px 1px rgba(255, 255, 255, .95),
		inset 0 -1px 1px rgba(255, 255, 255, .4),
		inset 0 -14px 20px -16px rgba(255, 255, 255, .9),
		0 0 0 .5px rgba(31, 27, 24, .10),
		0 12px 32px -8px rgba(31, 27, 24, .22),
		0 2px 6px rgba(31, 27, 24, .06);
	/* The same glass at the bottom edge (tab bar, buy bar). Safari on iOS 26 cuts everything fixed along the
	   bottom of its viewport while the page goes on below, around its own address pill — a long shadow ends there
	   in a straight line. This one fades out inside --tabbar-gap: offset + spread + 1.2 × blur must stay within
	   the gap (glass.json checks it). */
	--glass-shadow-dock:
		inset 0 1px 1px rgba(255, 255, 255, .95),
		inset 0 -1px 1px rgba(255, 255, 255, .4),
		inset 0 -14px 20px -16px rgba(255, 255, 255, .9),
		0 0 0 .5px rgba(31, 27, 24, .10),
		0 5px 10px -5px rgba(31, 27, 24, .24),
		0 1px 3px rgba(31, 27, 24, .07);
	--glass-rim: linear-gradient(140deg, #fff, rgba(255, 255, 255, .2) 28%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .15) 74%, rgba(255, 255, 255, .85));
	/* On photos: clearer, the photo shows through. */
	--glass-photo: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .18));
	--glass-photo-filter: blur(8px) saturate(1.5) brightness(1.1);
	--glass-photo-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .95),
		inset 0 0 0 1px rgba(255, 255, 255, .4),
		inset 0 7px 10px -7px rgba(255, 255, 255, .9),
		inset 0 -7px 10px -7px rgba(31, 27, 24, .10),
		0 0 0 .5px rgba(31, 27, 24, .11),
		0 8px 20px -10px rgba(31, 27, 24, .22),
		0 2px 6px -2px rgba(31, 27, 24, .07);

	--announce-h: 36px;
	--header-h: 60px; /* Phones and tablets: the bar at the top of the page; scrolled — 8px + the capsule. */
	--tabbar-h: 58px; /* Only the Reels page, where the tab bar stays a black strip under the clip. */
	--safe-b: env(safe-area-inset-bottom, 0px);
	/* The floating bars: how far from the bottom edge (clear of the home indicator), and the room the tab bar
	   takes with that gap — what sits above it (toasts, the messenger button, the footer's end) counts from here. */
	--tabbar-gap: max(12px, calc(var(--safe-b) - 12px));
	--tabbar-space: calc(var(--tabbar-gap) + 64px);
}

/* No backdrop-filter, or the visitor asked for less transparency or more contrast: the same shapes, solid. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	:root {
		--glass: rgba(255, 255, 255, .96);
		--glass-photo: rgba(255, 255, 255, .9);
	}
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
	:root {
		--glass: rgba(255, 255, 255, .96);
		--glass-photo: rgba(255, 255, 255, .9);
	}
}

@media (min-width: 768px) {
	:root {
		--gutter: 24px;
		--header-h: 64px;
	}
}

@media (min-width: 1024px) {
	:root {
		--gutter: 40px;
		--header-h: 76px;
	}
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	scrollbar-gutter: stable;
}

html.is-locked {
	overflow: hidden;
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font: 400 var(--fs-md)/1.6 var(--f-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

/* The tab bar floats over the end of the page, so the room for it is inside the dark footer, not under it:
   a strip of page colour below the footer would show around the glass. */
@media (max-width: 1023.98px) {
	.hv-has-tabbar .hv-footer { padding-bottom: calc(28px + var(--tabbar-space)); }
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
	margin: 0;
}

h1, h2, h3, .hv-h1, .hv-h2, .hv-h3, .hv-display {
	font-family: var(--f-serif);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.01em;
	font-variant-numeric: lining-nums;
	text-wrap: balance;
}

h1, .hv-h1 { font-size: var(--fs-h1); }
h2, .hv-h2 { font-size: var(--fs-h2); }
h3, .hv-h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
h4 { font: 600 1.0625rem/1.3 var(--f-sans); }
.hv-display { font-size: var(--fs-display); line-height: .98; }

h1 em, h2 em, .hv-display em {
	font-style: italic;
	font-weight: 500;
}

p { text-wrap: pretty; }

a {
	color: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

img, svg, video, picture {
	display: block;
	max-width: 100%;
}

img, video {
	height: auto;
}

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

button {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

:focus { outline: none; }

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

/* Browsers treat a tapped or clicked <select> as keyboard focus, and on a phone the ring stays around it after the
   picker closes (the catalogue sorting). Only keyboard users need it there (core.js sets data-input). */
html[data-input="pointer"] select:focus-visible { outline: none; }

::selection {
	background: var(--c-blush);
	color: var(--c-ink);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

@view-transition {
	navigation: auto;
}

/* ---------- 3. Layout ---------- */
.hv-container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.hv-container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.hv-container--text { max-width: calc(720px + var(--gutter) * 2); }

.hv-section { padding-block: var(--section-y); }
.hv-section--tight { padding-block: calc(var(--section-y) * .6); }
.hv-section--sand { background: var(--c-sand); }
.hv-section--sky { background: var(--c-sky); }
.hv-section--blush { background: var(--c-blush); }
.hv-section--flush-top { padding-top: 0; }

.hv-main { min-height: 50vh; }

.hv-skip {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--c-ink);
	color: #fff;
	border-radius: var(--r-pill);
	font-weight: 600;
}

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

.u-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.u-center { text-align: center; }
.u-nowrap { white-space: nowrap; }

@media (max-width: 1023.98px) {
	.u-desktop { display: none !important; }
}

@media (min-width: 1024px) {
	.u-mobile { display: none !important; }
}

/* ---------- 4. Typography helpers ---------- */
.hv-eyebrow {
	font: 600 .75rem/1.2 var(--f-sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--c-ink-2);
}

.hv-lead {
	font-size: var(--fs-lg);
	line-height: 1.55;
	color: var(--c-ink-2);
}

.hv-muted { color: var(--c-ink-2); }
.hv-small { font-size: var(--fs-sm); }

.hv-link {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	transition: color var(--t-fast);
}

.hv-link:hover { color: var(--c-clay); }

.hv-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font: 600 .875rem/1 var(--f-sans);
	white-space: nowrap;
}

.hv-link-arrow .hv-icon { transition: transform var(--t) var(--ease); }
.hv-link-arrow:hover .hv-icon { transform: translateX(4px); }

.hv-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: clamp(24px, 4vw, 40px);
}

.hv-section-head__text { display: grid; gap: 10px; }
.hv-section-head__lead { color: var(--c-ink-2); max-width: 56ch; }
.hv-section-head--center { justify-content: center; text-align: center; }
.hv-section-head--center .hv-section-head__text { justify-items: center; }

/* Long-form text */
.hv-prose { color: var(--c-ink); }
.hv-prose > * + * { margin-top: 1em; }
.hv-prose h2 { font-size: clamp(1.625rem, 1.4rem + 1vw, 2.125rem); margin-top: 1.6em; }
.hv-prose h3 { margin-top: 1.5em; }
.hv-prose h4 { margin-top: 1.4em; }
.hv-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hv-prose a:hover { color: var(--c-clay); }
.hv-prose ul, .hv-prose ol { padding-left: 1.25em; }
.hv-prose ul { list-style: disc; }
.hv-prose ol { list-style: decimal; }
.hv-prose li + li { margin-top: .4em; }
.hv-prose li::marker { color: var(--c-ink-3); }
.hv-prose strong { font-weight: 700; }
.hv-prose blockquote {
	padding: 4px 0 4px 20px;
	border-left: 2px solid var(--c-ink);
	font: 500 1.5rem/1.3 var(--f-serif);
}
.hv-prose img { border-radius: var(--r-md); }
.hv-prose figcaption { margin-top: 8px; font-size: var(--fs-sm); color: var(--c-ink-2); }
.hv-prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.hv-prose th, .hv-prose td { padding: 12px 10px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.hv-prose th { font-weight: 700; }
.hv-prose .hv-table-wrap, .hv-prose .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 5. Buttons ---------- */
.hv-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: var(--r-pill);
	background: var(--c-ink);
	color: #fff;
	font: 600 .9375rem/1.1 var(--f-sans);
	letter-spacing: .01em;
	text-align: center;
	cursor: pointer;
	user-select: none;
	transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), opacity var(--t-fast);
}

.hv-btn:active { transform: scale(.985); }

.hv-btn--outline {
	background: transparent;
	border-color: var(--c-ink);
	color: var(--c-ink);
}


.hv-btn--light {
	background: #fff;
	color: var(--c-ink);
}


.hv-btn--soft {
	background: var(--c-sand);
	color: var(--c-ink);
}


/* Hover only where there is a mouse: on a phone a tap leaves :hover stuck, and the outline button stayed black. */
@media (hover: hover) {
	.hv-btn:hover { background: #3B332D; }
	.hv-btn--outline:hover { background: var(--c-ink); color: #fff; }
	.hv-btn--light:hover { background: var(--c-sand); }
	.hv-btn--soft:hover { background: var(--c-line); }
}

.hv-btn--sm {
	min-height: 44px;
	padding: 0 20px;
	font-size: .875rem;
}

.hv-btn--lg { min-height: 56px; font-size: 1rem; }
.hv-btn--block { width: 100%; }

.hv-btn[disabled],
.hv-btn.is-disabled {
	opacity: .45;
	cursor: not-allowed;
}

.hv-btn.is-loading {
	color: transparent !important;
	pointer-events: none;
}

.hv-btn.is-loading::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: hv-spin .7s linear infinite;
}

.hv-btn--outline.is-loading { background: transparent; }

.hv-btn--outline.is-loading::after,
.hv-btn--light.is-loading::after,
.hv-btn--soft.is-loading::after {
	border-color: rgba(31, 27, 24, .2);
	border-top-color: var(--c-ink);
}

@keyframes hv-spin {
	to { transform: rotate(360deg); }
}

.hv-iconbtn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--c-ink);
	transition: background-color var(--t-fast);
}

@media (hover: hover) {
	.hv-iconbtn:hover { background: rgba(31, 27, 24, .06); }
}

.hv-count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--r-pill);
	background: var(--c-ink);
	color: #fff;
	font: 700 .6875rem/18px var(--f-sans);
	text-align: center;
	pointer-events: none;
}

.hv-count:empty,
.hv-count[data-count="0"] { display: none; }

/* ---------- 6. Forms ---------- */
.hv-field { display: grid; gap: 6px; }

.hv-label {
	font: 600 .8125rem/1.3 var(--f-sans);
	color: var(--c-ink);
}

.hv-input,
.hv-select,
.hv-textarea {
	width: 100%;
	min-height: 52px;
	padding: 14px 16px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	background: var(--c-surface);
	color: var(--c-ink);
	font: 400 1rem/1.4 var(--f-sans);
	transition: border-color var(--t-fast), box-shadow var(--t-fast);
	-webkit-appearance: none;
	appearance: none;
}

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

.hv-input::placeholder,
.hv-textarea::placeholder { color: var(--c-ink-3); }

.hv-input:hover,
.hv-select:hover,
.hv-textarea:hover { border-color: var(--c-ink-3); }

.hv-input:focus,
.hv-select:focus,
.hv-textarea:focus {
	outline: none;
	border-color: var(--c-ink);
	box-shadow: 0 0 0 3px rgba(31, 27, 24, .08);
}

.hv-select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231F1B18' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.hv-input.is-invalid { border-color: var(--c-error); }

.hv-field__error {
	font-size: .8125rem;
	color: var(--c-error);
}

.hv-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: var(--fs-sm);
	line-height: 1.45;
	cursor: pointer;
}

.hv-check input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	border: 1.5px solid var(--c-ink-3);
	border-radius: 6px;
	background: var(--c-surface);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: background-color var(--t-fast), border-color var(--t-fast);
}

.hv-check input[type="radio"] { border-radius: 50%; }

.hv-check input:checked {
	border-color: var(--c-ink);
	background: var(--c-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
}

.hv-check input[type="radio"]:checked {
	background: var(--c-surface);
	box-shadow: inset 0 0 0 5px var(--c-ink);
}

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

/* Quantity stepper */
.hv-qty {
	display: inline-flex;
	align-items: center;
	height: 44px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	background: var(--c-surface);
}

.hv-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 42px;
	border-radius: 50%;
	color: var(--c-ink);
}

.hv-qty__btn[disabled] { opacity: .3; cursor: not-allowed; }

.hv-qty__input {
	width: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font: 600 .9375rem/1 var(--f-sans);
	-moz-appearance: textfield;
	appearance: textfield;
}

.hv-qty__input::-webkit-outer-spin-button,
.hv-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- 7. Badges, chips, stars ---------- */
.hv-badge {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 10px;
	border-radius: var(--r-pill);
	background: var(--c-surface);
	color: var(--c-ink);
	font: 700 .6875rem/1 var(--f-sans);
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hv-badge--sale { background: var(--c-clay); color: #fff; }
.hv-badge--new { background: var(--c-sky); color: #26425A; }
.hv-badge--hit { background: var(--c-ink); color: #fff; }
.hv-badge--last { background: var(--c-blush); color: #7A2E1B; }
.hv-badge--limited { background: var(--c-blush); color: #7A2E1B; }
.hv-badge--set { background: var(--c-surface); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); }

.hv-chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin-inline: calc(var(--gutter) * -1);
	padding-inline: var(--gutter);
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.hv-chips::-webkit-scrollbar { display: none; }

.hv-chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	background: var(--c-surface);
	font: 500 .875rem/1 var(--f-sans);
	white-space: nowrap;
	transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}

.hv-chip:hover { border-color: var(--c-ink); }

.hv-chip.is-active,
.hv-chip[aria-current="page"],
.hv-chip[aria-pressed="true"] {
	border-color: var(--c-ink);
	background: var(--c-ink);
	color: #fff;
}

.hv-stars {
	position: relative;
	display: inline-block;
	line-height: 0;
	white-space: nowrap;
	vertical-align: middle;
}

.hv-stars__base,
.hv-stars__fill { display: inline-flex; gap: 2px; }
.hv-stars__base svg { fill: var(--c-line); }
.hv-stars__fill svg { fill: #C9973B; flex: none; }

.hv-stars__fill {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
}

.hv-rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--fs-sm);
	color: var(--c-ink-2);
}

.hv-swatch {
	--swatch: var(--c-sand);
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--swatch);
	box-shadow: inset 0 0 0 1px rgba(31, 27, 24, .14);
}

/* ---------- 8. Accordion / FAQ ---------- */
.hv-acc { border-bottom: 1px solid var(--c-line); }
.hv-faq .hv-acc:first-child { border-top: 1px solid var(--c-line); }

.hv-acc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 60px;
	padding: 16px 0;
	font: 600 1rem/1.35 var(--f-sans);
	cursor: pointer;
	list-style: none;
}

.hv-acc__head::-webkit-details-marker { display: none; }
.hv-acc__icon { flex: none; }
/* The cross turns inside the icon: a turned icon box sticks out of a scrolling column (the desktop buy box) by 4px. */
.hv-acc__icon path { transform-origin: center; transition: transform var(--t) var(--ease); }
.hv-acc[open] > .hv-acc__head .hv-acc__icon path { transform: rotate(45deg); }
.hv-acc__body { padding: 0 0 20px; color: var(--c-ink-2); }
.hv-acc__body.hv-prose { color: var(--c-ink-2); }

/* ---------- Clamped text: a long SEO text shows a few lines that fade out (heaven_clamped_text()) ---------- */
.hv-clamp { --clamp: 16rem; }
.hv-clamp__body.hv-prose { color: inherit; }
.hv-clamp.is-clamped .hv-clamp__body {
	max-height: var(--clamp);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 5rem), transparent);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 5rem), transparent);
	transition: max-height .5s var(--ease);
}
.hv-clamp.is-clamped.is-open .hv-clamp__body { -webkit-mask-image: none; mask-image: none; }

.hv-clamp__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin-top: 4px;
	padding: 0;
	font: 600 var(--fs-sm)/1.2 var(--f-sans);
	color: var(--c-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	cursor: pointer;
	transition: color var(--t-fast);
}
.hv-clamp__more[hidden] { display: none; }
.hv-clamp__more .hv-icon { transition: transform var(--t) var(--ease); }
.hv-clamp.is-open .hv-clamp__more .hv-icon { transform: rotate(180deg); }

@media (hover: hover) and (pointer: fine) {
	.hv-clamp__more:hover { color: var(--c-clay); }
}

@media (prefers-reduced-motion: reduce) {
	.hv-clamp.is-clamped .hv-clamp__body { transition: none; }
}

/* ---------- 9. Breadcrumbs ---------- */
.hv-breadcrumbs {
	margin-inline: calc(var(--gutter) * -1);
	padding: 14px var(--gutter);
	overflow-x: auto;
	scrollbar-width: none;
	font-size: .8125rem;
	color: var(--c-ink-2);
}

.hv-breadcrumbs::-webkit-scrollbar { display: none; }

.hv-breadcrumbs__list {
	display: flex;
	align-items: center;
	white-space: nowrap;
}

.hv-breadcrumbs__item + .hv-breadcrumbs__item::before {
	content: '/';
	margin: 0 8px;
	color: var(--c-ink-3);
}

.hv-breadcrumbs__item a { padding-block: 10px; }
.hv-breadcrumbs__item a:hover { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.hv-breadcrumbs__item[aria-current] { color: var(--c-ink); }

/* ---------- 10. Announcement bar ---------- */
.hv-announce {
	position: relative;
	height: var(--announce-h);
	background: var(--c-sky);
	color: #1F3447;
	font: 500 .8125rem/1 var(--f-sans);
	overflow: hidden;
}

.hv-announce__item {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-inline: var(--gutter);
	text-align: center;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}

.hv-announce__item.is-active {
	opacity: 1;
	transform: none;
}

/* ---------- 11. Header ---------- */
.hv-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 248, 244, .94);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: transform var(--t) var(--ease), border-color var(--t-fast), box-shadow var(--t-fast);
}

.hv-header.is-stuck { border-bottom-color: var(--c-line); }
.hv-header.is-hidden { transform: translateY(-100%); }

.hv-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: var(--header-h);
}

.hv-header__left,
.hv-header__actions {
	display: flex;
	align-items: center;
	gap: 2px;
}

.hv-header__left { margin-left: -10px; }
.hv-header__actions { justify-content: flex-end; margin-right: -10px; }

.hv-logo {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: var(--c-ink);
}

/* The word is 13px tall on a phone: the finger gets a 44px target the eye does not see. */
.hv-logo::before {
	content: '';
	position: absolute;
	inset: 50% -6px auto;
	height: 44px;
	transform: translateY(-50%);
}

/* The logo: a cloud and the word HEAVEN, inline SVG in the current colour.
   Between the two icon groups of a phone header (a capsule, see below) there are 120 px on a 320 px screen and
   190 px on a 390 px one. */
.hv-logo__svg {
	display: block;
	width: clamp(108px, 36vw, 140px);
	height: auto;
}

/* Only when the SVG file is missing. */
.hv-logo__text {
	font: 600 1.75rem/1 var(--f-serif);
	letter-spacing: .01em;
}

.hv-logo__img { max-height: 36px; width: auto; }

.hv-nav { display: none; }

/* Phones and tablets: at the top of the page the header is a bar in the page's colour, edge to edge. Once the page
   moves under it (.is-floating — app.js; without the script it stays a bar), the bar draws in to a capsule 8px
   under the top edge and turns to glass; the page shows around it. Drawing in takes .6s with a slight spring at
   the end, the way back .4s and calm.
   Nothing changes size while it moves — Safari stutters when a blurred layer is resized every frame: the glass
   capsule (__inner::before) is in its place all along and only fades in, the bar (::before) is clipped down to
   the capsule's shape and fades out over it, the icons slide 4px by transform. The header's box is --header-h
   high in both shapes, so nothing under it moves. The strip the capsule floats in lets taps through to the page.
   (Wide screens keep the bar: the mega menu hangs from its full width.) */
@media (max-width: 1023.98px) {
	.hv-header {
		--lift-t: .4s;
		--lift-e: var(--ease);
		--bar-shift: calc(var(--gutter) - 20px); /* The capsule holds its icons 20px from the screen edge. */
		padding: 8px 8px 0;
		background: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		border-bottom: 0;
		pointer-events: none;
	}

	.hv-header.is-floating {
		--lift-t: .6s;
		--lift-e: cubic-bezier(.3, .3, .15, 1.25); /* Starts softly, most of the way in .3s, a slight spring at the end. */
	}

	/* Scrolling down, the capsule leaves: it melts as it starts to rise and is then taken up out of sight. (A plain
	   slide with the usual curve is past the edge in three frames and looks like a blink.) Its parts fade by an
	   animation, not a transition: when the visitor scrolls up they are solid at once and the capsule slides down
	   as it always did. */
	.hv-header.is-hidden {
		transform: translateY(calc(-100% - 36px)); /* The capsule's shadow goes too. */
		transition: transform .4s cubic-bezier(.5, 0, 1, 1);
	}

	.hv-header.is-hidden .hv-header__inner::before,
	.hv-header.is-hidden .hv-header__inner::after,
	.hv-header.is-hidden .hv-header__left,
	.hv-header.is-hidden .hv-header__inner > .u-mobile,
	.hv-header.is-hidden .hv-header__actions { animation: hv-header-melt .24s cubic-bezier(.4, 0, 1, 1) both; }

	/* The bar. */
	.hv-header::before {
		content: '';
		position: absolute;
		inset: 0;
		background: var(--c-bg);
		clip-path: inset(0 0 0 0 round 0px);
		transition: clip-path var(--lift-t) var(--lift-e), opacity .2s;
	}

	.hv-header.is-floating::before {
		clip-path: inset(8px 8px 0 8px round calc((var(--header-h) - 8px) / 2));
		opacity: 0;
		transition: clip-path var(--lift-t) var(--lift-e), opacity .25s .2s;
	}

	.hv-header__inner {
		position: relative;
		max-width: none;
		height: calc(var(--header-h) - 8px);
		padding-inline: 12px; /* With the 8px around the capsule a 320px screen leaves 120px for the 115px logo. */
		border-radius: var(--r-pill);
		pointer-events: auto;
	}

	/* The glass. Under the bar and the icons (z-index), so the bar covers it until it has drawn in. */
	.hv-header__inner::before {
		content: '';
		position: absolute;
		inset: 0;
		z-index: -1;
		border-radius: inherit;
		background: var(--glass);
		-webkit-backdrop-filter: var(--glass-filter);
		backdrop-filter: var(--glass-filter);
		box-shadow: var(--glass-shadow);
		opacity: 0;
		transition: opacity .3s;
		pointer-events: none;
	}

	.hv-header.is-floating .hv-header__inner::before { opacity: 1; }

	/* The rim (see «Glass rim») lies over the bar, so it waits until the bar has drawn in. */
	.hv-header__inner::after { opacity: 0; transition: opacity .15s; }
	.hv-header.is-floating .hv-header__inner::after { opacity: 1; transition: opacity .25s .2s; }

	/* In the bar the icons stand where a bar of this height with the page's gutter has them. */
	.hv-header__left,
	.hv-header__inner > .u-mobile,
	.hv-header__actions { transition: transform var(--lift-t) var(--lift-e); }

	.hv-header:not(.is-floating) .hv-header__left { transform: translate(var(--bar-shift), -4px); }
	.hv-header:not(.is-floating) .hv-header__inner > .u-mobile { transform: translateY(-4px); }
	.hv-header:not(.is-floating) .hv-header__actions { transform: translate(calc(var(--bar-shift) * -1), -4px); }

	/* A page that opens already scrolled gets its capsule at once (app.js). */
	.hv-header.is-instant::before,
	.hv-header.is-instant .hv-header__inner::before,
	.hv-header.is-instant .hv-header__inner::after,
	.hv-header.is-instant .hv-header__left,
	.hv-header.is-instant .hv-header__inner > .u-mobile,
	.hv-header.is-instant .hv-header__actions { transition: none; }
}

@media (min-width: 1024px) {
	.hv-header__inner { grid-template-columns: auto 1fr auto; gap: 40px; }
	.hv-header__left { margin-left: 0; }
	.hv-logo__svg { width: 164px; }
	.hv-logo__text { font-size: 2rem; }

	.hv-nav { display: block; }

	.hv-nav__list {
		display: flex;
		justify-content: center;
		gap: clamp(18px, 2.2vw, 34px);
	}

	.hv-nav__link {
		position: relative;
		display: inline-flex;
		align-items: center;
		height: var(--header-h);
		font: 500 .9375rem/1 var(--f-sans);
		white-space: nowrap;
	}

	.hv-nav__link::after {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		bottom: 22px;
		height: 1px;
		background: currentColor;
		transform: scaleX(0);
		transform-origin: left;
		transition: transform var(--t) var(--ease);
	}

	.hv-nav__item:hover > .hv-nav__link::after,
	.hv-nav__item:focus-within > .hv-nav__link::after,
	.hv-nav__link[aria-current="page"]::after { transform: scaleX(1); }

	.hv-nav__link--accent { color: var(--c-clay); }

	.hv-mega {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		padding: 36px 0 44px;
		background: var(--c-surface);
		border-top: 1px solid var(--c-line);
		box-shadow: var(--shadow-2);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity var(--t-fast) .06s, transform var(--t) var(--ease) .06s, visibility 0s linear .3s;
	}

	.hv-nav__item:hover > .hv-mega,
	.hv-nav__item:focus-within > .hv-mega {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: .1s, .1s, 0s;
	}

	.hv-mega__inner {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr);
		gap: 40px;
	}

	.hv-mega__title {
		display: block;
		margin-bottom: 14px;
		font: 600 .75rem/1.2 var(--f-sans);
		letter-spacing: .14em;
		text-transform: uppercase;
		color: var(--c-ink-2);
	}

	.hv-mega__list { display: grid; gap: 2px; }

	.hv-mega__link {
		display: inline-block;
		padding: 7px 0;
		font-size: .9375rem;
		transition: color var(--t-fast), transform var(--t) var(--ease);
	}

	.hv-mega__link:hover { color: var(--c-clay); transform: translateX(4px); }
	.hv-mega__link--all { font-weight: 600; }

	.hv-mega__promo {
		position: relative;
		display: block;
		border-radius: var(--r-md);
		overflow: hidden;
		background: var(--c-sand);
		aspect-ratio: 4 / 3;
	}

	.hv-mega__promo img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		transition: transform .8s var(--ease);
	}

	.hv-mega__promo:hover img { transform: scale(1.04); }

	.hv-mega__promo-label {
		position: absolute;
		left: 16px;
		bottom: 16px;
		padding: 10px 16px;
		border-radius: var(--r-pill);
		background: rgba(255, 255, 255, .94);
		font: 600 .875rem/1 var(--f-sans);
	}
}

/* ---------- 12. Mobile tab bar ---------- */
/* A glass capsule that floats above the bottom edge: the page shows around it and, blurred, through it.
   (On the Reels page it stays a black strip under the clip — reels.css.) */
.hv-tabbar {
	position: fixed;
	left: max(12px, env(safe-area-inset-left, 0px));
	right: max(12px, env(safe-area-inset-right, 0px));
	bottom: var(--tabbar-gap);
	z-index: 45;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	max-width: 520px; /* A tablet: the capsule stays in the middle instead of stretching. */
	margin-inline: auto;
	padding: 5px;
	border-radius: var(--r-pill);
	background: var(--glass);
	-webkit-backdrop-filter: var(--glass-filter);
	backdrop-filter: var(--glass-filter);
	box-shadow: var(--glass-shadow-dock);
}

/* Every word is full ink, not --c-ink-2: under the glass there may be a dark dress or the dark footer, and the
   words must stay 4.5:1 there. The current tab is told by the drop under it. */
.hv-tabbar__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	height: 54px;
	border-radius: var(--r-pill);
	color: var(--c-ink);
	font: 600 .6875rem/1 var(--f-sans);
	transition: transform .35s var(--spring), color var(--t-fast);
}

.hv-tabbar__item:active { transform: scale(1.08); } /* Glass swells a little under the finger. */
.hv-tabbar__item .hv-count { top: 4px; right: calc(50% - 22px); }

/* The drop of light under the current tab. Which tab is current is read from aria-current, so the server's HTML
   stays the same for everyone; a tap on another tab's link sends the drop there before the page changes (app.js). */
.hv-tabbar__drop {
	position: absolute;
	top: 5px;
	bottom: 5px;
	left: 5px;
	width: calc((100% - 10px) / 5);
	opacity: 0;
	transform: translateX(calc(var(--tab-i, 0) * 100%));
	transition: transform .55s var(--spring), opacity .3s;
	pointer-events: none;
}

.hv-tabbar__drop span {
	display: block;
	height: 100%;
	border-radius: var(--r-pill);
	background: rgba(31, 27, 24, .075);
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), inset 0 0 0 .5px rgba(255, 255, 255, .5);
}

.hv-tabbar:has(> [aria-current="page"]) .hv-tabbar__drop,
.hv-tabbar.has-drop .hv-tabbar__drop { opacity: 1; }
.hv-tabbar:has(> :nth-child(2)[aria-current="page"]) { --tab-i: 0; }
.hv-tabbar:has(> :nth-child(3)[aria-current="page"]) { --tab-i: 1; }
.hv-tabbar:has(> :nth-child(4)[aria-current="page"]) { --tab-i: 2; }
.hv-tabbar:has(> :nth-child(5)[aria-current="page"]) { --tab-i: 3; }
.hv-tabbar:has(> :nth-child(6)[aria-current="page"]) { --tab-i: 4; }
.hv-tabbar__drop.is-moving span { animation: hv-tab-drop .55s var(--ease); }

@keyframes hv-header-melt {
	to { opacity: 0; }
}

@keyframes hv-tab-drop {
	0%, 100% { transform: none; }
	35% { transform: scale(1.22, .86); }
	70% { transform: scale(.96, 1.04); }
}

/* Reels: a small warm dot that is always on, so the feed gets noticed (owner's wish), except inside the feed itself.
   It pulses only until the visitor has opened the feed once (app.js adds .has-new). */
.hv-tabbar__item--reels:not([aria-current="page"])::after {
	content: '';
	position: absolute;
	top: 7px;
	left: calc(50% + 9px);
	width: 8px;
	height: 8px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--c-clay);
	box-sizing: content-box;
}

.hv-tabbar__item--reels.has-new::after { animation: hv-tab-dot 2.4s ease-in-out 3; }

/* The same dot by the word «Reels» in the desktop header and in the side menu (heaven_new_dot()). */
.hv-new-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 3px;
	border-radius: 50%;
	background: var(--c-clay);
	vertical-align: .5em;
}

.has-new > .hv-new-dot,
.has-new > span > .hv-new-dot { animation: hv-tab-dot 2.4s ease-in-out 3; }
[aria-current="page"] > .hv-new-dot,
.hv-reels-page .hv-new-dot { display: none; }

/* Header: the dot hangs at the top right of the word and takes no room, so the row of links does not move. */
.hv-nav__link--reels .hv-new-dot {
	position: absolute;
	top: calc(50% - 13px);
	right: -9px;
	margin: 0;
}

/* Side menu: the word is set large in the serif, the dot a little larger to match. */
.hv-menu__link--reels .hv-new-dot { width: 8px; height: 8px; margin-left: 3px; vertical-align: .42em; }

@keyframes hv-tab-dot {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.35); }
}

body:not(.hv-has-tabbar) .hv-tabbar { display: none; }

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

@media (prefers-reduced-motion: reduce) {
	.hv-tabbar__item,
	.hv-tabbar__drop { transition: none; }
	.hv-tabbar__drop.is-moving span { animation: none; }
}

/* ---------- Glass rim ---------- */
/* The light a glass edge catches: a 1px ring, bright at the top left and the bottom right. One rule for every
   glass thing, wherever its own styles are (catalogue buttons — shop.css, counter and buy bar — product.css). */
.hv-tabbar::after,
.hv-buybar::after,
.hv-card__wish::after,
.hv-card__quick::after,
.hv-gallery__reel::after,
.hv-gallery__counter::after {
	content: '';
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: var(--glass-rim);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	pointer-events: none;
}

.hv-card__wish::after { border-radius: 50%; }

@media (max-width: 1023.98px) {
	.hv-header__inner::after,
	.hv-toolbar__btn::after,
	.hv-toolbar__sort::after {
		content: '';
		position: absolute;
		inset: 0;
		padding: 1px;
		border-radius: inherit;
		background: var(--glass-rim);
		-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
		-webkit-mask-composite: xor;
		mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
		mask-composite: exclude;
		pointer-events: none;
	}
}

/* ---------- 13. Dialogs: drawers, sheets, modals ---------- */
dialog.hv-drawer {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-ink);
	overflow: hidden;
}

dialog.hv-drawer::backdrop {
	background: var(--c-overlay);
	opacity: 0;
	transition: opacity var(--t) var(--ease);
}

/* --hv-sheet-dim follows the finger while a bottom sheet is pulled down (core.js). */
dialog.hv-drawer.is-open::backdrop { opacity: var(--hv-sheet-dim, 1); }
dialog.hv-drawer.is-dragging::backdrop { transition: none; }
dialog.hv-drawer.is-dragging .hv-drawer__panel { -webkit-user-select: none; user-select: none; }

.hv-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(440px, 100%);
	background: var(--c-surface);
	box-shadow: var(--shadow-3);
	transition: transform var(--t) var(--ease);
	will-change: transform;
}

.hv-drawer--left .hv-drawer__panel { left: 0; transform: translateX(-102%); }
.hv-drawer--right .hv-drawer__panel { right: 0; transform: translateX(102%); }

.hv-drawer--sheet .hv-drawer__panel {
	left: 0;
	right: 0;
	top: auto;
	bottom: 0;
	width: 100%;
	max-height: 92dvh;
	border-radius: var(--r-lg) var(--r-lg) 0 0;
	transform: translateY(102%);
}

/* Grab handle: the sheet can be pulled down to close. */
.hv-drawer--sheet .hv-drawer__panel::before {
	content: '';
	align-self: center;
	flex: none;
	width: 36px;
	height: 5px;
	margin-top: 8px;
	border-radius: var(--r-pill);
	background: rgba(31, 27, 24, .22);
}

.hv-drawer--top .hv-drawer__panel {
	left: 0;
	right: 0;
	bottom: auto;
	width: 100%;
	max-height: 100dvh;
	transform: translateY(-102%);
}

dialog.hv-drawer.is-open .hv-drawer__panel { transform: none; }

.hv-drawer__head {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 64px;
	padding: 10px 10px 10px 20px;
	border-bottom: 1px solid var(--c-line);
}

.hv-drawer__title { font: 600 1.5rem/1.1 var(--f-serif); }

.hv-drawer__body {
	flex: 1;
	min-height: 0;
	padding: 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.hv-drawer__foot {
	flex: none;
	padding: 16px 20px calc(16px + var(--safe-b));
	border-top: 1px solid var(--c-line);
	background: var(--c-surface);
}

@media (min-width: 768px) {
	/* Sheets become centred modals or side drawers on larger screens. */
	.hv-drawer--sheet .hv-drawer__panel {
		left: 50%;
		right: auto;
		top: 50%;
		bottom: auto;
		width: min(560px, calc(100% - 48px));
		max-height: min(86dvh, 820px);
		border-radius: var(--r-lg);
		transform: translate(-50%, -46%);
		opacity: 0;
		transition: transform var(--t) var(--ease), opacity var(--t-fast);
	}

	.hv-drawer--sheet .hv-drawer__panel::before { display: none; }

	dialog.hv-drawer--sheet.is-open .hv-drawer__panel {
		transform: translate(-50%, -50%);
		opacity: 1;
	}

	.hv-drawer--sheet.hv-drawer--side .hv-drawer__panel {
		left: auto;
		right: 0;
		top: 0;
		bottom: 0;
		width: min(480px, 100%);
		max-height: none;
		border-radius: 0;
		transform: translateX(102%);
		opacity: 1;
	}

	dialog.hv-drawer--sheet.hv-drawer--side.is-open .hv-drawer__panel { transform: none; }

	.hv-drawer--wide .hv-drawer__panel { width: min(760px, calc(100% - 48px)); }
}

/* Mobile menu */
.hv-menu__list { display: grid; }

.hv-menu__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 56px;
	padding: 8px 0;
	border-bottom: 1px solid var(--c-line);
	font: 500 1.375rem/1.2 var(--f-serif);
	text-align: left;
}

.hv-menu__link--accent { color: var(--c-clay); }

.hv-menu__sub {
	display: none;
	padding: 4px 0 12px 4px;
	border-bottom: 1px solid var(--c-line);
}

.hv-menu__item.is-open > .hv-menu__sub { display: grid; }
.hv-menu__item.is-open > .hv-menu__link { border-bottom-color: transparent; }
.hv-menu__item.is-open > .hv-menu__link .hv-icon { transform: rotate(180deg); }
.hv-menu__link .hv-icon { transition: transform var(--t) var(--ease); }

.hv-menu__sublink {
	display: flex;
	align-items: center;
	min-height: 44px;
	font-size: 1rem;
	color: var(--c-ink-2);
}

.hv-menu__sublink--all { color: var(--c-ink); font-weight: 600; }

.hv-menu__secondary {
	display: grid;
	gap: 2px;
	margin-top: 24px;
}

.hv-menu__secondary a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	font-size: .9375rem;
	color: var(--c-ink-2);
}

.hv-menu__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

/* Search overlay */
.hv-search__form {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.hv-search__input {
	width: 100%;
	height: 52px;
	padding: 0 48px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	background: var(--c-bg);
	font-size: 1rem;
	-webkit-appearance: none;
	appearance: none;
}

.hv-search__input:focus { outline: none; border-color: var(--c-ink); }
.hv-search__input::-webkit-search-cancel-button { display: none; }

.hv-search__icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--c-ink-2);
	pointer-events: none;
}

.hv-search__group { margin-top: 24px; }
.hv-search__group-title { margin-bottom: 12px; }

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

.hv-search__results { display: grid; gap: 4px; }

.hv-search__result {
	display: grid;
	grid-template-columns: 56px 1fr;
	align-items: center;
	gap: 14px;
	padding: 8px;
	margin-inline: -8px;
	border-radius: var(--r-md);
}

.hv-search__result:hover,
.hv-search__result:focus-visible { background: var(--c-sand); }

.hv-search__result img {
	width: 56px;
	height: 70px;
	border-radius: var(--r-sm);
	object-fit: cover;
	background: var(--c-sand);
}

.hv-search__result-title { display: block; font-weight: 500; font-size: .9375rem; line-height: 1.3; }
.hv-search__result-price { display: block; margin-top: 4px; font-size: var(--fs-sm); color: var(--c-ink-2); }
.hv-search__status { padding: 24px 0; color: var(--c-ink-2); text-align: center; }
.hv-search__status--note { padding: 20px 0 0; font-size: var(--fs-sm); text-align: left; }
.hv-search__status--note + .hv-search__group { margin-top: 12px; }

@media (min-width: 768px) {
	.hv-drawer--top .hv-drawer__panel { max-height: 86dvh; border-radius: 0 0 var(--r-lg) var(--r-lg); }
	.hv-search__inner { max-width: 760px; margin-inline: auto; width: 100%; }
}

/* ---------- 14. Cart drawer ---------- */
.hv-shipbar {
	padding: 14px 16px;
	border-radius: var(--r-md);
	background: var(--c-sand);
	font-size: var(--fs-sm);
}

.hv-shipbar__text { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.hv-shipbar__text strong { font-weight: 700; }

.hv-shipbar__track {
	height: 4px;
	margin-top: 10px;
	border-radius: var(--r-pill);
	background: var(--c-line);
	overflow: hidden;
}

.hv-shipbar__fill {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--c-ink);
	transition: width .6s var(--ease);
}

.hv-shipbar.is-reached { background: #E3EEE5; color: #24452F; }
.hv-shipbar.is-reached .hv-shipbar__fill { background: var(--c-success); }

.hv-cartlist { display: grid; margin-top: 8px; }

.hv-cartitem {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--c-line);
	transition: opacity var(--t-fast);
}

.hv-cartitem.is-busy { opacity: .45; pointer-events: none; }

.hv-cartitem__media {
	display: block;
	aspect-ratio: 2 / 3;
	border-radius: var(--r-sm);
	background: var(--c-sand);
	overflow: hidden;
}

.hv-cartitem__media img { width: 100%; height: 100%; object-fit: cover; }
.hv-cartitem__main { display: flex; flex-direction: column; min-width: 0; }
.hv-cartitem__top { display: flex; justify-content: space-between; gap: 12px; }
.hv-cartitem__title { font-weight: 500; font-size: .9375rem; line-height: 1.3; }
.hv-cartitem__meta { margin-top: 4px; font-size: .8125rem; color: var(--c-ink-2); }

.hv-cartitem__remove {
	flex: none;
	width: 32px;
	height: 32px;
	margin: -6px -6px 0 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--c-ink-3);
}

.hv-cartitem__remove:hover { color: var(--c-ink); background: var(--c-sand); }

.hv-cartitem__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 12px;
}

.hv-cartitem__bottom .hv-qty { height: 38px; }
.hv-cartitem__bottom .hv-qty__btn { width: 34px; height: 36px; }
.hv-cartitem__price { font-weight: 600; white-space: nowrap; }
.hv-cartitem__price del { margin-right: 6px; font-weight: 400; color: var(--c-ink-3); }

.hv-cart__empty {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 48px 12px;
	text-align: center;
}

.hv-cart__empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--c-sand);
}

.hv-cart__empty-title { font: 600 1.5rem/1.2 var(--f-serif); }

.hv-cart__cross { margin-top: 24px; }
.hv-cart__cross-title { margin-bottom: 12px; }

.hv-minicard {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
}

.hv-minicard img {
	width: 64px;
	height: 80px;
	border-radius: var(--r-sm);
	object-fit: cover;
	background: var(--c-sand);
}

.hv-minicard__title { display: block; font-size: var(--fs-sm); font-weight: 500; line-height: 1.3; }
.hv-minicard__price { display: block; margin-top: 4px; font-size: var(--fs-sm); color: var(--c-ink-2); }

.hv-cart__totals {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-weight: 600;
}

.hv-cart__total { font-size: 1.25rem; font-weight: 700; }
.hv-cart__note { margin: 4px 0 14px; font-size: .8125rem; color: var(--c-ink-2); }

.hv-cart__gift {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: var(--r-md);
	background: var(--c-sky);
	color: var(--c-sky-ink);
	font: 600 .8125rem/1.35 var(--f-sans);
}

.hv-cart__gift svg { flex: none; }
.hv-cart__actions { display: grid; gap: 8px; }

.hv-cart__link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	font: 600 .875rem/1 var(--f-sans);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------- 15. Product card & lists ---------- */
.hv-products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 12px;
}

@media (min-width: 768px) {
	.hv-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 20px; }
}

@media (min-width: 1200px) {
	.hv-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 24px; }
	.hv-products--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.hv-products--carousel {
	display: flex;
	gap: 12px;
	margin-inline: calc(var(--gutter) * -1);
	padding-inline: var(--gutter);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.hv-products--carousel::-webkit-scrollbar { display: none; }

.hv-products--carousel > .hv-card {
	flex: 0 0 62%;
	scroll-snap-align: start;
}

@media (min-width: 600px) {
	.hv-products--carousel > .hv-card { flex-basis: 38%; }
}

@media (min-width: 900px) {
	.hv-products--carousel { gap: 20px; }
	.hv-products--carousel > .hv-card { flex-basis: calc((100% - 60px) / 3.4); }
}

@media (min-width: 1200px) {
	.hv-products--carousel { gap: 24px; }
	.hv-products--carousel > .hv-card { flex-basis: calc((100% - 72px) / 4); }
}

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

.hv-card__media {
	position: relative;
	aspect-ratio: 2 / 3;
	border-radius: var(--r-md);
	background: var(--c-sand);
	overflow: hidden;
}

.hv-card__link {
	position: absolute;
	inset: 0;
	display: block;
}

.hv-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity var(--t-slow) var(--ease), transform 1.2s var(--ease);
}

.hv-card__img--hover { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
	.hv-card:hover .hv-card__img--hover { opacity: 1; }
	.hv-card:hover .hv-card__img--main:only-of-type { transform: scale(1.03); }
}

/* Card photos: on a touch screen the photos of a card in a grid swipe sideways, one at a time, with thin bars at the
   bottom saying which one is showing (assets/js/app.js → initCardPhotos). Carousels keep one photo — a sideways swipe
   there scrolls the row. The extra photos are display:none everywhere else, so they are never downloaded. */
.hv-card__img--more,
.hv-card__pager { display: none; }

@media (hover: none), (pointer: coarse) {
	.hv-products:not(.hv-products--carousel) .hv-card__link[data-hv-photos] {
		display: flex;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.hv-products:not(.hv-products--carousel) .hv-card__link[data-hv-photos]::-webkit-scrollbar { display: none; }

	/* Nothing hovers here: in a carousel the second photo would only be downloaded for nothing. */
	.hv-products--carousel .hv-card__img--hover { display: none; }

	.hv-products:not(.hv-products--carousel) .hv-card__link[data-hv-photos] > .hv-card__img {
		position: static;
		display: block;
		flex: 0 0 100%;
		opacity: 1;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.hv-products:not(.hv-products--carousel) .hv-card__pager {
		position: absolute;
		left: 10px;
		right: 10px;
		bottom: 5px;
		display: flex;
		gap: 3px;
		pointer-events: none;
	}

	/* Light bars with a dark one for the photo on show: the pair reads on a white floor and on a dark fabric alike. */
	.hv-card__pager i {
		flex: 1;
		height: 2px;
		border-radius: 1px;
		background: rgba(255, 255, 255, .75);
		box-shadow: 0 0 2px rgba(0, 0, 0, .1);
		transition: background-color var(--t-fast);
	}

	.hv-card__pager i.is-on { background: var(--c-ink); }
}

.hv-card .hv-placeholder,
.hv-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--c-line);
	background: var(--c-sand);
}

.hv-card__badges {
	position: absolute;
	left: 10px;
	top: 10px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	pointer-events: none;
}

.hv-card__wish {
	position: absolute;
	right: 6px;
	top: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--c-ink);
	transition: transform var(--t-fast), background-color var(--t-fast);
}

/* The circle is glass (--glass-photo); ::after is its rim of light, see «Glass rim». */
.hv-card__wish::before {
	content: '';
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--glass-photo);
	-webkit-backdrop-filter: var(--glass-photo-filter);
	backdrop-filter: var(--glass-photo-filter);
	box-shadow: var(--glass-photo-shadow);
	z-index: -1;
}

.hv-card__wish::after { inset: 4px; }
.hv-card__wish { z-index: 1; }
.hv-card__wish:active { transform: scale(.88); }
.hv-card__wish svg { width: 18px; height: 18px; }

[data-hv-wish][aria-pressed="true"] svg {
	fill: var(--c-clay);
	stroke: var(--c-clay);
}

/* Phones: a card is ~170px wide, so the labels and the heart's circle get smaller.
   The heart's tap area grows to 44px around the smaller circle, which keeps the 8px corner line with the labels. */
@media (max-width: 767.98px) {
	.hv-card__badges { left: 8px; top: 8px; gap: 4px; }

	.hv-card__badges .hv-badge {
		height: 20px;
		padding: 0 7px;
		font-size: .625rem;
		letter-spacing: .04em;
	}

	.hv-card__wish { right: 0; top: 0; width: 44px; height: 44px; }
	.hv-card__wish::before,
	.hv-card__wish::after { inset: 8px; }
	.hv-card__wish svg { width: 16px; height: 16px; }
}

.hv-card__quick {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 40px;
	height: 40px;
	border-radius: var(--r-pill);
	background: var(--glass-photo);
	-webkit-backdrop-filter: var(--glass-photo-filter);
	backdrop-filter: var(--glass-photo-filter);
	color: var(--c-ink);
	box-shadow: var(--glass-photo-shadow);
	font: 600 .8125rem/1 var(--f-sans);
	transition: transform var(--t) var(--ease), opacity var(--t), background-color var(--t-fast), color var(--t-fast);
}

.hv-card__quick span { display: none; }
.hv-card__quick:active { transform: scale(.9); }

/* Hover only where there is a mouse: on a phone a tap left :hover stuck and the circle stayed black. */
@media (hover: hover) {
	.hv-card__quick:hover { background: var(--c-ink); color: #fff; }
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
	/* With words on it the button is milkier glass, or they are lost on a dark dress. */
	.hv-card__quick {
		left: 10px;
		width: auto;
		height: 44px;
		background: var(--glass);
		-webkit-backdrop-filter: var(--glass-filter);
		backdrop-filter: var(--glass-filter);
		opacity: 0;
		transform: translateY(8px);
	}

	.hv-card__quick span { display: inline; }

	.hv-card:hover .hv-card__quick,
	.hv-card:focus-within .hv-card__quick {
		opacity: 1;
		transform: none;
	}
}

.hv-card__body {
	display: grid;
	gap: 6px;
	padding: 12px 2px 0;
}

.hv-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font: 500 .875rem/1.35 var(--f-sans);
}

.hv-card__title:hover { text-decoration: underline; text-underline-offset: 3px; }

.hv-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.hv-card__swatches { display: inline-flex; align-items: center; gap: 5px; }
.hv-card__swatches-more { font-size: .75rem; color: var(--c-ink-2); }
.hv-card__rating { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--c-ink-2); }
.hv-card__rating svg { fill: #C9973B; }

@media (min-width: 768px) {
	.hv-card__title { font-size: .9375rem; }
	.hv-card__body { padding-top: 14px; }
}

/* Prices (WooCommerce markup) */
.price,
.hv-price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	font: 600 .9375rem/1.2 var(--f-sans);
	color: var(--c-ink);
}

.price del,
.hv-price del {
	order: 2;
	font-weight: 400;
	font-size: .875em;
	color: var(--c-ink-3);
	text-decoration-thickness: 1px;
}

.price ins,
.hv-price ins {
	order: 1;
	color: var(--c-clay);
	text-decoration: none;
}

.woocommerce-Price-currencySymbol { font-weight: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Carousel controls */
.hv-carousel { position: relative; }

.hv-carousel__nav {
	display: none;
	gap: 8px;
}

@media (hover: hover) and (min-width: 1024px) {
	.hv-carousel__nav { display: flex; }
}

.hv-carousel__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--c-line);
	border-radius: 50%;
	background: var(--c-surface);
	transition: border-color var(--t-fast), background-color var(--t-fast), opacity var(--t-fast);
}

.hv-carousel__btn:hover { border-color: var(--c-ink); }
.hv-carousel__btn[disabled] { opacity: .35; cursor: default; }

/* ---------- 16. USP strip ---------- */
.hv-usp {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 16px;
}

@media (min-width: 900px) {
	.hv-usp { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
}

.hv-usp__item { display: grid; gap: 10px; justify-items: start; }

.hv-usp__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--c-surface);
	color: var(--c-ink);
}

.hv-section--sand .hv-usp__icon { background: var(--c-bg); }
.hv-usp__title { font: 600 .9375rem/1.3 var(--f-sans); }
.hv-usp__text { font-size: var(--fs-sm); line-height: 1.45; color: var(--c-ink-2); }

/* ---------- 17. Newsletter ---------- */
.hv-newsletter {
	display: grid;
	gap: 28px;
	align-items: center;
}

@media (min-width: 900px) {
	.hv-newsletter { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.hv-newsletter__title em { font-style: italic; }
.hv-newsletter__text { margin-top: 12px; color: var(--c-ink-2); max-width: 46ch; }
.hv-subscribe__hp { position: absolute; left: -9999px; }

/* The welcome gift (Клуб Heaven): taken in the Telegram bot. */
.hv-club {
	padding: 22px 20px;
	border-radius: var(--r-lg);
	background: var(--c-surface);
	box-shadow: var(--shadow-1);
}

.hv-club--plain { padding: 0; background: none; box-shadow: none; }
.hv-club__pane[hidden] { display: none; }

.hv-btn--tg { gap: 12px; }
.hv-btn--tg .hv-icon { flex: none; }

.hv-club__perks {
	display: grid;
	gap: 10px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-sm);
	line-height: 1.4;
	color: var(--c-ink-2);
}

.hv-club__perks li { display: flex; gap: 10px; align-items: flex-start; }
.hv-club__perks .hv-icon { flex: none; margin-top: 1px; color: var(--c-sky-ink); }
.hv-club__fine { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-line); font-size: .8125rem; line-height: 1.45; color: var(--c-ink-2); }
.hv-club__fine a { text-decoration: underline; text-underline-offset: 3px; }

/* Waiting for Telegram: the steps; on a computer a QR code beside them. */
.hv-club__wait { display: grid; gap: 18px; align-items: center; }
.hv-club__wait:has(.hv-club__qr:not([hidden])) { grid-template-columns: 168px 1fr; gap: 24px; }
.hv-club__qr { padding: 8px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: #fff; }
.hv-club__qr[hidden] { display: none; }
.hv-qr { display: block; width: 100%; height: auto; }

.hv-club__status {
	display: flex;
	align-items: center;
	gap: 10px;
	font: 600 1rem/1.35 var(--f-sans);
}

.hv-club__status::before {
	content: '';
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--c-sky-ink);
	animation: hv-club-pulse 1.4s ease-in-out infinite;
}

.hv-club.is-started .hv-club__status::before { background: var(--c-success); }

@keyframes hv-club-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: .35; transform: scale(.7); }
}

.hv-club__steps {
	display: grid;
	gap: 6px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: hv-step;
	font-size: var(--fs-sm);
	color: var(--c-ink-2);
}

.hv-club__steps li { display: flex; gap: 10px; align-items: baseline; counter-increment: hv-step; }

.hv-club__steps li::before {
	content: counter(hv-step);
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--c-sky);
	color: var(--c-sky-ink);
	font: 700 .75rem/1 var(--f-sans);
}

/* «Scan the code» is a step only where the code is shown. */
.hv-club__step--scan { display: none !important; }
.hv-club__wait:has(.hv-club__qr:not([hidden])) .hv-club__step--scan { display: flex !important; }
.hv-club__again-desk { display: none; }
.hv-club__wait:has(.hv-club__qr:not([hidden])) .hv-club__again-desk { display: inline; }
.hv-club__wait:has(.hv-club__qr:not([hidden])) .hv-club__again-phone { display: none; }

.hv-club__again {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 14px;
	font-size: .8125rem;
}

.hv-club__again a,
.hv-club__back { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.hv-club__back { padding: 0; color: var(--c-ink-2); font: inherit; }

@media (max-width: 519.98px) {
	.hv-club__wait:has(.hv-club__qr:not([hidden])) { grid-template-columns: 1fr; }
	.hv-club__qr { max-width: 200px; }
}

/* Done: the gift is hers. */
.hv-club__done { display: flex; gap: 16px; align-items: flex-start; }
.hv-club__done:not([hidden]) { animation: hv-club-in var(--t-slow) var(--ease); }

.hv-club__check {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--c-sky);
	color: var(--c-sky-ink);
}

.hv-club__title { font: 600 1.125rem/1.3 var(--f-sans); }
.hv-club__text { margin: 6px 0 16px; font-size: var(--fs-sm); line-height: 1.5; color: var(--c-ink-2); }

@keyframes hv-club-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hv-club__status::before,
	.hv-club__done:not([hidden]) { animation: none; }
}

/* ---------- 18. Footer ---------- */
.hv-footer {
	background: var(--c-ink);
	color: #EFE9E1;
	padding: 56px 0 28px;
	font-size: var(--fs-sm);
}

.hv-footer a { transition: color var(--t-fast); }
.hv-footer a:hover { color: #fff; }

.hv-footer__top {
	display: grid;
	gap: 36px;
}

.hv-footer .hv-logo { color: #fff; }
.hv-footer .hv-logo__svg { width: 200px; }
/* On the dark footer the cloud is solid white: an outline alone would read as a hole. */
.hv-footer .hv-logo__cloud { fill: currentColor; }
.hv-footer .hv-logo__text { font-size: 2.25rem; }
.hv-footer__about { margin-top: 16px; max-width: 36ch; color: #BDB3A8; line-height: 1.55; }

.hv-footer__social {
	display: flex;
	gap: 8px;
	margin-top: 20px;
}

.hv-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
}

.hv-footer__social a:hover { border-color: #fff; }

.hv-footer__col-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 52px;
	color: #fff;
	font: 600 .75rem/1.2 var(--f-sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}

.hv-footer__col-title::-webkit-details-marker { display: none; }
.hv-footer__col { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.hv-footer__col[open] .hv-footer__col-title .hv-icon { transform: rotate(180deg); }
.hv-footer__col-title .hv-icon { transition: transform var(--t) var(--ease); }
.hv-footer__links { display: grid; padding-bottom: 16px; }

.hv-footer__links a,
.hv-footer__links span {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	color: #BDB3A8;
}

.hv-footer__bottom {
	display: grid;
	gap: 16px;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	color: #9A9087;
	font-size: .8125rem;
}

.hv-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.hv-footer__legal a { text-decoration: underline; text-underline-offset: 3px; }

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

.hv-pay__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 6px;
	color: #EFE9E1;
	font: 700 .6875rem/1 var(--f-sans);
	letter-spacing: .04em;
	white-space: nowrap;
}

@media (min-width: 900px) {
	.hv-footer { padding: 80px 0 32px; }
	.hv-footer__top { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 40px; }
	.hv-footer__col { border-bottom: 0; }
	.hv-footer__col-title { min-height: 0; margin-bottom: 14px; cursor: default; pointer-events: none; }
	.hv-footer__col-title .hv-icon { display: none; }
	.hv-footer__col > .hv-footer__links { display: grid !important; }
	.hv-footer__links a, .hv-footer__links span { min-height: 34px; }
	.hv-footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- 19. Toasts, messenger button, notices ---------- */
.hv-toasts {
	position: fixed;
	left: 50%;
	bottom: calc(var(--tabbar-space) + 14px);
	z-index: 200;
	display: grid;
	gap: 8px;
	width: max-content;
	max-width: calc(100% - 32px);
	transform: translateX(-50%);
	pointer-events: none;
}

@media (min-width: 1024px) {
	.hv-toasts { bottom: 28px; }
}

.hv-toast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 20px;
	border-radius: var(--r-pill);
	background: var(--c-ink);
	color: #fff;
	font: 500 .875rem/1.3 var(--f-sans);
	box-shadow: var(--shadow-2);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
	pointer-events: auto;
}

.hv-toast.is-visible { opacity: 1; transform: none; }
.hv-toast--error { background: var(--c-error); }
.hv-toast a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

.hv-fab {
	position: fixed;
	right: 16px;
	bottom: calc(var(--tabbar-space) + 16px);
	z-index: 40;
}

body.hv-has-buybar .hv-fab { bottom: calc(84px + var(--safe-b)); }

@media (min-width: 1024px) {
	.hv-fab,
	body.hv-has-buybar .hv-fab { right: 28px; bottom: 28px; }
}

.hv-fab__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--c-surface);
	color: var(--c-ink);
	box-shadow: var(--shadow-2);
	border: 1px solid var(--c-line);
}

.hv-fab__list {
	position: absolute;
	right: 0;
	bottom: 62px;
	display: grid;
	gap: 8px;
	width: max-content;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--t-fast), transform var(--t) var(--ease), visibility 0s linear var(--t);
}

.hv-fab.is-open .hv-fab__list {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.hv-fab__link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 18px 0 14px;
	border-radius: var(--r-pill);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	box-shadow: var(--shadow-2);
	font: 600 .875rem/1 var(--f-sans);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.hv-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0 0 16px;
	padding: 14px 18px;
	border-radius: var(--r-md);
	background: var(--c-sky);
	color: #1F3447;
	font-size: var(--fs-sm);
	list-style: none;
}

.woocommerce-message { background: #E3EEE5; color: #24452F; }
.woocommerce-error { background: #F9E3E0; color: #7A1F18; }
.woocommerce-error li { width: 100%; }

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	order: 2;
	margin-left: auto;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

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

/* ---------- 20. Pagination ---------- */
.hv-pagination {
	display: grid;
	justify-items: center;
	gap: 18px;
	margin-top: clamp(40px, 6vw, 72px);
}

.hv-pagination__progress { font-size: var(--fs-sm); color: var(--c-ink-2); }

.hv-pagination__bar {
	width: 180px;
	height: 2px;
	margin-top: 10px;
	background: var(--c-line);
}

.hv-pagination__bar span { display: block; height: 100%; background: var(--c-ink); }

.hv-pagination__pages,
.woocommerce-pagination ul,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.hv-pagination__pages a,
.hv-pagination__pages span,
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 8px;
	border-radius: var(--r-pill);
	font: 600 .875rem/1 var(--f-sans);
}

.hv-pagination__pages a:hover,
a.page-numbers:hover { background: var(--c-sand); }

.hv-pagination__pages [aria-current],
.page-numbers.current { background: var(--c-ink); color: #fff; }

/* ---------- 21. Skeleton ---------- */
.hv-skeleton {
	position: relative;
	overflow: hidden;
	border-radius: var(--r-sm);
	background: var(--c-sand);
}

.hv-skeleton::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
	transform: translateX(-100%);
	animation: hv-shimmer 1.3s infinite;
}

@keyframes hv-shimmer {
	to { transform: translateX(100%); }
}

/* ---------- 22. Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js [data-hv-reveal] {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity .7s var(--ease), transform .7s var(--ease);
	}

	.js [data-hv-reveal].is-visible {
		opacity: 1;
		transform: none;
	}
}

/* ---------- 23. Page header (inner pages) ---------- */
.hv-pagehead { padding: 8px 0 clamp(24px, 4vw, 40px); }
.hv-pagehead__title { margin-top: 4px; }
.hv-pagehead__lead { margin-top: 14px; max-width: 62ch; color: var(--c-ink-2); }
.hv-pagehead--center { text-align: center; }
.hv-pagehead--center .hv-pagehead__lead { margin-inline: auto; }

/* ---------- 24. Sticky buy bar spacing helper ---------- */
body.hv-has-buybar { padding-bottom: 0; }

/* ---------- 25. Product options (colour swatches, size buttons) ---------- */
.hv-options { display: grid; gap: 20px; }

.hv-option {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.hv-option__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin-bottom: 10px;
	padding: 0;
	font: 600 .875rem/1.3 var(--f-sans);
}

.hv-option__value { font-weight: 400; color: var(--c-ink-2); }
.hv-option__value:not(:empty)::before { content: ': '; color: var(--c-ink); font-weight: 600; }

.hv-option__guide {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	font: 500 .8125rem/1 var(--f-sans);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hv-option__list { display: flex; flex-wrap: wrap; gap: 8px; }
.hv-option__item { position: relative; cursor: pointer; }

.hv-option__item input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.hv-option__text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 54px;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-pill);
	background: var(--c-surface);
	font: 600 .875rem/1 var(--f-sans);
	transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}

.hv-option__item:hover .hv-option__text { border-color: var(--c-ink); }

.hv-option__item input:checked + .hv-option__text {
	border-color: var(--c-ink);
	background: var(--c-ink);
	color: #fff;
}

.hv-option__item input:focus-visible + .hv-option__text,
.hv-option__item input:focus-visible + .hv-option__swatch { outline: 2px solid var(--c-ink); outline-offset: 3px; }

.hv-option__item.is-unavailable { cursor: not-allowed; }

.hv-option__item.is-unavailable .hv-option__text {
	border-style: dashed;
	color: var(--c-ink-3);
	background: linear-gradient(to top right, transparent calc(50% - .5px), var(--c-line) 50%, transparent calc(50% + .5px));
}

.hv-option__swatch {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--swatch);
	box-shadow: inset 0 0 0 1px rgba(31, 27, 24, .14);
	transition: box-shadow var(--t-fast);
}

.hv-option__item--swatch { padding: 4px; }
.hv-option__item input:checked + .hv-option__swatch { box-shadow: inset 0 0 0 1px rgba(31, 27, 24, .14), 0 0 0 2px var(--c-bg), 0 0 0 3.5px var(--c-ink); }
.hv-drawer .hv-option__item input:checked + .hv-option__swatch { box-shadow: inset 0 0 0 1px rgba(31, 27, 24, .14), 0 0 0 2px var(--c-surface), 0 0 0 3.5px var(--c-ink); }
.hv-option__item--swatch.is-unavailable .hv-option__swatch { opacity: .35; }
/* «Your size» (size finder, @heaven/fit): a ring of dawn light around the advised size. */
.hv-option__item.is-yours::after {
	content: '';
	position: absolute;
	inset: -4px;
	padding: 2px;
	border-radius: var(--r-pill);
	background: conic-gradient(from 200deg, #EFAE8F, #F6E3D6, #9DBBD1, #F6E3D6, #EFAE8F);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
}

@keyframes hv-yours-land {
	0% { opacity: 0; transform: scale(1.6); }
	60% { opacity: 1; transform: scale(.96); }
	100% { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
	.hv-option__item.is-yours.is-fresh::after { animation: hv-yours-land .9s var(--ease) .25s both; }
}

.hv-option.is-error .hv-option__label { color: var(--c-error); }
.hv-option.is-error .hv-option__text { border-color: var(--c-error); }

/* ---------- 26. Quick add sheet ---------- */
.hv-quick { display: grid; gap: 20px; }
.hv-quick__top { display: flex; gap: 16px; }

.hv-quick__media {
	flex: none;
	width: 88px;
	aspect-ratio: 2 / 3;
	border-radius: var(--r-sm);
	background: var(--c-sand);
	overflow: hidden;
}

.hv-quick__media img { width: 100%; height: 100%; object-fit: cover; }
.hv-quick__title { display: block; margin-bottom: 8px; font: 500 1rem/1.35 var(--f-sans); }
.hv-quick__stock { margin-top: 6px; font: 600 .8125rem/1.3 var(--f-sans); color: var(--c-clay); }

/* ---------- 27. Welcome offer teaser ---------- */
.hv-teaser {
	position: fixed;
	left: 16px;
	bottom: calc(var(--tabbar-space) + 16px);
	z-index: 40;
	display: flex;
	align-items: center;
	border-radius: var(--r-pill);
	background: var(--c-ink);
	color: #fff;
	box-shadow: var(--shadow-2);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.hv-teaser.is-visible { opacity: 1; transform: none; }
body.hv-has-buybar .hv-teaser { bottom: calc(84px + var(--safe-b)); }

.hv-teaser__main {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 6px 0 16px;
	color: inherit;
	font: 600 .8125rem/1 var(--f-sans);
}

.hv-teaser__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 44px;
	color: inherit;
	opacity: .7;
}

@media (min-width: 1024px) {
	.hv-teaser,
	body.hv-has-buybar .hv-teaser { left: 28px; bottom: 28px; }
}

/* ---------- 28. Misc ---------- */
.hv-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hv-notice .hv-icon { flex: none; }

/* ---------- 29. Article cards ---------- */
.hv-posts { display: grid; gap: 32px; }

@media (min-width: 600px) {
	.hv-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
}

@media (min-width: 900px) {
	.hv-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
}

.hv-post__media {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: var(--r-md);
	background: var(--c-line);
	overflow: hidden;
}

.hv-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }

@media (hover: hover) {
	.hv-post:hover .hv-post__media img { transform: scale(1.04); }
}

.hv-post__body { display: grid; gap: 8px; padding-top: 16px; }
.hv-post__meta { font-size: .8125rem; color: var(--c-ink-2); }
.hv-post__title { font: 600 1.5rem/1.15 var(--f-serif); }
.hv-post__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hv-post__excerpt { font-size: var(--fs-sm); line-height: 1.55; color: var(--c-ink-2); }
.hv-empty { display: grid; justify-items: center; gap: 12px; padding: 56px 12px; text-align: center; }

.hv-drawer__panel:focus,
.hv-lightbox__panel:focus { outline: none; }

/* ---------- 30. Refinements ---------- */
html { background: var(--c-bg); }

/* Desktop menu: the eight links share whatever room is left between the logo and the icons,
   so the spacing follows the window instead of a fixed gap that could push links out of sight. */
@media (min-width: 1024px) {
	.hv-nav { min-width: 0; overflow: hidden; }
	.hv-nav__list { flex-wrap: nowrap; justify-content: space-between; gap: 8px; max-width: 860px; margin-inline: auto; }
	.hv-header__actions { flex: none; }
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
	.hv-header__inner { gap: 24px; }
	.hv-nav__link { font-size: .875rem; }
}

/* Tablets in landscape, up to 1160 px: the word HEAVEN and all eight links do not fit side by side at a readable
   size, so the logo shows its cloud alone (the SVG is cropped to its left edge, the name stays for screen readers). */
@media (min-width: 1024px) and (max-width: 1159.98px) {
	.hv-header__inner { gap: 16px; }
	.hv-header .hv-logo__svg { width: 31px; height: 20px; }
}
.hv-card__title { padding-block: 3px; }
.hv-footer__legal a { display: inline-flex; align-items: center; min-height: 28px; }

dialog.hv-drawer { overflow: clip; }

/* Rows that swipe sideways never scroll vertically: an up or down swipe over them always moves the page.
   The block padding (cancelled by the margin) keeps focus rings inside the clip box. */
.hv-products--carousel,
.hv-cats,
.hv-quotes,
.hv-chips {
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	padding-block: 6px;
	margin-block: -6px;
}

.hv-breadcrumbs,
.hv-gallery__track,
.hv-lightbox__thumbs,
.hv-table-wrap,
.hv-prose .wp-block-table,
.woocommerce-MyAccount-navigation ul { overflow-y: hidden; }

/* Colour picker of a model: every colour is its own product, so the swatches are links (see heaven_render_color_links()). */
.hv-option__item.is-current { cursor: default; }
.hv-option__item.is-current .hv-option__swatch { box-shadow: inset 0 0 0 1px rgba(31, 27, 24, .14), 0 0 0 2px var(--c-bg), 0 0 0 3.5px var(--c-ink); }
.hv-drawer .hv-option__item.is-current .hv-option__swatch { box-shadow: inset 0 0 0 1px rgba(31, 27, 24, .14), 0 0 0 2px var(--c-surface), 0 0 0 3.5px var(--c-ink); }
a.hv-option__item--swatch { display: block; border-radius: 50%; }
a.hv-option__item--swatch.is-unavailable { cursor: pointer; }
a.hv-option__item--swatch:focus-visible { outline: none; }
a.hv-option__item--swatch:focus-visible .hv-option__swatch { outline: 2px solid var(--c-ink); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
	a.hv-option__item--swatch:hover .hv-option__swatch { box-shadow: inset 0 0 0 1px rgba(31, 27, 24, .14), 0 0 0 2px var(--c-bg), 0 0 0 3px var(--c-line); }
}

/* Product card: the colour of this card among the colours of its model. */
.hv-swatch.is-current { box-shadow: inset 0 0 0 1px rgba(31, 27, 24, .14), 0 0 0 1.5px var(--c-bg), 0 0 0 2.5px var(--c-ink); }

/* Product card: the colour of this card, on its own line under the model name. */
.hv-card__color { margin-top: -3px; font-size: .8125rem; line-height: 1.3; color: var(--c-ink-2); }


/* ---------- Consent banner (Microsoft Clarity / Google Analytics; heaven-core analytics/consent.php) ---------- */

.hv-consent {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(12px + var(--safe-b));
	z-index: 60;
	display: grid;
	gap: 12px;
	padding: 16px;
	border-radius: var(--r-md);
	background: var(--c-surface);
	box-shadow: var(--shadow-3);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.hv-has-tabbar .hv-consent { bottom: calc(var(--tabbar-space) + 12px); }
.hv-consent.is-open { opacity: 1; transform: none; }
.hv-consent[hidden] { display: none; }

.hv-consent__text {
	margin: 0;
	color: var(--c-ink-2);
	font-size: .875rem;
	line-height: 1.5;
}

.hv-consent__text a { color: var(--c-ink); }
.hv-consent__actions { display: flex; gap: 8px; }
.hv-consent__actions .hv-btn { flex: 1; }

/* «Вимкнути cookie»: only when the banner is opened from the footer link. */
.hv-consent__off {
	justify-self: center;
	min-height: 44px;
	margin: -8px 0 -12px;
	padding: 0 12px;
	border: 0;
	background: none;
	color: var(--c-ink-2);
	font: inherit;
	font-size: .8125rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.hv-consent__off[hidden] { display: none; }

@media (min-width: 1024px) {
	.hv-consent,
	.hv-has-tabbar .hv-consent {
		left: 24px;
		right: auto;
		bottom: 24px;
		max-width: 420px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hv-consent { transition: none; }
}
