/**
 * Основні стилі теми Super Food Pharm.
 * Палітра під реальний бренд: білий простір + темний шоколад + золото + акцент капсул.
 */

:root {
	--sfp-ink: #1a1f1c;
	--sfp-green: #2f4f3e;
	--sfp-green-deep: #1f3529;
	--sfp-sage: #6e8574;
	--sfp-gold: #b08a4a;
	--sfp-gold-soft: #d4b57a;
	--sfp-capsule: #2f6fe0;
	--sfp-sand: #e8e2d8;
	--sfp-cream: #f5f2eb;
	--sfp-hero-bg-dark: #d4cbc0;
	--sfp-hero-bg-mid: #ebe6dc;
	--sfp-hero-bg-light: #f8f6f1;
	--sfp-muted: #5f675f;
	--sfp-white: #ffffff;
	--sfp-radius: 14px;
	--sfp-font: "Manrope", system-ui, sans-serif;
	--sfp-display: "Libre Baskerville", Georgia, serif;
	--sfp-container: 1240px;
	--sfp-brown: var(--sfp-green);
	--sfp-brown-deep: var(--sfp-green-deep);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--sfp-font);
	color: var(--sfp-ink);
	background: var(--sfp-cream);
	line-height: 1.6;
}

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

a {
	color: var(--sfp-green);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--sfp-green-deep);
}

.sfp-container {
	width: min(100% - 2rem, var(--sfp-container));
	margin-inline: auto;
}

.sfp-container--narrow {
	width: min(100% - 2rem, 760px);
}

.sfp-skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--sfp-green);
	color: var(--sfp-white);
	padding: 0.75rem 1rem;
	z-index: 1000;
}

.sfp-skip-link:focus {
	left: 1rem;
	top: 1rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* ── Topbar ───────────────────────────────── */
.sfp-topbar {
	background: var(--sfp-green-deep);
	color: var(--sfp-cream);
	font-size: 0.875rem;
	text-align: center;
	padding: 0.45rem 0;
}

.sfp-topbar p {
	margin: 0;
}

/* ── Header ───────────────────────────────── */
.sfp-header {
	background: var(--sfp-white);
	border-bottom: 1px solid rgba(26, 31, 28, 0.07);
	position: sticky;
	top: 0;
	z-index: 100;
}

.sfp-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem;
	min-height: 4.5rem;
}

.sfp-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--sfp-ink);
	text-decoration: none;
	font-weight: 700;
}

.sfp-brand img {
	display: block;
	height: 3rem;
	width: auto;
	max-width: 140px;
	object-fit: contain;
}

.sfp-nav {
	display: flex;
	justify-content: center;
}

.sfp-nav__list {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sfp-nav__list a {
	color: var(--sfp-ink);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
	white-space: nowrap;
}

.sfp-nav__list a:hover {
	color: var(--sfp-green);
}

.sfp-header__actions {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.sfp-lang {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--sfp-muted);
	text-decoration: none;
}

.sfp-header__account,
.sfp-header__cart {
	text-decoration: none;
	color: var(--sfp-ink);
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
}

.sfp-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	margin-left: 0.25rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: var(--sfp-green-deep);
	color: var(--sfp-white);
	font-size: 0.75rem;
}

.sfp-cart-count[data-count="0"] {
	opacity: 0.45;
}

.sfp-nav-toggle {
	display: none;
	margin-left: auto;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.sfp-nav-toggle span:not(.screen-reader-text) {
	display: block;
	width: 1.35rem;
	height: 2px;
	margin: 0 auto;
	background: var(--sfp-ink);
	box-shadow: 0 6px 0 var(--sfp-ink), 0 -6px 0 var(--sfp-ink);
}

/* ── Hero Slider ──────────────────────────── */
/* Градієнт на слайдері, не на слайді — фон не їде під час зміни кадрів */
.sfp-hero {
	position: relative;
	padding: 0;
	background: linear-gradient(
		to bottom left,
		var(--sfp-hero-bg-dark) 10%,
		var(--sfp-hero-bg-mid) 60%,
		var(--sfp-hero-bg-light) 90%
	);
	overflow: hidden;
}

.sfp-hero__viewport {
	overflow: hidden;
	width: 100%;
}

.sfp-hero__track {
	display: flex;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
	touch-action: pan-y;
}

/* Слайд прозорий: градієнт лишається на .sfp-hero */
.sfp-hero-slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	background: transparent;
}

