/*
Theme Name: Eravelle
Theme URI: https://eravelle.uk
Author: Eravelle
Author URI: https://eravelle.uk
Description: A premium dark WooCommerce theme for Eravelle, a Liverpool-based independent retailer of wood burning and multi-fuel stoves. Creates all policy pages, menus and store settings automatically on activation.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 9.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eravelle
Tags: e-commerce, woocommerce, dark, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--er-bg: #f7f2ea;
	--er-bg-2: #efe6da;
	--er-bg-3: #e6dbcc;
	--er-line: #ddd1c1;
	--er-text: #1e1b18;
	--er-muted: #5f564c;
	--er-accent: #d9661f;
	--er-accent-hover: #ec7a33;
	--er-accent-dark: #a8470f;
	--er-link: #a8470f;
	--er-link-hover: #7f350b;
	--er-hero-text: #f5efe6;
	--er-input-border: #b3a695;
	--er-on-accent: #1e1b18;
	--er-card: #ffffff;
	--er-card-text: #1b1917;
	--er-card-muted: #5c554e;
	--er-paper: #ffffff;
	--er-success: #1e6b30;
	--er-error: #a3231a;
	--er-radius: 10px;
	--er-radius-sm: 6px;
	--er-shadow: 0 10px 30px rgba(70, 45, 20, 0.14);
	--er-font-head: "Playfair Display", Georgia, "Times New Roman", serif;
	--er-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--er-wrap: 1240px;
	--er-gutter: 16px;
}

@media (min-width: 768px) {
	:root { --er-gutter: 28px; }
}

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

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

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

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

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

a { color: var(--er-link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--er-link-hover); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--er-font-head);
	font-weight: 700;
	line-height: 1.2;
	color: var(--er-text);
	margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p, ul, ol, table, blockquote { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
hr { border: 0; border-top: 1px solid var(--er-line); margin: 2rem 0; }
strong { font-weight: 600; }

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

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--er-text); color: var(--er-bg); clip: auto !important; clip-path: none;
	display: block; font-weight: 600; height: auto; left: 8px; top: 8px; padding: 12px 20px;
	width: auto; z-index: 100000; text-decoration: none; border-radius: var(--er-radius-sm);
}

.er-wrap { width: 100%; max-width: var(--er-wrap); margin: 0 auto; padding-left: var(--er-gutter); padding-right: var(--er-gutter); }
.er-wrap--narrow { max-width: 860px; }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"],
input[type="password"], input[type="url"], input[type="date"], select, textarea {
	width: 100%;
	font: inherit;
	font-size: 16px;
	color: var(--er-text);
	background: #ffffff;
	border: 1px solid var(--er-input-border);
	border-radius: var(--er-radius-sm);
	padding: 12px 14px;
	line-height: 1.4;
}
input::placeholder, textarea::placeholder { color: #7d7368; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--er-accent); outline: 2px solid var(--er-accent); outline-offset: 0; }
label { display: block; font-weight: 500; margin-bottom: 6px; }

/* Buttons */
.er-btn, button.er-btn, a.er-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--er-font-body); font-weight: 600; font-size: 15px; letter-spacing: 0.02em;
	padding: 14px 26px; min-height: 48px;
	border-radius: var(--er-radius-sm);
	border: 2px solid var(--er-accent);
	background: var(--er-accent); color: var(--er-on-accent);
	text-decoration: none; cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.er-btn:hover { background: var(--er-accent-hover); border-color: var(--er-accent-hover); color: var(--er-on-accent); }
.er-btn.er-btn--ghost { background: transparent; color: var(--er-text); border-color: var(--er-text); }
.er-btn.er-btn--ghost:hover { background: var(--er-text); color: var(--er-bg); border-color: var(--er-text); }

/* ==========================================================================
   3. Announcement bar & header
   ========================================================================== */
.er-announcement {
	background: var(--er-accent); color: var(--er-on-accent);
	font-size: 14px; font-weight: 600; text-align: center;
	padding: 8px var(--er-gutter); line-height: 1.4;
}
.er-announcement a { color: inherit; }

.er-header {
	position: sticky; top: 0; z-index: 900;
	background: rgba(247, 242, 234, 0.97);
	border-bottom: 1px solid var(--er-line);
}
.admin-bar .er-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .er-header { top: 0; position: relative; } }

.er-header__inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }

