/* ==========================================================================
   KERA — Сердце дома. Основные стили темы.
   Перенесено с сайта на Next.js (Tailwind + shadcn/ui) в обычный CSS без сборки.
   Порядок: шрифты → токены → база → раскладка → компоненты → страницы → WooCommerce.
   ========================================================================== */

/* ---------- Шрифты (локально, WOFF2) ---------- */
@font-face {
	font-family: "Archive Ukr Digits";
	src: url("../fonts/archive-ukr-digits.woff2") format("woff2");
	unicode-range: U+0030-0039;
	font-display: swap;
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("../fonts/playfair-cyrillic-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("../fonts/playfair-latin-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	font-style: italic;
	font-weight: 400 900;
	font-display: swap;
	src: url("../fonts/playfair-cyrillic-italic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Playfair Display";
	font-style: italic;
	font-weight: 400 900;
	font-display: swap;
	src: url("../fonts/playfair-latin-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
	--bg: #0f0d0b;
	--fg: #e7e5e4;
	--ivory: #eae0cc;
	--title: #d4c9b8;
	--gold: #c9a84c;
	--gold-light: #d8b75c;
	--gold-hover: #e5c56c;
	--gold-5: rgba(201, 168, 76, 0.05);
	--gold-8: rgba(201, 168, 76, 0.08);
	--gold-10: rgba(201, 168, 76, 0.1);
	--gold-15: rgba(201, 168, 76, 0.15);
	--gold-20: rgba(201, 168, 76, 0.2);
	--gold-30: rgba(201, 168, 76, 0.3);
	--gold-40: rgba(201, 168, 76, 0.4);
	--gold-50: rgba(201, 168, 76, 0.5);
	--gold-60: rgba(201, 168, 76, 0.6);
	--gold-70: rgba(201, 168, 76, 0.7);
	--stone-200: #e7e5e4;
	--stone-300: #d6d3d1;
	--stone-400: #a8a29e;
	--stone-500: #78716c;
	--stone-600: #57534e;
	--stone-900: #1c1917;
	--stone-950: #0c0a09;
	--success: #10b981;
	--danger: #f87171;
	--radius-md: 0.625rem;
	--radius-lg: 0.75rem;
	--radius-xl: 1rem;
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
	--shadow-xl: 0 20px 25px -5px rgba(201, 168, 76, 0.05), 0 8px 10px -6px rgba(201, 168, 76, 0.05);
	--font: "Archive Ukr Digits", "Playfair Display", Georgia, "Times New Roman", serif;
	--header-h: 3.5rem;
	--p: 0; /* прогресс прокрутки первого экрана 0…1, задаёт main.js */
	color-scheme: dark;
}

/* ---------- База ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
	border: 0 solid var(--gold);
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}
body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.5;
	letter-spacing: 0.03em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
	/* Как на старом сайте: без выделения текста и мигающего курсора на некликабельных элементах. */
	-webkit-user-select: none;
	user-select: none;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a, button, [role="button"], label { cursor: pointer; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; padding: 0; }
input, textarea, select, [contenteditable="true"] {
	cursor: text;
	-webkit-user-select: text;
	user-select: text;
}
:not(input):not(textarea):not([contenteditable="true"]) { caret-color: transparent; }
button[disabled], [aria-disabled="true"] { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--gold-50); outline-offset: 2px; }
.icon { width: 1em; height: 1em; flex-shrink: 0; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.text-center { text-align: center; }
.muted { color: var(--stone-500); }
.pre-line { white-space: pre-line; }
[hidden] { display: none !important; }

/* Вертикальные отступы между дочерними элементами (аналог space-y-*) */
.stack-1 > * + * { margin-top: 0.25rem; }
.stack-2 > * + * { margin-top: 0.5rem; }
.stack-3 > * + * { margin-top: 0.75rem; }
.stack-4 > * + * { margin-top: 1rem; }
.stack-6 > * + * { margin-top: 1.5rem; }
.stack-8 > * + * { margin-top: 2rem; }
.stack-12 > * + * { margin-top: 3rem; }

/* Появление страницы (fade-in + slide-in-from-bottom) */
.fade-up { animation: fade-up 0.7s ease-out both; }
@keyframes fade-up {
	from { opacity: 0; transform: translateY(1rem); }
	to { opacity: 1; transform: none; }
}

/* ---------- Фон: горы, эффект Кена Бёрнса, затемнение при прокрутке ---------- */
.sacred-bg {
	position: fixed;
	inset: 0 0 auto 0;
	height: 100vh;
	height: 100lvh; /* не «прыгает» при сворачивании адресной строки на телефонах */
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	contain: strict;
}
.sacred-bg__image {
	position: absolute;
	inset: 0;
	background: #1a1510 url("../img/mountains-bg.webp") center / cover no-repeat;
	animation: ken-burns 60s ease-in-out infinite;
	will-change: transform;
}
@keyframes ken-burns {
	0%, 100% { transform: scale(1) translate3d(0, 0, 0); }
	33% { transform: scale(1.1) translate3d(-1%, -0.5%, 0); }
	66% { transform: scale(1.08) translate3d(0.5%, 0.5%, 0); }
}
.sacred-bg__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(15, 13, 11, calc(0.3 + var(--p) * 0.5)),
		rgba(10, 8, 6, calc(0.5 + var(--p) * 0.4))
	);
}
/* Золотые блики — радиальными градиентами вместо blur-фильтров (дешевле для GPU). */
.sacred-bg__glow {
	position: absolute;
	inset: 0;
	opacity: calc((1 - var(--p)) * 0.6);
	background:
		radial-gradient(300px 150px at 50% 0%, rgba(201, 168, 76, 0.06), transparent 70%),
		radial-gradient(260px 260px at 0% 100%, rgba(201, 168, 76, 0.08), transparent 70%),
		radial-gradient(200px 320px at 100% 33%, rgba(201, 168, 76, 0.04), transparent 70%);
}

/* ---------- Раскладка ---------- */
.container { width: 100%; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

.site-main { flex: 1; position: relative; }
.page-wrap {
	position: relative;
	margin-inline: auto;
	padding: 4rem 1rem;
	min-height: calc(100vh - 9rem);
}
.page-wrap > * + * { margin-top: 3rem; }
.page--xs { max-width: calc(28rem + 2rem); }
.page--sm { max-width: calc(48rem + 2rem); }
.page--sm > * + *, .page--xs > * + * { margin-top: 2.5rem; }
.page--md { max-width: calc(56rem + 2rem); padding-block: 5rem; }
.page--md > * + * { margin-top: 6rem; }
.page--lg { max-width: calc(72rem + 2rem); }
.page--product { max-width: calc(64rem + 2rem); }
.page--center { display: flex; align-items: center; justify-content: center; }
.page-outro { padding-bottom: 1rem; }

/* ---------- Шапка ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--gold-8);
	background: rgba(15, 13, 11, 0.4);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; }
.site-logo .logo { width: 3rem; height: 3rem; }
.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--radius-lg);
	color: var(--stone-400);
	font-size: 1.25rem;
	transition: color 0.2s, background-color 0.2s;
}
.icon-btn:hover { color: var(--ivory); background: var(--gold-10); }
.icon-btn__badge {
	position: absolute;
	top: -0.25rem;
	right: -0.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 1rem;
	height: 1rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background: var(--gold);
	color: var(--bg);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0;
}
.icon-btn__dot { position: absolute; top: 0.25rem; right: 0.25rem; width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--gold); }
.icon-btn--gold { color: var(--gold-60); font-size: 1rem; width: 2rem; height: 2rem; border-radius: var(--radius-md); }
.icon-btn--gold:hover { color: var(--gold); background: var(--gold-15); }

/* ---------- Подвал ---------- */
.site-footer {
	border-top: 1px solid var(--gold-8);
	background: rgba(15, 13, 11, 0.3);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.site-footer__inner { padding-block: 2rem; text-align: center; }
.site-footer__inner > * + * { margin-top: 0.5rem; }
.site-footer__brand { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--stone-500); }
.site-footer__copy { font-size: 10px; color: var(--stone-600); }
.site-footer__link { display: inline-block; font-size: 0.75rem; color: var(--stone-500); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.site-footer__link:hover { color: var(--gold); }
.site-footer__legal { padding-top: 1rem; font-size: 10px; line-height: 1.625; letter-spacing: 0.025em; color: var(--stone-600); }
.site-footer__legal > * + * { margin-top: 0.25rem; }

/* ---------- Карточки ---------- */
.temple-card,
.temple-card-hover {
	border: 1px solid var(--gold-15);
	border-radius: var(--radius-xl);
	background: rgba(28, 25, 23, 0.7);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: var(--shadow-lg);
	transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.temple-card-hover:hover {
	border-color: var(--gold-30);
	background: rgba(28, 25, 23, 0.8);
	box-shadow: var(--shadow-xl);
}
.gold-glow { box-shadow: 0 0 20px rgba(214, 155, 64, 0.15), 0 0 60px rgba(214, 155, 64, 0.05); }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 2.5rem;
	padding: 0 1rem;
	border: 1px solid transparent;
	border-radius: var(--radius-lg);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	text-align: center;
	transition: background-color 0.3s, box-shadow 0.3s, filter 0.3s, border-color 0.3s, color 0.3s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { font-size: 1rem; }
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold:hover { background: rgba(201, 168, 76, 0.9); box-shadow: 0 10px 15px -3px var(--gold-20); }
.btn--gold-gradient {
	background: linear-gradient(to bottom, var(--gold-light), var(--gold));
	color: var(--bg);
	font-weight: 600;
	letter-spacing: 0.025em;
	box-shadow: 0 10px 15px -3px rgba(201, 168, 76, 0.25), 0 4px 6px -4px rgba(201, 168, 76, 0.25);
}
.btn--gold-gradient:hover { filter: brightness(1.1); }
.btn--outline { border-color: var(--gold-30); background: var(--gold-30); color: var(--ivory); }
.btn--outline:hover { background: var(--gold-50); }
.btn--lg { height: 2.75rem; padding: 0 1.5rem; }
.btn--lg .icon { font-size: 1.25rem; }
.btn--tall { height: 3.5rem; }
.btn--xl { height: 4rem; width: 100%; max-width: 28rem; padding: 0 2.5rem; font-size: 1.125rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.gold-glow.btn--gold-gradient { box-shadow: 0 10px 15px -3px rgba(201, 168, 76, 0.25), 0 0 20px rgba(214, 155, 64, 0.15), 0 0 60px rgba(214, 155, 64, 0.05); }

/* ---------- Типографика и мелкие элементы ---------- */
.page-title { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; letter-spacing: -0.025em; color: var(--ivory); }
.page-title--sm { font-size: 1.875rem; line-height: 2.25rem; }
@media (min-width: 640px) {
	.page-title { font-size: 3rem; line-height: 1; }
	.page-title--sm { font-size: 2.25rem; line-height: 2.5rem; }
}
.section-head { text-align: center; }
.section-head > * + * { margin-top: 0.5rem; }
.section-head--catalog > * + * { margin-top: 0.75rem; }
.section-title { font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: var(--ivory); }
@media (min-width: 640px) { .section-title { font-size: 1.875rem; line-height: 2.25rem; } }
.section-lead { max-width: 32rem; margin-inline: auto; font-size: 0.875rem; line-height: 1.25rem; color: var(--stone-400); }
.section-head--catalog .section-lead { max-width: 28rem; font-size: 1rem; line-height: 1.5rem; }
.eyebrow { font-size: 0.75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--gold-60); }
.eyebrow--sm { letter-spacing: 0.15em; }
.eyebrow--xs { letter-spacing: 0.1em; }
.lead-italic { font-size: 1.125rem; line-height: 1.625; font-weight: 300; font-style: italic; color: var(--ivory); }
@media (min-width: 640px) { .lead-italic { font-size: 1.25rem; } }
.text-body { font-size: 0.875rem; line-height: 1.625; color: var(--stone-300); }
.note { font-size: 0.75rem; line-height: 1.625; color: var(--stone-500); }
.price-gold { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.price-gold--sm { font-size: 0.875rem; }
.divider { height: 1px; width: 4rem; margin-inline: auto; background: linear-gradient(to right, transparent, var(--gold-40), transparent); }
.divider--wide { width: 6rem; background: linear-gradient(to right, transparent, var(--gold-20), transparent); }
.gold-dot { width: 0.25rem; height: 0.25rem; border-radius: 999px; background: var(--gold-40); flex-shrink: 0; }
.dots-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 0.75rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; }
.dots-line--muted { color: var(--stone-500); }
.dots-line--gold { color: var(--gold-50); }
.dots-line--gold .gold-dot { background: var(--gold-30); }
.outro-text { max-width: 36rem; margin-inline: auto; font-size: 0.875rem; line-height: 1.625; font-style: italic; color: var(--stone-400); }
.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--gold-20);
	border-radius: 999px;
	background: var(--gold-5);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--gold-70);
}
.chip .icon { font-size: 0.75rem; color: var(--gold); }
.icon-tile {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-lg);
	background: var(--gold-15);
	color: var(--gold);
	font-size: 1.25rem;
	transition: background-color 0.2s;
}
.temple-card-hover:hover .icon-tile { background: rgba(201, 168, 76, 0.25); }
.dot-list > * + * { margin-top: 0.5rem; }
.dot-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--stone-400); font-variant-numeric: tabular-nums; }
.dot-list li::before { content: ""; flex-shrink: 0; width: 0.25rem; height: 0.25rem; margin-top: 0.5rem; border-radius: 999px; background: var(--gold-40); }

