/*
Theme Name: Shroomly
Theme URI: https://example.com/shroomly
Author: Shroomly Studio
Author URI: https://example.com
Description: A simple, handy and fully responsive WordPress theme built for mushroom farms, fresh produce shops and small online grocery stores. Shroomly ships with complete WooCommerce support, a customisable hero section, product grids, farm-story and contact sections, widget-ready sidebars and an earthy design you can recolour in one click.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shroomly
Tags: e-commerce, blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, custom-colors, featured-images, threaded-comments, translation-ready, full-width-template

Shroomly is distributed under the terms of the GNU GPL v2 or later.
*/

/* ---------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------- */
:root {
	--shroom-cream: #faf6ef;
	--shroom-cream-2: #f3ece0;
	--shroom-ink: #2b2118;
	--shroom-muted: #6f6257;
	--shroom-brown: #6b4a2f;
	--shroom-tan: #c9a87c;
	--shroom-green: #4a6b45;
	--shroom-accent: #b4552d;
	--shroom-accent-dark: #933f1d;
	--shroom-line: rgba(43, 33, 24, 0.12);
	--shroom-white: #ffffff;

	--shroom-radius: 14px;
	--shroom-radius-sm: 8px;
	--shroom-shadow: 0 10px 30px rgba(43, 33, 24, 0.08);
	--shroom-shadow-lg: 0 24px 60px rgba(43, 33, 24, 0.14);
	--shroom-container: 1180px;

	--shroom-font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	--shroom-font-heading: Georgia, "Times New Roman", serif;
}

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

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

body {
	margin: 0;
	background-color: var(--shroom-cream);
	color: var(--shroom-ink);
	font-family: var(--shroom-font);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--shroom-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: var(--shroom-accent-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--shroom-font-heading);
	line-height: 1.22;
	margin: 0 0 0.6em;
	color: var(--shroom-ink);
	font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.2em; }

blockquote {
	margin: 1.6em 0;
	padding: 0.4em 0 0.4em 1.4em;
	border-left: 4px solid var(--shroom-tan);
	font-family: var(--shroom-font-heading);
	font-size: 1.1em;
	color: var(--shroom-muted);
}

code,
pre {
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: 0.92em;
}

pre {
	background: var(--shroom-cream-2);
	padding: 1.1em 1.3em;
	border-radius: var(--shroom-radius-sm);
	overflow: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.6em;
}

th,
td {
	padding: 0.7em 0.9em;
	border: 1px solid var(--shroom-line);
	text-align: left;
}

th { background: var(--shroom-cream-2); }

hr {
	border: 0;
	border-top: 1px solid var(--shroom-line);
	margin: 2.4em 0;
}

/* ---------------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--shroom-container);
	margin-inline: auto;
	padding-inline: 22px;
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: hidden;
}

.site-content {
	flex: 1 0 auto;
	padding-block: 56px;
}

.content-area {
	min-width: 0;
}

.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 52px;
	align-items: start;
}

.section { padding-block: 74px; }
.section--tint { background: var(--shroom-cream-2); }
.section--dark { background: var(--shroom-ink); color: var(--shroom-cream); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--shroom-white); }

.section__head {
	max-width: 660px;
	margin: 0 auto 46px;
	text-align: center;
}

.section__head p { color: var(--shroom-muted); margin-bottom: 0; }

.eyebrow {
	display: inline-block;
	font-family: var(--shroom-font);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--shroom-green);
	margin-bottom: 14px;
}

.section--dark .eyebrow { color: var(--shroom-tan); }

/* ---------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------- */
.button,
.btn,
button,
input[type="submit"],
.wp-block-button__link {
	display: inline-block;
	padding: 13px 26px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--shroom-accent);
	color: var(--shroom-white);
	font-family: var(--shroom-font);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button:hover,
.btn:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	background: var(--shroom-accent-dark);
	color: var(--shroom-white);
	transform: translateY(-1px);
}

.btn--ghost,
.button--ghost {
	background: transparent;
	border-color: currentColor;
	color: var(--shroom-ink);
}

.btn--ghost:hover,
.button--ghost:hover {
	background: var(--shroom-ink);
	border-color: var(--shroom-ink);
	color: var(--shroom-white);
}

.btn--light { background: var(--shroom-white); color: var(--shroom-ink); }
.btn--light:hover { background: var(--shroom-tan); color: var(--shroom-ink); }

.btn--block { display: block; width: 100%; text-align: center; }