.er-logo { flex: 0 0 auto; margin: 0; line-height: 1; }
.er-logo a { text-decoration: none; }
.er-logo__text {
	font-family: var(--er-font-head); font-weight: 700; font-size: 28px; letter-spacing: 0.18em; color: var(--er-text);
}
.er-logo img { max-height: 56px; width: auto; }

.er-nav { flex: 1 1 auto; }
.er-nav ul { list-style: none; margin: 0; padding: 0; }
.er-nav li { margin: 0; }
.er-nav a { color: var(--er-text); text-decoration: none; font-weight: 500; }
.er-nav a:hover, .er-nav .current-menu-item > a { color: var(--er-link); }

.er-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.er-icon-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: transparent; border: 0; color: var(--er-text); cursor: pointer; text-decoration: none;
}
.er-icon-btn:hover { background: var(--er-bg-3); color: var(--er-link); }
.er-icon-btn svg { width: 22px; height: 22px; }
.er-cart-count {
	position: absolute; top: 2px; right: 0;
	min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
	background: var(--er-accent); color: var(--er-on-accent);
	font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
}
.er-cart-count[data-count="0"] { background: var(--er-bg-3); color: var(--er-text); }

.er-menu-toggle { display: none; }

/* Desktop nav */
@media (min-width: 1024px) {
	.er-nav > ul, .er-nav .menu { display: flex; gap: 4px; justify-content: center; }
	.er-nav .menu > li { position: relative; }
	.er-nav .menu > li > a { display: inline-flex; align-items: center; padding: 26px 14px; }
	.er-nav .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 220px;
		background: var(--er-bg-2); border: 1px solid var(--er-line); border-radius: var(--er-radius);
		box-shadow: var(--er-shadow); padding: 8px;
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	}
	.er-nav .sub-menu a { display: block; padding: 10px 14px; border-radius: var(--er-radius-sm); }
	.er-nav .sub-menu a:hover { background: var(--er-bg-3); }
	.er-nav li:hover > .sub-menu, .er-nav li:focus-within > .sub-menu, .er-nav li.is-open > .sub-menu {
		opacity: 1; visibility: visible; transform: none;
	}
	.er-nav .menu-item-has-children > a::after {
		content: ""; width: 7px; height: 7px; margin-left: 8px; margin-top: -4px;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
	}
	.er-submenu-toggle { display: none; }
}

/* Mobile nav */
@media (max-width: 1023px) {
	.er-menu-toggle { display: inline-flex; }
	.er-nav {
		position: fixed; inset: 0 auto 0 0; width: min(86vw, 360px);
		background: var(--er-bg-2); z-index: 1000; padding: 72px 20px 32px;
		overflow-y: auto; transform: translateX(-102%); transition: transform 0.25s ease;
		border-right: 1px solid var(--er-line);
	}
	.er-nav.is-open { transform: none; }
	.er-nav .menu > li { border-bottom: 1px solid var(--er-line); position: relative; }
	.er-nav .menu a { display: block; padding: 14px 44px 14px 4px; font-size: 17px; }
	.er-nav .sub-menu { display: none; padding-left: 14px; padding-bottom: 8px; }
	.er-nav li.is-open > .sub-menu { display: block; }
	.er-nav .sub-menu a { padding: 10px 4px; font-size: 16px; color: var(--er-muted); }
	.er-submenu-toggle {
		position: absolute; right: 0; top: 4px; width: 44px; height: 44px;
		background: transparent; border: 0; color: var(--er-text); cursor: pointer;
	}
	.er-submenu-toggle::before {
		content: ""; display: inline-block; width: 9px; height: 9px;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
		transition: transform 0.2s ease;
	}
	.is-open > .er-submenu-toggle::before { transform: rotate(-135deg); }
	.er-nav__close { position: absolute; top: 14px; right: 14px; }
	.er-nav-overlay { position: fixed; inset: 0; background: rgba(30, 27, 24, 0.45); z-index: 999; }
	.er-nav-overlay[hidden] { display: none; }
	.er-header__inner { gap: 8px; min-height: 64px; }
	.er-logo__text { font-size: 22px; }
	.er-logo img { max-height: 44px; }
}
@media (min-width: 1024px) {
	.er-nav__close, .er-nav-overlay { display: none !important; }
}