/* Сітка слайда 60/40: текст зліва, фото справа — колонки на повну висоту */
.sfp-hero-slide__grid {
	display: grid;
	grid-template-columns: minmax(0, 60%) minmax(0, 40%);
	gap: 0;
	align-items: stretch;
	min-height: clamp(380px, 46vw, 540px);
	padding-top: 0;
	/* Невеликий відступ унизу, щоб крапки не налізали на текст */
	padding-bottom: 2.5rem;
}

/* Ліва колонка: текст + кнопки + переваги — центровані вертикально */
.sfp-hero-slide__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	z-index: 2;
	max-width: none;
	padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1.5rem) 0;
}

/* Надпис над заголовком */
.sfp-eyebrow {
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sfp-sage);
	font-weight: 600;
	margin: 0 0 0.75rem;
}

/* Заголовок слайда */
.sfp-hero h1,
.sfp-hero-slide__title,
.sfp-section__head h2,
.sfp-page-header h1 {
	font-family: var(--sfp-display);
	font-weight: 700;
	line-height: 1.12;
	margin: 0 0 1.25rem;
	color: var(--sfp-brown-deep);
}

.sfp-hero h1,
.sfp-hero-slide__title {
	font-size: clamp(1.75rem, 2.4vw, 2.5rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
	max-width: none;
	margin: 0 0 0.85rem;
}

.sfp-lead {
	font-size: 0.975rem;
	color: var(--sfp-muted);
	max-width: 38ch;
	margin: 0 0 1.25rem;
	line-height: 1.55;
}

/* Кнопки CTA */
.sfp-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.sfp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.9rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sfp-btn:hover {
	transform: translateY(-1px);
}

.sfp-btn--primary {
	background: var(--sfp-green-deep);
	color: var(--sfp-white);
	box-shadow: 0 4px 14px rgba(31, 53, 41, 0.18);
}

.sfp-btn--primary:hover {
	background: var(--sfp-ink);
	color: var(--sfp-white);
	box-shadow: 0 6px 18px rgba(31, 53, 41, 0.22);
}

.sfp-btn--ghost {
	background: var(--sfp-white);
	border-color: rgba(26, 31, 28, 0.22);
	color: var(--sfp-brown-deep);
}

.sfp-btn--ghost:hover {
	border-color: rgba(26, 31, 28, 0.4);
	background: var(--sfp-white);
}

.sfp-btn__arrow {
	font-size: 1.1em;
	line-height: 1;
}

/* Переваги під кнопками — в лівій колонці */
.sfp-hero-slide__trust {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(31, 53, 41, 0.12);
}

/* Права колонка: контейнер для зображення — position:relative для absolute img */
.sfp-hero-slide__visual {
	position: relative;
	z-index: 1;
	/* overflow не ховаємо: збільшене PNG має виходити за рамку колонки */
	overflow: visible;
	background: transparent;
	align-self: stretch;
	min-height: clamp(340px, 44vw, 520px);
}

/* PNG з прозорістю — абсолютно заповнює колонку на 100% висоти */
.sfp-hero-slide__visual .sfp-hero-slide__img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	/* contain — зберігає прозорість PNG без обрізання,
	   scale(1.25) компенсує порожні поля по вертикалі */
	object-fit: contain;
	object-position: center center;
	transform: scale(1.25);
	transform-origin: center center;
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	filter: drop-shadow(0 12px 24px rgba(31, 53, 41, 0.12));
}

/* Крапки по центру поверх слайдера — без окремої смуги під ним */
.sfp-hero__footer {
	position: absolute;
	left: 50%;
	bottom: 1.15rem;
	z-index: 5;
	padding: 0;
	transform: translateX(-50%);
	pointer-events: none;
}

.sfp-hero__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
}

/* ── Trust (переваги) ─────────────────────── */