/* ---------------------------------------------------------------
   5. Header
   --------------------------------------------------------------- */
.topbar {
	background: var(--shroom-ink);
	color: var(--shroom-cream);
	font-size: 0.84rem;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}

.topbar a { color: var(--shroom-cream); text-decoration: none; }
.topbar a:hover { color: var(--shroom-tan); }

.topbar__cart {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.topbar__count {
	display: inline-grid;
	place-items: center;
	min-width: 21px;
	height: 21px;
	padding-inline: 6px;
	border-radius: 999px;
	background: var(--shroom-accent);
	color: var(--shroom-white);
	font-size: 0.72rem;
	font-weight: 700;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(250, 246, 239, 0.94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--shroom-line);
	transition: box-shadow 0.2s ease;
}

.site-header.is-stuck { box-shadow: 0 8px 24px rgba(43, 33, 24, 0.08); }

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 78px;
}

.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }

.site-branding img.custom-logo { max-height: 52px; width: auto; }

.site-title {
	margin: 0;
	font-family: var(--shroom-font-heading);
	font-size: 1.5rem;
	line-height: 1.1;
}

.site-title a { color: var(--shroom-ink); text-decoration: none; }
.site-title a:hover { color: var(--shroom-accent); }

.site-description {
	margin: 2px 0 0;
	font-size: 0.82rem;
	color: var(--shroom-muted);
}

.brand-mark {
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: 50%;
	background: var(--shroom-tan);
	display: grid;
	place-items: center;
	font-size: 1.3rem;
}

/* Navigation */
.site-nav { margin-left: auto; }

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav li { position: relative; }

.site-nav a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--shroom-radius-sm);
	color: var(--shroom-ink);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	background: var(--shroom-cream-2);
	color: var(--shroom-accent);
}

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: block;
	min-width: 210px;
	padding: 8px;
	border-radius: var(--shroom-radius);
	background: var(--shroom-white);
	box-shadow: var(--shroom-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
	z-index: 20;
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.site-nav .sub-menu a { padding: 9px 12px; font-weight: 500; }

.header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: none;
}

.header__cart {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--shroom-line);
	border-radius: 50%;
	background: var(--shroom-white);
	color: var(--shroom-ink);
	text-decoration: none;
}

.header__cart:hover { background: var(--shroom-cream-2); }

.header__cart svg { width: 20px; height: 20px; }

.header__cart .count {
	position: absolute;
	top: -4px;
	right: -4px;
	display: grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding-inline: 5px;
	border-radius: 999px;
	background: var(--shroom-accent);
	color: var(--shroom-white);
	font-size: 0.7rem;
	font-weight: 700;
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 9px;
	padding: 11px 18px;
	border: 1px solid var(--shroom-line);
	border-radius: 999px;
	background: var(--shroom-white);
	color: var(--shroom-ink);
	font-size: 0.9rem;
	font-weight: 600;
}

.menu-toggle:hover { background: var(--shroom-cream-2); color: var(--shroom-ink); }

.menu-toggle__bars {
	position: relative;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }

/* ---------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------- */
.hero {
	position: relative;
	padding-block: 84px 92px;
	background:
		radial-gradient(1100px 460px at 88% -10%, rgba(201, 168, 124, 0.4), transparent 62%),
		radial-gradient(760px 380px at 4% 106%, rgba(74, 107, 69, 0.18), transparent 60%),
		var(--shroom-cream);
	overflow: hidden;
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 60px;
	align-items: center;
}

.hero__title { margin-bottom: 0.5em; }

.hero__text {
	max-width: 34em;
	font-size: 1.09rem;
	color: var(--shroom-muted);
	margin-bottom: 1.9em;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin-top: 34px;
	padding-top: 26px;
	border-top: 1px solid var(--shroom-line);
	list-style: none;
}

.hero__badges li {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--shroom-brown);
}

.hero__badges span[aria-hidden] { font-size: 1.1rem; }

.hero__media {
	position: relative;
	border-radius: 28px;
	overflow: hidden;
	background: var(--shroom-white);
	box-shadow: var(--shroom-shadow-lg);
	aspect-ratio: 5 / 4;
}

.hero__media img,
.hero__media svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__tag {
	position: absolute;
	left: 20px;
	bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: var(--shroom-shadow);
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--shroom-ink);
}

.hero__tag em {
	font-style: normal;
	color: var(--shroom-green);
}