.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--stone-400); transition: color 0.2s; }
.back-link:hover { color: var(--gold); }
.back-link--pill { padding: 0.375rem 0.75rem; border-radius: var(--radius-lg); background: rgba(15, 13, 11, 0.6); color: var(--stone-200); }

.hero-icon { position: relative; display: inline-flex; margin-bottom: 1rem; }
.hero-icon__glow { position: absolute; inset: -0.5rem; border-radius: 999px; background: radial-gradient(circle, rgba(201, 168, 76, 0.3), transparent 70%); }
.hero-icon__circle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border: 1px solid var(--gold-30);
	border-radius: 999px;
	background: rgba(15, 13, 11, 0.8);
	color: var(--gold);
	font-size: 1.75rem;
}

.page-heading { display: flex; align-items: center; gap: 0.75rem; color: var(--gold); font-size: 1.5rem; }
.page-heading__title { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; letter-spacing: -0.025em; color: var(--ivory); }
.page-heading--sm .page-heading__title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; padding-block: 5rem; text-align: center; }
.empty-state__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 5rem;
	height: 5rem;
	border: 1px solid var(--gold-10);
	border-radius: 999px;
	background: rgba(15, 13, 11, 0.6);
	color: var(--stone-500);
	font-size: 2rem;
}
.empty-state__text > * + * { margin-top: 0.5rem; }
.empty-state__title { font-size: 1.125rem; color: var(--stone-300); }
.empty-state__hint { font-size: 0.875rem; color: var(--stone-400); }

