/* ==========================================================================
   JOVÉ – base.css
   Tokeny, typografia, layout, przyciski, formularze, header, stopka.
   Ładowany na każdym widoku.
   ========================================================================== */

/* ---------- Fonty (lokalne, woff2, latin + latin-ext = polskie znaki) ----------
   Montserrat – tekst i UI (wytyczne marki), Playfair Display – nagłówki i akcenty (kursywa). */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/playfair-display-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Playfair Display";
	font-style: italic;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	font-style: italic;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/playfair-display-latin-ext-wght-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fallbacki z dopasowanymi metrykami – ograniczają przesunięcia layoutu (CLS) przy podmianie fontu. */
@font-face {
	font-family: "Montserrat Fallback";
	src: local("Arial"), local("Helvetica");
	size-adjust: 113.4%;
	ascent-override: 85.3%;
	descent-override: 22.1%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Serif Fallback";
	src: local("Georgia"), local("Times New Roman");
	size-adjust: 104%;
}

/* ---------- Tokeny (identyfikacja JOVÉ – wytyczne klienta) ---------- */
:root {
	--color-primary: #9C6467;       /* przygaszony róż – przyciski główne (biały tekst ≈ 4.9:1) */
	--color-primary-hover: #87555A;
	--color-secondary: #F3E3DE;     /* bladoróżowy – kółka ikon, tła wyróżnień */
	--color-accent: #96593F;        /* terakota – nadtytuły, wyróżnienia (≈ 5:1 na tle) */
	--color-accent-soft: #C99A84;   /* terakota jasna – dekoracje, serduszka */
	--color-gold: #B8946A;          /* złota kreska (logo) */
	--color-olive: #3E4136;         /* kolor logo */
	--color-background: #FBF7F3;    /* ciepły krem */
	--color-surface: #F6EEE8;       /* beż różany – sekcje naprzemienne */
	--color-text: #2B2624;          /* ciepła czerń */
	--color-muted: #6E6460;         /* tekst drugorzędny (≈ 5.3:1) */

	--color-white: #FFFFFF;
	--color-border: #EADFD6;
	--color-field-border: #8F857F;  /* obramowanie pól – kontrast ≥ 3:1 (WCAG 1.4.11) */
	--color-error: #A8452F;
	--color-success: #4E6B52;
	--color-focus: #2B2624;

	--font-sans: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-serif: "Playfair Display", "Serif Fallback", Georgia, "Times New Roman", serif;

	--fs-xs: 0.8125rem;
	--fs-sm: 0.875rem;
	--fs-base: clamp(0.9375rem, 0.91rem + 0.15vw, 1rem);
	--fs-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	--fs-h3: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
	--fs-h2: clamp(1.875rem, 1.4rem + 2vw, 3rem);
	--fs-h1: clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem);

	--lh-body: 1.7;
	--lh-tight: 1.12;
	--measure: 62ch;

	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;
	--space-9: 96px;
	--space-10: 128px;
	--section-y: clamp(64px, 9vw, 120px);
	--gutter: clamp(16px, 4vw, 40px);
	--container: 1240px;
	--container-narrow: 760px;

	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--radius-btn: 999px;
	--radius-pill: 999px;

	--shadow-soft: 0 1px 2px rgb(90 64 56 / 0.04), 0 10px 30px rgb(90 64 56 / 0.08);

	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--dur: 200ms;

	--header-h: 84px;
	--tap: 48px;
	--safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

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

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { border-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
/* :where() = zerowa specyficzność – klasy komponentów (np. .features) mogą ustawiać własny padding. */
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-6) 0; }

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color var(--dur) var(--ease);
}
a:hover { color: var(--color-primary); }

::selection { background: var(--color-secondary); color: var(--color-text); }

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

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

/* ---------- Typografia ---------- */
h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: 500;
	line-height: var(--lh-tight);
	text-wrap: balance;
}
h1, h2, .display {
	font-family: var(--font-serif);
	font-weight: 400;
	letter-spacing: -0.015em;
	color: var(--color-text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.005em; line-height: 1.25; }
h4 { font-size: var(--fs-lg); line-height: 1.3; }
p { text-wrap: pretty; }
strong, b { font-weight: 600; }

.eyebrow {
	margin-bottom: var(--space-4);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--color-accent);
}