/* ---------------------------------------------------------------
   7. Cards & grids
   --------------------------------------------------------------- */
.grid {
	display: grid;
	gap: 26px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
	display: flex;
	flex-direction: column;
	background: var(--shroom-white);
	border: 1px solid var(--shroom-line);
	border-radius: var(--shroom-radius);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shroom-shadow); }

.card__body { padding: 22px 24px 26px; }

.card__icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin-bottom: 18px;
	border-radius: 16px;
	background: var(--shroom-cream-2);
	font-size: 1.5rem;
}

.card h3 { margin-bottom: 0.45em; font-size: 1.2rem; }
.card p { margin-bottom: 0; color: var(--shroom-muted); font-size: 0.96rem; }

.card--flat { background: transparent; border: 0; }
.card--flat:hover { transform: none; box-shadow: none; }

/* Product placeholder cards (used when WooCommerce is not active) */
.product-teaser {
	display: flex;
	flex-direction: column;
	background: var(--shroom-white);
	border: 1px solid var(--shroom-line);
	border-radius: var(--shroom-radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--shroom-ink);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-teaser:hover { transform: translateY(-4px); box-shadow: var(--shroom-shadow); color: var(--shroom-ink); }

.product-teaser__media {
	aspect-ratio: 4 / 3;
	background: linear-gradient(140deg, var(--shroom-cream-2), #e6d8bf);
	display: grid;
	place-items: center;
	font-size: 3rem;
}

.product-teaser__body { padding: 18px 20px 22px; }
.product-teaser__body h3 { font-size: 1.08rem; margin-bottom: 0.3em; }
.product-teaser__body p { margin: 0; font-size: 0.9rem; color: var(--shroom-muted); }

/* ---------------------------------------------------------------
   8. Split (about) section
   --------------------------------------------------------------- */
.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 62px;
	align-items: center;
}

.split__media {
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--shroom-shadow);
	aspect-ratio: 4 / 3;
	background: var(--shroom-cream-2);
}

.split__media img { width: 100%; height: 100%; object-fit: cover; }

.checklist {
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}

.checklist li {
	position: relative;
	padding-left: 34px;
	margin-bottom: 12px;
	color: var(--shroom-muted);
}

.checklist li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 1px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--shroom-green);
	color: var(--shroom-white);
	font-size: 0.72rem;
	font-weight: 700;
}

/* Stats strip */
.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	text-align: center;
}

.stats__value {
	display: block;
	font-family: var(--shroom-font-heading);
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	color: var(--shroom-tan);
	line-height: 1.1;
}

.stats__label { font-size: 0.88rem; opacity: 0.85; }

/* ---------------------------------------------------------------
   9. Contact / CTA
   --------------------------------------------------------------- */
.contact-card {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 0;
	background: var(--shroom-white);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--shroom-shadow);
}

.contact-card__body { padding: 46px 48px; }

.contact-list {
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--shroom-line);
}

.contact-list li:last-child { border-bottom: 0; }
.contact-list strong { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--shroom-muted); }
.contact-list a { text-decoration: none; font-weight: 600; color: var(--shroom-ink); }
.contact-list a:hover { color: var(--shroom-accent); }

.contact-card__aside {
	display: grid;
	place-items: center;
	padding: 46px 40px;
	background: linear-gradient(160deg, var(--shroom-green), #35502f);
	color: var(--shroom-white);
	text-align: center;
}

.contact-card__aside h3 { color: var(--shroom-white); }
.contact-card__aside p { opacity: 0.9; font-size: 0.95rem; }

/* ---------------------------------------------------------------
   10. Posts, archives & pages
   --------------------------------------------------------------- */
.post-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.entry { margin-bottom: 0; }

.entry__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--shroom-radius);
	background: var(--shroom-cream-2);
	margin-bottom: 20px;
}

.entry__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.entry:hover .entry__media img { transform: scale(1.04); }

.entry__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-bottom: 12px;
	font-size: 0.82rem;
	color: var(--shroom-muted);
}

.entry__meta a { color: var(--shroom-muted); text-decoration: none; }
.entry__meta a:hover { color: var(--shroom-accent); }

.entry__title { margin-bottom: 0.4em; font-size: 1.35rem; }
.entry__title a { color: var(--shroom-ink); text-decoration: none; }
.entry__title a:hover { color: var(--shroom-accent); }

.entry__excerpt { color: var(--shroom-muted); font-size: 0.97rem; }

