/* ==========================================================================
   The Trip Bag — main stylesheet
   Palette taken from the logo: ink outline, lagoon blue, sun yellow,
   map-pin orange, palm green.
   ========================================================================== */

:root {
	--ink: #14212e;
	--ink-2: #24374c;
	--ink-soft: #4a5a6b;
	--lagoon: #1f8fd0;
	--lagoon-dark: #1772a8;
	--sky: #e6f3fb;
	--mist: #f3f8fc;
	--sun: #f5b62b;
	--sun-dark: #e0a012;
	--pin: #ee6a2b;
	--palm: #3a9a43;
	--white: #ffffff;
	--line: rgba(20, 33, 46, 0.14);
	--line-strong: rgba(20, 33, 46, 0.28);

	--f-display: 'Archivo Black', 'Arial Black', 'Nunito', sans-serif;
	--f-script: 'Kaushan Script', 'Brush Script MT', cursive;
	--f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--step--1: 0.875rem;
	--step-0: 1.125rem;
	--step-1: 1.375rem;
	--step-2: 1.75rem;
	--step-3: clamp(1.9rem, 1.4rem + 1.9vw, 2.6rem);
	--step-4: clamp(2.4rem, 1.5rem + 3.6vw, 4.25rem);

	--wrap: 1200px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--radius-s: 12px;
	--radius-m: 20px;
	--radius-l: 32px;
	--header-h: 84px;
}

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

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

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: var(--step-0);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0 0 1em; }

a { color: var(--lagoon-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

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

.skip-link {
	position: absolute;
	left: 1rem; top: -100px;
	z-index: 100;
	background: var(--ink);
	color: var(--white);
	padding: 0.6rem 1rem;
	border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(46rem + 2 * var(--gutter)); }
.wrap--wide { max-width: 1000px; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section__title { margin-bottom: 1.5em; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 52px;
	padding: 0.7em 1.6em;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--f-body);
	font-size: 1.0625rem;
	font-weight: 900;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-2); color: var(--white); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: var(--sun-dark); color: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--small { min-height: 44px; padding: 0.5em 1.2em; font-size: 1rem; }
.btn--large { min-height: 60px; padding: 0.8em 2.2em; font-size: 1.2rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--header-h);
}

.site-logo { display: block; flex: 0 0 auto; line-height: 0; }
.site-logo__img { height: 68px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.main-nav li { position: relative; }
.main-nav a {
	display: block;
	padding: 0.5rem 0.75rem;
	color: var(--ink);
	font-weight: 800;
	text-decoration: none;
	border-radius: 999px;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { background: var(--sky); }
.main-nav .sub-menu {
	position: absolute;
	top: 100%; left: 0;
	min-width: 200px;
	display: none;
	flex-direction: column;
	padding: 0.5rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { display: flex; }

/* Language switcher */
.lang-switch ul { list-style: none; margin: 0; padding: 3px; display: flex; gap: 2px; border: 2px solid var(--ink); border-radius: 999px; }
.lang-switch a {
	display: block;
	min-width: 38px;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	color: var(--ink);
	font-weight: 900;
	font-size: 0.875rem;
	text-align: center;
	text-decoration: none;
}
.lang-switch a:hover { background: var(--sky); }
.lang-switch a.is-current { background: var(--ink); color: var(--white); }
.lang-switch--hint { font-size: 0.8rem; color: var(--pin); margin: 0; max-width: 180px; line-height: 1.3; }

.nav-toggle { display: none; }

@media (max-width: 1020px) {
	:root { --header-h: 72px; }
	.site-logo__img { height: 56px; }
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-left: auto;
		width: 48px; height: 48px;
		border: 2px solid var(--ink);
		border-radius: 50%;
		background: var(--white);
		cursor: pointer;
	}
	.nav-toggle__bars,
	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		display: block;
		width: 20px; height: 2.5px;
		background: var(--ink);
		border-radius: 2px;
		transition: transform 0.2s;
		content: '';
	}
	.nav-toggle__bars { position: relative; }
	.nav-toggle__bars::before { position: absolute; top: -6px; }
	.nav-toggle__bars::after { position: absolute; top: 6px; }
	.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
	.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.site-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1rem var(--gutter) 1.5rem;
		background: var(--white);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 20px 30px -20px rgba(20, 33, 46, 0.25);
	}
	.site-nav.is-open { display: flex; }
	.main-nav ul { flex-direction: column; }
	.main-nav a { padding: 0.75rem 1rem; font-size: 1.125rem; }
	.main-nav .sub-menu { position: static; display: flex; border: 0; padding: 0 0 0 1rem; }
	.lang-switch ul { align-self: flex-start; width: max-content; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	background: var(--sky);
	padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}
.hero::before {
	/* The dashed travel ring from the logo */
	content: '';
	position: absolute;
	width: 980px; height: 720px;
	right: -220px; top: -120px;
	border: 3px dashed rgba(20, 33, 46, 0.16);
	border-radius: 50%;
	transform: rotate(-12deg);
	pointer-events: none;
}
.hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem);
}
.hero__brand {
	font-family: var(--f-script);
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
	color: var(--lagoon-dark);
	line-height: 1;
	margin-bottom: 0.4em;
	transform: rotate(-3deg);
	transform-origin: left;
	display: inline-block;
}
.hero__title { margin-bottom: 0.35em; max-width: 13ch; }
.hero__lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 32ch; margin-bottom: 1.75rem; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.hero__price { margin: 0; font-weight: 700; color: var(--ink-soft); }
.hero__price strong { color: var(--ink); font-weight: 900; font-size: 1.25em; }

