/* ==========================================================================
   CloudMarket base
   Design direction: Deep Canopy Control
   Tokens, reset, typography, controls, header, footer.
   ========================================================================== */

:root {
	/* Ground and surfaces. Green-black, never blue-black, never neutral. */
	--bg: #0B1210;
	--surface: #121D19;
	--raised: #182823;
	--high: #20342C;
	--line: #25382F;
	--line-soft: #1B2A24;

	/* Ink */
	--ink: #E9F1EB;
	--muted: #9DB3A6;
	--dim: #71877B;

	/* Accents. One locked accent, two supports. */
	--accent: #A9CF45;
	--accent-deep: #86A92F;
	--accent-wash: rgba(169, 207, 69, 0.12);
	--turq: #4FA894;
	--turq-wash: rgba(79, 168, 148, 0.12);
	--bronze: #C39B4E;

	/* Radii. One rule: panels 14, controls 8, features 22, chips pill. */
	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 22px;
	--r-pill: 999px;

	/* Space */
	--s-xs: 6px;
	--s-sm: 12px;
	--s-md: 22px;
	--s-lg: 44px;
	--s-xl: 88px;
	--s-sec: clamp(64px, 9vw, 120px);

	/* Type */
	--ff-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
	--ff-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
	--ff-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

	--fs-hero: clamp(2.1rem, 5.1vw, 4rem);
	--fs-h2: clamp(1.6rem, 3vw, 2.5rem);
	--fs-h3: clamp(1.15rem, 1.8vw, 1.5rem);
	--fs-h4: 1.05rem;
	--fs-body: 1rem;
	--fs-sm: 0.875rem;
	--fs-xs: 0.78rem;

	/* Layout */
	--container: 1240px;
	--gutter: clamp(18px, 4vw, 40px);
	--header-h: 132px;

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--dur: 0.22s;

	--shadow-float: 0 24px 60px -28px rgba(3, 10, 8, 0.9), 0 2px 0 0 rgba(255, 255, 255, 0.02) inset;
}

/* ---------- Reset. :where() keeps specificity at 0 so components always win. */

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

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

:where(body) {
	margin: 0;
	background: var(--bg);
	color: var(--muted);
	font-family: var(--ff-body);
	font-size: var(--fs-body);
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

:where(h1, h2, h3, h4, h5, h6) {
	margin: 0;
	font-family: var(--ff-display);
	font-weight: 700;
	color: var(--ink);
	line-height: 1.08;
	letter-spacing: -0.018em;
}

:where(p, ul, ol, dl, figure, blockquote, pre, table) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
:where(a) { color: inherit; text-decoration: none; }
:where(img, svg, video, canvas) { display: block; max-width: 100%; height: auto; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(button) { background: none; border: 0; padding: 0; cursor: pointer; }
:where(table) { border-collapse: collapse; width: 100%; }
:where(hr) { border: 0; border-top: 1px solid var(--line); margin: var(--s-lg) 0; }
:where(strong, b) { font-weight: 600; color: var(--ink); }
:where(code, kbd, samp) { font-family: var(--ff-mono); font-size: 0.92em; }

::selection { background: var(--accent); color: var(--bg); }

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

/* ---------- Layout primitives */

.cm-wrap {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.cm-section { padding-block: var(--s-sec); }
.cm-section--tight { padding-block: clamp(48px, 6vw, 80px); }

.cm-mono { font-family: var(--ff-mono); font-weight: 500; font-variant-numeric: tabular-nums; }

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

.cm-skip {
	position: absolute;
	left: var(--gutter);
	top: -100px;
	z-index: 999;
	background: var(--accent);
	color: var(--bg);
	padding: 10px 18px;
	border-radius: var(--r-sm);
	font-weight: 600;
	transition: top var(--dur) var(--ease);
}
.cm-skip:focus { top: 12px; }

/* Section heading pattern: title plus optional lead, never an eyebrow stack. */
.cm-head { max-width: 62ch; margin-bottom: var(--s-lg); }
.cm-head__title { font-size: var(--fs-h2); }
.cm-head__lead {
	margin-top: 14px;
	font-size: 1.05rem;
	color: var(--muted);
	max-width: 60ch;
}
.cm-head--split {
	max-width: none;
	display: grid;
	gap: var(--s-md);
	align-items: end;
	grid-template-columns: minmax(0, 1fr) auto;
}

/* ---------- Buttons */

.cm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 22px;
	border-radius: var(--r-sm);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
	letter-spacing: -0.005em;
	border: 1px solid transparent;
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
		color var(--dur) var(--ease), transform var(--dur) var(--ease);
	white-space: nowrap;
}
.cm-btn:active { transform: translateY(1px); }

.cm-btn--primary {
	background: var(--accent);
	color: #0B1210;
	border-color: var(--accent);
}
.cm-btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.cm-btn--ghost {
	border-color: var(--line);
	color: var(--ink);
	background: transparent;
}
.cm-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.cm-btn--quiet {
	color: var(--muted);
	padding-inline: 4px;
}
.cm-btn--quiet:hover { color: var(--accent); }

.cm-btn--block { width: 100%; }
.cm-btn--lg { padding: 16px 28px; font-size: 1rem; }
.cm-btn--sm { padding: 9px 14px; font-size: var(--fs-sm); }

.cm-btn .cm-icon { flex: none; }

/* ---------- Chips and labels */

.cm-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	border-radius: var(--r-pill);
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--muted);
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: 0.01em;
	white-space: nowrap;
}
.cm-chip--accent { border-color: rgba(169, 207, 69, 0.4); color: var(--accent); background: var(--accent-wash); }
.cm-chip--bronze { border-color: rgba(195, 155, 78, 0.42); color: var(--bronze); background: rgba(195, 155, 78, 0.1); }