/* Odręczny akcent (kursywa szeryfowa) – np. „Małe zęby, wielkie historie”. */
.script-note {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-family: var(--font-serif);
	font-style: italic;
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
	line-height: 1.3;
	color: var(--color-accent);
}
.script-note .icon { color: var(--color-accent-soft); flex: none; }

/* Ikona w bladoróżowym kółku. */
.icon-circle {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--color-secondary);
	color: var(--color-primary);
}
.icon-circle .icon { stroke-width: 1.4; }
.muted { color: var(--color-muted); }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--color-primary); }
.prose img { border-radius: var(--radius-md); }
.prose table { font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--color-border); }

/* ---------- Narzędzia ---------- */
.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: var(--space-4);
	top: -100px;
	z-index: 1000;
	padding: var(--space-3) var(--space-4);
	background: var(--color-text);
	color: var(--color-white);
	border-radius: var(--radius-sm);
	text-decoration: none;
}
.skip-link:focus { top: var(--space-3); color: var(--color-white); }

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

.media-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	background:
		linear-gradient(135deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0)),
		var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	color: var(--color-muted);
	font-family: var(--font-serif);
	font-size: var(--fs-lg);
	text-align: center;
	padding: var(--space-4);
}

.admin-hint {
	padding: var(--space-5);
	border: 1px dashed var(--color-field-border);
	border-radius: var(--radius-md);
	background: var(--color-white);
	font-size: var(--fs-sm);
}

/* ---------- Przyciski ---------- */
.button,
button.button,
a.button,
input.button,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 52px;
	padding: 0 var(--space-6);
	border: 1px solid var(--color-text);
	border-radius: var(--radius-btn);
	background: transparent;
	color: var(--color-text);
	font-size: var(--fs-sm);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 120ms var(--ease);
	-webkit-tap-highlight-color: transparent;
}
.button:hover,
a.button:hover { background: var(--color-surface); color: var(--color-text); }
.button:active { transform: translateY(1px); }

.button.button--primary,
.button.alt,
button.button.alt,
#place_order {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-white);
}
.button.button--primary:hover,
.button.alt:hover,
#place_order:hover {
	background: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
	color: var(--color-white);
}

.button.button--secondary { background: transparent; }
.button.button--outline { background: var(--color-white); border-color: var(--color-primary); color: var(--color-text); }
.button.button--outline:hover { background: var(--color-secondary); border-color: var(--color-primary); }
.button .icon { transition: transform var(--dur) var(--ease); }
.button:hover .icon--arrow { transform: translateX(3px); }
.button--block { display: flex; width: 100%; }
.button--small { min-height: 40px; padding: 0 var(--space-4); font-size: var(--fs-sm); }

.button:disabled,
.button[disabled],
.button.disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}
.button.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.button.is-loading::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	border: 2px solid currentColor;
	border-color: var(--color-white) var(--color-white) transparent transparent;
	border-radius: 50%;
	animation: jove-spin 700ms linear infinite;
}
.button--secondary.is-loading::after { border-color: var(--color-text) var(--color-text) transparent transparent; }
@keyframes jove-spin { to { transform: rotate(360deg); } }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: var(--tap);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.link-arrow .icon { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow:hover .icon--down { transform: translateY(3px); }

/* ---------- Formularze ---------- */
label { display: block; margin-bottom: 6px; font-size: var(--fs-sm); font-weight: 500; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="date"],
select,
textarea {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid var(--color-field-border);
	border-radius: 10px;
	background: var(--color-white);
	font-size: 1rem; /* ≥ 16px – bez auto-zoomu na iOS */
	line-height: 1.4;
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
	appearance: none;
}
textarea { min-height: 120px; resize: vertical; }
select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232B2D2A' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}
input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--color-text);
	box-shadow: 0 0 0 3px var(--color-secondary);
}
input[type="checkbox"],
input[type="radio"] {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--color-primary);
	flex: none;
}
::placeholder { color: var(--color-muted); opacity: 1; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgb(251 247 243 / 0.94);
	-webkit-backdrop-filter: saturate(1.3) blur(10px);
	backdrop-filter: saturate(1.3) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color var(--dur) var(--ease), transform 250ms var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); }
.site-header.is-hidden { transform: translateY(-100%); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
/* Na telefonach (≤ 600 px) pasek admina WordPressa przewija się razem ze stroną (position: absolute),
   więc header nie może trzymać pod nim odstępu – inaczej nad menu powstaje pusta przerwa. */
@media screen and (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-5);
	min-height: 64px;
}

