/*
Theme Name: Skanauk su Aušra
Theme URI: https://skanauksuausra.com/
Author: Justas Arbatauskis
Description: Minimalistinė receptų svetainės tema pagal "Skanauk su Aušra" e-knygos dizainą.
Version: 1.0.0
Text Domain: skanauk-su-ausra
Requires PHP: 7.4
*/

:root {
	--color-bg: #FFFFFF;
	--color-bg-warm: #FBF8F6;
	--color-bg-alt: #FFFFFF;
	--color-accent: #B5304A;
	--color-accent-dark: #8E2338;
	--color-accent-soft: #F3D9DE;
	--color-heading: #201A1D;
	--color-text: #4A3B42;
	--color-text-light: #69595E;
	--color-circle: #F3D9DE;
	--color-line: #ECE1E0;
	--font-heading: 'Fraunces', Georgia, serif;
	--font-script: 'Fraunces', Georgia, serif;
	--font-body: 'Work Sans', 'Segoe UI', sans-serif;
	--radius: 14px;
	--radius-sm: 8px;
	--container: 1400px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	overflow-x: hidden;
}

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

a { color: var(--color-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-accent-dark); }

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	color: var(--color-heading);
	margin: 0 0 .5em;
	line-height: 1.2;
	font-weight: 700;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
}

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--color-accent);
	color: #fff;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: .92rem;
	letter-spacing: .01em;
	padding: 14px 26px;
	border-radius: var(--radius-sm);
	border: none;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
	box-shadow: 0 1px 2px rgba(32, 26, 29, .08), 0 10px 22px -10px rgba(181, 48, 74, .55);
	transition: box-shadow .25s ease, transform .25s ease, background .25s ease;
}
.btn::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 66%);
	transform: translateX(-120%);
	transition: transform .55s ease;
}
.btn::before {
	content: "\2192";
	display: inline-block;
	font-size: 1.05em;
	transform: translateX(-3px);
	opacity: .85;
	transition: transform .25s ease, opacity .25s ease;
	order: 2;
}
.btn:hover {
	background: var(--color-accent-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(32, 26, 29, .1), 0 16px 30px -12px rgba(142, 35, 56, .6);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover::before { transform: translateX(1px); opacity: 1; }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(32, 26, 29, .1); }
.btn-outline {
	background: transparent;
	color: var(--color-heading);
	border: 1.5px solid var(--color-heading);
	box-shadow: none;
}
.btn-outline::after { display: none; }
.btn-outline:hover { background: var(--color-heading); color: #fff; border-color: var(--color-heading); box-shadow: 0 10px 22px -12px rgba(32, 26, 29, .45); }

/* Decorative divider: line — icon — line, like in the ebook design */
.section-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 0 0 18px;
}
.section-divider .line {
	width: 90px;
	height: 1px;
	background: var(--color-line);
}
.section-divider .icon {
	color: var(--color-accent);
	font-size: 20px;
}

.eyebrow {
	font-family: var(--font-script);
	font-style: italic;
	font-weight: 500;
	font-size: 1.6rem;
	color: var(--color-accent-dark);
	display: block;
	margin-bottom: 4px;
}

/* Decorative blush shapes: slow drift, disabled for reduced-motion users */
.deco-circle {
	position: absolute;
	border-radius: 50%;
	background: var(--color-circle);
	filter: blur(1px);
	opacity: .55;
	z-index: 0;
	pointer-events: none;
	animation: skaus-drift 13s ease-in-out infinite;
}
.deco-circle:nth-child(2) { animation-duration: 10s; animation-delay: -3s; }
.deco-circle:nth-child(3) { animation-duration: 16s; animation-delay: -6s; }
@keyframes skaus-drift {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-14px, 16px) scale(1.06); }
}