/* Список переваг в hero — горизонтальний ряд, без фонів */
.sfp-trust--hero {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: clamp(0.85rem, 2vw, 1.5rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.sfp-trust--hero li {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0;
	min-width: 0;
	flex: 1 1 0;
	background: none;
	box-shadow: none;
	border-radius: 0;
}

.sfp-trust--hero .sfp-trust__icon {
	flex: 0 0 auto;
	color: var(--sfp-green);
	margin-top: 0;
}

.sfp-trust--hero .sfp-trust__icon svg {
	width: 18px;
	height: 18px;
}

/* Текст переваг */
.sfp-trust__text {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	line-height: 1.3;
	min-width: 0;
}

.sfp-trust__text strong {
	display: block;
	font-size: 0.8125rem;
	color: var(--sfp-ink);
	font-weight: 600;
}

.sfp-trust__text span {
	display: block;
	font-size: 0.75rem;
	color: var(--sfp-muted);
}

/* Компактніший текст у hero щоб 3 елементи влізли */
.sfp-trust--hero .sfp-trust__text strong {
	font-size: 0.75rem;
}

.sfp-trust--hero .sfp-trust__text span {
	font-size: 0.6875rem;
}

/* Крапки слайдера: звичайні круглі, активна — горизонтальна капсула */
.sfp-hero__dots {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.sfp-hero__dot {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 999px;
	border: 0;
	padding: 0;
	background: rgba(26, 31, 28, 0.22);
	cursor: pointer;
	transition: width 0.28s ease, background 0.2s ease;
}

.sfp-hero__dot.is-active {
	width: 1.85rem;
	background: var(--sfp-green-deep);
}

/* ── Загальний trust (іконки) ─────────────── */
.sfp-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.sfp-trust--icons {
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	display: grid;
}

.sfp-trust--icons li {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.65rem;
}

.sfp-trust--icons li::before {
	display: none;
}

.sfp-trust__icon {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: rgba(47, 79, 62, 0.07);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sfp-green);
	flex: 0 0 auto;
}

/* ── Sections ─────────────────────────────── */
.sfp-section {
	padding: 4rem 0;
}

.sfp-section--alt {
	background: var(--sfp-sand);
}

/* Напрямки: світла секція як на референсі */
.sfp-section--directions {
	background: var(--sfp-white);
}

/* Відгуки: темно-зелений блок; висота = лише контент */
.sfp-section--reviews {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 50% 75% at 8% 55%, rgba(70, 110, 65, 0.18), transparent 58%),
		linear-gradient(145deg, #0c1a14 0%, #12261c 40%, #183026 100%);
	color: var(--sfp-cream);
}

/**
 * Листя зліва: absolute, висота секції (не 100vh — інакше блок розтягується).
 * Картинка cover по висоті блоку, притиснута до лівого краю.
 */
.sfp-reviews-decor {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: min(38vw, 420px);
	pointer-events: none;
	z-index: 0;
	opacity: 0.4;
	overflow: hidden;
}

.sfp-reviews-decor img {
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left center;
	user-select: none;
}

.sfp-section--reviews > .sfp-container {
	position: relative;
	z-index: 1;
}

.sfp-section--reviews .sfp-eyebrow {
	color: rgba(212, 181, 122, 0.95);
}

.sfp-section--reviews h2 {
	color: var(--sfp-cream);
}

.sfp-section--reviews .sfp-section__more {
	color: var(--sfp-gold-soft);
}

.sfp-section--blog {
	background: var(--sfp-cream);
}

.sfp-section__head {
	margin-bottom: 2rem;
	max-width: 40rem;
	position: relative;
}

.sfp-section__head--row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
	max-width: none;
}

.sfp-section__more {
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
}

/* ── Direction cards ──────────────────────── */
.sfp-direction-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.35rem;
}

/* Слайдер напрямків (коли продуктів більше 3) — безкінечний */
.sfp-directions-slider {
	overflow: hidden;
	position: relative;
}

.sfp-directions-track {
	display: flex;
	gap: 1.35rem;
	will-change: transform;
	touch-action: pan-y;
}

.sfp-directions-slider .sfp-direction-card {
	flex: 0 0 calc((100% - 2.7rem) / 3);
	min-width: 0;
	box-sizing: border-box;
}

.sfp-directions-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.45rem;
	margin-top: 1.5rem;
}