.entry__more { font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.entry__more::after { content: " \2192"; }

.single-post .entry__title { font-size: clamp(1.9rem, 4vw, 2.7rem); }

.entry-content > * { margin-bottom: 1.35em; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content img,
.entry-content .wp-block-image img { border-radius: var(--shroom-radius); }
.entry-content a { text-decoration: underline; }

.wp-block-image { margin-bottom: 1.6em; }

.alignleft { float: left; margin: 0 1.6em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.6em; }
.aligncenter { margin-inline: auto; }
.alignwide { margin-inline: -40px; max-width: 1000px; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

.page-header { margin-bottom: 42px; }
.page-header p { color: var(--shroom-muted); }

.page-links { margin-top: 30px; font-weight: 600; }
.page-links a { text-decoration: none; }

.tag-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 34px;
}

.tag-links a {
	padding: 6px 14px;
	border: 1px solid var(--shroom-line);
	border-radius: 999px;
	background: var(--shroom-white);
	font-size: 0.82rem;
	text-decoration: none;
	color: var(--shroom-muted);
}

.tag-links a:hover { background: var(--shroom-cream-2); color: var(--shroom-accent); }

/* Pagination */
.pagination,
.navigation.pagination { margin-top: 52px; }

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	align-items: center;
}

.nav-links .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 12px;
	border: 1px solid var(--shroom-line);
	border-radius: var(--shroom-radius-sm);
	background: var(--shroom-white);
	color: var(--shroom-ink);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
}

.nav-links .page-numbers:hover { background: var(--shroom-cream-2); }

.nav-links .page-numbers.current {
	background: var(--shroom-accent);
	border-color: var(--shroom-accent);
	color: var(--shroom-white);
}

.post-navigation {
	margin-top: 54px;
	padding-top: 34px;
	border-top: 1px solid var(--shroom-line);
}

.post-navigation .nav-links { justify-content: space-between; }

.post-navigation a {
	display: block;
	max-width: 46%;
	padding: 0;
	border: 0;
	background: none;
	height: auto;
	text-align: left;
}

.post-navigation a:hover { background: none; color: var(--shroom-accent); }

.post-navigation .meta-nav {
	display: block;
	font-size: 0.76rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--shroom-muted);
	margin-bottom: 6px;
}

/* ---------------------------------------------------------------
   11. Sidebar & widgets
   --------------------------------------------------------------- */
.widget-area { font-size: 0.95rem; }

.widget {
	margin-bottom: 34px;
	padding: 26px 26px 28px;
	background: var(--shroom-white);
	border: 1px solid var(--shroom-line);
	border-radius: var(--shroom-radius);
}

.widget__title,
.widget .widget-title {
	margin-bottom: 0.8em;
	font-size: 1.05rem;
	font-family: var(--shroom-font);
	letter-spacing: 0.02em;
}

.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--shroom-line); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; color: var(--shroom-ink); }
.widget a:hover { color: var(--shroom-accent); }

.widget select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--shroom-line);
	border-radius: var(--shroom-radius-sm);
	background: var(--shroom-white);
}

.widget_tag_cloud a { display: inline-block; margin: 0 6px 6px 0; }

/* ---------------------------------------------------------------
   12. Forms
   --------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--shroom-line);
	border-radius: var(--shroom-radius-sm);
	background: var(--shroom-white);
	color: var(--shroom-ink);
	font-family: inherit;
	font-size: 0.98rem;
	line-height: 1.4;
}

input:focus,
textarea:focus,
select:focus {
	outline: 2px solid var(--shroom-tan);
	outline-offset: 1px;
}

label {
	display: block;
	margin-bottom: 7px;
	font-size: 0.88rem;
	font-weight: 600;
}

.search-form {
	display: flex;
	gap: 10px;
}

.search-form .search-field { flex: 1 1 auto; }

.search-form .search-submit { flex: none; }

/* ---------------------------------------------------------------
   13. Comments
   --------------------------------------------------------------- */
.comments-area {
	margin-top: 60px;
	padding-top: 42px;
	border-top: 1px solid var(--shroom-line);
}

.comments-title,
.comment-reply-title { font-size: 1.3rem; margin-bottom: 1.1em; }

.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-list .children { margin: 0; padding-left: 32px; list-style: none; }

.comment-body {
	position: relative;
	padding: 22px 24px;
	margin-bottom: 22px;
	background: var(--shroom-white);
	border: 1px solid var(--shroom-line);
	border-radius: var(--shroom-radius);
}