.cm-label {
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--dim);
}

/* ---------- Header: two stacked bars in one shell */

.cm-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}
.cm-header.is-stuck { box-shadow: var(--shadow-float); }

/* Upper bar */
.cm-bar1 {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--s-md);
	padding-block: 16px;
}

.cm-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--ink);
}
.cm-brand__mark {
	width: 38px;
	height: 38px;
	flex: none;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: linear-gradient(150deg, var(--high), var(--surface));
	border: 1px solid var(--line);
	color: var(--accent);
	transition: border-color var(--dur) var(--ease);
}
.cm-brand:hover .cm-brand__mark { border-color: var(--accent); }
.cm-brand__name {
	font-family: var(--ff-display);
	font-weight: 700;
	font-size: 1.09rem;
	letter-spacing: -0.022em;
	line-height: 1.05;
	color: var(--ink);
}
.cm-brand__name em {
	font-style: normal;
	color: var(--accent);
}
.cm-brand__sub {
	display: block;
	font-family: var(--ff-body);
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--dim);
	margin-top: 2px;
}

/* Command style search */
.cm-search { position: relative; justify-self: center; width: 100%; max-width: 560px; }
.cm-search--mobile { display: none; }
.cm-search__field {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding: 0 8px 0 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.cm-search__field:focus-within {
	border-color: var(--accent);
	background: var(--raised);
}
.cm-search__icon { color: var(--dim); flex: none; transition: color var(--dur) var(--ease); }
.cm-search__field:focus-within .cm-search__icon { color: var(--accent); }
.cm-search__input {
	flex: 1 1 auto;
	min-width: 0;
	background: none;
	border: 0;
	outline: none;
	color: var(--ink);
	font-size: 0.93rem;
}
.cm-search__input::placeholder { color: var(--dim); }
.cm-search__kbd {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	flex: none;
	padding: 4px 8px;
	border-radius: 6px;
	border: 1px solid var(--line);
	background: var(--bg);
	color: var(--dim);
	font-family: var(--ff-mono);
	font-size: 0.7rem;
	font-weight: 500;
}
.cm-search__field:focus-within .cm-search__kbd { opacity: 0; }

.cm-search__panel {
	position: absolute;
	inset-inline: 0;
	top: calc(100% + 8px);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-float);
	padding: 8px;
	max-height: min(60vh, 460px);
	overflow-y: auto;
	display: none;
	z-index: 20;
}
.cm-search.is-open .cm-search__panel { display: block; }
.cm-search__group + .cm-search__group { margin-top: 6px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.cm-search__grouptitle { padding: 6px 10px 8px; }
.cm-search__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: var(--r-sm);
	color: var(--muted);
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cm-search__row:hover,
.cm-search__row:focus-visible,
.cm-search__row.is-active { background: var(--raised); color: var(--ink); }
.cm-search__row .cm-glyph { color: var(--accent); flex: none; }
.cm-search__rowmain { min-width: 0; flex: 1 1 auto; }
.cm-search__rowtitle { display: block; font-weight: 500; color: var(--ink); font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-search__rowmeta { display: block; font-size: var(--fs-xs); color: var(--dim); }
.cm-search__rowprice { flex: none; color: var(--accent); font-size: 0.88rem; }
.cm-search__empty { padding: 18px 12px; color: var(--dim); font-size: var(--fs-sm); }

/* Header actions */
.cm-acts { display: flex; align-items: center; gap: 10px; }

.cm-acts__tg {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 16px;
	border-radius: var(--r-sm);
	border: 1px solid rgba(79, 168, 148, 0.42);
	background: var(--turq-wash);
	color: var(--turq);
	font-size: 0.88rem;
	font-weight: 600;
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cm-acts__tg:hover { background: rgba(79, 168, 148, 0.2); border-color: var(--turq); color: #7BD0BD; }

.cm-iconbtn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: var(--r-sm);
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--muted);
	transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.cm-iconbtn:hover { color: var(--accent); border-color: var(--accent); background: var(--raised); }

.cm-cart-count {
	position: absolute;
	top: -6px;
	inset-inline-end: -6px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	display: grid;
	place-items: center;
	border-radius: var(--r-pill);
	background: var(--accent);
	color: var(--bg);
	font-family: var(--ff-mono);
	font-size: 0.66rem;
	font-weight: 500;
	line-height: 1;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cm-cart-count.is-filled { opacity: 1; transform: scale(1); }

/* Lower bar */
.cm-bar2 {
	background: var(--surface);
	border-top: 1px solid var(--line);
}
.cm-bar2__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-md);
	min-height: 52px;
}

.cm-nav__list { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.cm-nav__list a {
	position: relative;
	display: block;
	padding: 15px 14px;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--muted);
	letter-spacing: -0.004em;
	transition: color var(--dur) var(--ease);
	white-space: nowrap;
}
.cm-nav__list a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 0;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dur) var(--ease);
}
.cm-nav__list a:hover { color: var(--ink); }
.cm-nav__list a:hover::after { transform: scaleX(1); }
.cm-nav__list .current-menu-item > a,
.cm-nav__list .current_page_item > a,
.cm-nav__list .current-menu-ancestor > a,
.cm-nav__list .cm-nav--active > a,
.cm-nav__list a.cm-nav--active { color: var(--accent); }
.cm-nav__list .current-menu-item > a::after,
.cm-nav__list .current_page_item > a::after,
.cm-nav__list .current-menu-ancestor > a::after,
.cm-nav__list a.cm-nav--active::after { transform: scaleX(1); }