.sfp-directions-dots button {
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 999px;
	border: 0;
	padding: 0;
	background: rgba(26, 31, 28, 0.22);
	cursor: pointer;
	transition: width 0.28s ease, background 0.2s ease;
}

.sfp-directions-dots button.is-active {
	width: 1.7rem;
	background: var(--sfp-green-deep);
}

.sfp-direction-card {
	display: grid;
	grid-template-columns: 1fr minmax(110px, 42%);
	min-height: 230px;
	border-radius: var(--sfp-radius);
	background: var(--sfp-cream);
	/* Обрізає збільшену пляшку — видно ~пів картинки */
	overflow: hidden;
	border: 0;
	transition: box-shadow 0.25s;
	position: relative;
}

.sfp-direction-card:hover {
	box-shadow: 0 10px 28px rgba(31, 53, 41, 0.12);
}

.sfp-direction-card__text {
	padding: 1.35rem 0.5rem 1.35rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	z-index: 1;
	position: relative;
}

.sfp-direction-card__icon {
	color: var(--sfp-green);
}

.sfp-direction-card__text h3 {
	font-family: var(--sfp-display);
	font-size: 1.05rem;
	margin: 0;
	color: var(--sfp-brown-deep);
}

.sfp-direction-card__text p {
	font-size: 0.875rem;
	color: var(--sfp-muted);
	margin: 0;
	line-height: 1.45;
	flex: 1;
}

.sfp-direction-card__text a {
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

/* Пляшка збільшена і зміщена вправо — overflow:hidden обрізає ~пів кадру */
.sfp-direction-card__img {
	position: absolute;
	right: -34%;
	bottom: 0;
	width: 72%;
	height: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	pointer-events: none;
	z-index: 0;
}

.sfp-direction-card__img img {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	object-position: center bottom;
	background: transparent;
	filter: drop-shadow(0 12px 28px rgba(31, 53, 41, 0.2));
}

/* ── Reviews ──────────────────────────────── */
.sfp-reviews-slider {
	overflow: hidden;
	position: relative;
	width: 100%;
	max-width: 100%;
}

.sfp-reviews-track {
	display: flex;
	gap: 1.15rem;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	width: 100%;
}

.sfp-review {
	flex: 0 0 calc(33.33% - 0.77rem);
	max-width: calc(33.33% - 0.77rem);
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.08);
	border-radius: var(--sfp-radius);
	padding: 1.5rem;
	border: 1px solid rgba(245, 242, 235, 0.12);
	color: var(--sfp-cream);
	display: flex;
	flex-direction: column;
	min-height: 220px;
	min-width: 0;
}

.sfp-review__stars {
	color: var(--sfp-gold);
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	margin-left: auto;
}

.sfp-review__text {
	margin: 0 0 0.65rem;
	font-size: 0.95rem;
	color: rgba(245, 242, 235, 0.92);
	line-height: 1.55;
	flex: 1;
}

/* Фіксовано 4 рядки на головній; довше — обрізаємо */
.sfp-review__text--clamp {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
	flex: 0 0 auto;
	max-height: calc(1.55em * 4);
}

.sfp-review__more {
	display: inline-block;
	margin: 0 0 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--sfp-gold-soft);
	text-decoration: none;
}

.sfp-review__more:hover {
	text-decoration: underline;
	color: var(--sfp-cream);
}

.sfp-review__footer {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.8rem;
}

.sfp-review__avatar {
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: rgba(245, 242, 235, 0.16);
	color: var(--sfp-cream);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.95rem;
	flex: 0 0 auto;
}

.sfp-review__meta {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.sfp-review__footer strong {
	color: var(--sfp-cream);
}

.sfp-review__footer span {
	color: rgba(245, 242, 235, 0.65);
}

.sfp-reviews-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.45rem;
	margin-top: 1.5rem;
}

.sfp-reviews-dots button {
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 999px;
	border: 0;
	padding: 0;
	background: rgba(245, 242, 235, 0.35);
	cursor: pointer;
	transition: width 0.28s ease, background 0.2s ease;
}

/* Сторінка всіх відгуків: звичайний фон, сітка 3 колонки */
.sfp-reviews-page {
	background: transparent;
	color: var(--sfp-ink);
	padding-top: 0.5rem;
	padding-bottom: 3rem;
}