/* ---------- Главная ---------- */
.home-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: calc(100vh - 9rem);
	padding: 10rem 1rem 4rem;
	overflow: hidden;
}
@media (min-width: 768px) { .home-wrap { padding-top: 14rem; } }
.home__inner { width: 100%; max-width: 56rem; text-align: center; }
.home__inner > * + * { margin-top: 4rem; }
.home__hero > * + * { margin-top: 2rem; }
.home__title-group > * + * { margin-top: 0.75rem; }
.home__title { font-size: clamp(3.5rem, 12vw, 7rem); line-height: 0.9; font-weight: 700; letter-spacing: -0.025em; color: var(--title); }
.home__tagline { font-size: 1.25rem; line-height: 1.75rem; font-weight: 300; text-transform: uppercase; letter-spacing: 0.3em; color: var(--gold); }
@media (min-width: 640px) { .home__tagline { font-size: 1.5rem; line-height: 2rem; } }
.home__cta { display: flex; justify-content: center; padding-top: 0.5rem; }
.home__nav { display: grid; gap: 1rem; max-width: 42rem; margin-inline: auto; }
@media (min-width: 640px) { .home__nav { grid-template-columns: repeat(3, 1fr); } }
.nav-card { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.5rem; text-align: center; }
.nav-card__icon { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: var(--radius-lg); background: var(--gold-15); color: var(--gold); font-size: 1.5rem; }
.nav-card__text { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-card__subtitle { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-60); }
.nav-card__title { font-size: 1rem; font-weight: 500; color: var(--ivory); }
.nav-card__desc { font-size: 0.75rem; color: var(--stone-500); }
.nav-card__arrow { color: var(--gold-40); font-size: 1rem; transition: transform 0.2s, color 0.2s; }
.nav-card:hover .nav-card__arrow { color: rgba(201, 168, 76, 0.8); transform: translateX(0.125rem); }

/* ---------- О мануфактуре / Контакты / Политика ---------- */
.about-card { max-width: 42rem; margin-inline: auto; padding: 2rem; }
.about-card > * + * { margin-top: 1.5rem; }
.about-card.text-center > * + * { margin-top: 1rem; }
.contacts-grid { display: grid; gap: 1rem; max-width: 42rem; margin-inline: auto; }
@media (min-width: 640px) { .contacts-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { display: flex; align-items: flex-start; gap: 1rem; height: 100%; padding: 1.25rem; }
.contact-card__text { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-card__value { font-size: 0.875rem; color: var(--ivory); font-variant-numeric: tabular-nums; }
.delivery-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .delivery-grid { grid-template-columns: repeat(2, 1fr); } }
.delivery-card { padding: 1.5rem; }
.delivery-card > * + * { margin-top: 1rem; }
.delivery-card__title { font-size: 1.125rem; font-weight: 500; color: var(--ivory); }
.signature { display: flex; align-items: center; justify-content: center; gap: 0.75rem; font-size: 1.125rem; color: var(--stone-400); }
.signature .icon { font-size: 1.25rem; color: var(--gold); }
.policy > * + * { margin-top: 2.5rem; }
.policy-card { padding: 1.5rem; }
.policy-card > * + * { margin-top: 0.75rem; }
.policy-card h2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; color: var(--ivory); }
.policy-card p, .policy-card li { font-size: 0.875rem; line-height: 1.625; color: var(--stone-400); }
.policy-card a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.policy__copy { text-align: center; font-size: 0.75rem; color: var(--stone-500); }
.entry-content > * + * { margin-top: 1rem; }
.entry-content { font-size: 0.875rem; line-height: 1.625; color: var(--stone-300); }
.entry-content h2, .entry-content h3 { color: var(--ivory); font-weight: 600; }
.entry-content a { color: var(--gold); text-decoration: underline; }