/* Load-in: header/hero content settles into place once on paint */
.load-in { animation: skaus-fade-up .6s cubic-bezier(.2,.7,.2,1) both; }
.load-in.d1 { animation-delay: .02s; }
.load-in.d2 { animation-delay: .08s; }
.load-in.d3 { animation-delay: .14s; }
.load-in.d4 { animation-delay: .2s; }
.load-in.d5 { animation-delay: .26s; }
@keyframes skaus-fade-up {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.deco-circle { animation: none; }
	.load-in { animation: none; }
}

/* ---------- Header ---------- */
.announcement-bar {
	background: var(--color-accent-dark);
	color: #fff;
	text-align: center;
	font-size: .82rem;
	letter-spacing: .01em;
	padding: 9px 16px;
}
.announcement-bar strong { font-weight: 700; }
.announcement-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.site-header {
	background: var(--color-bg-alt);
	border-bottom: 1px solid var(--color-line);
	position: sticky;
	top: 0;
	z-index: 100;
	transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 26px rgba(32, 26, 29, .08); }
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	padding-top: 18px;
	padding-bottom: 18px;
}

.site-branding { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.site-branding a { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-badge {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--color-accent-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.logo-badge svg { width: 19px; height: 19px; color: var(--color-accent-dark); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text .logo-name {
	font-family: var(--font-heading);
	font-style: italic;
	font-weight: 500;
	font-size: 1.24rem;
	color: var(--color-accent-dark);
}
.logo-text .logo-sub {
	font-family: var(--font-body);
	font-size: .64rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--color-text-light);
	margin-top: 2px;
}
.site-branding img { max-height: 44px; }

.header-nav-search { display: flex; align-items: center; gap: 22px; }
.primary-nav ul {
	list-style: none;
	display: flex;
	gap: 32px;
	margin: 0;
	padding: 0;
}
.primary-nav a {
	color: var(--color-heading);
	font-weight: 500;
	font-size: .87rem;
	letter-spacing: .01em;
	position: relative;
	padding-bottom: 4px;
}
.primary-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1.5px;
	background: var(--color-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav a:hover { color: var(--color-accent-dark); }

.header-search {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--color-line);
	color: var(--color-text-light);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: border-color .2s ease, color .2s ease;
}
.header-search svg { width: 15px; height: 15px; }
.header-search:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }

.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 11px 22px; font-size: .84rem; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--color-heading); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	padding: 90px 0 70px;
	text-align: center;
	overflow: hidden;
}
.hero h1 {
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	text-transform: uppercase;
	max-width: 780px;
	margin: 0 auto .3em;
}
.hero .tagline {
	font-family: var(--font-script);
	font-style: italic;
	font-weight: 500;
	font-size: 1.6rem;
	color: var(--color-accent-dark);
	margin: 10px 0 30px;
}
.hero .lead {
	max-width: 620px;
	margin: 0 auto 34px;
	color: var(--color-text-light);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section heading ---------- */
.section-heading { text-align: center; margin-bottom: 50px; }
.section-heading h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); text-transform: uppercase; }
.section-sub { color: var(--color-text-light); max-width: 520px; margin: -6px auto 0; }

/* ---------- Category browse grid ---------- */
.category-browse { background: var(--color-bg-warm); }
.category-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
.category-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 4/3;
	border-radius: var(--radius);
	overflow: hidden;
	padding: 18px 20px;
	background-color: var(--color-accent-soft);
	background-image:
		linear-gradient(180deg, rgba(32,26,29,0) 35%, rgba(32,26,29,.72) 100%),
		var(--cat-img, none);
	background-size: cover;
	background-position: center;
	transition: transform .25s ease, box-shadow .25s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(32, 26, 29, .16); }