.sfp-reviews-page .sfp-reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	align-items: stretch;
}

.sfp-review--page {
	flex: none;
	max-width: none;
	min-height: 0;
	height: 100%;
	background: var(--sfp-white);
	border: 1px solid rgba(47, 79, 62, 0.1);
	color: var(--sfp-ink);
	box-shadow: 0 8px 24px rgba(26, 31, 28, 0.04);
}

.sfp-review--page .sfp-review__stars {
	margin: 0 0 0.75rem;
	margin-left: 0;
	color: var(--sfp-gold);
}

.sfp-review--page .sfp-review__text {
	margin-bottom: 1.25rem;
	flex: 1 1 auto;
	color: var(--sfp-ink);
}

.sfp-review--page .sfp-review__avatar {
	background: rgba(47, 79, 62, 0.1);
	color: var(--sfp-green-deep);
}

.sfp-review--page .sfp-review__footer {
	color: var(--sfp-muted);
}

.sfp-review--page .sfp-review__footer strong {
	color: var(--sfp-ink);
}

@media (max-width: 1100px) {
	.sfp-reviews-page .sfp-reviews-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.sfp-reviews-page .sfp-reviews-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Blog row ─────────────────────────────── */
.sfp-blog-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.sfp-blog-row__card {
	background: var(--sfp-white);
	border-radius: var(--sfp-radius);
	overflow: hidden;
	border: 1px solid rgba(26, 31, 28, 0.07);
	display: flex;
	flex-direction: column;
}

.sfp-blog-row__thumb {
	display: block;
	background: var(--sfp-sand);
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.sfp-blog-row__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sfp-blog-row__body {
	padding: 1rem 1.25rem 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.sfp-blog-row__meta {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--sfp-sage);
	font-weight: 600;
	margin: 0;
}

.sfp-blog-row__body h3 {
	font-family: var(--sfp-display);
	font-size: 1rem;
	margin: 0;
	color: var(--sfp-brown-deep);
	line-height: 1.3;
}

.sfp-blog-row__body h3 a {
	text-decoration: none;
	color: inherit;
}

.sfp-blog-row__body h3 a:hover {
	color: var(--sfp-green);
}

.sfp-blog-row__date {
	font-size: 0.75rem;
	color: var(--sfp-muted);
	margin: 0;
}

.sfp-blog-row__body p:last-child {
	font-size: 0.875rem;
	color: var(--sfp-muted);
	line-height: 1.5;
	margin: 0;
}

/* ── Page layouts ─────────────────────────── */
.sfp-main {
	min-height: 50vh;
}

.sfp-page-header {
	padding: 2.5rem 0 1.5rem;
	background: var(--sfp-sand);
}

.sfp-content {
	font-size: 1.05rem;
	padding: 2.5rem 0;
}

/* ── Product cards ────────────────────────── */
.sfp-product-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

/* ── Footer: 5 колонок, боки трохи ширші (≈5–2–2–2–5 мʼяко) ── */
.sfp-footer {
	background: var(--sfp-green-deep);
	color: rgba(245, 242, 235, 0.88);
	padding: 3.5rem 0 0;
	margin-top: 2rem;
}

.sfp-footer a {
	color: rgba(245, 242, 235, 0.92);
	text-decoration: none;
}

.sfp-footer a:hover {
	text-decoration: underline;
}

/*
 * Сітка близька до референсу 5–2–2–2–5, але без «злипання» середини.
 * Боки ширші (~1.45), середні рівні.
 */
.sfp-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.45fr);
	column-gap: clamp(1.25rem, 2.2vw, 2.5rem);
	row-gap: 2rem;
	align-items: start;
	justify-items: stretch;
	padding-bottom: 2.75rem;
}

.sfp-footer__col {
	min-width: 0;
}

/* Тонкі вертикальні роздільники між колонками (як у макеті). */
.sfp-footer__col:not(.sfp-footer__col--brand) {
	padding-left: clamp(0.75rem, 1.5vw, 1.35rem);
	border-left: 1px solid rgba(245, 242, 235, 0.12);
}

.sfp-footer__title {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 1.1rem;
	color: rgba(245, 242, 235, 0.95);
}