/* Search panel */
.er-search-panel { background: var(--er-bg-2); border-bottom: 1px solid var(--er-line); padding: 16px 0; }
.er-search-panel[hidden] { display: none; }
.er-search-form, .woocommerce-product-search { display: flex; gap: 8px; }
.er-search-form input[type="search"], .woocommerce-product-search input[type="search"] { flex: 1 1 auto; }
.woocommerce-product-search button, .er-search-form button {
	font: inherit; font-weight: 600; padding: 12px 20px; border-radius: var(--er-radius-sm);
	border: 0; background: var(--er-accent); color: var(--er-on-accent); cursor: pointer;
}

/* ==========================================================================
   4. Hero slider
   ========================================================================== */
.er-hero { position: relative; background: #1e1b18; overflow: hidden; color: var(--er-hero-text); }
.er-hero h2 { color: var(--er-hero-text); }
.er-hero .er-btn.er-btn--ghost { color: var(--er-hero-text); border-color: var(--er-hero-text); }
.er-hero .er-btn.er-btn--ghost:hover { background: var(--er-hero-text); color: #1e1b18; }
.er-hero__track { position: relative; height: clamp(460px, 72vh, 720px); }
.er-hero__slide {
	position: absolute; inset: 0; opacity: 0; visibility: hidden;
	transition: opacity 0.8s ease, visibility 0.8s;
}
.er-hero__slide.is-active { opacity: 1; visibility: visible; }
.er-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.er-hero__slide::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(12, 12, 12, 0.88) 0%, rgba(12, 12, 12, 0.6) 45%, rgba(12, 12, 12, 0.15) 100%);
}
.er-hero__content {
	position: absolute; inset: 0; z-index: 2; display: flex; align-items: center;
}
.er-hero__text { max-width: 620px; }
.er-hero__eyebrow {
	display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--er-accent); margin-bottom: 14px;
}
.er-hero__title { font-size: clamp(2.1rem, 5vw, 3.8rem); margin-bottom: 18px; }
.er-hero__sub { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #eae2d6; margin-bottom: 28px; max-width: 540px; }
.er-hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.er-hero__controls {
	position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3;
	display: flex; align-items: center; justify-content: center; gap: 12px;
}
.er-hero__arrow, .er-hero__pause {
	width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid rgba(245, 239, 230, 0.6); background: rgba(20, 20, 20, 0.55); color: var(--er-hero-text);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.er-hero__arrow:hover, .er-hero__pause:hover { background: var(--er-accent); color: var(--er-on-accent); border-color: var(--er-accent); }
.er-hero__arrow svg, .er-hero__pause svg { width: 18px; height: 18px; }
.er-hero__dots { display: flex; gap: 4px; }
.er-hero__dot {
	width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
}
.er-hero__dot span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--er-hero-text); display: block; }
.er-hero__dot[aria-current="true"] span { background: var(--er-accent); border-color: var(--er-accent); }
.er-hero__bar { display: flex; align-items: center; gap: 12px; }
@media (max-width: 899px) {
	.er-hero__slide::after { background: linear-gradient(180deg, rgba(12, 12, 12, 0.55) 0%, rgba(12, 12, 12, 0.85) 100%); }
	.er-hero__content { align-items: flex-end; padding-bottom: 88px; }
}
@media (min-width: 900px) {
	.er-hero__content { padding-bottom: 40px; }
}

/* ==========================================================================
   5. Homepage sections
   ========================================================================== */
.er-section { padding: clamp(48px, 7vw, 88px) 0; }
.er-section--alt { background: var(--er-bg-2); }
.er-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.er-section__head h2 { margin: 0; }
.er-section__head p { margin: 6px 0 0; color: var(--er-muted); max-width: 640px; }
.er-section__link { font-weight: 600; white-space: nowrap; }
.er-eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--er-link); margin-bottom: 8px; }

/* Trust strip */
.er-trust { background: var(--er-bg-2); border-bottom: 1px solid var(--er-line); }
.er-trust__list { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .er-trust__list { grid-template-columns: repeat(4, 1fr); } }
.er-trust__item { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 500; font-size: 15px; line-height: 1.35; }
.er-trust__item svg { flex: 0 0 auto; width: 30px; height: 30px; color: var(--er-accent); }
.er-trust__item small { display: block; color: var(--er-muted); font-weight: 400; font-size: 13px; }