.category-card--noimg {
	background-color: var(--color-accent-soft);
	background-image:
		linear-gradient(155deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 45%),
		radial-gradient(circle at 85% 15%, rgba(142,35,56,.14) 0%, rgba(142,35,56,0) 55%),
		radial-gradient(circle at 8% 85%, rgba(142,35,56,.14) 0%, rgba(142,35,56,0) 55%);
}
.category-card--noimg .category-card-name,
.category-card--noimg .category-card-count { color: var(--color-accent-dark); text-shadow: none; }
.category-card--noimg .category-card-count { color: var(--color-text-light); }
.category-card-icon {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 30px;
	height: 30px;
	color: var(--color-accent-dark);
	opacity: .45;
}
.category-card-name {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.1rem;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.category-card-count {
	color: #F3E6E9;
	font-size: .78rem;
	margin-top: 2px;
}

section { padding: 70px 0; position: relative; }

/* ---------- Recipe grid ---------- */
.recipe-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 34px;
}
.recipe-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 26px; }
.recipe-card {
	background: var(--color-bg-alt);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(46, 26, 43, .06);
	transition: transform .25s ease, box-shadow .25s ease;
}
.recipe-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(46, 26, 43, .12); }
.recipe-card .thumb { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.recipe-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.recipe-card:hover .thumb img { transform: scale(1.05); }
.recipe-card .thumb .no-thumb { display: block; width: 100%; height: 100%; background: var(--color-accent-soft); }
.recipe-card .thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(32,26,29,0) 45%, rgba(32,26,29,.75) 100%);
}
.recipe-card .cat-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: rgba(255,255,255,.92);
	color: var(--color-accent-dark);
	font-size: .68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 5px 11px;
	border-radius: 999px;
}
.recipe-card .thumb-title {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 12px;
	z-index: 2;
	color: #fff;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.25;
	text-shadow: 0 1px 3px rgba(0,0,0,.3);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.recipe-card .body { padding: 18px 24px 26px; }
.recipe-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--color-text-light); font-family: var(--font-body); font-weight: 600; }
.recipe-card h3 a { color: var(--color-text-light); }
.recipe-card h3 a:hover { color: var(--color-accent-dark); }
.recipe-card p { color: var(--color-text-light); font-size: .92rem; margin: 0; }

.grid-actions { text-align: center; margin-top: 46px; }

/* ---------- Pagination (the_posts_pagination) ---------- */
.pagination,
nav.navigation.pagination {
	margin-top: 50px;
}
.pagination .nav-links,
nav.navigation.pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}
.pagination .page-numbers,
nav.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-sm);
	color: var(--color-heading);
	font-weight: 500;
	font-size: .9rem;
	background: var(--color-bg-alt);
	transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.pagination .page-numbers:hover,
nav.navigation.pagination .page-numbers:hover {
	border-color: var(--color-accent);
	color: var(--color-accent-dark);
}
.pagination .page-numbers.current,
nav.navigation.pagination .page-numbers.current {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: #fff;
}
.pagination .page-numbers.dots,
nav.navigation.pagination .page-numbers.dots {
	border: none;
	background: none;
	color: var(--color-text-light);
}

/* ---------- Category rows (front page "shelves") ---------- */
.category-row { background: var(--color-bg-warm); }
.category-row-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 34px;
	flex-wrap: wrap;
}
.category-row-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); text-transform: uppercase; margin: 0; }
.section-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--color-heading);
	font-weight: 600;
	font-size: .88rem;
	white-space: nowrap;
}
.section-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.section-link:hover { color: var(--color-accent-dark); }
.section-link:hover svg { transform: translateX(3px); }

/* ---------- Category pills ---------- */
.category-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}
.category-pill {
	background: var(--color-bg-alt);
	border: 1px solid var(--color-line);
	color: var(--color-heading);
	padding: 12px 26px;
	border-radius: 999px;
	font-weight: 500;
	font-size: .95rem;
}
.category-pill .count { color: var(--color-text-light); font-weight: 400; }
.category-pill:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }

/* ---------- Post/page content ---------- */
.entry-content { font-size: 1.05rem; color: var(--color-text); }
.entry-content > p { margin: 0 0 1.3em; }
.entry-content h2 {
	font-size: 1.5rem;
	text-transform: uppercase;
	margin: 1.6em 0 .6em;
}
.entry-content h2 strong { font-weight: 700; }
.entry-content h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
.entry-content a { text-decoration: underline; text-decoration-color: #E9BFC8; text-underline-offset: 3px; }
.entry-content img {
	border-radius: var(--radius);
	margin: 1.6em auto;
}
.entry-content img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content img.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry-content img.alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.entry-content ul li,
.entry-content ol li { margin-bottom: .5em; }
.entry-content blockquote {
	border-left: 3px solid var(--color-accent);
	margin: 1.6em 0;
	padding: .2em 0 .2em 1.4em;
	color: var(--color-text-light);
	font-style: italic;
}

/* Related-recipes list (plain <ul> of links after an <h2>) */
.entry-content ul:has(a) {
	list-style: none;
	padding: 0;
}
.entry-content ul:has(a) li {
	background: var(--color-bg-alt);
	border: 1px solid #F0DEDD;
	border-radius: 12px;
	padding: 12px 18px;
}
.entry-content ul:has(a) li a { text-decoration: none; font-weight: 500; color: var(--color-heading); }
.entry-content ul:has(a) li a:hover { color: var(--color-accent); }

/* WP native gallery shortcode */
.entry-content .gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 1.8em 0;
}
.entry-content .gallery .gallery-item { margin: 0; }
.entry-content .gallery img { margin: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; }
.entry-content .gallery-caption { display: none; }

/* ---------- WP Recipe Maker re-skin ---------- */
.wprm-recipe-container {
	--wprm-header-background-color: var(--color-accent) !important;
	border-radius: var(--radius) !important;
	border-color: #F0DEDD !important;
	font-family: var(--font-body) !important;
	overflow: hidden;
}
.wprm-recipe-name { font-family: var(--font-heading) !important; }
.wprm-recipe-summary,
.wprm-recipe-header-container { background: var(--color-accent) !important; }
.wprm-recipe-template-simple .wprm-recipe-name,
.wprm-recipe-container .wprm-recipe-name {
	color: var(--color-heading);
}
.wprm-recipe-container .wprm-recipe-times-container .wprm-recipe-time,
.wprm-recipe-container .wprm-recipe-times-container .wprm-recipe-servings {
	color: var(--color-accent) !important;
}
.wprm-recipe-container a { color: var(--color-accent) !important; }
.wprm-recipe-container .wprm-recipe-ingredient-group-name,
.wprm-recipe-container .wprm-recipe-instruction-group-name {
	font-family: var(--font-heading) !important;
	color: var(--color-heading) !important;
}
.wprm-recipe-container .wprm-checkbox-container .checkmark,
.wprm-recipe-container input[type="checkbox"]:checked ~ .checkmark {
	border-color: var(--color-accent) !important;
	background: var(--color-accent) !important;
}
.wprm-recipe-container .wprm-recipe-adjustable-servings .wprm-recipe-servings-adjustable-button {
	background: var(--color-accent) !important;
	border-color: var(--color-accent) !important;
}

/* ---------- Ebook CTA banner ---------- */
.ebook-cta {
	background: var(--color-accent);
	border-radius: 16px;
	color: #fff;
	overflow: hidden;
}
.ebook-cta .container { padding: 0; max-width: none; }
.ebook-cta-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 40px;
	padding: 60px 60px;
}
.ebook-cta .eyebrow { color: #FBD9DF; }
.ebook-cta h2 {
	color: #fff;
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	text-transform: uppercase;
}
.ebook-cta p { color: #FBE3E7; margin-bottom: 24px; }
.ebook-cta .price {
	font-family: var(--font-heading);
	font-size: 2rem;
	color: #fff;
	margin-bottom: 20px;
	display: block;
}
.ebook-cta .price span { font-size: 1rem; color: #FBD9DF; text-decoration: line-through; margin-right: 10px; }
.ebook-cta .btn { background: #fff; color: var(--color-accent); }
.ebook-cta .btn:hover { background: #FBE3E7; color: var(--color-accent-dark); }
.ebook-cta-media { text-align: center; }
.ebook-cta-media img { max-height: 420px; margin: 0 auto; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }

/* ---------- About section ---------- */
.about-section { background: var(--color-bg-warm); }
.about-grid {
	display: grid;
	grid-template-columns: .8fr 1fr;
	align-items: center;
	gap: 60px;
}
.about-media img {
	width: 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: var(--radius);
}
.about-media-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1/1;
	border-radius: var(--radius);
	background: var(--color-accent-soft);
}
.about-media-placeholder svg { width: 64px; height: 64px; color: var(--color-accent-dark); }
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.about-text p { color: var(--color-text-light); margin-bottom: 22px; }

.about-facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-top: 30px;
}
.about-fact {
	background: var(--color-bg-alt);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-sm);
	padding: 16px 16px 14px;
	transition: border-color .2s ease, transform .2s ease;
}
.about-fact:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.about-fact svg {
	width: 22px;
	height: 22px;
	color: var(--color-accent-dark);
	background: var(--color-accent-soft);
	border-radius: 50%;
	padding: 7px;
	box-sizing: content-box;
	margin-bottom: 10px;
}
.about-fact-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-light); margin-bottom: 3px; }
.about-fact-value { display: block; font-weight: 500; font-size: .9rem; color: var(--color-heading); word-break: break-word; }