/* ---------- Каталог ---------- */
.catalog-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
.product-card { display: flex; flex-direction: column; padding: 2rem; }
.product-card > * + * { margin-top: 1rem; }
.product-card__media { position: relative; aspect-ratio: 4 / 3; margin: -0.5rem -0.5rem 0.5rem; border-radius: var(--radius-lg); overflow: hidden; background: var(--stone-900); }
.product-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 10, 9, 0.8), rgba(12, 10, 9, 0.3) 50%, rgba(12, 10, 9, 0.1)); }
.product-card__line { position: absolute; bottom: 0; left: 10%; width: 80%; height: 1px; background: linear-gradient(to right, transparent, var(--gold-20), transparent); }
.product-card__head > * + * { margin-top: 0.25rem; }
.product-card__title { font-size: 1.5rem; line-height: 2rem; font-weight: 600; color: var(--ivory); transition: color 0.3s; }
.product-card:hover .product-card__title { color: var(--gold); }
.product-card__volume { font-size: 0.875rem; color: var(--stone-500); font-variant-numeric: tabular-nums; }
.product-card__scent { font-size: 0.875rem; color: var(--stone-300); }
.product-card__essence { flex: 1; font-size: 0.875rem; line-height: 1.625; color: var(--stone-400); }
.product-card__footer { padding-top: 1rem; border-top: 1px solid var(--gold-10); }
.product-card__footer > * + * { margin-top: 1rem; }
.product-card__cta { font-size: 0.875rem; padding-inline: 1.5rem; box-shadow: 0 10px 15px -3px var(--gold-20); }
.product-card:hover .product-card__cta { filter: brightness(1.1); }

/* ---------- Страница свечи ---------- */
.product-layout { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .product-layout { grid-template-columns: repeat(2, 1fr); gap: 4rem; align-items: start; } }
.product-photo { position: relative; aspect-ratio: 1; border-radius: var(--radius-xl); overflow: hidden; }
.product-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.feature { padding: 0.75rem; text-align: center; }
.feature > * + * { margin-top: 0.25rem; }
.feature .icon { margin-inline: auto; color: var(--gold-60); }
.feature__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-50); }
.feature__value { font-size: 11px; line-height: 1.625; color: var(--stone-400); }
.product-info { padding: 2rem; }
.product-info > * + * { margin-top: 2rem; }
.product-info__title { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; letter-spacing: -0.025em; color: var(--ivory); }
@media (min-width: 640px) { .product-info__title { font-size: 3rem; line-height: 1; } }
.product-info__scent { font-size: 1.125rem; font-weight: 300; font-style: italic; color: var(--stone-300); }
.price-row { display: flex; align-items: baseline; gap: 0.75rem; }
.price-row__price { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.price-row__volume { font-size: 0.875rem; color: var(--stone-400); font-variant-numeric: tabular-nums; }
.btn--add { width: 100%; }
@media (min-width: 640px) { .btn--add { width: auto; } }
.sold-out { padding: 0.75rem 1rem; border: 1px solid var(--gold-20); border-radius: var(--radius-lg); font-size: 0.875rem; color: var(--stone-300); }
.legend { position: relative; padding: 1.25rem; border: 1px solid var(--gold-10); border-radius: var(--radius-xl); background: rgba(28, 25, 23, 0.5); font-size: 0.875rem; line-height: 1.625; color: var(--stone-300); }
.legend::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, var(--gold-20), transparent); }
.legend > * + * { margin-top: 0.75rem; }

/* ---------- Уведомления-тосты ---------- */
.toasts {
	position: fixed;
	top: 4.5rem;
	right: 1rem;
	z-index: 60;
	width: min(22rem, calc(100% - 2rem));
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.toasts .woocommerce-notices-wrapper { display: contents; }
.toasts ul { display: contents; }
.toasts .woocommerce-message,
.toasts .woocommerce-info,
.toasts .woocommerce-error li,
.toasts .woocommerce-error:not(:has(li)) {
	padding: 1rem;
	border: 1px solid var(--gold-20);
	border-radius: var(--radius-lg);
	background: rgba(28, 25, 23, 0.95);
	box-shadow: var(--shadow-lg);
	font-size: 0.875rem;
	color: var(--ivory);
	animation: toast-in 0.3s ease-out both;
	cursor: pointer;
}
.toasts .woocommerce-message { border-left: 3px solid var(--success); }
.toasts .woocommerce-error li, .toasts .woocommerce-error:not(:has(li)) { border-left: 3px solid var(--danger); }
.toasts .is-hiding { opacity: 0; transform: translateY(-0.5rem); transition: opacity 0.3s, transform 0.3s; }
.toast__title { display: block; font-weight: 600; }
.toast__text { display: block; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--stone-400); }
.toast__text a, .toasts a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.toasts .button { display: none; } /* кнопка «Просмотр корзины» — ссылка уже есть в тексте */
@keyframes toast-in { from { opacity: 0; transform: translateY(-0.5rem); } to { opacity: 1; transform: none; } }

/* ---------- Баннер cookie ---------- */
.cookie-banner {
	position: fixed;
	bottom: max(1rem, env(safe-area-inset-bottom, 0px) + 0.75rem);
	left: 50%;
	z-index: 50;
	width: calc(100% - 2rem);
	max-width: 36rem;
	transform: translateX(-50%);
	box-sizing: border-box;
	animation: cookie-banner-in 0.5s ease-out both;
}
@keyframes cookie-banner-in {
	from { opacity: 0; transform: translate(-50%, 1rem); }
	to { opacity: 1; transform: translate(-50%, 0); }
}
.cookie-banner__card { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; }
@media (min-width: 640px) { .cookie-banner__card { flex-direction: row; align-items: center; } }
.cookie-banner__body { display: flex; align-items: flex-start; gap: 0.75rem; flex: 1 1 auto; min-width: 0; }
.cookie-banner__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-top: 0.125rem;
	border: 1px solid var(--gold-30);
	border-radius: 999px;
	background: rgba(15, 13, 11, 0.8);
	color: var(--gold);
	font-size: 1rem;
}
.cookie-banner__text { font-size: 0.875rem; line-height: 1.625; color: var(--stone-300); }
.cookie-banner__text a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__text a:hover { color: var(--gold-hover); }
.cookie-banner__hint { margin-top: 0.25rem; font-size: 0.75rem; color: var(--stone-500); }
.cookie-banner__btn { flex-shrink: 0; border-color: var(--gold-40); }
.cookie-banner__btn:hover { background: var(--gold-hover); }