.sfp-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
	font-size: 0.92rem;
	line-height: 1.35;
}

.sfp-footer__tagline {
	margin: 0 0 1.15rem;
	font-size: 0.9rem;
	line-height: 1.5;
	opacity: 0.88;
	max-width: 22rem;
}

.sfp-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.sfp-footer__social a {
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 999px;
	border: 1px solid rgba(245, 242, 235, 0.32);
	color: rgba(245, 242, 235, 0.95);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.sfp-footer__social a:hover {
	background: rgba(245, 242, 235, 0.1);
	border-color: rgba(245, 242, 235, 0.55);
	text-decoration: none;
}

.sfp-footer__contacts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.7rem;
	font-size: 0.92rem;
	line-height: 1.4;
}

.sfp-footer__contacts li {
	display: grid;
	grid-template-columns: 1.15rem 1fr;
	gap: 0.55rem;
	align-items: start;
}

.sfp-footer__icon {
	display: grid;
	place-items: center;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.15rem;
	color: rgba(245, 242, 235, 0.85);
}

.sfp-footer__hours span:last-child {
	opacity: 0.92;
}

.sfp-footer__col--ua {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	align-self: center;
	border-left-color: rgba(245, 242, 235, 0.12);
}

.sfp-footer__ua-img {
	display: block;
	width: 100%;
	max-width: 15rem;
	height: auto;
	margin: 0 auto;
}

.sfp-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 1.1rem 0;
	font-size: 0.85rem;
}

.sfp-footer__bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.sfp-footer__bottom p {
	margin: 0;
	opacity: 0.8;
}

.sfp-footer__pay {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.1rem;
}

.sfp-footer__pay li {
	display: flex;
	align-items: center;
	color: rgba(245, 242, 235, 0.92);
	line-height: 0;
}

.sfp-footer .sfp-brand {
	color: var(--sfp-cream);
	margin-bottom: 0.85rem;
	display: inline-block;
}

.sfp-footer .sfp-brand img,
.sfp-footer .custom-logo {
	display: block;
	height: 3rem;
	width: auto;
	max-width: 150px;
	filter: none;
	mix-blend-mode: normal;
	background: transparent;
}

@media (max-width: 1100px) {
	.sfp-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sfp-footer__col:not(.sfp-footer__col--brand) {
		padding-left: 0;
		border-left: 0;
	}

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

	.sfp-footer__col--ua {
		padding-top: 0.5rem;
	}

	.sfp-footer__ua-img {
		max-width: 14rem;
	}
}

/* ── WooCommerce: каталог / картки ─────────── */
.sfp-shop {
	padding: 1.5rem 0 3rem;
}

.sfp-shop .woocommerce-breadcrumb {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	color: var(--sfp-muted);
}

.sfp-shop .woocommerce-breadcrumb a {
	color: var(--sfp-muted);
	text-decoration: none;
}

.sfp-shop .woocommerce-breadcrumb a:hover {
	color: var(--sfp-green-deep);
}

.sfp-shop .woocommerce-products-header {
	margin-bottom: 1.25rem;
}

.sfp-shop .woocommerce-products-header__title,
.sfp-shop .page-title {
	margin: 0;
	font-family: var(--sfp-display);
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	color: var(--sfp-ink);
	font-weight: 700;
}

.sfp-shop .woocommerce-result-count,
.sfp-shop .woocommerce-ordering {
	margin-bottom: 1.25rem;
}

.sfp-shop .woocommerce-result-count {
	color: var(--sfp-muted);
	font-size: 0.9rem;
}

.sfp-shop .woocommerce-ordering select {
	border: 1px solid rgba(47, 79, 62, 0.18);
	border-radius: 8px;
	padding: 0.45rem 0.75rem;
	background: var(--sfp-white);
	color: var(--sfp-ink);
	font: inherit;
}

/* Скидаємо float Woo, сітка теми. */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
	content: none !important;
}