/* Sub menu */
.cm-nav__list li { position: relative; }
.cm-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	background: var(--raised);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: 6px;
	box-shadow: var(--shadow-float);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
	z-index: 30;
}
.cm-nav__list li:hover > .sub-menu,
.cm-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cm-nav__list .sub-menu a { padding: 10px 12px; border-radius: var(--r-sm); }
.cm-nav__list .sub-menu a::after { display: none; }
.cm-nav__list .sub-menu a:hover { background: var(--high); color: var(--accent); }

.cm-bar2__aside {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: var(--fs-xs);
	color: var(--dim);
}
.cm-bar2__aside .cm-icon { color: var(--accent); }
.cm-bar2__note { display: inline-flex; align-items: center; gap: 7px; }

/* Mobile header */
.cm-burger, .cm-mobile-only { display: none; }

.cm-drawer {
	position: fixed;
	inset: 0;
	z-index: 120;
	visibility: hidden;
	pointer-events: none;
}
.cm-drawer.is-open { visibility: visible; pointer-events: auto; }
.cm-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(4, 10, 8, 0.72);
	opacity: 0;
	transition: opacity var(--dur) var(--ease);
}
.cm-drawer.is-open .cm-drawer__scrim { opacity: 1; }
.cm-drawer__panel {
	position: absolute;
	top: 0;
	inset-inline-end: 0;
	height: 100%;
	width: min(400px, 90vw);
	background: var(--surface);
	border-inline-start: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s var(--ease);
	box-shadow: var(--shadow-float);
}
.cm-drawer.is-open .cm-drawer__panel { transform: translateX(0); }
.cm-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-sm);
	padding: 16px var(--s-md);
	border-bottom: 1px solid var(--line);
	flex: none;
}
.cm-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: var(--s-md); }
.cm-drawer__foot { flex: none; padding: var(--s-md); border-top: 1px solid var(--line); display: grid; gap: 10px; }