/* ==========================================================================
   WooCommerce
   ========================================================================== */

/* ---------- Поля форм ---------- */
.woocommerce form .form-row { margin: 0 0 1rem; }
.woocommerce form .form-row label,
.woocommerce form .form-row .woocommerce-form__label { display: block; margin-bottom: 0.375rem; font-size: 0.875rem; color: var(--stone-400); }
.woocommerce form .form-row label.checkbox,
.woocommerce form .form-row .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: flex-start; gap: 0.5rem; margin: 0; line-height: 1.4; }
.woocommerce .required { color: var(--gold); text-decoration: none; border: 0; }
.woocommerce form .form-row .optional { color: var(--stone-500); font-size: 0.75rem; }
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.woocommerce .qty,
.coupon .input-text,
.select2-container--default .select2-selection--single {
	width: 100%;
	min-height: 2.5rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--gold-20);
	border-radius: var(--radius-md);
	background: rgba(15, 13, 11, 0.6);
	color: var(--ivory);
	font-size: 0.875rem;
	line-height: 1.25rem;
	transition: box-shadow 0.2s, border-color 0.2s;
	appearance: none;
}
.woocommerce textarea { min-height: 5rem; resize: vertical; }
.woocommerce input.input-text::placeholder, .woocommerce textarea::placeholder { color: var(--stone-500); }
.woocommerce input.input-text:focus, .woocommerce textarea:focus, .woocommerce select:focus {
	outline: none;
	border-color: var(--gold-50);
	box-shadow: 0 0 0 2px var(--gold-50);
}
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select { border-color: var(--danger); }
.woocommerce input[type="checkbox"], .woocommerce input[type="radio"] { width: 1rem; height: 1rem; margin: 0.15rem 0 0; flex-shrink: 0; accent-color: var(--gold); }
@media (min-width: 640px) {
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 0.5rem); display: inline-block; vertical-align: top; }
	.woocommerce form .form-row-first { margin-right: 0.75rem; }
}
.woocommerce form .form-row-wide, .woocommerce form .form-row-first + .form-row-wide { width: 100%; }
.woocommerce form .form-row .description { margin-top: 0.25rem; font-size: 0.75rem; color: var(--stone-500); }
.woocommerce-input-wrapper { display: block; }
.woocommerce form .show-password-input { display: none; }

/* select2 / selectWoo (выбор страны и региона) */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single { display: flex; align-items: center; height: auto; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; color: var(--ivory); line-height: 1.25rem; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); }
.select2-dropdown { border-color: var(--gold-20) !important; background: var(--stone-900) !important; color: var(--ivory); }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--gold-20) !important; color: var(--ivory) !important; }
.select2-search__field { background: var(--bg) !important; color: var(--ivory) !important; border-color: var(--gold-20) !important; }

/* Кнопки WooCommerce */
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	padding: 0.5rem 1rem;
	border: 1px solid transparent;
	border-radius: var(--radius-lg);
	background: var(--gold);
	color: var(--bg);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	transition: background-color 0.3s, box-shadow 0.3s;
}
.woocommerce .button:hover { background: rgba(201, 168, 76, 0.9); box-shadow: 0 10px 15px -3px var(--gold-20); }
.woocommerce .button:disabled, .woocommerce .button.disabled { opacity: 0.5; pointer-events: none; }

/* Уведомления внутри форм (корзина, оформление, кабинет) */
.woocommerce-notices-wrapper:empty { display: none; }
.wc-page .woocommerce-message,
.wc-page .woocommerce-info,
.wc-page .woocommerce-error,
.wc-page .wc-block-components-notice-banner {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--gold-15);
	border-left: 3px solid var(--gold);
	border-radius: var(--radius-lg);
	background: rgba(28, 25, 23, 0.85);
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--stone-300);
	list-style: none;
}
.wc-page .woocommerce-message { border-left-color: var(--success); }
.wc-page .woocommerce-error { border-left-color: var(--danger); }
.wc-page .woocommerce-error li + li { margin-top: 0.375rem; }
.wc-page .woocommerce-message a, .wc-page .woocommerce-info a, .wc-page .woocommerce-error a { color: var(--gold); text-decoration: underline; }
.wc-page .woocommerce-message .button, .wc-page .woocommerce-info .button { float: right; min-height: 0; padding: 0.25rem 0.75rem; margin-left: 1rem; text-decoration: none; }

/* Серая «шторка» WooCommerce при AJAX-обновлении — в тон сайта */
.blockUI.blockOverlay { background: var(--bg) !important; opacity: 0.6 !important; }

/* ---------- Корзина ---------- */
.wc-page > .woocommerce > * + * { margin-top: 2rem; }
.cart-list > * + * { margin-top: 0.75rem; }
.cart-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; }
.cart-item:hover { border-color: var(--gold-30); }
.cart-item__thumb { width: 4rem; height: 4rem; flex-shrink: 0; overflow: hidden; border: 1px solid var(--gold-10); border-radius: var(--radius-lg); }
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 500; color: var(--ivory); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item__price { font-size: 0.875rem; color: var(--stone-400); }
.cart-item .variation, .cart-item .backorder_notification { font-size: 0.75rem; color: var(--stone-500); }
.qty-stepper { display: flex; align-items: center; gap: 0.5rem; }
.qty-stepper__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--gold-20);
	border-radius: var(--radius-md);
	color: var(--stone-400);
	font-size: 0.75rem;
	transition: color 0.2s, border-color 0.2s;
}
.qty-stepper__btn:hover { color: var(--ivory); border-color: var(--gold-40); }
.qty-stepper .quantity { display: contents; }
.qty-stepper .quantity label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.woocommerce .qty-stepper .qty {
	width: 2.25rem;
	min-height: 2rem;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
}
.qty-stepper .qty::-webkit-outer-spin-button, .qty-stepper .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 480px) {
	.cart-item { flex-wrap: wrap; }
	.cart-item__info { flex-basis: calc(100% - 5rem); }
	.cart-item__qty { margin-left: 5rem; }
	.cart-item__remove { margin-left: auto; }
}
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.75rem; margin-top: 1rem; }
.cart-actions .coupon { display: flex; gap: 0.5rem; flex: 1; min-width: 14rem; }
/* Кнопка «Обновить корзину» нужна только без JS: с JS корзина обновляется сама при изменении количества */
.js .cart-actions__update { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.totals-card { padding: 1rem; }
.totals-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.875rem; color: var(--stone-400); }
.totals-row + .totals-row { margin-top: 0.5rem; }
.totals-row--total .totals-row__value { font-size: 1.25rem; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.totals-row--total .totals-row__value small { display: none; }
.totals-card__hint { margin-top: 0.5rem; }
.wc-proceed-to-checkout { margin-top: 1rem; }
.woocommerce .wc-proceed-to-checkout .checkout-button,
.woocommerce #payment #place_order {
	width: 100%;
	min-height: 2.75rem;
	padding-inline: 1.5rem;
	font-size: 1rem;
}