.hero__demo {
	background: var(--white);
	border-radius: var(--radius-l);
	padding: clamp(1rem, 2.5vw, 1.75rem);
	box-shadow: 0 2px 0 var(--ink), 0 30px 60px -30px rgba(20, 33, 46, 0.35);
	border: 2px solid var(--ink);
}
.hero__stage {
	position: relative;
	border-radius: var(--radius-m);
	background:
		radial-gradient(circle at 82% 18%, rgba(245, 182, 43, 0.55) 0 38px, transparent 39px),
		linear-gradient(180deg, #d7ecf9 0%, #eef7fd 70%, #f6e7c4 70%, #f3e2b9 100%);
	padding: 1.5rem 0.75rem 0.5rem;
	margin-bottom: 1.25rem;
}
.hero__stage .tb-bag { width: 100%; }
.hero__controls { display: grid; gap: 1rem; }
.hero__name span { display: block; font-weight: 800; margin-bottom: 0.35rem; }
.hero__name input {
	width: 100%;
	font-family: var(--f-script);
	font-size: 1.6rem;
	padding: 0.35rem 1rem;
}

@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__title { max-width: 16ch; }
}

/* ---------- Form controls (shared) ---------- */
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='number'],
input[type='search'],
textarea,
select {
	width: 100%;
	font: inherit;
	color: var(--ink);
	background: var(--white);
	border: 2px solid var(--line-strong);
	border-radius: var(--radius-s);
	padding: 0.7rem 0.9rem;
	transition: border-color 0.15s;
}
input:focus,
textarea:focus,
select:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 3px rgba(31, 143, 208, 0.25); }
input[aria-invalid='true'],
textarea[aria-invalid='true'] { border-color: var(--pin); }

/* Swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 0.6rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatch::before {
	content: '';
	display: block;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--swatch);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
	transition: transform 0.15s;
}
.swatch:has(input:checked)::before { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--ink); }
.swatch:has(input:focus-visible)::before { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--lagoon); }
.swatch:hover::before { transform: scale(1.08); }
.swatches--compact .swatch::before { width: 34px; height: 34px; }
.swatches--small .swatch::before { width: 38px; height: 38px; }

/* ---------- Steps ---------- */
.steps__list {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	position: relative;
}
.steps__list::before {
	/* the route between the steps */
	content: '';
	position: absolute;
	top: 28px; left: 56px; right: 10%;
	border-top: 3px dashed var(--line-strong);
}
.step { position: relative; }
.step__num {
	position: relative;
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	margin-bottom: 1.25rem;
	border-radius: 50%;
	font-family: var(--f-display);
	font-size: 1.5rem;
	color: var(--ink);
	border: 3px solid var(--ink);
	background: var(--sun);
}
.step:nth-child(2) .step__num { background: var(--lagoon); color: var(--white); }
.step:nth-child(3) .step__num { background: var(--pin); color: var(--white); }
.step p { color: var(--ink-soft); max-width: 32ch; }

@media (max-width: 760px) {
	.steps__list { grid-template-columns: 1fr; gap: 2rem; }
	.steps__list::before { top: 28px; bottom: 28px; left: 27px; right: auto; border-top: 0; border-left: 3px dashed var(--line-strong); }
	.step { padding-left: 80px; }
	.step__num { position: absolute; left: 0; top: -4px; }
}