/* Collections */
.er-collections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .er-collections { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .er-collections { grid-template-columns: repeat(5, 1fr); } }
.er-collection {
	position: relative; display: flex; flex-direction: column; text-decoration: none;
	background: var(--er-card); color: var(--er-card-text); border-radius: var(--er-radius); overflow: hidden;
	border: 1px solid var(--er-line);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.er-collection:hover { transform: translateY(-4px); box-shadow: var(--er-shadow); color: var(--er-card-text); }
.er-collection__img { aspect-ratio: 1 / 1; background: #f1ede7; display: flex; align-items: center; justify-content: center; padding: 14px; }
.er-collection__img img { width: 100%; height: 100%; object-fit: contain; }
.er-collection__body { padding: 14px 16px 18px; border-top: 1px solid #ece6de; }
.er-collection__name { font-family: var(--er-font-head); font-size: 1.25rem; font-weight: 700; margin: 0 0 2px; color: var(--er-card-text); }
.er-collection__meta { font-size: 14px; color: var(--er-card-muted); }
.er-collection__cta { font-size: 14px; font-weight: 600; color: var(--er-accent-dark); }

/* Story */
.er-story { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .er-story { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.er-story__text p { color: var(--er-text); }
.er-story__facts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.er-story__facts li { background: var(--er-bg-3); border-left: 3px solid var(--er-accent); padding: 16px 18px; border-radius: 0 var(--er-radius-sm) var(--er-radius-sm) 0; margin: 0; }
.er-story__facts strong { display: block; font-family: var(--er-font-head); font-size: 1.1rem; }
.er-story__facts span { color: var(--er-muted); font-size: 15px; }

/* Offer banner */
.er-offer {
	position: relative; overflow: hidden; border-radius: var(--er-radius);
	background: radial-gradient(circle at 85% 20%, rgba(217, 102, 31, 0.2), transparent 55%), linear-gradient(135deg, #f3e2cf 0%, #efe6da 60%, #f7f2ea 100%);
	border: 1px solid #e2c7ab; padding: clamp(28px, 5vw, 56px);
	display: grid; gap: 24px; align-items: center;
}
@media (min-width: 900px) { .er-offer { grid-template-columns: 1fr auto; } }
.er-offer h2 { margin-bottom: 10px; }
.er-offer p { margin: 0; color: var(--er-text); max-width: 680px; }
.er-offer__note { font-size: 14px; color: var(--er-muted) !important; margin-top: 10px !important; }

/* Why choose us */
.er-why { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .er-why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .er-why { grid-template-columns: repeat(4, 1fr); } }
.er-why__item { background: var(--er-bg-2); border: 1px solid var(--er-line); border-radius: var(--er-radius); padding: 26px 22px; }
.er-section--alt .er-why__item { background: var(--er-bg); }
.er-why__item svg { width: 36px; height: 36px; color: var(--er-accent); margin-bottom: 14px; }
.er-why__item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.er-why__item p { margin: 0; color: var(--er-muted); font-size: 15px; }

/* FAQ accordion */
.er-faq { max-width: 880px; margin: 0 auto; }
.er-faq details { border-bottom: 1px solid var(--er-line); }
.er-faq details:first-child { border-top: 1px solid var(--er-line); }
.er-faq summary {
	list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
	font-family: var(--er-font-head); font-size: 1.15rem; font-weight: 600;
}
.er-faq summary::-webkit-details-marker { display: none; }
.er-faq summary::after {
	content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
	font-family: var(--er-font-body); font-size: 26px; font-weight: 400; color: var(--er-link);
}
.er-faq details[open] summary::after { content: "\2212"; }
.er-faq__answer { padding: 0 0 20px; color: var(--er-text); }
.er-faq__answer p:last-child { margin-bottom: 0; }

/* Newsletter */
.er-newsletter { background: linear-gradient(135deg, #efe6da, #f3e2cf); border-top: 1px solid var(--er-line); border-bottom: 1px solid var(--er-line); }
.er-newsletter__inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .er-newsletter__inner { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.er-newsletter__inner h2 { margin-bottom: 8px; }
.er-newsletter__inner > div > p { color: var(--er-muted); margin: 0; }
.er-newsletter__row { display: flex; gap: 10px; flex-wrap: wrap; }
.er-newsletter__row input[type="email"] { flex: 1 1 240px; }
.er-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--er-muted); margin-top: 12px; }
.er-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--er-accent); }
.er-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Notices */
.er-notice { border-radius: var(--er-radius-sm); padding: 14px 18px; margin: 0 0 18px; font-weight: 500; border: 1px solid; }
.er-notice--success { background: #e5f2e7; border-color: #6aa874; color: #1e5b2a; }
.er-notice--error { background: #fbe8e5; border-color: #d9776a; color: #8a1f12; }

/* ==========================================================================
   6. Pages & content
   ========================================================================== */
.er-page-hero { background: var(--er-bg-2); border-bottom: 1px solid var(--er-line); padding: clamp(36px, 6vw, 64px) 0; }
.er-page-hero h1 { margin: 0; }
.er-page-hero p { margin: 10px 0 0; color: var(--er-muted); }
.er-main { padding: clamp(32px, 5vw, 64px) 0; min-height: 40vh; }

.er-content { font-size: 17px; }
.er-content > *:first-child { margin-top: 0; }
.er-content h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.er-content h3 { margin-top: 1.5em; }
.er-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.er-content th, .er-content td { text-align: left; padding: 10px 12px; border: 1px solid var(--er-line); vertical-align: top; }
.er-content th { background: var(--er-bg-2); }
.er-content blockquote { border-left: 3px solid var(--er-accent); margin-left: 0; padding: 4px 0 4px 18px; color: var(--er-muted); }
.er-content .er-callout, .er-callout {
	background: var(--er-bg-2); border: 1px solid var(--er-line); border-left: 4px solid var(--er-accent);
	border-radius: var(--er-radius-sm); padding: 18px 20px; margin: 0 0 1.4em;
}
.er-callout p:last-child { margin-bottom: 0; }
.er-updated { font-size: 14px; color: var(--er-muted); }

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--er-muted); }

/* Contact page */
.er-contact-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .er-contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; } }
.er-contact-card { background: var(--er-bg-2); border: 1px solid var(--er-line); border-radius: var(--er-radius); padding: 26px; }
.er-contact-card h2 { font-size: 1.4rem; margin-top: 0; }
.er-contact-list { list-style: none; padding: 0; margin: 0 0 18px; }
.er-contact-list li { display: flex; gap: 12px; margin-bottom: 14px; }
.er-contact-list svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--er-accent); margin-top: 3px; }
.er-form .er-field { margin-bottom: 16px; }
.er-form .er-field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .er-form .er-field-row { grid-template-columns: 1fr 1fr; } }
.er-form .er-req { color: var(--er-link); }
.er-form__small { font-size: 14px; color: var(--er-muted); }