.cm-mnav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 14px;
	border-radius: var(--r-sm);
	color: var(--muted);
	font-size: 1.02rem;
	font-weight: 500;
	border: 1px solid transparent;
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cm-mnav a:hover { background: var(--raised); color: var(--ink); }
.cm-mnav .current-menu-item > a,
.cm-mnav .current_page_item > a {
	color: var(--accent);
	background: var(--accent-wash);
	border-color: rgba(169, 207, 69, 0.3);
}
.cm-mnav .sub-menu { padding-inline-start: 12px; }
.cm-mnav .sub-menu a { font-size: 0.92rem; padding-block: 11px; }

/* ---------- Cart drawer */

.cm-cart {
	position: fixed;
	inset: 0;
	z-index: 130;
	visibility: hidden;
	pointer-events: none;
}
.cm-cart.is-open { visibility: visible; pointer-events: auto; }
.cm-cart__scrim {
	position: absolute; inset: 0;
	background: rgba(4, 10, 8, 0.72);
	opacity: 0;
	transition: opacity var(--dur) var(--ease);
}
.cm-cart.is-open .cm-cart__scrim { opacity: 1; }
.cm-cart__panel {
	position: absolute; top: 0; inset-inline-end: 0;
	height: 100%; width: min(440px, 94vw);
	background: var(--surface);
	border-inline-start: 1px solid var(--line);
	display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.3s var(--ease);
	box-shadow: var(--shadow-float);
}
.cm-cart.is-open .cm-cart__panel { transform: translateX(0); }
.cm-cart__head {
	flex: none;
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px var(--s-md);
	border-bottom: 1px solid var(--line);
}
.cm-cart__title { font-size: 1.1rem; font-weight: 600; margin: 0; }
.cm-cart__body { flex: 1 1 auto; overflow-y: auto; padding: var(--s-md); }
.cm-cart__foot { flex: none; padding: var(--s-md); border-top: 1px solid var(--line); background: var(--bg); }

.cm-cartline {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr);
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line-soft);
}
.cm-cartline:last-child { border-bottom: 0; }
.cm-cartline__thumb {
	width: 62px; height: 62px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--raised);
	border: 1px solid var(--line);
	display: grid; place-items: center;
	color: var(--accent);
}
.cm-cartline__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cm-cartline__name { color: var(--ink); font-weight: 500; font-size: 0.94rem; line-height: 1.3; }
.cm-cartline__var { display: block; color: var(--dim); font-size: var(--fs-xs); margin-top: 3px; }
.cm-cartline__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.cm-cartline__price { color: var(--accent); font-size: 0.9rem; }