/* ---------- Models ---------- */
.models { background: var(--mist); }
.models__row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: end;
}
.model { display: flex; flex-direction: column; align-items: flex-start; }
.model__visual {
	width: 100%;
	padding: 1rem 0.5rem 0;
	margin-bottom: 1rem;
	border-bottom: 3px solid var(--ink);
}
.model__name { margin-bottom: 0.1em; font-size: var(--step-2); }
.model__size { font-weight: 800; color: var(--lagoon-dark); margin-bottom: 0.5em; }
.model__desc { color: var(--ink-soft); flex: 1; }
.model__price { font-family: var(--f-display); font-size: var(--step-2); margin-bottom: 0.75rem; }
.models__note { margin-top: 2.5rem; color: var(--ink-soft); font-weight: 700; }

@media (max-width: 860px) {
	.models__row { grid-template-columns: 1fr; gap: 3rem; }
	.model__visual { max-width: 420px; }
}

/* ---------- Page content (About + FAQ from the editor) ---------- */
.front-content { padding-block: clamp(3rem, 7vw, 5.5rem); }
.entry-content > * + * { margin-top: 0; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content > :first-child,
.entry-content .wp-block-group > :first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1em; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content img { border-radius: var(--radius-m); }
.entry-content blockquote { margin: 1.5em 0; padding-left: 1.25em; border-left: 4px solid var(--sun); font-size: var(--step-1); }

.tb-about { margin-bottom: clamp(3rem, 7vw, 5rem); }
.tb-about h2::after {
	content: '';
	display: block;
	width: 72px;
	margin-top: 0.4em;
	border-top: 4px solid var(--sun);
}

.wp-block-details {
	border-bottom: 2px dashed var(--line-strong);
	padding: 0;
	margin: 0;
}
.wp-block-details summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 1.1rem 3rem 1.1rem 0;
	font-weight: 900;
	font-size: 1.15rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: '+';
	position: absolute;
	right: 0.25rem; top: 50%;
	transform: translateY(-50%);
	width: 32px; height: 32px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--sky);
	font-size: 1.4rem;
	line-height: 1;
	transition: transform 0.2s;
}
.wp-block-details[open] summary::after { content: '−'; background: var(--sun); }
.wp-block-details > :not(summary) { padding-bottom: 1rem; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--sun); padding-block: clamp(3rem, 7vw, 5rem); }
.cta-band__inner { text-align: center; }
.cta-band__title {
	font-family: var(--f-script);
	font-size: clamp(2.4rem, 1.6rem + 3vw, 3.75rem);
	line-height: 1.05;
	margin-bottom: 0.25em;
}
.cta-band p { font-size: var(--step-1); margin-bottom: 1.5rem; }

/* ---------- Page header ---------- */
.page-hero { background: var(--sky); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero__title { margin-bottom: 0.25em; }
.page-hero__intro { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.page-hero__intro > :last-child { margin-bottom: 0; }
.entry-meta { font-weight: 800; color: var(--lagoon-dark); margin-bottom: 0.5rem; }
.entry-thumb { margin-top: -2rem; }
.entry-thumb img { border-radius: var(--radius-l); width: 100%; }

/* ---------- Design tool ---------- */
.section--builder { padding-top: clamp(2rem, 4vw, 3rem); }
.builder {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}
.builder__preview {
	position: sticky;
	top: calc(var(--header-h) + 1.5rem);
}
.admin-bar .builder__preview { top: calc(var(--header-h) + 1.5rem + 32px); }
.builder__stage {
	border: 2px solid var(--ink);
	border-radius: var(--radius-l);
	background:
		radial-gradient(circle at 85% 15%, rgba(245, 182, 43, 0.5) 0 44px, transparent 45px),
		linear-gradient(180deg, #d7ecf9 0%, #eef7fd 72%, #f6e7c4 72%, #f3e2b9 100%);
	padding: 2rem 1rem 1rem;
}
.builder__stage .tb-bag { width: 100%; }

.summary { margin: 1.25rem 0 0; padding: 0; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0.25rem; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--ink-soft); font-weight: 700; }
.summary dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.summary__row--total { border-bottom: 0; padding-top: 0.8rem; }
.summary__row--total dt { color: var(--ink); font-weight: 900; }
.summary__row--total dd { font-family: var(--f-display); font-size: var(--step-2); }

.builder__form { min-width: 0; }
.field-group { border: 0; padding: 0; margin: 0 0 2.5rem; min-width: 0; }
.field-group legend {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem;
	padding: 0;
	margin-bottom: 1rem;
	font-family: var(--f-display);
	font-size: var(--step-1);
}
.field-group__num {
	display: inline-grid;
	place-items: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--white);
	font-size: 1rem;
}
.field-group__value { font-family: var(--f-body); font-weight: 700; font-size: 1rem; color: var(--ink-soft); }

.field { margin-bottom: 1.25rem; }
.field label,
.field__label { display: block; font-weight: 800; margin-bottom: 0.4rem; }
.field__hint { font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); margin: 0.35rem 0 0; }
label .field__hint { display: inline; }
.field__error { color: #b8410f; font-weight: 800; font-size: 0.95rem; margin: 0.35rem 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field--check label { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 600; }
.field--check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 0.2rem; accent-color: var(--ink); }