/* ---------- Оформление заказа ---------- */
.woocommerce-checkout .wc-page .woocommerce > * + * { margin-top: 2rem; }
.woocommerce form.checkout > * + * { margin-top: 2rem; }
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { width: 100%; float: none; }
.woocommerce .col2-set .col-2 { margin-top: 1.5rem; }
.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading,
.woocommerce-billing-fields > h3,
.woocommerce-additional-fields > h3 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--gold-10);
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ivory);
}
.woocommerce-checkout h3::before,
.woocommerce-checkout #order_review_heading::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--gold); }
.woocommerce-billing-fields > h3 { border-top: 0; padding-top: 0; }
.woocommerce-checkout #ship-to-different-address { text-transform: none; letter-spacing: 0; }
.woocommerce form .woocommerce-account-fields { margin-top: 0.5rem; }
.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle { margin-bottom: 1rem; }
.woocommerce form.login, .woocommerce form.checkout_coupon { margin-bottom: 1.5rem; padding: 1.5rem; border: 1px solid var(--gold-15); border-radius: var(--radius-xl); background: rgba(28, 25, 23, 0.7); }

/* Форма оформления в одну колонку: «Ваш заказ» → контакты → доставка → оплата → комментарий и кнопка */
.woocommerce form.kera-checkout > * + * { margin-top: 0; }
.kera-checkout .checkout-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gold-10); }
.kera-checkout .checkout-section__title { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ivory); }
.kera-checkout .checkout-section__title .icon { font-size: 1rem; color: var(--gold); }
.kera-checkout .checkout-section__fields::after { content: ""; display: table; clear: both; }
/* !important: скрипт WooCommerce показывает поле страны через style="display:block" */
.woocommerce form .form-row.is-hidden { display: none !important; }
.kera-checkout .checkout-section--final .form-row:last-child { margin-bottom: 0; }

/* Состав заказа */
.checkout-summary { padding: 1rem 1.25rem; font-size: 0.875rem; }
.checkout-summary__item { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; color: var(--stone-300); }
.checkout-summary__item + .checkout-summary__item { border-top: 1px solid var(--gold-10); }
.checkout-summary__qty { margin-left: 0.25rem; color: var(--stone-500); white-space: nowrap; }
.checkout-summary__price { white-space: nowrap; color: var(--ivory); font-variant-numeric: tabular-nums; }
.checkout-summary__totals { margin: 0.5rem 0 0; padding-top: 0.5rem; border-top: 1px solid var(--gold-15); }
.checkout-summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.25rem 0; color: var(--stone-400); }
.checkout-summary__row dd { margin: 0; text-align: right; color: var(--stone-300); font-variant-numeric: tabular-nums; }
.checkout-summary__row--total { margin-top: 0.25rem; }
.checkout-summary__row--total dt { color: var(--stone-400); }
.checkout-summary__row--total dd, .checkout-summary__row--total .amount { font-size: 1.25rem; font-weight: 600; color: var(--gold); }
.checkout-summary .includes_tax { display: none; }

/* Способы доставки — карточки с радиокнопкой, как способы оплаты */
.kera-shipping { margin-top: 0.25rem; }
.kera-shipping__label { margin-bottom: 0.375rem; font-size: 0.875rem; color: var(--stone-400); }
.kera-shipping__empty { padding: 0.75rem 1rem; border: 1px dashed var(--gold-20); border-radius: var(--radius-lg); font-size: 0.8125rem; line-height: 1.5; color: var(--stone-500); }
/* Карточка тарифа: иконка, название, срок, цена. Радиокнопка скрыта визуально, выбор — по всей карточке. */
.woocommerce ul#shipping_method.kera-shipping__list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.woocommerce ul#shipping_method.kera-shipping__list li.kera-rate { position: relative; margin: 0; padding: 0; list-style: none; }
.kera-rate__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.kera-rate__card {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin: 0;
	padding: 0.75rem 1rem;
	border: 1px solid var(--gold-10);
	border-radius: var(--radius-lg);
	background: rgba(15, 13, 11, 0.4);
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}
.kera-shipping, .woocommerce ul#shipping_method.kera-shipping__list, .woocommerce ul#shipping_method.kera-shipping__list li.kera-rate { width: 100%; }
.woocommerce ul#shipping_method.kera-shipping__list li.kera-rate label.kera-rate__card { display: flex; width: 100%; margin: 0; }
.kera-rate__card:hover { border-color: var(--gold-30); }
.kera-rate__input:focus-visible + .kera-rate__card { outline: 2px solid var(--gold); outline-offset: 2px; }
.kera-rate__input:checked + .kera-rate__card,
.kera-rate.is-active .kera-rate__card { border-color: var(--gold-50); background: var(--gold-8); }
.kera-rate__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: var(--gold-10);
	color: var(--stone-400);
	font-size: 1.125rem;
	transition: background-color 0.2s, color 0.2s;
}
.kera-rate__input:checked + .kera-rate__card .kera-rate__icon { background: var(--gold-20); color: var(--gold); }
.kera-rate__body { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; flex: 1; }
.kera-rate__title { font-size: 0.9375rem; font-weight: 500; color: var(--ivory); }
.kera-rate__meta { font-size: 0.75rem; color: var(--stone-500); }
.kera-rate__price { flex-shrink: 0; font-size: 0.9375rem; font-weight: 600; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Плагин СДЭК: его кнопку, всплывающее окно и строку пункта не показываем — карта и адрес выше (checkout-map.js). */
.kera-shipping .open-pvz-btn, .kera-shipping .cdek-office-info { display: none; }

.kera-cdek-map { margin-bottom: 1.25rem; }
.kera-cdek-map.is-off { display: none; }
.kera-cdek-map__root {
	position: relative;
	height: 26rem;
	overflow: hidden;
	border: 1px solid var(--gold-20);
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	background: var(--stone-900);
}
.kera-cdek-map__picked {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--gold-20);
	border-top: 0;
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	background: rgba(15, 13, 11, 0.6);
	transition: border-color 0.2s, background-color 0.2s;
}
.kera-cdek-map__picked > .icon { flex-shrink: 0; margin-top: 0.125rem; font-size: 1.125rem; color: var(--stone-500); }
.kera-cdek-map__picked-label { margin: 0 0 0.125rem; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--stone-500); }
.kera-cdek-map__address { margin: 0; font-size: 0.875rem; line-height: 1.45; color: var(--stone-400); }
.kera-cdek-map.is-picked .kera-cdek-map__picked { border-color: var(--gold-50); background: var(--gold-8); }
.kera-cdek-map.is-picked .kera-cdek-map__picked > .icon, .kera-cdek-map.is-picked .kera-cdek-map__picked-label { color: var(--gold); }
.kera-cdek-map.is-picked .kera-cdek-map__address { color: var(--ivory); }
@media (max-width: 639px) {
	.kera-cdek-map__root { height: 22rem; }
	.kera-rate__card { gap: 0.625rem; padding: 0.625rem 0.75rem; }
	.kera-rate__icon { width: 2rem; height: 2rem; font-size: 1rem; }
}