.cm-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	overflow: hidden;
	background: var(--bg);
}
.cm-qty button {
	width: 32px; height: 32px;
	display: grid; place-items: center;
	color: var(--muted);
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cm-qty button:hover { background: var(--high); color: var(--accent); }
.cm-qty__val, .cm-qty input {
	width: 40px; height: 32px;
	text-align: center;
	background: none; border: 0; outline: none;
	color: var(--ink);
	font-family: var(--ff-mono); font-size: 0.85rem;
	-moz-appearance: textfield;
}
.cm-qty input::-webkit-outer-spin-button,
.cm-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cm-cart__totals { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.cm-cart__totals dt { color: var(--muted); font-size: var(--fs-sm); }
.cm-cart__totals dd { margin: 0; color: var(--ink); font-family: var(--ff-mono); font-size: 1.2rem; }
.cm-cart__actions { display: grid; gap: 10px; }
.cm-cart__empty { text-align: center; padding: var(--s-xl) var(--s-md); }
.cm-cart__empty .cm-icon { margin: 0 auto 16px; color: var(--dim); }

/* ---------- Telegram block */

.cm-tg {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 15px 18px;
	border-radius: var(--r-md);
	border: 1px solid rgba(79, 168, 148, 0.45);
	background: var(--turq-wash);
	color: var(--turq);
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cm-tg:hover { background: rgba(79, 168, 148, 0.19); border-color: var(--turq); }
.cm-tg:active { transform: translateY(1px); }
.cm-tg__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(79, 168, 148, 0.16); }
.cm-tg__text { flex: 1 1 auto; min-width: 0; }
.cm-tg__label { display: block; font-weight: 600; font-size: 0.97rem; color: #8FDCC9; }
.cm-tg__handle { display: block; font-family: var(--ff-mono); font-size: var(--fs-xs); color: var(--turq); opacity: 0.85; }
.cm-tg__go { flex: none; }

/* ---------- Floating Telegram action

   z-index 110 keeps it under the menu drawer (120) and the cart drawer (130),
   so opening either one hides it without a line of script. */

.cm-tgfloat {
	position: fixed;
	z-index: 110;
	inset-inline-end: clamp(16px, 3vw, 28px);
	inset-block-end: clamp(16px, 3vw, 28px);
	inset-block-end: max(clamp(16px, 3vw, 28px), env(safe-area-inset-bottom));
	display: inline-flex;
	align-items: center;
	gap: 11px;
	padding: 13px 20px 13px 15px;
	border-radius: var(--r-pill);
	border: 1px solid rgba(79, 168, 148, 0.5);
	background: #143029;
	color: #8FDCC9;
	font-weight: 600;
	font-size: 0.94rem;
	line-height: 1;
	box-shadow: var(--shadow-float);
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cm-tgfloat:hover {
	background: #1A3E34;
	border-color: var(--turq);
	color: #A7E6D6;
	transform: translateY(-2px);
}
.cm-tgfloat:active { transform: translateY(0); }
.cm-tgfloat__icon { flex: none; display: grid; place-items: center; color: var(--turq); }
.cm-tgfloat__label { white-space: nowrap; }

/* Telegram option on the full page cart and the checkout. */
.cm-wc-tg { max-width: 420px; margin: var(--s-md) 0 0; }
.cm-wc-tg .cm-tg { width: 100%; }

/* On a phone it collapses to the mark alone: the header already carries a
   Telegram icon, and a pill that wide would sit over the content. */
@media (max-width: 620px) {
	.cm-tgfloat { padding: 13px; }
	.cm-tgfloat__label { display: none; }
}

/* Keep the last footer line clear of the button where it overlaps. */
@media (max-width: 620px) {
	.cm-footer__bottom { padding-bottom: 74px; }
}

/* ---------- Breadcrumbs */

.cm-crumbs { padding-block: 18px 0; }
.cm-crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--dim); }
.cm-crumbs__item + .cm-crumbs__item::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.cm-crumbs a { color: var(--muted); transition: color var(--dur) var(--ease); }
.cm-crumbs a:hover { color: var(--accent); }
.cm-crumbs [aria-current] { color: var(--ink); }

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

.cm-footer {
	background: linear-gradient(180deg, var(--bg) 0%, #08100D 100%);
	border-top: 1px solid var(--line);
	margin-top: var(--s-sec);
}

.cm-footer__lead {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: var(--s-lg);
	align-items: center;
	padding-block: var(--s-xl);
	border-bottom: 1px solid var(--line);
}
.cm-footer__leadtitle { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 18ch; }
.cm-footer__leadtext { margin-top: 12px; max-width: 46ch; }
.cm-footer__leadacts { display: grid; gap: 12px; justify-items: stretch; }

.cm-footer__cols {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: var(--s-lg) var(--s-md);
	padding-block: var(--s-xl) var(--s-lg);
}
.cm-footer__coltitle {
	font-family: var(--ff-body);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--dim);
	margin-bottom: 16px;
}
.cm-footer__list { display: grid; gap: 10px; }
.cm-footer__list a { color: var(--muted); font-size: 0.92rem; transition: color var(--dur) var(--ease); }
.cm-footer__list a:hover { color: var(--accent); }
.cm-footer__about { max-width: 40ch; font-size: 0.92rem; margin-top: 16px; }

.cm-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-md);
	flex-wrap: wrap;
	padding-block: var(--s-md);
	border-top: 1px solid var(--line);
	font-size: var(--fs-xs);
	color: var(--dim);
}
.cm-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.cm-footer__legal a:hover { color: var(--accent); }

