/*
 * Kingtex — the frame every page shares: tokens, base, buttons, the header,
 * the footer, the phone's tab bar, the product card and the printed patterns.
 * Page-specific styles live in their own file (front-page.css, …).
 *
 * Breakpoints, as the design draws them:
 *   1100 — the menu folds into the drawer
 *    960 — two-column sections stack; the header search moves under the header
 *    700 — the phone layout (16 px gutter, tab bar)
 */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
	--ink: #15131c;
	--ink-hover: #2c2838;
	--ink-2: #4a4756;
	--muted: #5e5a6b;
	--line: #ece8f0;
	--line-2: #dcd7e3;
	/* Form field borders: 3:1 against their background (WCAG 1.4.11); the
	   lighter --line-2 stays for dividers and chips, whose text identifies them. */
	--field-border: #8b8698;
	--soft: #f7f5fa;
	--soft-2: #f5f3f8;
	--soft-3: #f3eff8;
	--white: #fff;

	--s-pink: #ff4d8d;
	--s-orange: #ff8a1f;
	--s-yellow: #ffc930;
	--s-green: #2bc48a;
	--s-blue: #2e7cf6;
	--s-violet: #7b5cfa;
	/* The brand's "towel" stripe: six equal bands, hard edges, never a fade. */
	--stripe: linear-gradient(90deg, var(--s-pink) 0 16.66%, var(--s-orange) 16.66% 33.33%, var(--s-yellow) 33.33% 50%, var(--s-green) 50% 66.66%, var(--s-blue) 66.66% 83.33%, var(--s-violet) 83.33% 100%);

	--b2b: #5b3fe0;
	--b2b-pill: #f0ebff;
	--b2b-ink: #4b2fcf;
	--b2b-soft: #e6e0ff;

	--tint-pink: #ffe3ec;
	--tint-sea: #dcebff;
	--tint-violet: #ece6ff;
	--tint-sun: #fff0c7;
	--tint-mint: #d9f4e7;
	--tint-sand: #f3ede4;
	--tint-coral: #ffe4d6;

	--accent: #ff4d8d;
	--success: #11704a;
	--success-dot: #2bc48a;
	--focus: #2e7cf6;

	--font-body: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: Unbounded, Onest, system-ui, sans-serif;

	--r-pill: 999px;
	--r-field: 14px;
	--r-card: 24px;
	--r-tile: 28px;
	--r-section: 32px;
	--r-section-lg: 36px;

	--container: 1320px;
	--gutter: 40px;
	--section: 104px;
	--section-sm: 88px;

	/* The photo tile of a product card. The design's 4:5 waits for new product
	   photos; today's are 3:2 infographics, so 4:3 leaves less empty tint. */
	--card-ratio: 4 / 3;

	--shadow-towel: 0 22px 40px -14px rgba(21, 19, 28, 0.45);
	--shadow-float: 0 40px 80px -30px rgba(10, 5, 40, 0.6);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 700px) {
	:root {
		--gutter: 16px;
		--section: 44px;
		--section-sm: 44px;
		--r-tile: 22px;
	}
}

/* 2. Base ------------------------------------------------------------------ */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font: 400 16px/1.5 var(--font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/* a word longer than its line (a product name, an e-mail, a link) breaks
	   instead of widening the page */
	overflow-wrap: break-word;
	text-rendering: optimizeLegibility;
}

/* A product's name is the one text the theme does not write: a word in it
   longer than its box must break even where break-word cannot — in a flex
   row or a table cell, which keep their longest word whole. WooCommerce's
   notices quote it („… е добавен в количката“). */
.card__title,
.pdp__title,
.crumbs,
.mc-item__name,
.mc-upsell__name,
.pdp-pair__name,
.kt-sum-item__name,
.buybar__name,
.set__items a,
.kt-opt__name,
.woocommerce-table__product-name,
.woocommerce-orders-table td,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	overflow-wrap: anywhere;
}

[hidden] {
	display: none !important;
}

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

svg {
	flex-shrink: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--b2b);
}

h1,
h2,
h3,
h4,
p,
figure {
	margin: 0;
}

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