.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-meta img { border-radius: 50%; }
.comment-author { font-weight: 700; font-size: 0.95rem; }
.comment-metadata { font-size: 0.8rem; color: var(--shroom-muted); }
.comment-metadata a { color: var(--shroom-muted); text-decoration: none; }

.reply { margin-top: 12px; }
.comment-reply-link { font-size: 0.85rem; font-weight: 600; text-decoration: none; }

.comment-form { display: grid; gap: 18px; }
.comment-form label { margin-bottom: 6px; }
.comment-form .comment-form-comment,
.comment-form .form-submit { grid-column: 1 / -1; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form-cookies-consent input { width: auto; margin-top: 5px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }

.comment-notes,
.logged-in-as { font-size: 0.85rem; color: var(--shroom-muted); }

/* ---------------------------------------------------------------
   14. Footer
   --------------------------------------------------------------- */
.site-footer {
	flex: none;
	background: var(--shroom-ink);
	color: rgba(250, 246, 239, 0.78);
	font-size: 0.94rem;
}

.footer__widgets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 44px;
	padding-block: 66px 50px;
}

.site-footer .widget {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}

.site-footer .widget__title,
.site-footer .widget .widget-title { color: var(--shroom-white); }

.site-footer .widget li { border-bottom-color: rgba(250, 246, 239, 0.14); }
.site-footer a { color: rgba(250, 246, 239, 0.86); text-decoration: none; }
.site-footer a:hover { color: var(--shroom-tan); }

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding-block: 24px;
	border-top: 1px solid rgba(250, 246, 239, 0.14);
	font-size: 0.86rem;
}

.footer__menu ul { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }

.to-top {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	border: 1px solid rgba(250, 246, 239, 0.28);
	border-radius: 999px;
	background: transparent;
	color: rgba(250, 246, 239, 0.9);
	font-size: 0.82rem;
	text-decoration: none;
}

.to-top:hover { background: rgba(250, 246, 239, 0.12); color: var(--shroom-white); }

/* ---------------------------------------------------------------
   15. WooCommerce tweaks
   --------------------------------------------------------------- */
.woocommerce-page .site-content { padding-block: 46px 70px; }

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin: 0 0 20px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
	display: flex;
	flex-direction: column;
	background: var(--shroom-white);
	border: 1px solid var(--shroom-line);
	border-radius: var(--shroom-radius);
	overflow: hidden;
	padding: 0 0 20px;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	text-align: center;
}

.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shroom-shadow); }

.woocommerce ul.products li.product a img {
	margin: 0 0 16px;
	border-radius: 0;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0 20px;
	font-family: var(--shroom-font-heading);
	font-size: 1.1rem;
	color: var(--shroom-ink);
}

.woocommerce ul.products li.product .price {
	padding: 0 20px;
	color: var(--shroom-accent);
	font-weight: 700;
	font-size: 1.02rem;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	margin: 14px 20px 0;
	border-radius: 999px;
	font-size: 0.88rem;
}

.woocommerce ul.products li.product .star-rating { margin: 6px auto 8px; }

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	top: 14px;
	right: 14px;
	left: auto;
	min-height: 0;
	min-width: 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--shroom-green);
	color: var(--shroom-white);
	font-size: 0.76rem;
	font-weight: 700;
	line-height: 1.2;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { margin-bottom: 26px; }

.woocommerce .woocommerce-ordering select { width: auto; }

.woocommerce div.product .product_title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--shroom-accent);
	font-size: 1.6rem;
	font-weight: 700;
}

.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin-bottom: 26px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom-color: var(--shroom-line); }

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: var(--shroom-cream-2);
	border-color: var(--shroom-line);
	border-radius: var(--shroom-radius-sm) var(--shroom-radius-sm) 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--shroom-white); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--shroom-ink); font-weight: 600; }

.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #payment #place_order {
	border-radius: 999px;
	background: var(--shroom-accent);
	color: var(--shroom-white);
	font-weight: 600;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #payment #place_order:hover {
	background: var(--shroom-accent-dark);
	color: var(--shroom-white);
}

.woocommerce div.product form.cart div.quantity input.qty {
	height: 46px;
	border-radius: var(--shroom-radius-sm);
	border-color: var(--shroom-line);
}

.woocommerce .quantity .qty { width: 84px; }