/* ---------- WooCommerce notices, restyled to the dark system */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	list-style: none;
	margin: 0 0 var(--s-md);
	padding: 15px 18px;
	border-radius: var(--r-md);
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--muted);
	font-size: var(--fs-sm);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.woocommerce-message { border-color: rgba(169, 207, 69, 0.4); background: var(--accent-wash); color: var(--ink); }
.woocommerce-error { border-color: rgba(200, 90, 70, 0.5); background: rgba(200, 90, 70, 0.1); color: #E8B4AA; }
.woocommerce-message a, .woocommerce-info a, .woocommerce-error a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-message .button, .woocommerce-info .button { margin-inline-start: auto; }

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

.cm-field { display: grid; gap: 8px; }
.cm-field label, .cm-form label {
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--muted);
}
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"], textarea, select {
	width: 100%;
	padding: 12px 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	color: var(--ink);
	font-size: 0.95rem;
	transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--accent);
	background: var(--raised);
}
input::placeholder, textarea::placeholder { color: var(--dim); }
textarea { min-height: 150px; resize: vertical; }
select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
	background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-inline-end: 38px;
}

/* ---------- Responsive header */

@media (max-width: 1080px) {
	.cm-search { max-width: 400px; }
	.cm-acts__tg span:not(.cm-icon) { display: none; }
	.cm-acts__tg { padding-inline: 13px; }
}

@media (max-width: 900px) {
	:root { --header-h: 72px; }
	.cm-bar1 {
		grid-template-columns: auto 1fr;
		padding-block: 12px;
	}
	.cm-search--desktop { display: none; }
	.cm-bar2 { display: none; }
	.cm-burger { display: inline-grid; }
	.cm-acts { justify-self: end; gap: 8px; }
	.cm-acts__tg { display: none; }
	.cm-mobile-only { display: inline-grid; }
	.cm-iconbtn { width: 42px; height: 42px; }
	.cm-brand__sub { display: none; }
}

@media (max-width: 900px) {
	.cm-search--mobile {
		position: fixed;
		inset-inline: 0;
		top: 0;
		z-index: 125;
		max-width: none;
		padding: 12px var(--gutter);
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		display: none;
	}
	.cm-search--mobile.is-active { display: block; }
	.cm-search--mobile .cm-search__panel { inset-inline: var(--gutter); }
	.cm-search--mobile .cm-search__kbd { display: none; }
}

@media (max-width: 860px) {
	.cm-footer__lead { grid-template-columns: 1fr; padding-block: var(--s-lg); }
	.cm-footer__cols { grid-template-columns: 1fr 1fr; }
	.cm-head--split { grid-template-columns: 1fr; align-items: start; justify-items: start; }
	.cm-head--split > .cm-btn { justify-self: start; }
}

/* Four action buttons plus the wordmark have to fit one line on a phone. The
   actions are fixed size and the wordmark is the part that yields. */