.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.35rem;
	margin: 0 0 2rem !important;
	padding: 0 !important;
	list-style: none;
	width: 100%;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none !important;
	clear: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 1.15rem 1.15rem 1.25rem;
	background: var(--sfp-white);
	border-radius: var(--sfp-radius);
	border: 1px solid rgba(47, 79, 62, 0.08);
	box-shadow: 0 10px 28px rgba(26, 31, 28, 0.04);
	display: flex;
	flex-direction: column;
	position: relative;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.woocommerce ul.products li.product img {
	width: 100%;
	height: auto;
	max-height: 280px;
	object-fit: contain;
	margin: 0 auto 1rem;
	display: block;
	background:
		radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95), transparent 60%),
		linear-gradient(165deg, #efe8dc 0%, #e2d8c8 100%);
	border-radius: 12px;
	padding: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 0.35rem;
	padding: 0;
	color: var(--sfp-ink);
}

.woocommerce ul.products li.product .price {
	display: block;
	margin: 0 0 1rem;
	color: var(--sfp-gold);
	font-weight: 700;
	font-size: 1.05rem;
}

.woocommerce ul.products li.product .button {
	margin-top: auto !important;
	width: 100%;
	text-align: center;
	padding: 0.75rem 1rem !important;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var(--sfp-green-deep) !important;
	color: var(--sfp-white) !important;
	border-radius: 8px !important;
	font-weight: 600;
	border: 0 !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
	filter: brightness(1.08);
}

.woocommerce span.onsale {
	background: var(--sfp-gold);
	border-radius: 999px;
	line-height: 2.2;
	min-height: 2.2em;
	min-width: 2.2em;
}

/* Картка / кошик / чекаут — базова читабельність */
.woocommerce-cart .sfp-shop,
.woocommerce-checkout .sfp-shop,
.woocommerce-account .sfp-shop {
	padding-bottom: 3rem;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
	.sfp-reviews-decor {
		width: min(52vw, 280px);
		opacity: 0.28;
	}

	.sfp-header__inner {
		grid-template-columns: auto 1fr auto;
	}

	.sfp-hero-slide__grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
		text-align: left;
		min-height: 0;
		padding-top: 1.5rem;
		padding-bottom: 0.5rem;
		align-items: start;
	}

	.sfp-hero__footer {
		bottom: 0.85rem;
	}

	.sfp-hero-slide__copy {
		max-width: none;
		padding-right: 0;
		order: 1;
	}

	.sfp-hero-slide__visual {
		min-height: 280px;
		order: 2;
	}

	.sfp-hero-slide__visual .sfp-hero-slide__img {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		max-height: none !important;
		object-fit: contain;
		object-position: center center;
	}

	.sfp-hero h1,
	.sfp-hero-slide__title {
		max-width: none;
		font-size: clamp(1.6rem, 5.5vw, 2rem);
	}

	.sfp-trust--hero {
		flex-wrap: wrap;
		gap: 0.65rem 1rem;
	}

	.sfp-hero__cta {
		width: 100%;
	}

	.sfp-hero__cta .sfp-btn {
		flex: 1 1 auto;
		min-width: min(100%, 10rem);
	}

	.sfp-direction-cards {
		grid-template-columns: 1fr;
	}

	.sfp-directions-slider .sfp-direction-card {
		flex: 0 0 100%;
	}

	.sfp-direction-card {
		grid-template-columns: 1fr;
		min-height: 200px;
	}

	.sfp-direction-card__img {
		width: 72%;
		right: -34%;
		bottom: 0;
		height: 100%;
	}

	.sfp-section__head--row {
		flex-direction: column;
		align-items: flex-start;
	}

	.sfp-review {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.sfp-blog-row {
		grid-template-columns: 1fr;
	}

	.sfp-blog-row__body {
		padding: 0 1.1rem 1.1rem;
	}

	.sfp-product-cards,
	.sfp-blog-grid,
	.sfp-footer__grid,
	.woocommerce ul.products {
		grid-template-columns: 1fr !important;
	}

	.sfp-nav-toggle {
		display: block;
	}

	.sfp-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--sfp-white);
		padding: 1rem;
		border-bottom: 1px solid rgba(26, 31, 28, 0.08);
		z-index: 200;
	}

	.sfp-nav.is-open {
		display: block;
	}

	.sfp-nav__list {
		flex-direction: column;
	}

	.sfp-header {
		position: relative;
	}

	.sfp-hero {
		overflow: visible;
	}

}