/* Posts */
.er-post-list { display: grid; gap: 28px; }
.er-post-card { background: var(--er-bg-2); border: 1px solid var(--er-line); border-radius: var(--er-radius); overflow: hidden; }
.er-post-card__body { padding: 22px; }
.er-post-card h2 { font-size: 1.4rem; }
.er-post-card h2 a { color: var(--er-text); text-decoration: none; }
.er-meta { font-size: 14px; color: var(--er-muted); margin-bottom: 12px; }
.er-pagination, .navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--er-line); border-radius: var(--er-radius-sm); color: var(--er-text); text-decoration: none; }
.nav-links .page-numbers.current { background: var(--er-accent); color: var(--er-on-accent); border-color: var(--er-accent); }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.er-footer { background: var(--er-bg-2); border-top: 1px solid var(--er-line); padding-top: 56px; font-size: 15px; }
.er-footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .er-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .er-footer__grid { grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr; } }
.er-footer h2 { font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 0.02em; }
.er-footer p { color: var(--er-muted); }
.er-footer ul { list-style: none; padding: 0; margin: 0; }
.er-footer li { margin-bottom: 9px; }
.er-footer a { color: var(--er-text); text-decoration: none; }
.er-footer a:hover { color: var(--er-link); text-decoration: underline; }
.er-footer address { font-style: normal; color: var(--er-muted); }
.er-footer__contact li { display: flex; gap: 10px; color: var(--er-muted); }
.er-footer__contact svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; color: var(--er-accent); }
.er-footer__logo { font-family: var(--er-font-head); font-size: 24px; letter-spacing: 0.18em; font-weight: 700; margin-bottom: 12px; color: var(--er-text); }
.er-payments { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.er-payments svg { width: 58px; height: 38px; border-radius: 5px; }
.er-footer__bottom { margin-top: 48px; border-top: 1px solid var(--er-line); padding: 22px 0; font-size: 14px; color: var(--er-muted); }
.er-footer__bottom .er-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.er-footer__bottom p { margin: 0; }
.er-section--tight { padding-top: 0; }
.er-section__head--center { justify-content: center; text-align: center; }
.er-faq__more { text-align: center; margin-top: 24px; }
.er-payments li { margin: 0; }
.er-collection__placeholder { font-family: var(--er-font-head); font-size: 1.6rem; color: var(--er-card-muted); }
.er-404-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