.logo {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	text-decoration: none;
	color: var(--color-olive);
}
.logo:hover { color: var(--color-olive); }
.logo__mark { display: grid; justify-items: center; line-height: 1; }
.logo__text {
	font-family: var(--font-serif);
	font-size: 2rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	line-height: 1;
}
.logo__sub {
	margin-top: 4px;
	font-size: 0.5625rem;
	font-weight: 500;
	letter-spacing: 0.42em;
	padding-left: 0.42em;
	text-transform: uppercase;
	color: var(--color-muted);
}
.logo__img { max-height: 56px; width: auto; }

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

.icon-link,
.cart-link {
	position: relative;
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	border-radius: 50%;
	color: var(--color-text);
	text-decoration: none;
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-link:hover { background: var(--color-secondary); color: var(--color-primary); }
.icon-link--account { display: none; }
.cart-link__count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--radius-pill);
	background: var(--color-primary);
	color: var(--color-white);
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}
.cart-link__count[hidden] { display: none; }
.cart-link.is-bumped .cart-link__count { animation: jove-bump 300ms var(--ease); }
@keyframes jove-bump { 50% { transform: scale(1.25); } }

.nav-toggle {
	display: inline-grid;
	place-items: center;
	width: var(--tap);
	height: var(--tap);
	padding: 0;
	border: 0;
	background: transparent;
	border-radius: 50%;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list a {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: var(--tap);
	text-decoration: none;
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.nav__list a:hover { color: var(--color-primary); }
.nav__list .current-menu-item > a { color: var(--color-primary); }
.nav__list .sub-menu { list-style: none; margin: 0; padding: 0 0 0 var(--space-4); }
.nav__list .sub-menu a { text-transform: none; letter-spacing: 0.02em; font-size: var(--fs-sm); }

/* Mobile: panel pod headerem (bez JS menu jest zwykłą listą). */
@media (max-width: 1023.98px) {
	.js .nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		padding: var(--space-4) var(--gutter) var(--space-6);
		background: var(--color-background);
		border-bottom: 1px solid var(--color-border);
		box-shadow: var(--shadow-soft);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
	}
	.js .nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}
	.nav__list > li > a { font-size: var(--fs-sm); border-bottom: 1px solid var(--color-border); min-height: 56px; }
	.nav__list .sub-menu a { min-height: 44px; color: var(--color-muted); }
	html:not(.js) .site-header__inner { flex-wrap: wrap; }
	html:not(.js) .nav { order: 3; width: 100%; }
	html:not(.js) .nav-toggle { display: none; }
}

@media (min-width: 1024px) {
	.site-header__inner { min-height: var(--header-h); }
	.logo__text { font-size: 2.375rem; }
	.nav-toggle { display: none; }
	.nav { margin-inline: auto; }
	.nav__list { display: flex; align-items: center; gap: clamp(var(--space-5), 3vw, var(--space-8)); }
	.nav__list > li { position: relative; }
	.nav__list > li.menu-item-has-children > a::after {
		content: "";
		width: 6px;
		height: 6px;
		margin-left: 2px;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
	}
	.nav__list .sub-menu {
		position: absolute;
		top: 100%;
		left: calc(-1 * var(--space-5));
		min-width: 300px;
		padding: var(--space-3) var(--space-5);
		background: var(--color-white);
		border: 1px solid var(--color-border);
		border-radius: var(--radius-md);
		box-shadow: var(--shadow-soft);
		opacity: 0;
		visibility: hidden;
		transform: translateY(4px);
		transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
	}
	.nav__list li:hover > .sub-menu,
	.nav__list li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}
	.icon-link--account { display: inline-grid; }
}

/* ---------- Sekcje ---------- */
.site-main { display: block; min-height: 50vh; }
.section { padding-block: var(--section-y); }
.section + .section { padding-top: 0; }
.section--tinted { background: var(--color-surface); }
.section__head { max-width: 720px; margin-bottom: clamp(var(--space-6), 5vw, var(--space-8)); }
.section__title { font-size: var(--fs-h2); }
.section__intro { margin-top: var(--space-4); color: var(--color-muted); font-size: var(--fs-lg); line-height: 1.5; max-width: var(--measure); }
.section__more { margin-top: var(--space-6); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .section__intro { margin-inline: auto; }

/* ---------- Strony tekstowe ---------- */
/* .entry, nie .page – WordPress dodaje klasę „page” do <body> na każdej stronie. */
.entry { padding-block: clamp(var(--space-7), 6vw, var(--space-9)); }
.page__header { margin-bottom: var(--space-7); }
.page__title { font-size: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem); }
.page__intro, .page__meta { margin-top: var(--space-3); color: var(--color-muted); }
.page__media { margin-bottom: var(--space-6); }
.page__media img { border-radius: var(--radius-md); }
.entry--404 { text-align: left; }
.entry--404 .search-form { margin-block: var(--space-6); max-width: 480px; }