/* ---------- Popular recipes ---------- */
.popular-recipes { background: var(--color-bg-alt); }

/* ---------- Second ebook CTA: quieter, card-style (contrasts with the solid banner above) ---------- */
.ebook-alt {
	display: grid;
	grid-template-columns: .5fr 1fr;
	align-items: center;
	gap: 56px;
	background: var(--color-bg-alt);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	padding: 54px 56px;
	box-shadow: 0 24px 60px -30px rgba(32, 26, 29, .28);
}
.ebook-alt-media { display: flex; justify-content: center; }
.ebook-alt-media img {
	max-width: 240px;
	width: 100%;
	border-radius: 8px;
	box-shadow: 0 26px 46px -14px rgba(32,26,29,.35);
	transform: rotate(-2deg);
}
.ebook-alt-text .eyebrow { font-size: 1.15rem; }
.ebook-alt-text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.ebook-alt-text > p { color: var(--color-text-light); margin-bottom: 22px; max-width: 480px; }

.trust-list { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.trust-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: .93rem;
	color: var(--color-heading);
}
.trust-list svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--color-accent-dark);
	background: var(--color-accent-soft);
	border-radius: 50%;
	padding: 3px;
	box-sizing: content-box;
}
.ebook-alt-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.quote-bar {
	background: var(--color-heading);
	color: #fff;
	text-align: center;
	padding: 26px 24px;
	border-radius: 16px;
	font-family: var(--font-script);
	font-style: italic;
	font-weight: 500;
	font-size: 1.4rem;
	max-width: 900px;
	margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--color-heading);
	color: #C9B7BC;
	padding: 64px 0 26px;
	margin-top: 40px;
}
.footer-columns {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col-brand .logo-mark { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-col-brand .logo-badge { background: rgba(255,255,255,.1); }
.footer-col-brand .logo-badge svg { color: #fff; }
.footer-col-brand .logo-name {
	font-family: var(--font-heading);
	font-style: italic;
	font-weight: 500;
	font-size: 1.3rem;
	color: #fff;
}
.footer-blurb { font-size: .9rem; line-height: 1.6; max-width: 300px; margin: 0 0 20px; }

.footer-col-title {
	color: #fff;
	font-family: var(--font-body);
	text-transform: uppercase;
	font-size: .78rem;
	letter-spacing: .1em;
	font-weight: 600;
	margin-bottom: 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: #C9B7BC; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-contact { margin: 0 0 18px; font-size: .92rem; }
.footer-contact a { color: #C9B7BC; }
.footer-contact a:hover { color: #fff; }
.footer-cta { border-color: rgba(255,255,255,.35); color: #fff; }
.footer-cta:hover { background: #fff; color: var(--color-accent-dark); border-color: #fff; }

.footer-socials { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.footer-socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255,255,255,.08);
	color: #fff;
}
.footer-socials a:hover { background: var(--color-accent); color: #fff; }
.footer-socials span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.footer-bottom { padding-top: 22px; }
.site-footer .copyright { text-align: center; font-size: .85rem; }
.site-footer .copyright a { color: #fff; }

@media (max-width: 900px) {
	.footer-columns { grid-template-columns: 1fr 1fr; }
	.footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.footer-columns { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- WooCommerce (cart, checkout, account) ---------- */
.woocommerce-page-wrap { padding: 60px 0 90px; }

.woocommerce-page-wrap .page-title,
.woocommerce-page-wrap .woocommerce-products-header__title {
	font-family: var(--font-heading);
	text-align: center;
	text-transform: uppercase;
	font-size: clamp(1.8rem, 3.5vw, 2.4rem);
	margin: 0 0 40px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews {
	list-style: none;
	background: var(--color-bg-warm);
	border: 1px solid var(--color-line);
	border-left: 3px solid var(--color-accent);
	border-radius: var(--radius-sm);
	padding: 16px 20px 16px 50px;
	margin: 0 0 26px;
	color: var(--color-heading);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	position: relative;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-noreviews::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	background-color: var(--color-accent-dark);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce-error { border-left-color: #B3261E; padding-left: 50px; }
.woocommerce-error::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	background-color: #B3261E;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9l-6 6M9 9l6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9l-6 6M9 9l6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Shop grid */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	list-style: none;
	padding: 0;
	margin: 0 0 40px;
}
.woocommerce ul.products li.product {
	background: var(--color-bg-alt);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(46,26,43,.06);
	transition: transform .25s ease, box-shadow .25s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(46,26,43,.12); }
.woocommerce ul.products li.product a img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 1rem;
	color: var(--color-heading);
	padding: 18px 20px 4px;
}
.woocommerce ul.products li.product .price {
	display: block;
	padding: 0 20px 20px;
	color: var(--color-accent-dark);
	font-family: var(--font-heading);
	font-size: 1.1rem;
}
.woocommerce ul.products li.product .button { margin: 0 20px 22px; }

/* Buttons: reuse the same button system everywhere WooCommerce renders one */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--color-accent);
	color: #fff;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: .9rem;
	padding: 13px 24px;
	border-radius: var(--radius-sm);
	border: none;
	box-shadow: 0 1px 2px rgba(32,26,29,.08), 0 10px 22px -10px rgba(181,48,74,.5);
	transition: background .2s ease, transform .2s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background: var(--color-accent-dark);
	color: #fff;
	transform: translateY(-2px);
}
.woocommerce a.button.alt { background: var(--color-heading); }
.woocommerce a.button.alt:hover { background: #000; }

/* Cart table */
.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 30px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	overflow: hidden;
}
.shop_table thead th {
	background: var(--color-bg-warm);
	text-align: left;
	font-size: .76rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--color-text-light);
	padding: 14px 16px;
	font-weight: 600;
}
.shop_table td {
	padding: 16px;
	border-top: 1px solid var(--color-line);
	vertical-align: middle;
}
.shop_table td.product-thumbnail img {
	width: 80px;
	border-radius: var(--radius-sm);
}
.shop_table td.product-name a { color: var(--color-heading); font-weight: 500; }
.shop_table .product-remove a {
	color: var(--color-text-light);
	font-size: 1.2rem;
	border-radius: 50%;
	width: 28px; height: 28px;
	display: inline-flex; align-items: center; justify-content: center;
}
.shop_table .product-remove a:hover { background: var(--color-accent-soft); color: var(--color-accent-dark); }

.quantity .qty {
	width: 64px;
	padding: 10px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	text-align: center;
}

.woocommerce-cart-form .coupon {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}
#coupon_code {
	padding: 12px 16px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	min-width: 200px;
}

.cart-collaterals { margin-top: 20px; }
.cart_totals {
	background: var(--color-bg-warm);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	padding: 30px 32px;
	max-width: 420px;
	margin-left: auto;
}
.cart_totals h2 { font-size: 1.3rem; margin-bottom: 18px; }
.cart_totals table { width: 100%; border-collapse: collapse; }
.cart_totals table th,
.cart_totals table td { padding: 12px 0; border-top: 1px solid var(--color-line); text-align: left; }
.cart_totals table tr:first-child th,
.cart_totals table tr:first-child td { border-top: none; }
.cart_totals .order-total .amount { font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-accent-dark); }
.wc-proceed-to-checkout { margin-top: 20px; }
.wc-proceed-to-checkout a.checkout-button { display: flex; justify-content: center; width: 100%; }

/* Checkout form */
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.woocommerce form .form-row { margin-bottom: 16px; }
.woocommerce form .form-row label { display: block; font-size: .85rem; color: var(--color-text-light); margin-bottom: 6px; }
.woocommerce form .input-text,
.woocommerce form select,
.woocommerce form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	background: #fff;
	color: var(--color-text);
}
.woocommerce form .input-text:focus,
.woocommerce form select:focus,
.woocommerce form textarea:focus { outline: none; border-color: var(--color-accent); }
#order_review_heading,
#order_review { margin-top: 30px; }
.woocommerce-checkout-review-order-table { background: var(--color-bg-warm); border-radius: var(--radius); padding: 10px 24px; }
.woocommerce-checkout-payment { background: var(--color-bg-warm); border-radius: var(--radius); padding: 20px 24px; margin-top: 20px; }
.woocommerce-checkout-payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 16px; }
.woocommerce-checkout-payment ul.payment_methods li { padding: 10px 0; border-bottom: 1px solid var(--color-line); }

/* My account */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	color: var(--color-heading);
}
.woocommerce-MyAccount-navigation li.is-active a { background: var(--color-accent-soft); color: var(--color-accent-dark); font-weight: 600; }
.woocommerce-MyAccount-content { margin-top: 30px; }

@media (max-width: 900px) {
	.woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
	.woocommerce-checkout .col2-set { grid-template-columns: 1fr; }
	.cart_totals { max-width: none; }
	.shop_table thead { display: none; }
	.shop_table td { display: block; border-top: none; padding: 6px 4px; }
	.shop_table tr { display: block; border-top: 1px solid var(--color-line); padding: 12px 0; }
	.woocommerce ul.products { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.recipe-grid-4 { grid-template-columns: repeat(3, 1fr); }
	.category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.recipe-grid { grid-template-columns: repeat(2, 1fr); }
	.recipe-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.category-grid { grid-template-columns: repeat(2, 1fr); }
	.ebook-cta-inner { grid-template-columns: 1fr; padding: 40px 30px; text-align: center; }
	.ebook-cta-media img { max-height: 300px; }
	.about-grid { grid-template-columns: 1fr; text-align: center; }
	.about-media img,
	.about-media-placeholder { max-width: 260px; margin: 0 auto; }
	.about-facts { grid-template-columns: 1fr; text-align: left; }
	.ebook-alt { grid-template-columns: 1fr; text-align: center; padding: 36px 30px; }
	.ebook-alt-actions { justify-content: center; }
}
@media (max-width: 680px) {
	.header-search { display: none; }
	.primary-nav {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--color-bg-alt);
		border-bottom: 1px solid var(--color-line);
		max-height: 0;
		overflow: hidden;
		transition: max-height .25s ease;
	}
	.primary-nav.is-open { max-height: 320px; }
	.primary-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 18px; }
	.primary-nav a { display: block; padding: 12px 0; }
	.primary-nav a::after { display: none; }
	.menu-toggle { display: block; }
	.recipe-grid,
	.recipe-grid-4,
	.category-grid { grid-template-columns: 1fr; }
	.hero { padding: 60px 0 50px; }
	.category-row-head { align-items: center; }
	.entry-content .gallery { grid-template-columns: repeat(2, 1fr); }
	.entry-content img.alignleft,
	.entry-content img.alignright { float: none; margin: 1.2em auto; }
}