/* Choice cards (model, delivery) */
.choice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.choice-cards--two { grid-template-columns: repeat(2, 1fr); }
.choice-card { position: relative; cursor: pointer; display: block; }
.choice-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	height: 100%;
	padding: 0.9rem 1rem;
	border: 2px solid var(--line-strong);
	border-radius: var(--radius-m);
	background: var(--white);
	transition: border-color 0.15s, background-color 0.15s;
}
.choice-card:hover .choice-card__body { border-color: var(--ink); }
.choice-card input:checked + .choice-card__body { border-color: var(--ink); background: var(--sky); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-card input:focus-visible + .choice-card__body { outline: 3px solid var(--lagoon); outline-offset: 2px; }
.choice-card__name { font-weight: 900; font-size: 1.1rem; }
.choice-card__meta { font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; line-height: 1.35; }
.choice-card__price { margin-top: auto; padding-top: 0.4rem; font-weight: 900; }

/* Lettering pills */
.pill-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
	display: block;
	padding: 0.45rem 1.1rem;
	border: 2px solid var(--line-strong);
	border-radius: 999px;
	font-size: 1.15rem;
	line-height: 1.4;
}
.pill input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.pill input:focus-visible + span { outline: 3px solid var(--lagoon); outline-offset: 2px; }

/* Icon grid */
.icon-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.icon-choice { position: relative; cursor: pointer; }
.icon-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.icon-choice__box {
	display: grid;
	place-items: center;
	width: 54px; height: 54px;
	border: 2px solid var(--line-strong);
	border-radius: var(--radius-s);
	color: var(--ink);
	background: var(--white);
}
.icon-choice__box .tb-icon { width: 28px; height: 28px; }
.icon-choice:hover .icon-choice__box { border-color: var(--ink); }
.icon-choice input:checked + .icon-choice__box { border-color: var(--ink); background: var(--ink); color: var(--sun); }
.icon-choice input:focus-visible + .icon-choice__box { outline: 3px solid var(--lagoon); outline-offset: 2px; }