.payment_methods__empty { padding: 0.75rem 1rem; border: 1px dashed var(--gold-20); border-radius: var(--radius-lg); font-size: 0.8125rem; color: var(--stone-400); list-style: none; }
.woocommerce #payment ul.payment_methods li.payment_methods__empty { padding-left: 1rem; }
.kera-checkout .place-order { margin: 1rem 0 0; }
.woocommerce .kera-checkout .checkout-submit { width: 100%; max-width: none; height: 3rem; font-size: 1rem; }

/* Таблицы: состав заказа, итоги, детали заказа */
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--gold-15);
	border-radius: var(--radius-xl);
	background: rgba(28, 25, 23, 0.7);
	font-size: 0.875rem;
	overflow: hidden;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { padding: 0.75rem 1rem; border-top: 1px solid var(--gold-10); text-align: left; vertical-align: top; color: var(--stone-300); font-weight: 400; }
.woocommerce table.shop_table thead th { border-top: 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-60); }
.woocommerce table.shop_table tr:first-child > * { border-top: 0; }
.woocommerce table.shop_table thead + tbody tr:first-child > * { border-top: 1px solid var(--gold-10); }
.woocommerce table.shop_table td:last-child, .woocommerce table.shop_table th:last-child { text-align: right; }
.woocommerce table.shop_table .product-quantity { color: var(--stone-500); }
.woocommerce table.shop_table .order-total th,
.woocommerce table.shop_table .order-total td { color: var(--ivory); font-weight: 600; }
.woocommerce table.shop_table .order-total .amount { font-size: 1.125rem; color: var(--gold); }
.woocommerce table.shop_table .includes_tax { display: none; }
.woocommerce table.shop_table a { color: var(--ivory); }
.woocommerce table.shop_table a:hover { color: var(--gold); }

/* Способы доставки в итогах */
.woocommerce ul#shipping_method { margin: 0; padding: 0; list-style: none; text-align: left; }
.woocommerce ul#shipping_method li { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0 0 0.5rem; }
.woocommerce ul#shipping_method li:last-child { margin-bottom: 0; }
.woocommerce ul#shipping_method li label { color: var(--stone-300); }
.woocommerce ul#shipping_method .amount { color: var(--gold); }
.woocommerce .woocommerce-shipping-destination, .woocommerce .woocommerce-shipping-contents { margin-top: 0.5rem; font-size: 0.75rem; color: var(--stone-500); }

/* Способы оплаты — карточки с радиокнопкой, как на старом сайте */
.woocommerce #payment { border: 0; background: none; }
.woocommerce #payment ul.payment_methods { margin: 0 0 1.5rem; padding: 0; list-style: none; border: 0; }
.woocommerce #payment ul.payment_methods li {
	position: relative;
	margin: 0 0 0.75rem;
	padding: 0.75rem 0.75rem 0.75rem 2.25rem;
	border: 1px solid var(--gold-10);
	border-radius: var(--radius-lg);
	background: rgba(15, 13, 11, 0.4);
	transition: border-color 0.2s, background-color 0.2s;
}
.woocommerce #payment ul.payment_methods li:hover { border-color: var(--gold-20); }
.woocommerce #payment ul.payment_methods li:has(input:checked) { border-color: var(--gold-50); background: var(--gold-5); }
.woocommerce #payment ul.payment_methods li input { position: absolute; top: 1rem; left: 0.75rem; margin: 0; }
.woocommerce #payment ul.payment_methods li label { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--ivory); }
.woocommerce #payment ul.payment_methods li label img { max-height: 1.5rem; width: auto; }
.woocommerce #payment div.payment_box { margin-top: 0.5rem; padding: 0; background: none; font-size: 0.75rem; line-height: 1.625; color: var(--stone-400); }
.woocommerce #payment div.payment_box::before { display: none; }
/* Вложенные списки плагинов (сохранённые карты и т. п.) — без рамок карточек */
.woocommerce #payment div.payment_box ul,
.woocommerce #payment div.payment_box li { margin: 0; padding: 0; border: 0; background: none; list-style: none; }
.woocommerce #payment div.payment_box li input { position: static; margin-right: 0.5rem; }
.woocommerce #payment .place-order { margin: 0; padding: 0; }
.woocommerce-terms-and-conditions-wrapper, .consent-row { font-size: 0.75rem; line-height: 1.625; color: var(--stone-500); }
.consent-row { margin: 0 0 1rem !important; }
.consent-row label.checkbox span, .consent-row label.checkbox { font-size: 0.75rem; color: var(--stone-400); }
.consent-row a { color: var(--gold-70); text-decoration: underline; text-underline-offset: 2px; }
.consent-row a:hover { color: var(--gold); }
.woocommerce-privacy-policy-text p { font-size: 0.75rem; color: var(--stone-500); }