@media (max-width: 430px) {
	.cm-bar1 {
		grid-template-columns: minmax(0, auto) auto;
		gap: 10px;
	}
	.cm-brand { min-width: 0; gap: 7px; }
	.cm-brand__mark { width: 30px; height: 30px; border-radius: 8px; flex: none; }
	.cm-brand__name {
		font-size: 0.85rem;
		letter-spacing: -0.03em;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.cm-acts { gap: 4px; flex: none; }
	.cm-iconbtn { width: 34px; height: 34px; }
}

@media (max-width: 360px) {
	.cm-acts { gap: 4px; }
	.cm-iconbtn { width: 35px; height: 35px; }
	.cm-brand__mark { width: 30px; height: 30px; }
	.cm-brand__name { font-size: 0.78rem; }
}

@media (max-width: 520px) {
	.cm-footer__cols { grid-template-columns: 1fr; gap: var(--s-md); }
	.cm-footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
	.cm-brand__name { font-size: 1rem; }
	.cm-cartline { grid-template-columns: 52px minmax(0, 1fr); }
	.cm-cartline__thumb { width: 52px; height: 52px; }
}

/* ---------- Motion */

/* Only hides once main.js has confirmed it can reveal them again, so a page
   with no JS, a crawler, or print still renders every section. */
.cm-reveal-ready .cm-reveal {
	opacity: 0;
	transform: translateY(18px);
}
.cm-reveal.is-in,
.cm-reveal-ready .cm-reveal.is-in {
	opacity: 1;
	transform: none;
	transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.cm-reveal-ready .cm-reveal { opacity: 1; transform: none; }
}

/* ---------- WhatsApp

   Added beside Telegram in the header, footer, product page and floating
   area. Brand green is confined to the glyph and a faint stroke. */

:root {
	--wa: #25D366;
	--wa-ink: #9BE3B4;
	--wa-line: rgba(37, 211, 102, 0.38);
	--wa-wash: rgba(37, 211, 102, 0.08);
}

.cm-icon--whatsapp { color: var(--wa); }

.cm-acts__wa {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 16px;
	border-radius: var(--r-sm);
	border: 1px solid var(--wa-line);
	background: var(--wa-wash);
	color: var(--wa-ink);
	font-size: 0.88rem;
	font-weight: 600;
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cm-acts__wa:hover { background: rgba(37, 211, 102, 0.15); border-color: var(--wa); color: #BDF0CE; }

.cm-wa {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 15px 18px;
	border-radius: var(--r-md);
	border: 1px solid var(--wa-line);
	background: var(--wa-wash);
	color: var(--wa-ink);
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cm-wa:hover { background: rgba(37, 211, 102, 0.14); border-color: var(--wa); }
.cm-wa:active { transform: translateY(1px); }
.cm-wa__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(37, 211, 102, 0.12); }
.cm-wa__text { flex: 1 1 auto; min-width: 0; }
.cm-wa__label { display: block; font-weight: 600; font-size: 0.97rem; color: var(--wa-ink); }
.cm-wa__go { flex: none; }

.cm-wafloat {
	position: fixed;
	z-index: 110;
	inset-inline-end: clamp(16px, 3vw, 28px);
	inset-block-end: calc(clamp(16px, 3vw, 28px) + 62px);
	inset-block-end: calc(max(clamp(16px, 3vw, 28px), env(safe-area-inset-bottom)) + 62px);
	display: inline-flex;
	align-items: center;
	gap: 11px;
	padding: 13px 20px 13px 15px;
	border-radius: var(--r-pill);
	border: 1px solid var(--wa-line);
	background: #12301F;
	color: var(--wa-ink);
	font-weight: 600;
	font-size: 0.94rem;
	line-height: 1;
	box-shadow: var(--shadow-float);
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cm-wafloat:hover { background: #173D27; border-color: var(--wa); color: #BDF0CE; transform: translateY(-2px); }
.cm-wafloat:active { transform: translateY(0); }
.cm-wafloat__icon { flex: none; display: grid; place-items: center; }
.cm-wafloat__label { white-space: nowrap; }

.cm-acts__wa:focus-visible,
.cm-wa:focus-visible,
.cm-wafloat:focus-visible { outline: 2px solid var(--wa); outline-offset: 2px; }

@media (max-width: 1080px) {
	.cm-acts__wa span:not(.cm-icon) { display: none; }
	.cm-acts__wa { padding-inline: 13px; }
}

@media (max-width: 900px) {
	.cm-acts__wa { display: none; }
}

@media (max-width: 620px) {
	.cm-wafloat { padding: 13px; }
	.cm-wafloat__label { display: none; }
	.cm-footer__bottom { padding-bottom: 136px; }
}