button {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

/* After a tap or a click, no ring (main.js sets .kt-pointer): Safari draws one
   round the close button a dialog focuses, and the button focus returns to. */
.kt-pointer :focus-visible {
	outline: none;
}

.disp {
	font-family: var(--font-display);
}

.wrap {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.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;
}

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

.skip-link:focus {
	top: 12px;
	color: var(--white);
}

.stripe {
	background: var(--stripe);
}

/* Shown only on phones / hidden on phones (≤ 700 px), where the phone design differs. */
@media (min-width: 701px) {
	.show-sm {
		display: none !important;
	}
}

@media (max-width: 700px) {
	.hide-sm {
		display: none !important;
	}
}

.eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.eyebrow--pink { color: #c2185b; }
.eyebrow--blue { color: #3f5fd6; }
.eyebrow--brown { color: #7a5a2e; }

.section-title {
	font-family: var(--font-display);
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.1;
}

/* Section head: title on the left, a link or arrows on the right (home, product) */
.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.section-head__text {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.section-head__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

@media (max-width: 700px) {
	.section-head {
		margin-bottom: 16px;
	}

	.section-head__link {
		font-size: 14px;
	}
}

/* The rainbow underline under one word of a headline. */
.uline {
	background: var(--stripe) left bottom / 100% 10px no-repeat;
	padding-bottom: 6px;
}

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

/* 3. Buttons --------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--r-pill);
	font: 600 15px/1 var(--font-body);
	white-space: nowrap;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--lg {
	height: 54px;
	padding: 0 26px;
	font-size: 16px;
}

.btn--ink {
	background: var(--ink);
	color: var(--white);
}

.btn--ink:hover {
	background: var(--ink-hover);
	color: var(--white);
}

.btn--line {
	background: transparent;
	border: 1.5px solid var(--ink);
	color: var(--ink);
}

.btn--line:hover {
	background: var(--soft-3);
	color: var(--ink);
}

/* After an add (assets/js/main.js): the photo, „Добавено в количката“ (or
   „Комплектът е в количката“), how far free delivery is, „Към количката“.
   After a card's + everywhere; on a phone also after the product page's
   button and „Добави комплекта“ — on a wide screen those open the side cart. */
.kt-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 60;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	width: max-content;
	max-width: calc(100vw - 32px);
	padding: 8px 8px 8px 20px;
	border-radius: 18px;
	background: var(--ink);
	color: var(--white);
	font-size: 15px;
	box-shadow: var(--shadow-float);
	opacity: 0;
	transform: translate(-50%, 16px);
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s var(--ease);
}

.kt-toast:empty {
	display: none;
}

.kt-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

/* above the product page's buy bar once it shows */
body:has(.buybar.is-visible) .kt-toast {
	bottom: 100px;
}

.kt-toast__btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--white);
	color: var(--ink);
	font: 700 14px var(--font-body);
	white-space: nowrap;
	cursor: pointer;
}

.kt-toast:has(.kt-toast__photos) {
	padding-left: 8px;
}

.kt-toast__photos {
	display: flex;
	flex: none;
}

.kt-toast__photo {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 0 0 2px var(--ink);
}

.kt-toast__photo + .kt-toast__photo {
	margin-left: -12px;
}

.kt-toast__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.kt-toast__sub {
	color: #c9c4d6;
	font-size: 0.92em;
}

.kt-toast__sub strong {
	color: var(--white);
}

.kt-toast__btn:hover {
	background: var(--soft-3);
}

@media (max-width: 700px) {
	.kt-toast {
		bottom: calc(96px + env(safe-area-inset-bottom));
		flex-wrap: nowrap;
		width: calc(100vw - 32px);
		padding: 8px 8px 8px 16px;
		font-size: 13px;
		line-height: 1.4;
	}

	.kt-toast__text {
		flex: 1;
		min-width: 0;
	}

	.kt-toast__btn {
		flex: none;
		padding: 0 14px;
		font-size: 13px;
	}

	.has-buybar .kt-toast {
		bottom: calc(100px + env(safe-area-inset-bottom));
	}

	/* with a photo: the photo and the words on top, „Към количката“ under them */
	.kt-toast:has(.kt-toast__photos) {
		flex-wrap: wrap;
		gap: 8px 12px;
		padding: 10px;
	}

	.kt-toast:has(.kt-toast__photos) .kt-toast__text {
		flex: 1 1 0;
	}

	.kt-toast:has(.kt-toast__photos) .kt-toast__btn {
		flex: 1 1 100%;
		justify-content: center;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kt-toast,
	.kt-toast.is-on {
		transform: translate(-50%, 0);
	}
}

/* The inquiry forms (home, catalogue, „За бизнеса“): the honeypot, the
   answer line and the choice chips */
.quick__trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.quick__status {
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--tint-mint);
	color: var(--success);
	font-size: 14px;
	font-weight: 600;
}

.quick__status.is-error {
	background: var(--tint-pink);
	color: #8c1240;
}

.size-chip {
	position: relative;
	cursor: pointer;
}

.size-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.size-chip span {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 12px;
	border: 1.5px solid var(--line-2);
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
}

.size-chip:hover span {
	border-color: var(--ink);
}

.size-chip input:checked + span {
	border: 2px solid var(--ink);
	background: var(--ink);
	color: var(--white);
}

.size-chip input:focus-visible + span {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

/* WooCommerce's notices: „добавен в количката“, „премахнат. Отмяна?“, errors */
.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: 16px;
	background: var(--soft);
	color: var(--ink);
	font-size: 15px;
	line-height: 1.45;
	list-style: none;
}

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

.woocommerce-error {
	flex-direction: column;
	align-items: flex-start;
	background: #fdecef;
	color: #9b1239;
}

.woocommerce-error li {
	margin: 0;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

.woocommerce-message .wc-forward {
	margin-left: auto;
}

/* WooCommerce moves the focus to a new notice (for screen readers); no ring on a box */
.woocommerce-notices-wrapper:focus,
.woocommerce-message:focus,
.woocommerce-info:focus,
.woocommerce-error:focus {
	outline: none;
}

.pdp-notices {
	padding-top: 20px;
}

.pdp-notices .woocommerce-notices-wrapper > :last-child {
	margin-bottom: 0;
}

/* Quantity: WooCommerce's field between − and + (woocommerce/global/quantity-input.php) */
.quantity {
	display: inline-flex;
	align-items: center;
	height: 58px;
	padding: 0 6px;
	border: 1.5px solid var(--field-border);
	border-radius: var(--r-pill);
}

.quantity--fixed {
	padding: 0 18px;
}

.quantity__btn {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--r-pill);
	background: transparent;
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.quantity__btn:hover {
	background: var(--soft-3);
}

.quantity__input {
	width: 34px;
	border: 0;
	background: transparent;
	text-align: center;
	font: 700 16px var(--font-body);
	-moz-appearance: textfield;
	appearance: textfield;
}

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

.quantity__input:focus {
	outline: none;
}

.quantity:focus-within {
	border-color: var(--ink);
}

/* the field draws no ring of its own: the box around it does, as for any control */
.quantity:has(.quantity__input:focus-visible) {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.kt-pointer .quantity:has(.quantity__input:focus-visible) {
	outline: none;
}

.btn--white {
	background: var(--white);
	color: var(--ink);
	font-weight: 700;
}

.btn--white:hover {
	background: var(--soft-3);
	color: var(--ink);
}

.btn--ghost-light {
	background: transparent;
	color: var(--white);
	border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost-light:hover {
	border-color: var(--white);
	color: var(--white);
}

.icon-btn {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--r-pill);
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
	position: relative;
}

.icon-btn:hover {
	background: var(--soft-3);
	color: var(--ink);
}

.round-arrow {
	width: 44px;
	height: 44px;
	border-radius: var(--r-pill);
	background: var(--ink);
	color: var(--white);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* 4. Tints and printed patterns ------------------------------------------- */

.tint-pink { --tint: var(--tint-pink); }
.tint-sea { --tint: var(--tint-sea); }
.tint-violet { --tint: var(--tint-violet); }
.tint-sun { --tint: var(--tint-sun); }
.tint-mint { --tint: var(--tint-mint); }
.tint-sand { --tint: var(--tint-sand); }
.tint-coral { --tint: var(--tint-coral); }

[class*="tint-"] {
	background: var(--tint);
}

/* The design's drawn "prints": theme circles, and stand-ins for photos that do not exist yet. */
.pr-stripe { background: repeating-linear-gradient(180deg, #ff4d8d 0 22px, #fff 22px 30px, #ffc930 30px 52px, #fff 52px 60px, #2e7cf6 60px 82px, #fff 82px 90px); }
.pr-pitch { background: radial-gradient(circle at 50% 50%, transparent 0 20px, #fff 20px 23px, transparent 23px), linear-gradient(180deg, transparent 0 49.4%, #fff 49.4% 50.6%, transparent 50.6%), repeating-linear-gradient(180deg, #1f9d57 0 26px, #27b065 26px 52px); }
.pr-pop { background: radial-gradient(#fff 18%, transparent 20%) 0 0 / 20px 20px, #ff5e9e; }
.pr-sun { background: radial-gradient(circle at 50% 32%, #ffc930 0 22px, transparent 23px), radial-gradient(circle at 50% 32%, #ffe48a 0 36px, transparent 37px), linear-gradient(180deg, #86d4ff 0 62%, #ffd49a 62% 100%); }
.pr-wave { background: radial-gradient(circle at 50% 100%, transparent 0 8px, #fff 8px 11px, transparent 11px) 0 0 / 22px 13px, #2e7cf6; }
.pr-check { background: conic-gradient(#7b5cfa 0 25%, #cfc3ff 0 50%, #7b5cfa 0 75%, #cfc3ff 0) 0 0 / 26px 26px; }
.pr-candy { background: repeating-linear-gradient(45deg, #ff4d8d 0 14px, #ffc930 14px 28px); }
.pr-night { background: radial-gradient(#fff 1.2px, transparent 1.8px) 0 0 / 16px 16px, #22307a; }
.pr-satin { background: repeating-linear-gradient(115deg, #1d2b5c 0 18px, #33468a 18px 22px, #e9e1d4 22px 25px); }
.pr-linen { background: repeating-linear-gradient(90deg, #e4dacb 0 2px, #efe8dd 2px 10px); }
.pr-sage { background: repeating-linear-gradient(0deg, #9db59a 0 3px, #c9d7c3 3px 12px); }

.towel {
	box-shadow: var(--shadow-towel);
}

/*
 * A box a photo fills (inc/images.php). An infographic is cropped to the
 * region its --rw/--rh/--cx/--cy describe — the smallest scale that covers
 * the box with that region, centred on it, never showing past an edge. Any
 * other photo is centred and cropped to cover. The box needs a size of its
 * own (container-type: size), which every .focus in the theme has.
 */
.focus {
	position: relative;
	overflow: hidden;
	overflow: clip;
	container-type: size;
}

.focus__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* A browser without container units (Safari before 16) shows the whole photo, covered. */
@supports (width: 1cqw) {
	.focus__img--region {
		--s: max(calc(100cqw / var(--rw)), calc(100cqh * var(--a) / var(--rh)));
		inset: auto;
		width: var(--s);
		height: calc(var(--s) / var(--a));
		left: clamp(calc(100cqw - var(--s)), calc(50cqw - var(--cx) * var(--s)), 0px);
		top: clamp(calc(100cqh - var(--s) / var(--a)), calc(50cqh - var(--cy) * var(--s) / var(--a)), 0px);
		object-fit: fill;
	}
}

/* 5. Top bar and header ---------------------------------------------------- */

.topbar {
	background: var(--ink);
	color: var(--white);
	font-size: 13px;
	font-weight: 500;
}

.topbar__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 36px;
	padding-top: 11px;
	padding-bottom: 11px;
}

.topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.topbar__item .icon-clock { color: #ffc930; }
.topbar__item .icon-truck { color: #2bc48a; }
.topbar__item .icon-return { color: #ff8fb6; }

.site-header {
	position: relative;
	z-index: 50;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 18px; /* 28 until 1.0.7 (the SVG logo is 7 px wider than kingtex-1.png), 26 until 1.0.8: „Комплекти“ took the room — the search keeps its 229 px at 1366 and 189 at 1280 */
	height: 84px;
}

.site-header__spacer {
	flex: 1 1 auto;
	min-width: 0;
}

.site-header__icons {
	display: flex;
	align-items: center;
	gap: 2px;
}

.stripe--header {
	height: 4px;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	min-height: 44px;
	color: var(--ink);
}

.logo:hover {
	color: var(--ink);
}

.logo__word {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

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

/* The SVG logo (inc/icons.php, kingtex_logo_svg): as high as the uploaded one was, 40 px; its width follows */
.logo__svg {
	display: block;
	flex: none;
	height: 40px;
	width: auto;
}

.burger {
	display: none;
}

/* Primary navigation */
.nav__list {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	font-weight: 500;
}

.nav__item {
	position: relative;
	display: flex;
	align-items: center;
}

.nav {
	flex-shrink: 0;
}

.nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px;
	border-radius: var(--r-pill);
	white-space: nowrap;
}

.nav__link[aria-current="page"],
.nav__link[data-current-ancestor] {
	background: var(--soft-3);
	font-weight: 600;
	color: var(--ink);
}

.nav__link--b2b,
.nav__link--b2b[aria-current="page"] {
	margin-left: 6px;
	padding: 9px 12px;
	background: var(--b2b-pill);
	color: var(--b2b-ink);
	font-weight: 600;
}

.nav__link--b2b:hover {
	color: var(--b2b);
}

/* „Комплекти“ (1.0.8): the second pill, pink, before „За бизнеса“ */
.nav__link--sets,
.nav__link--sets[aria-current="page"] {
	margin-left: 6px;
	padding: 9px 12px;
	background: var(--tint-pink);
	color: #a8114c;
	font-weight: 600;
}

.nav__link--sets:hover {
	color: #8c0d3f;
}

.nav .nav__link--sets[aria-current="page"] {
	background: #c2185b;
	color: var(--white);
}

/* On „За бизнеса“ itself the pill is filled (design/Custom.dc.html). */
.nav .nav__link--b2b[aria-current="page"] {
	background: var(--b2b);
	color: var(--white);
}

.has-sub > .nav__link {
	padding-right: 0;
}

.nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
}

.nav__toggle .icon {
	transition: transform 0.2s var(--ease);
}

.nav__toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

.nav .nav__sub {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 240px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: 0 24px 48px -20px rgba(21, 19, 28, 0.25);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.18s, transform 0.18s var(--ease), visibility 0s 0.18s;
}

/* a hover bridge across the 8 px gap */
.nav .nav__sub::before {
	content: "";
	position: absolute;
	inset: -10px 0 auto;
	height: 10px;
}

.nav .has-sub:hover > .nav__sub,
.nav .has-sub:focus-within > .nav__sub,
.nav .nav__toggle[aria-expanded="true"] + .nav__sub {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.18s, transform 0.18s var(--ease);
}

.nav__sublink {
	display: block;
	padding: 10px 14px;
	border-radius: 12px;
	font-weight: 500;
}

.nav__sublink:hover,
.nav__sublink[aria-current="page"] {
	background: var(--soft-3);
	color: var(--ink);
}

/* Search */
.search__field {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding: 0 16px;
	border-radius: var(--r-pill);
	background: var(--soft-2);
	color: var(--muted);
}

.search__field:focus-within {
	box-shadow: 0 0 0 2px var(--ink) inset;
}

.search__field input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	outline: none;
	font: 500 16px var(--font-body); /* 16 px: Safari on iPhone and iPad zooms in on a smaller field */
	color: var(--ink);
}

.search__field input::placeholder {
	color: var(--muted);
	opacity: 1;
}

.search__field input::-webkit-search-cancel-button {
	cursor: pointer;
}

/* Chrome and Safari keep the „×“'s room in an empty field too: „Герой, отбор, група…“ lost its end at 1440 px (and did with kingtex-1.png) */
.search__field input:placeholder-shown::-webkit-search-cancel-button {
	display: none;
}

.search--header {
	flex: 0 1 240px;
	min-width: 0;
}

.mobile-search {
	display: none;
	max-width: var(--container);
	margin: 0 auto;
	padding: 12px var(--gutter);
}

.mobile-search .search__field {
	height: 48px;
}


/* Cart badge */
.cart-count {
	position: absolute;
	top: 4px;
	right: 3px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--r-pill);
	background: var(--accent);
	color: var(--ink); /* 5.9:1 on the pink; white was 3.1:1 */
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.cart-count[data-count="0"] {
	display: none;
}

/* after an add (main.js): a short bump, so the eye finds where the cart is */
.cart-count.is-bump {
	animation: kt-bump 0.5s var(--ease);
}

@keyframes kt-bump {
	0% { transform: scale(1); }
	35% { transform: scale(1.45); }
	65% { transform: scale(0.9); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.cart-count.is-bump {
		animation: none;
	}
}

/* Drawer (the menu on tablets and phones) */
.drawer {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(360px, 88vw);
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0 28px 28px 0;
	background: var(--white);
	color: var(--ink);
	display: none;
	flex-direction: column;
	overflow-y: auto;
}

.drawer[open] {
	display: flex;
	animation: drawer-in 0.24s var(--ease);
}

.drawer::backdrop {
	background: rgba(21, 19, 28, 0.5);
}

@keyframes drawer-in {
	from { transform: translateX(-24px); opacity: 0; }
}

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

.drawer__head .logo__word {
	font-size: 18px;
}

.drawer__head .logo__svg {
	height: 32px;
}

.drawer__nav {
	padding: 12px;
}

.drawer__nav .nav__list {
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	font-size: 17px;
}

.drawer__nav .nav__item {
	flex-wrap: wrap;
}

.drawer__nav .nav__link {
	flex: 1;
	padding: 12px 14px;
	min-height: 48px;
}

.drawer__nav .nav__link--b2b,
.drawer__nav .nav__link--sets {
	flex: 0 0 auto;
	margin: 8px 0 0;
}

.drawer__nav .nav__toggle {
	width: 48px;
	height: 48px;
}

.drawer__nav .nav__sub {
	flex-basis: 100%;
	display: none;
	margin: 0 0 6px 14px;
	padding: 0 0 0 12px;
	list-style: none;
	border-left: 2px solid var(--line);
}

.drawer__nav .nav__toggle[aria-expanded="true"] + .nav__sub {
	display: block;
}

.drawer__nav .nav__sublink {
	padding: 10px 12px;
	min-height: 44px;
}

.drawer__foot {
	margin-top: auto;
	padding: 16px 24px 28px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 15px;
}

.drawer__foot a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
}

body.has-drawer {
	overflow: hidden;
}

@media (max-width: 1100px) {
	.nav {
		display: none;
	}

	.burger {
		display: inline-flex;
	}
}

/* Below 1240 px the header has no room for the search next to the full
   menu: it moves into its own bar under the header. */
@media (max-width: 1240px) {
	.search--header {
		display: none;
	}

	.mobile-search {
		display: block;
	}
}

@media (max-width: 700px) {
	.topbar {
		font-size: 12px;
	}

	.topbar__inner {
		padding-top: 9px;
		padding-bottom: 9px;
	}

	.topbar__item:not(:first-child),
	.topbar .icon {
		display: none;
	}

	.site-header__inner {
		height: 60px;
		gap: 8px;
		padding: 0 8px;
	}

	.site-header .logo {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		gap: 8px;
	}

	.site-header .logo-mark {
		width: 32px;
		height: 26px;
	}

	.site-header .logo__word {
		font-size: 18px;
	}

	/* An uploaded logo, centred between the buttons: two on each side at most
	   (a product's back · menu, share · cart) — 8 + 88 + 10 px */
	.site-header .logo__img {
		max-width: calc(100vw - 212px);
		max-height: 32px;
		height: auto;
	}

	/* the same 32 px; narrower than that room (320 px), it shrinks inside its box */
	.site-header .logo__svg {
		height: 32px;
		max-width: calc(100vw - 212px);
	}

	.icon-btn--account {
		display: none;
	}

	.stripe--header {
		height: 3px;
	}
}

/* The home page's four entry tiles (kingtex_home_tiles_html(); their grid and phone sizes: front-page.css, inner.css) */
.tile {
	position: relative;
	overflow: hidden;
	overflow: clip;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 292px;
	padding: 24px;
	border-radius: var(--r-tile);
	color: var(--ink);
}

.tile:hover {
	color: var(--ink);
}

/* A photo fills the tile; its tint fades in from the top behind the title. */
.tile__photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	transition: transform 0.5s var(--ease);
}

.tile--photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, var(--tint) 0, var(--tint) 24%, color-mix(in srgb, var(--tint) 55%, transparent) 38%, transparent 56%);
}

.tile--photo:hover .tile__photo {
	transform: scale(1.04);
}

.tile__text {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tile__title {
	font-size: 22px;
	font-weight: 700;
}

.tile__sub {
	font-size: 14px;
	color: var(--ink-2);
}

.tile__go {
	position: relative;
	z-index: 2;
}

.tile__art {
	position: absolute;
	right: 22px;
	bottom: -30px;
	width: 96px;
	height: 200px;
	border-radius: 10px;
	transition: transform 0.35s var(--ease);
}

.tile__art--sun { transform: rotate(8deg); }
.tile__art--pitch { transform: rotate(-7deg); }
.tile__art--pop { transform: rotate(6deg); }
.tile__art--satin {
	right: -30px;
	bottom: -20px;
	width: 180px;
	height: 130px;
	border-radius: 16px;
	transform: rotate(-6deg);
}

.tile:hover .tile__art {
	translate: 0 -4px;
}

/* 6. Inner pages: one container and one head ------------------------------ */
/* Every page that is not the home, the catalogue or a product: „За нас“,
   „Доставка и връщане“, „Комплекти“, the legal documents, „Моят профил“,
   „Отказ от договора“, the cart, „не е намерена“ and an empty search
   (kingtex_page_head(), inc/page-head.php). The container is the header's
   (.wrap: the logo's line on a desktop, the 16 px gutter on a phone), the
   crumbs „Начало / …“, the title in Unbounded, one line under it. */

.delp {
	padding-bottom: var(--section);
}

.delp-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 32px;
	font-size: 14px;
	color: var(--muted);
}

.delp-crumbs a {
	color: var(--muted);
}

.delp-crumbs a:hover {
	color: var(--ink);
}

.delp-crumbs [aria-current] {
	color: var(--ink);
	font-weight: 600;
}

.delp-head {
	padding: 14px 0 40px;
}

.delp-head__title {
	margin: 0;
	font-size: clamp(38px, 5vw, 64px);
	font-weight: 800;
	line-height: 1.05;
	text-wrap: balance;
}

.delp-head__lead {
	max-width: 640px;
	margin: 18px 0 0;
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink-2);
}

/* A legal document's chips: „В сила от …“, „КИНГТЕКС ЕООД“ */
.ph-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.ph-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 0 14px;
	border-radius: var(--r-pill);
	background: var(--soft-3);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--ink);
}

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

@media (max-width: 700px) {
	.delp-head {
		padding-bottom: 28px;
	}

	.delp-head__lead {
		font-size: 15px;
	}

	.ph-chips {
		margin-top: 18px;
	}
}

/* Pages without their own design (the checkout; a page of another plugin) */

.page-body {
	padding-top: 48px;
	padding-bottom: 32px;
}

.page-head {
	margin-bottom: 32px;
}

.page-title {
	font-size: clamp(30px, 3.4vw, 46px);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.1;
}

/* Long text — the legal pages, „За нас“: the page's own HTML (h1–h4, p,
   lists, strong, br, links), as the editor leaves it without Elementor. */
.prose {
	max-width: 720px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink-2);
	overflow-wrap: break-word;
}

.prose > * + * {
	margin-top: 1em;
}

.prose > :first-child {
	margin-top: 0;
}

.prose p:empty {
	display: none;
}

/* A page that brings its own h1 has no theme heading over it (page.php) */
.prose h1 {
	margin-bottom: 0.6em;
	font: 700 clamp(30px, 3.4vw, 46px) / 1.1 var(--font-display);
	letter-spacing: -0.015em;
	color: var(--ink);
}

.prose h1 + p {
	font-size: 19px;
	color: var(--muted);
}

.prose h2 {
	margin-top: 2em;
	font: 700 clamp(22px, 2.2vw, 28px) / 1.2 var(--font-display);
	letter-spacing: -0.01em;
	color: var(--ink);
}

.prose h3 {
	margin-top: 1.8em;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ink);
}

.prose h4 {
	margin-top: 1.5em;
	font-size: 17px;
	font-weight: 700;
	color: var(--ink);
}

.prose :is(h2, h3, h4) + * {
	margin-top: 0.5em;
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li + li {
	margin-top: 0.45em;
}

.prose li::marker {
	color: var(--ink);
}

.prose li > p {
	margin: 0;
}

.prose li > p + p {
	margin-top: 0.4em;
}

.prose :is(strong, b) {
	font-weight: 700;
	color: var(--ink);
}

.prose a {
	color: var(--b2b-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.prose hr {
	margin: 2em 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.prose blockquote {
	padding-left: 18px;
	border-left: 3px solid var(--line-2);
	color: var(--muted);
}

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

.prose :is(th, td) {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

@media (max-width: 700px) {
	.prose {
		font-size: 16px;
	}

	.prose h3 {
		font-size: 18px;
	}
}

.post-list {
	display: grid;
	gap: 24px;
}

.post-item__title {
	font-size: 20px;
	font-weight: 600;
}

/* 7. Product card ---------------------------------------------------------- */

.card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: var(--card-ratio);
	padding: 14px;
	border-radius: var(--r-card);
	overflow: hidden;
	overflow: clip;
}

.card__visual {
	position: relative;
	transition: transform 0.35s var(--ease);
}

.card:hover .card__visual {
	transform: translateY(-4px);
}

/* „Бързо добавяне“: a panel over the photo, for a mouse only (the "+" serves everyone). */
.card__quick {
	display: none;
}

@media (hover: hover) and (pointer: fine) {
	.card__quick {
		position: absolute;
		left: 12px;
		right: 12px;
		bottom: 12px;
		z-index: 2;
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 12px;
		border-radius: 18px;
		background: rgba(255, 255, 255, 0.94);
		box-shadow: 0 10px 30px -10px rgba(21, 19, 28, 0.35);
		opacity: 0;
		transform: translateY(8px);
		pointer-events: none;
		transition: opacity 0.2s, transform 0.2s var(--ease);
	}

	.card:hover .card__quick {
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}
}

.card__quick-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.card__quick-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	border-radius: 12px;
	background: var(--ink);
	color: var(--white);
	font-size: 14px;
	font-weight: 600;
}

.card__quick-btn:hover {
	background: var(--ink-hover);
	color: var(--white);
}

.card__quick-btn.is-added {
	background: var(--success);
}

/* The photos are 3:2 infographics with text in them: shown whole, never cropped. */
.card__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	border-radius: 10px;
	box-shadow: 0 16px 30px -14px rgba(21, 19, 28, 0.4);
}

.badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 6px 10px;
	border-radius: var(--r-pill);
	background: var(--ink);
	color: var(--white);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0 4px;
}

.card__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

/* the whole card's text is one link target for the pointer */
.card__title a:hover {
	color: var(--b2b);
}

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

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

.card__price {
	font-size: 19px;
	font-weight: 700;
}

.card__price del {
	color: var(--muted);
	font-size: 0.75em;
	font-weight: 500;
	margin-right: 6px;
}

.card__price ins {
	text-decoration: none;
}

.card__buy {
	position: relative; /* contains the visually hidden label on phones */
	flex: none; /* a long price („49.00€ – 69.00€“) wraps, the button keeps 44 px */
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 44px;
	padding: 0 16px;
	border-radius: var(--r-pill);
	background: var(--ink);
	color: var(--white);
	font: 600 14px var(--font-body);
	white-space: nowrap;
	transition: background 0.2s;
}

.card__buy:hover {
	background: var(--ink-hover);
	color: var(--white);
}

.card__buy.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.card__buy.is-added {
	background: var(--success);
}

/* The round "+" of the catalogue (and of every card on a phone). */
.card--round .card__buy {
	width: 44px;
	padding: 0;
	justify-content: center;
}

.card--round .card__buy .icon {
	width: 18px;
	height: 18px;
}

.card--round .card__buy-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

@media (max-width: 700px) {
	.card {
		gap: 10px;
	}

	.card__media {
		padding: 10px;
		border-radius: 20px;
	}

	.card__img {
		border-radius: 8px;
	}

	.badge {
		top: 10px;
		left: 10px;
		padding: 5px 8px;
		font-size: 10px;
	}

	.card__body,
	.card__foot {
		padding: 0;
	}

	.card__title {
		font-size: 14px;
		line-height: 1.3;
	}

	.card__meta {
		font-size: 12px;
	}

	.card__price {
		font-size: 16px;
	}

	/* the round "+" of the phone design */
	.card__buy {
		width: 44px;
		padding: 0;
		justify-content: center;
	}

	.card__buy-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
}

/* A row that scrolls sideways on the phone (cards, theme circles, chips). */
.rail {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.rail::-webkit-scrollbar {
	display: none;
}

.rail > * {
	scroll-snap-align: start;
}

/* 8. Footer ---------------------------------------------------------------- */

.site-footer {
	margin-top: 112px;
	background: var(--ink);
	color: #d9d5e3;
}

.stripe--footer {
	height: 6px;
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 56px;
	padding-top: 64px;
	padding-bottom: 40px;
}

.footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 32px;
	font-size: 15px;
}

.footer__col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.footer__brand {
	color: var(--white);
	font-size: 20px;
	font-weight: 700;
}

/* the white logo (footer.php) */
.footer__brand .logo__svg {
	height: 36px;
}

.footer__col--brand p {
	line-height: 1.6;
}

.footer__title {
	color: var(--white);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

.footer__links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* a list a plugin adds under the menu (kingtex-core's „Откажете се от договора тук“) reads as the same list */
.footer__links + .footer__links {
	margin-top: -2px;
}

.footer__links a {
	color: #d9d5e3;
}

.footer__links a:hover {
	color: var(--white);
	text-decoration: underline;
}

/* „Настройки за бисквитки“ (footer.php): a button that reads as the links */
.footer__consent {
	padding: 0;
	border: 0;
	background: none;
	color: #d9d5e3;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.footer__consent:hover {
	color: var(--white);
	text-decoration: underline;
}

.footer__couriers {
	display: flex;
	gap: 8px;
	padding-top: 6px;
}

.footer__couriers span {
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--white);
	color: var(--ink);
	font-size: 12px;
	font-weight: 700;
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	font-size: 13px;
	color: #a9a3b8;
}

.footer__bottom a {
	color: var(--white);
	font-weight: 600;
}

@media (max-width: 700px) {
	.site-footer {
		margin-top: 40px;
		padding-bottom: 96px; /* room for the tab bar */
	}

	.stripe--footer {
		height: 5px;
	}

	.site-footer__inner {
		gap: 28px;
		padding-top: 28px;
		padding-bottom: 28px;
	}

	.footer__cols {
		grid-template-columns: 1fr 1fr;
		gap: 24px 16px;
		font-size: 14px;
	}

	.footer__col--brand {
		grid-column: 1 / -1;
	}

	.footer__col--brand p {
		display: none;
	}

	.footer__brand {
		font-size: 18px;
	}

	.footer__brand .logo__svg {
		height: 32px;
	}

	.footer__bottom {
		font-size: 12px;
	}
}

/* 9. Tab bar (phones) ------------------------------------------------------ */

.tabbar {
	display: none;
}

@media (max-width: 700px) {
	.tabbar {
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		z-index: 60;
		display: flex;
		align-items: center;
		justify-content: space-around;
		height: 68px;
		border-radius: 24px;
		background: rgba(21, 19, 28, 0.96);
		box-shadow: 0 18px 40px -12px rgba(21, 19, 28, 0.5);
	}

	.tabbar__item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		min-width: 56px;
		min-height: 52px;
		color: #b6b0c3;
		font-size: 11px;
		font-weight: 600;
	}

	.tabbar__item:hover,
	.tabbar__item[aria-current="page"] {
		color: var(--white);
	}

	/* „Количка“ (1.0.8): the phone's one cart, its count on the icon */
	.tabbar__icon {
		position: relative;
		display: inline-flex;
	}

	.tabbar .cart-count {
		top: -7px;
		right: -11px;
		box-shadow: 0 0 0 2px #15131c;
	}

	/* …so the header has none on a phone (the product page's is in its buy bar) */
	.site-header .cart-link {
		display: none;
	}

	body {
		padding-bottom: 0;
	}
}

/* 10. Touch screens ----------------------------------------------------------
   On a touch screen (pointer: coarse — phones, tablets, an iPad Pro on its
   side) every link and button that stands on its own is at least 44 × 44 px:
   a text link gets the height as padding (a negative margin keeps the
   layout), a small control a bigger box. A link inside a sentence keeps its
   line. Fields are at least 16 px, or Safari zooms the page in on them. */

@media (pointer: coarse) {
	.footer__links {
		gap: 0;
	}

	.footer__links + .footer__links {
		margin-top: -14px;
	}

	.footer__links a,
	.footer__consent,
	.section-head__link,
	:is(.woocommerce-message, .woocommerce-info, .woocommerce-error) :is(.button, .wc-forward) {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.nav__link {
		min-height: 44px;
	}

	.nav__toggle {
		width: 44px;
	}

	.quantity__input {
		width: 44px;
		height: 44px;
	}

	.woocommerce-form__label-for-checkbox,
	label.checkbox {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	/* names and crumbs keep their look; what is hit reaches 44 px */
	.card__title a,
	.crumbs a,
	.mc-item__name,
	.mc-upsell__name {
		position: relative;
	}

	.card__title a::after,
	.crumbs a::after,
	.mc-item__name::after,
	.mc-upsell__name::after {
		content: "";
		position: absolute;
		inset: -12px 0;
	}

	/* a name on two lines is two boxes when inline, and its ::after lands
	   between them (Firefox: nowhere); as a block it is one */
	.card__title a {
		display: block;
	}

	.card__title a::after {
		inset: -13px 0;
	}

	/* the sets' lines are closer than 44 px: each link is 44 px high instead */
	.set__items {
		gap: 0;
	}

	.set__items li {
		align-items: center;
	}

	.set__items a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="image"]),
	select,
	textarea {
		font-size: max(16px, 1em) !important;
	}
}

/* A control the keyboard moves to is scrolled clear of the bars that stay on
   screen: the phone's tab bar and the product's add-to-cart bar. */
@media (max-width: 700px) {
	html {
		scroll-padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
	}
}

html:has(.buybar.is-visible) {
	scroll-padding-bottom: 104px;
}

/* Подаръчни комплекти, wherever they are (/komplekti/, the home page):
   the theme chips, „Добави комплекта“ while it works, and why it did not. */
.sets-chip {
	position: relative;
	flex-shrink: 0;
	cursor: pointer;
}

.sets-chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.sets-chip > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 18px;
	border: 1.5px solid var(--line-2);
	border-radius: var(--r-pill);
	background: var(--white);
	font: 600 14px var(--font-body);
	white-space: nowrap;
}

.sets-chip:hover > span {
	border-color: var(--ink);
}

.sets-chip input:checked + span {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--white);
}

.sets-chip input:focus-visible + span {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.sets-chip__count {
	color: #6b6878;
	font-weight: 500;
}

.sets-chip input:checked + span .sets-chip__count {
	color: #c9c4d6;
}

[data-add-set] .btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

[data-add-set] .btn.is-added {
	background: var(--success);
}

[data-add-set] .btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.set__error {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--tint-pink);
	color: #8c1240;
	font-size: 14px;
	line-height: 1.45;
}

/* Complianz's cookie banner: assets/css/consent.css (since 1.0.8, loaded after Complianz's own CSS). */