.woocommerce-cart table.cart img { width: 76px; border-radius: var(--shroom-radius-sm); }
.woocommerce table.shop_table { border: 1px solid var(--shroom-line); border-radius: var(--shroom-radius); overflow: hidden; }
.woocommerce table.shop_table th { background: var(--shroom-cream-2); }
.woocommerce-cart .cart-collaterals .cart_totals { width: 100%; }
.woocommerce-cart .cart-collaterals .cart_totals h2 { font-size: 1.3rem; }

.woocommerce .cart-collaterals .cart_totals table,
.woocommerce-page .cart-collaterals .cart_totals table { border-radius: var(--shroom-radius); }

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce-checkout #payment {
	border: 1px solid var(--shroom-line);
	border-radius: var(--shroom-radius);
}

.woocommerce-checkout #payment { background: var(--shroom-cream-2); }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: var(--shroom-radius-sm);
	border-top-color: var(--shroom-green);
	background: var(--shroom-cream-2);
	color: var(--shroom-ink);
}

.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 8px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	border: 1px solid var(--shroom-line);
	border-radius: var(--shroom-radius-sm);
	background: var(--shroom-white);
	color: var(--shroom-ink);
	font-weight: 600;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--shroom-accent);
	border-color: var(--shroom-accent);
	color: var(--shroom-white);
}

.woocommerce .woocommerce-breadcrumb {
	margin-bottom: 22px;
	font-size: 0.86rem;
	color: var(--shroom-muted);
}

.woocommerce .woocommerce-breadcrumb a { color: var(--shroom-muted); text-decoration: none; }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--shroom-accent); }

.woocommerce .star-rating span::before,
.woocommerce .star-rating::before { color: var(--shroom-tan); }

/* ---------------------------------------------------------------
   16. Utilities
   --------------------------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	display: block;
	top: 10px;
	left: 10px;
	width: auto;
	height: auto;
	clip-path: none;
	padding: 14px 22px;
	border-radius: var(--shroom-radius-sm);
	background: var(--shroom-white);
	color: var(--shroom-ink);
	font-size: 0.9rem;
	font-weight: 600;
	z-index: 100000;
	box-shadow: var(--shroom-shadow-lg);
}

.skip-link { position: absolute; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------------------------------------------------------------
   17. Responsive
   --------------------------------------------------------------- */
@media (max-width: 1080px) {
	.layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 46px; }
	.widget-area { max-width: 520px; }
}

@media (max-width: 980px) {
	.menu-toggle { display: inline-flex; }

	.site-nav {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(340px, 88vw);
		margin: 0;
		padding: 92px 24px 40px;
		background: var(--shroom-white);
		box-shadow: -18px 0 48px rgba(43, 33, 24, 0.16);
		transform: translateX(105%);
		transition: transform 0.26s ease;
		overflow-y: auto;
		z-index: 70;
	}

	.site-nav.is-open { transform: translateX(0); }

	.site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.site-nav a { padding: 13px 14px; font-size: 1rem; }

	.site-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		padding: 0 0 0 14px;
		min-width: 0;
	}

	.nav-overlay {
		position: fixed;
		inset: 0;
		background: rgba(43, 33, 24, 0.45);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.24s ease, visibility 0.24s;
		z-index: 65;
	}

	.nav-overlay.is-visible { opacity: 1; visibility: visible; }

	body.nav-open { overflow: hidden; }

	.hero__inner,
	.split,
	.contact-card { grid-template-columns: minmax(0, 1fr); }

	.hero { padding-block: 62px 70px; }
	.hero__media { order: -1; max-width: 560px; }

	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }

	.footer__widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }

	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.contact-card__body,
	.contact-card__aside { padding: 38px 32px; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }

	.site-content { padding-block: 40px; }
	.section { padding-block: 54px; }
	.section__head { margin-bottom: 34px; }

	.grid--2,
	.grid--3,
	.grid--4,
	.post-grid,
	.footer__widgets { grid-template-columns: minmax(0, 1fr); }

	.hero__media { aspect-ratio: 4 / 3; }
	.hero__badges { gap: 10px 18px; }

	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.footer__bottom { flex-direction: column; align-items: flex-start; }

	.comment-list .children { padding-left: 16px; }

	.post-navigation a { max-width: 100%; }

	.alignwide,
	.alignfull { margin-inline: 0; max-width: 100%; width: 100%; }

	.woocommerce ul.products { grid-template-columns: minmax(0, 1fr); }
	.woocommerce .woocommerce-result-count { float: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