/* Quantity */
.qty { display: inline-flex; align-items: stretch; border: 2px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.qty input { width: 4.5rem; border: 0; border-radius: 0; text-align: center; font-weight: 900; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { box-shadow: none; }
.qty__btn { width: 48px; border: 0; background: var(--sky); color: var(--ink); font-size: 1.4rem; font-weight: 900; cursor: pointer; }
.qty__btn:hover { background: var(--sun); }

.builder__submit { padding-top: 0.5rem; }
.builder__submit .field__hint { margin-top: 0.75rem; }

.form-message { padding: 1rem 1.25rem; border-radius: var(--radius-m); margin-bottom: 2rem; font-weight: 700; }
.form-message[hidden] { display: none; }
.form-message ul { margin: 0.5rem 0 0; padding-left: 1.2em; }
.form-message p { margin: 0; }
.form-message--ok { background: #dff2e1; border: 2px solid var(--palm); }
.form-message--error { background: #fde6dc; border: 2px solid var(--pin); }

.builder.is-done .field-group,
.builder.is-done .builder__submit { display: none; }

@media (max-width: 900px) {
	.builder { grid-template-columns: 1fr; }
	.builder__preview { position: relative; top: 0; }
	.admin-bar .builder__preview { top: 0; }
}
@media (max-width: 560px) {
	.choice-cards { grid-template-columns: 1fr; }
	.choice-cards--two { grid-template-columns: 1fr; }
	.field-row { grid-template-columns: 1fr; }
	.choice-card__body { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 0.75rem; }
	.choice-card__price { margin-left: auto; padding-top: 0; }
}

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.post-card__img img { border-radius: var(--radius-m); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.post-card__body { padding-top: 1rem; }
.post-card__title { font-size: var(--step-1); }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--lagoon-dark); }
.post-nav .nav-links { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 3rem; }
.post-nav span { display: block; font-size: 0.85rem; font-weight: 800; color: var(--ink-soft); }
.pagination .nav-links { display: flex; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: 0.4rem 0.9rem; border-radius: 999px; border: 2px solid var(--line); text-decoration: none; font-weight: 800; color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }

.search-form { display: flex; gap: 0.5rem; max-width: 480px; margin-bottom: 1.5rem; }
.empty-state { padding-block: 2rem; }

.comments { padding-block: 2rem 4rem; }
.comment-list { padding-left: 0; list-style: none; }

/* ---------- 404 ---------- */
.notfound__code {
	font-family: var(--f-script);
	font-size: clamp(5rem, 18vw, 10rem);
	line-height: 1;
	color: var(--lagoon);
	margin: 0 0 0.1em;
	transform: rotate(-4deg);
	display: inline-block;
}
.notfound__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer {
	position: relative;
	background: var(--ink);
	color: #dbe5ee;
	padding-top: 4.5rem;
}
.site-footer__route { position: absolute; top: 18px; left: 0; width: 100%; height: 40px; color: var(--sun); opacity: 0.8; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sun); }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 2.5rem;
	padding-bottom: 3rem;
}
.site-footer__grid:has(> :nth-child(4)) { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.site-logo--footer { display: inline-block; background: var(--white); border-radius: var(--radius-l); padding: 0.75rem 1rem; margin-bottom: 1.25rem; }
.site-logo--footer .site-logo__img { height: 110px; }
.site-footer__tagline { max-width: 30ch; }
.site-footer__title, .site-footer .widget-title { font-size: 1.1rem; color: var(--white); margin-bottom: 1rem; }
.contact-list, .footer-links, .social-links { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.contact-list li, .footer-links li { margin-bottom: 0.5rem; }
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-links a { font-weight: 800; }
.lang-switch--footer ul { border-color: rgba(255, 255, 255, 0.5); width: max-content; }
.lang-switch--footer a { color: var(--white); }
.lang-switch--footer a:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.lang-switch--footer a.is-current { background: var(--sun); color: var(--ink); }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	padding-block: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.95rem;
	color: #a9b8c6;
}
.site-footer__bottom p { margin: 0; }

@media (max-width: 860px) {
	.site-footer__grid,
	.site-footer__grid:has(> :nth-child(4)) { grid-template-columns: 1fr; }
}

/* ---------- WooCommerce (optional) ---------- */
.woo .button, .woo button.button, .woo a.button { border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 900; padding: 0.8em 1.5em; }
.woo .price { color: var(--ink); font-weight: 900; }

/* ---------- Bag illustration ---------- */
.tb-bag { display: block; overflow: visible; }
.tb-bag .tb-body,
.tb-bag .tb-shadow { transition: transform 0.35s cubic-bezier(.3,1.4,.6,1); }

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

/* ---------- QR payment ---------- */
.pay-block {
	display: grid;
	grid-template-columns: minmax(150px, 190px) 1fr;
	gap: 1.5rem;
	align-items: start;
	padding: 1.5rem;
	margin-bottom: 2rem;
	border: 2px solid var(--ink);
	border-radius: var(--radius-l);
	background: var(--white);
}
.pay-block__qr .tb-qr { width: 100%; height: auto; display: block; border-radius: var(--radius-s); }
.pay-block__title { font-size: var(--step-1); margin-bottom: 0.4em; }
.pay-block__details { margin: 1rem 0; }
.pay-block__details { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
.pay-block__details div { padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.pay-block__details div:nth-child(-n+2) { grid-column: 1 / -1; }
.pay-block__details dd { white-space: nowrap; }
.pay-block__details dt { font-size: 0.875rem; color: var(--ink-soft); font-weight: 700; }
.pay-block__details dd { margin: 0; font-weight: 900; font-variant-numeric: tabular-nums; word-break: break-word; }
.pay-block__note { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 560px) {
	.pay-block { grid-template-columns: 1fr; }
	.pay-block__qr { max-width: 240px; margin-inline: auto; }
}