/* ---------- Спасибо за заказ ---------- */
.thankyou { max-width: 28rem; margin-inline: auto; text-align: center; }
.thankyou > * + * { margin-top: 2rem; }
.thankyou__status { display: flex; justify-content: center; }
.status-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 6rem;
	height: 6rem;
	border-radius: 999px;
	background: rgba(15, 13, 11, 0.8);
	font-size: 3rem;
}
.status-icon::before { content: ""; position: absolute; inset: -0.75rem; border-radius: 999px; background: radial-gradient(circle, currentColor, transparent 70%); opacity: 0.2; }
.status-icon--success { color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-icon--error { color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.2); }
.thankyou__card { padding: 2rem; }
.thankyou__card > * + * { margin-top: 0.75rem; }
.thankyou__title { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: var(--ivory); }
.thankyou__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1rem; }
.thankyou__meta > div > * + * { margin-top: 0.25rem; }
.thankyou__email { font-size: 0.8125rem; line-height: 1.5; color: var(--stone-400); }
.thankyou__email strong { color: var(--ivory); font-weight: 500; word-break: break-all; }
.thankyou__number { font-size: 0.875rem; color: var(--ivory); font-variant-numeric: tabular-nums; }
.thankyou__details { text-align: left; }
.thankyou__details > * + * { margin-top: 1.5rem; }
.woocommerce-order-details__title, .woocommerce-column__title { margin-bottom: 0.75rem; font-size: 1.125rem; font-weight: 600; color: var(--ivory); }
.woocommerce-customer-details address { padding: 1rem; border: 1px solid var(--gold-15); border-radius: var(--radius-xl); background: rgba(28, 25, 23, 0.7); font-style: normal; font-size: 0.875rem; line-height: 1.625; color: var(--stone-300); }
.woocommerce-customer-details address p { margin-top: 0.25rem; }
.woocommerce ul.order_details { display: none; } /* дублирует блок с номером и суммой выше */
.woocommerce .wc-bacs-bank-details-heading, .woocommerce-bacs-bank-details { display: none; }

/* ---------- Кабинет: вход и регистрация ---------- */
.auth-head { text-align: center; }
.auth-head > * + * { margin-top: 0.75rem; }
.auth-head__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	margin: 0 auto;
	border: 1px solid var(--gold-20);
	border-radius: 999px;
	background: rgba(15, 13, 11, 0.6);
	color: var(--gold);
	font-size: 1.75rem;
}
.woocommerce form.auth-form { margin: 0; padding: 1.5rem; }
.auth-form__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.auth-form__link, .auth-switch a { color: var(--gold); font-size: 0.875rem; }
.auth-form__link:hover, .auth-switch a:hover { text-decoration: underline; }
.auth-switch { text-align: center; font-size: 0.875rem; color: var(--stone-400); }
.woocommerce-ResetPassword, .woocommerce-form-login + p { font-size: 0.875rem; color: var(--stone-400); }
.woocommerce-ResetPassword { padding: 1.5rem; border: 1px solid var(--gold-15); border-radius: var(--radius-xl); background: rgba(28, 25, 23, 0.7); }
.woocommerce-ResetPassword > p:first-child { margin-bottom: 1rem; }

/* ---------- Кабинет: разделы ---------- */
.account-head { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
@media (min-width: 640px) { .account-head { flex-direction: row; align-items: center; justify-content: space-between; } }
.account-head__user { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.account-head__avatar {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border: 1px solid var(--gold-20);
	border-radius: 999px;
	background: rgba(15, 13, 11, 0.6);
	color: var(--gold);
	font-size: 1.5rem;
}
.account-head__name { font-size: 1.5rem; line-height: 2rem; font-weight: 700; letter-spacing: -0.025em; color: var(--ivory); }
.account-head__email { font-size: 0.875rem; color: var(--stone-400); overflow-wrap: anywhere; }
.account-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.account-nav__item {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	height: 2.25rem;
	padding: 0 0.75rem;
	border: 1px solid var(--gold-20);
	border-radius: var(--radius-lg);
	font-size: 0.8125rem;
	color: var(--ivory);
	transition: background-color 0.2s, border-color 0.2s;
}
.account-nav__item:hover { background: var(--gold-10); }
.account-nav__item.is-active { border-color: var(--gold-50); background: var(--gold-10); color: var(--gold); }
.account-content > * + * { margin-top: 1.5rem; }
.order-list > * + * { margin-top: 1rem; }
.order-card { display: block; padding: 1.25rem; }
.order-card:hover { border-color: var(--gold-30); }
.order-card > * + * { margin-top: 1rem; }
.order-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.order-card__id { display: flex; align-items: center; gap: 0.75rem; }
.order-card__number { font-size: 1.125rem; font-weight: 600; color: var(--ivory); font-variant-numeric: tabular-nums; }
.order-card__date { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--stone-400); }
.order-card__items > * + * { margin-top: 0.5rem; }
.order-card__item { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; color: var(--stone-300); }
.order-card__total { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; border-top: 1px solid var(--gold-10); font-size: 0.875rem; }
.status-pill { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border: 1px solid var(--gold-20); border-radius: 999px; background: var(--gold-10); font-size: 0.75rem; color: var(--gold); }
.status-pill--completed { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-pill--cancelled, .status-pill--failed, .status-pill--refunded { border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.1); color: var(--danger); }
.pager { display: flex; justify-content: center; gap: 0.75rem; }

/* Просмотр заказа и профиль */
.woocommerce-MyAccount-content > p:first-child mark { background: none; color: var(--gold); }
.woocommerce-MyAccount-content > p { font-size: 0.875rem; color: var(--stone-400); }
.woocommerce-EditAccountForm { padding: 1.5rem; border: 1px solid var(--gold-15); border-radius: var(--radius-xl); background: rgba(28, 25, 23, 0.7); }
.woocommerce-EditAccountForm fieldset { margin: 1.5rem 0 0; padding: 1.5rem 0 0; border: 0; border-top: 1px solid var(--gold-10); }
.woocommerce-EditAccountForm legend { padding: 0; margin-bottom: 1rem; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ivory); }
.woocommerce-EditAccountForm em { display: block; margin-top: 0.25rem; font-size: 0.75rem; font-style: normal; color: var(--stone-500); }

/* Постраничная навигация каталога */
.woocommerce-pagination ul { display: flex; justify-content: center; gap: 0.5rem; }
.woocommerce-pagination a, .woocommerce-pagination span { display: flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; border: 1px solid var(--gold-20); border-radius: var(--radius-lg); font-size: 0.875rem; }
.woocommerce-pagination .current { background: var(--gold); color: var(--bg); }

/* ---------- Меньше движения — по настройке системы ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.sacred-bg__image { animation: none; }
}