.post-list__item { padding-block: var(--space-5); border-bottom: 1px solid var(--color-border); }
.post-list__title { font-family: var(--font-sans); font-size: var(--fs-lg); font-weight: 500; }
.post-list__title a { text-decoration: none; }
.post-list__meta, .post-list__excerpt { margin-top: var(--space-2); color: var(--color-muted); font-size: var(--fs-sm); }

.search-form { display: flex; gap: var(--space-2); }
.search-form__input { flex: 1; }
.search-form__button { min-width: 52px; padding: 0; }

.nav-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-7); }
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: var(--tap);
	min-height: var(--tap);
	padding: 0 var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	text-decoration: none;
}
.page-numbers.current { background: var(--color-text); border-color: var(--color-text); color: var(--color-white); }

/* ---------- Komunikaty (WooCommerce + motyw) ---------- */
.notices { padding-top: var(--space-5); }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	margin: 0 0 var(--space-5);
	padding: var(--space-4) var(--space-5);
	list-style: none;
	border: 1px solid var(--color-border);
	border-left: 3px solid var(--color-primary);
	border-radius: var(--radius-sm);
	background: var(--color-white);
	font-size: var(--fs-sm);
}
.woocommerce-error { border-left-color: var(--color-error); flex-direction: column; align-items: flex-start; }
.woocommerce-error li + li { margin-top: var(--space-1); }
.woocommerce-message .button,
.woocommerce-info .button { order: 2; min-height: 40px; padding: 0 var(--space-4); font-size: var(--fs-sm); }

/* ---------- Toast ---------- */
.toast {
	position: fixed;
	left: 50%;
	bottom: calc(var(--space-5) + var(--safe-bottom));
	z-index: 90;
	display: flex;
	align-items: center;
	gap: var(--space-4);
	width: max-content;
	max-width: calc(100vw - 2 * var(--gutter));
	padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5);
	border-radius: var(--radius-md);
	background: var(--color-text);
	color: var(--color-white);
	font-size: var(--fs-sm);
	box-shadow: var(--shadow-soft);
	transform: translate(-50%, 0);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.toast[hidden] { display: flex; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); visibility: hidden; }
.toast a { color: var(--color-white); font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; padding-inline: var(--space-3); border-radius: var(--radius-sm); background: rgb(255 255 255 / 0.12); text-decoration: none; }
.has-sticky-cta .toast { bottom: calc(88px + var(--safe-bottom)); }

/* ---------- Stopka ---------- */
.site-footer {
	margin-top: 0; /* odstęp zapewniają sekcje i .entry – bez sumowania pustych pasów */
	padding-top: var(--space-8);
	background: var(--color-surface);
	font-size: var(--fs-sm);
}
.site-footer__grid { display: grid; gap: var(--space-7); }
.site-footer__logo { font-family: var(--font-serif); font-size: 2.25rem; letter-spacing: 0.06em; line-height: 1; color: var(--color-olive); }
.site-footer__tagline { margin-top: var(--space-3); font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-olive); }
.site-footer__desc { margin-top: var(--space-4); max-width: 38ch; color: var(--color-muted); }
.site-footer__heading {
	margin-bottom: var(--space-3);
	font-family: var(--font-sans);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-muted);
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer__list a:hover { color: var(--color-primary); }
.company { display: grid; gap: var(--space-2); }
.company__row { display: grid; grid-template-columns: 90px 1fr; gap: var(--space-3); }
.company dt { color: var(--color-muted); }
.company dd { margin: 0; overflow-wrap: anywhere; }
.site-footer__bottom {
	margin-top: var(--space-8);
	padding-block: var(--space-5) calc(var(--space-5) + var(--safe-bottom));
	border-top: 1px solid var(--color-border);
	color: var(--color-muted);
}
.has-sticky-cta .site-footer__bottom { padding-bottom: calc(96px + var(--safe-bottom)); }

@media (min-width: 640px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
	.site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.6fr; }
	.has-sticky-cta .site-footer__bottom { padding-bottom: var(--space-5); }
}
