/*
Theme Name: Stallhaus
Theme URI: https://stallhaus.de
Author: Stallhaus
Description: Block-Theme für den Stallhaus-Shop: handgeschnitzte und geflammte Unikate aus Holz. Optimiert für WooCommerce.
Version: 1.1.21
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stallhaus
Tags: block-theme, e-commerce, full-site-editing, one-column, wide-blocks
*/

/* ---------- Grundlagen ---------- */
body {
	-webkit-font-smoothing: antialiased;
}

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

:where(.wp-site-blocks) > main {
	margin-block-start: 0;
}

/* ---------- Kopfbereich ---------- */
.sh-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.sh-header .wp-block-site-title {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 0.32em;
	text-transform: uppercase;
}

.sh-header .wp-block-site-title a {
	text-decoration: none;
	color: var(--wp--preset--color--charcoal);
}

.sh-header .wp-block-navigation {
	font-size: 14px;
	font-weight: 500;
}

.sh-header .wp-block-navigation a {
	text-decoration: none;
}

/* Links: dezentes Feedback durch etwas mehr Laufweite */
.sh-header .wp-block-navigation a,
.sh-footer a,
.sh-cat-name a,
p a {
	transition: letter-spacing 0.2s ease;
}

.sh-header .wp-block-navigation a:hover,
.sh-footer a:hover,
.sh-cat-name a:hover,
p a:hover {
	letter-spacing: 0.065em;
}

/* Platz für die breitere Hover-Schrift reservieren, damit nichts nachrückt */
.sh-header .wp-block-navigation-item__label {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	transition: letter-spacing 0.2s ease;
}

.sh-header .wp-block-navigation-item__label::after {
	content: attr(data-text);
	letter-spacing: 0.065em;
	height: 0;
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
}

.sh-header .wp-block-navigation a:hover .wp-block-navigation-item__label {
	letter-spacing: 0.065em;
}

.sh-header .wp-block-navigation .current-menu-item > a {
	text-decoration: underline;
	text-underline-offset: 6px;
}

/* ---------- Kleine Typo-Bausteine ---------- */
.sh-eyebrow {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--oak);
}

.sh-muted {
	color: var(--wp--preset--color--muted);
}

.sh-lead {
	font-size: 18px;
	line-height: 1.6;
	color: var(--wp--preset--color--muted);
	max-width: 460px;
}

h1.sh-display {
	font-size: clamp(44px, 6vw, 72px);
	line-height: 1.12;
	font-weight: 300;
	letter-spacing: 0.02em;
	margin: 0;
}

/* ---------- Abschnitte ---------- */
.sh-section {
	padding: 100px 32px;
}

.sh-section--tight {
	padding-top: 0;
}

.sh-split.wp-block-columns {
	gap: 64px;
	align-items: center;
}

.sh-cover img {
	display: block;
	width: 100%;
	object-fit: cover;
}

.sh-hero {
	padding: 72px 32px 100px;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.sh-hero + .sh-section--tight {
	padding-top: 100px;
}

.sh-hero .sh-cover img {
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: contain;
}

.sh-hero .wp-block-column > * + * {
	margin-block-start: 28px;
}

/* Kategorien */
.sh-cats.wp-block-columns {
	gap: 24px;
}

.sh-cats .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: cover;
}

.sh-cat-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin-top: 18px;
}

.sh-cat-name {
	font-size: 19px;
	font-weight: 500;
	margin: 0;
}

.sh-cat-name a {
	text-decoration: none;
	color: inherit;
}

.sh-cat-woods {
	margin: 0;
	font-size: 14px;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
}

.sh-cat-amount {
	font-size: 18px;
}

.sh-cat-price {
	font-size: 15px;
	color: var(--wp--preset--color--muted);
	white-space: nowrap;
	margin: 0;
}

/* Abschnitt „Durchs Feuer gegangen“ (hell, freigestelltes Bild links) */
.sh-flamed {
	border-top: 1px solid var(--wp--preset--color--line);
}

.sh-flamed h2 {
	font-size: clamp(34px, 4vw, 48px);
	line-height: 1.12;
}

.sh-flamed p {
	color: var(--wp--preset--color--muted);
}

.sh-flamed .sh-cover img {
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: contain;
}

.sh-flamed .wp-block-column > * + * {
	margin-block-start: 28px;
}

.sh-flamed .sh-facts.wp-block-columns {
	border-top-color: var(--wp--preset--color--line);
}

.sh-flamed .sh-facts h3 {
	color: var(--wp--preset--color--charcoal);
}

/* Dunkler Abschnitt (optional) */
.sh-dark {
	background: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--ash);
}

.sh-dark h2 {
	color: var(--wp--preset--color--ash);
	font-size: clamp(34px, 4vw, 48px);
	line-height: 1.1;
}

.sh-dark .sh-eyebrow {
	color: var(--wp--preset--color--oak-light);
}

.sh-dark p {
	color: var(--wp--preset--color--ash-muted);
}

.sh-dark .sh-cover img {
	height: 520px;
}

.sh-dark .wp-block-column > * + * {
	margin-block-start: 28px;
}

.sh-facts.wp-block-columns {
	gap: 28px;
	border-top: 1px solid #3a3833;
	padding-top: 20px;
}

.sh-facts h3 {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--wp--preset--color--ash);
}

.sh-facts p {
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}

/* Werkstatt */
.sh-workshop {
	border-top: 1px solid var(--wp--preset--color--line);
}

.sh-workshop .sh-cover img {
	aspect-ratio: 3 / 2;
	height: auto;
	object-fit: cover;
}

.sh-workshop h2 {
	font-size: clamp(34px, 4vw, 48px);
	line-height: 1.12;
}

.sh-workshop .wp-block-column > * + * {
	margin-block-start: 24px;
}

.sh-section-intro {
	max-width: 600px;
	gap: 20px;
}

.sh-section-intro h2 {
	font-size: clamp(34px, 4vw, 48px);
	line-height: 1.12;
}

.sh-section-intro p {
	margin: 0;
	line-height: 1.7;
}

/* ---------- Produktraster ---------- */
.wp-block-woocommerce-product-template {
	gap: 40px 24px !important;
}

.wc-block-components-product-image,
.wp-block-woocommerce-product-image {
	position: relative;
	margin-bottom: 14px !important;
}

.wp-block-woocommerce-product-template .wc-block-components-product-image img,
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-image img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: #fff;
	width: 100%;
}

.wp-block-woocommerce-product-template .wp-block-post-title {
	font-size: 18px !important;
	font-weight: 500;
	margin: 0 0 4px !important;
}

.wp-block-woocommerce-product-template .wp-block-post-title a {
	text-decoration: none;
	color: inherit;
}

.wp-block-woocommerce-product-template .wc-block-components-product-price,
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-price {
	font-size: 16px !important;
	text-align: left !important;
}

/* Verkauft-Markierung (wird in functions.php gesetzt) */
.sh-sold-badge {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	background: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--paper);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 6px 10px;
}

.sh-is-sold img {
	opacity: 0.55;
}

/* Kategorie-Chips */
.sh-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}

.sh-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid var(--wp--preset--color--charcoal);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	color: var(--wp--preset--color--charcoal);
}

.sh-chips a:hover,
.sh-chips a[aria-current="page"] {
	background: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--paper);
}

.sh-archive-head {
	padding: 64px 32px 32px;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.sh-archive-head .wp-block-query-title {
	font-size: clamp(38px, 5vw, 56px);
	font-weight: 300;
	letter-spacing: 0.02em;
	line-height: 1.05;
}

.sh-archive-head .wp-block-term-description {
	max-width: 620px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--wp--preset--color--muted);
}

/* ---------- Produktseite ---------- */
.sh-product {
	padding: 28px 32px 104px;
}

.sh-product-cols.wp-block-columns {
	gap: 64px;
	margin-top: 32px;
}

.sh-product .wp-block-post-title {
	font-size: clamp(26px, 2.6vw, 32px);
	font-weight: 300;
	line-height: 1.2;
}

.sh-product .wp-block-woocommerce-product-price {
	font-size: 26px;
	font-weight: 500;
}

.sh-product .wp-block-post-excerpt {
	font-size: 16px;
	line-height: 1.7;
	color: var(--wp--preset--color--muted);
}

/* Produktgalerie: quadratisch, das ganze Stück bleibt sichtbar */
.sh-product .woocommerce-product-gallery img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: #fff;
	width: 100%;
}

.sh-product .wp-block-woocommerce-product-details {
	margin-top: 64px;
}

.sh-product .stock.out-of-stock {
	font-weight: 600;
	color: var(--wp--preset--color--charcoal);
}

.sh-related {
	margin-top: 72px;
	padding-top: 72px;
	border-top: 1px solid var(--wp--preset--color--line);
}

/* Warenkorb-Knopf und WooCommerce-Buttons */
.single_add_to_cart_button,
.wc-block-components-button:not(.is-link),
.wp-block-woocommerce-add-to-cart-form .button {
	background: var(--wp--preset--color--charcoal) !important;
	color: var(--wp--preset--color--paper) !important;
	border-radius: 0 !important;
	min-height: 56px;
	padding: 0 32px !important;
	font-weight: 600 !important;
	font-size: 16px !important;
	border: 0 !important;
}

.single_add_to_cart_button:hover,
.wc-block-components-button:not(.is-link):hover {
	background: #3A3732 !important;
}

/* Sanfter Farbwechsel bei allen Buttons */
.wp-element-button,
.wp-block-button__link,
.single_add_to_cart_button,
.wc-block-components-button,
.sh-chips a {
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #E9E5DE !important;
	color: var(--wp--preset--color--charcoal) !important;
}

/* ---------- Fußbereich ---------- */
.sh-footer {
	background: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--ash-muted);
	padding: 64px 32px 32px;
}

.sh-footer a {
	color: var(--wp--preset--color--ash-muted);
	text-decoration: none;
}



.sh-footer-brand {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.32em;
	color: var(--wp--preset--color--ash);
	margin: 0;
}

.sh-footer-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 48px;
	font-size: 14px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.sh-footer-bottom {
	border-top: 1px solid #3a3833;
	padding-top: 20px;
	margin-top: 48px;
	font-size: 13px;
}

/* ---------- Handy ---------- */
@media (max-width: 781px) {
	.sh-section,
	.sh-hero,
	.sh-product,
	.sh-archive-head,
	.sh-footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.sh-section {
		padding-top: 72px;
		padding-bottom: 72px;
	}

	.sh-dark .sh-cover img,
	.sh-workshop .sh-cover img {
		height: 340px;
	}

	.sh-split.wp-block-columns,
	.sh-product-cols.wp-block-columns {
		gap: 40px;
	}
}

/* Fußbereich: Linkfarbe beim Überfahren beibehalten */
.sh-footer a:hover {
	color: var(--wp--preset--color--ash-muted) !important;
}

/* Fußbereich immer am unteren Bildschirmrand, auch auf kurzen Seiten (Warenkorb, Kasse) */
.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > footer {
	margin-top: auto;
}

/* =========================================================
   Version 1.1
   ========================================================= */

/* Textlinks neben Knöpfen (nur Shop-Aktionen sind Knöpfe) */
.sh-actions {
	gap: 16px 32px;
}

.sh-textlink {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}

.sh-textlink a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}

/* ---------- Galerie „Alle Unikate“ ---------- */
.sh-archive-title {
	font-size: clamp(38px, 5vw, 56px);
	font-weight: 300;
	line-height: 1.05;
	margin: 0;
}

.sh-archive-intro {
	max-width: 620px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--wp--preset--color--muted);
}

.sh-gallery .wp-block-woocommerce-product-template {
	gap: 48px 24px !important;
}

.sh-size {
	margin: 0;
	font-size: 14px;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
}

.wp-block-woocommerce-product-template .wp-block-post-title a:hover {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}

/* ---------- Werkstatt-Seite ---------- */
.sh-ws-intro {
	padding: 72px 32px 88px;
}

.sh-ws-intro > * + * {
	margin-block-start: 24px;
}

.sh-ws-lead {
	max-width: 720px;
	font-size: 19px;
	line-height: 1.8;
}

.sh-ws-wide {
	margin: 0 auto;
	max-width: 1440px;
}

.sh-ws-wide img,
.sh-ws-img32 img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	height: auto;
	object-fit: cover;
}

.sh-ws-img45 img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	height: auto;
	object-fit: cover;
}

.sh-ws-bio {
	padding: 104px 32px;
}

.sh-ws-bio-cols.wp-block-columns {
	gap: 32px;
	align-items: flex-start;
}

.sh-ws-bio .sh-ws-name {
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
	margin: 0;
}

.sh-ws-role {
	margin: 6px 0 32px;
	font-size: 15px;
	color: var(--wp--preset--color--muted);
}

.sh-ws-bio p.sh-muted {
	font-size: 17px;
	line-height: 1.8;
	margin: 0 0 20px;
}

.sh-ws-steps {
	padding: 104px 32px;
	border-top: 1px solid var(--wp--preset--color--line);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.sh-ws-steps > h2 {
	font-size: clamp(32px, 4vw, 44px);
	margin: 16px 0 56px;
}

.sh-ws-step-cols.wp-block-columns {
	gap: 32px;
}

.sh-ws-num {
	margin: 18px 0 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	color: var(--wp--preset--color--oak);
}

.sh-ws-steps h3 {
	margin: 10px 0 0;
	font-size: 22px;
}

.sh-ws-small {
	font-size: 15px;
	line-height: 1.7;
	margin-top: 10px;
}

.sh-ws-gallery {
	padding: 104px 32px;
}

.sh-ws-gallery-cols.wp-block-columns {
	gap: 24px;
	margin-top: 24px;
}

.sh-ws-cta {
	padding: 88px 32px 104px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.sh-ws-cta h2 {
	font-size: clamp(28px, 3vw, 36px);
	margin: 0;
}

/* ---------- Warenkorb & Kasse (WooCommerce-Blöcke) ---------- */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	padding-top: 64px;
	padding-bottom: 104px;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea {
	border-radius: 0 !important;
	border-color: #C9C3B8 !important;
	background: #fff !important;
}

.wc-block-components-text-input input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--wp--preset--color--charcoal) !important;
	box-shadow: 0 0 0 1px var(--wp--preset--color--charcoal) !important;
}

.wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option,
.wc-block-checkout__shipping-option .wc-block-components-radio-control__option {
	border-radius: 0 !important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	background: var(--wp--preset--color--charcoal);
	border-color: var(--wp--preset--color--charcoal);
}

.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-components-totals-wrapper,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-cart__totals-title {
	border-color: var(--wp--preset--color--line) !important;
}

.wp-block-woocommerce-cart-order-summary-block,
.wp-block-woocommerce-checkout-order-summary-block {
	background: #fff;
	padding: 24px;
}

.wc-block-components-product-name {
	font-weight: 500;
	text-decoration: none;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: 20px;
	font-weight: 600;
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	width: 100%;
}

/* ---------- Handy: Kopfzeile, Burger-Menü, Raster ---------- */
.sh-nav .wp-block-navigation__responsive-container-open svg,
.sh-nav .wp-block-navigation__responsive-container-close svg {
	width: 24px;
	height: 24px;
}

@media (max-width: 599px) {
	/* Kopfzeile bleibt oben stehen */
	header.wp-block-template-part {
		position: sticky;
		top: 0;
		z-index: 30;
		background: var(--wp--preset--color--paper);
	}

	.sh-header > .wp-block-group {
		padding: 14px 20px !important;
		flex-wrap: nowrap !important;
		gap: 4px !important;
	}

	.sh-header .wp-block-site-title {
		font-size: 18px;
		margin-right: auto;
	}

	/* Reihenfolge: Logo · Warenkorb · Menü */
	.sh-header .wp-block-woocommerce-mini-cart {
		order: 2;
	}

	.sh-header .sh-nav {
		order: 3;
	}

	.sh-nav .wp-block-navigation__responsive-container-open {
		width: 44px;
		height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-right: -10px;
	}

	/* Geöffnetes Menü: hell, große Punkte untereinander */
	.sh-nav .wp-block-navigation__responsive-container.is-menu-open {
		background: var(--wp--preset--color--paper) !important;
		color: var(--wp--preset--color--charcoal) !important;
		padding: 18px 20px 40px !important;
	}

	.sh-nav .is-menu-open .wp-block-navigation__responsive-container-content {
		padding-top: 56px !important;
		align-items: stretch !important;
	}

	.sh-nav .is-menu-open .wp-block-navigation__container {
		gap: 0 !important;
		align-items: stretch !important;
		width: 100%;
	}

	.sh-nav .is-menu-open .wp-block-navigation-item {
		border-bottom: 1px solid var(--wp--preset--color--line);
		width: 100%;
	}

	.sh-nav .is-menu-open .wp-block-navigation-item__content {
		display: block;
		padding: 20px 0 !important;
		font-size: 26px;
		font-weight: 300;
		letter-spacing: 0.02em;
	}

	.sh-nav .is-menu-open .wp-block-navigation-item__label::after {
		display: none;
	}

	/* Abstände */
	.sh-hero {
		padding-top: 40px;
		padding-bottom: 64px;
	}

	.sh-section,
	.sh-ws-bio,
	.sh-ws-steps,
	.sh-ws-gallery {
		padding: 64px 20px;
	}

	.sh-ws-intro {
		padding: 40px 20px 48px;
	}

	.sh-ws-cta {
		padding: 56px 20px 64px;
	}

	h1.sh-display {
		font-size: 40px;
	}

	.sh-section-intro h2,
	.sh-flamed h2,
	.sh-workshop h2 {
		font-size: 32px;
	}

	/* Kategorien: wischbare Reihe, die nächste Kachel schaut an */
	.sh-cats.wp-block-columns {
		flex-wrap: nowrap !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 14px;
		margin-right: -20px;
		padding-right: 20px;
		scrollbar-width: none;
	}

	.sh-cats.wp-block-columns::-webkit-scrollbar {
		display: none;
	}

	.sh-cats > .wp-block-column {
		flex: 0 0 74% !important;
		scroll-snap-align: start;
	}

	.sh-cat-name {
		font-size: 17px;
	}

	/* Vorteile unter „Durchs Feuer gegangen“ untereinander */
	.sh-facts.wp-block-columns {
		flex-direction: column;
		gap: 0;
	}

	/* Produktraster: zwei Spalten */
	.wp-block-woocommerce-product-template.is-flex-container {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 32px 12px !important;
	}

	.wp-block-woocommerce-product-template.is-flex-container > li {
		width: auto !important;
		margin: 0 !important;
	}

	.wp-block-woocommerce-product-template .wp-block-post-title {
		font-size: 14px !important;
	}

	.wp-block-woocommerce-product-template .wp-block-woocommerce-product-price {
		font-size: 14px !important;
	}

	.sh-size {
		font-size: 12px;
	}

	/* Werkstatt: alles untereinander */
	.sh-ws-bio-cols.wp-block-columns,
	.sh-ws-step-cols.wp-block-columns,
	.sh-ws-gallery-cols.wp-block-columns {
		gap: 28px;
	}

	.sh-ws-bio .sh-ws-name {
		font-size: 22px;
	}

	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout {
		padding-top: 32px;
		padding-bottom: 64px;
	}
}

/* =========================================================
   Version 1.1.1 – einheitliche linke Kante, Werkstatt-Seite
   ========================================================= */
.wp-site-blocks {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

@media (min-width: 600px) {
	/* Alle Inhalte beginnen an derselben Kante: 1280 px breit, 32 px Innenabstand */
	.sh-header > .wp-block-group,
	.sh-hero,
	.sh-section,
	.sh-archive-head,
	.sh-product,
	.sh-ws-intro,
	.sh-ws-bio,
	.sh-ws-steps,
	.sh-ws-gallery,
	.sh-ws-cta {
		padding-left: max(32px, calc((100% - 1216px) / 2)) !important;
		padding-right: max(32px, calc((100% - 1216px) / 2)) !important;
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		box-sizing: border-box;
	}

	.sh-header > .wp-block-group > *,
	.sh-ws-intro > *,
	.sh-ws-bio > *,
	.sh-ws-steps > *,
	.sh-ws-gallery > *,
	.sh-ws-cta > * {
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

/* Einleitung: links bündig, Zeilen höchstens 720 px lang */
.sh-ws-intro > .sh-ws-lead {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-right: max(0px, calc(100% - 720px));
}

/* Großes Werkstattfoto: mittig, höchstens 1440 px */
main .sh-ws-wide.wp-block-image {
	display: block;
	width: 100%;
	max-width: 1440px !important;
	margin: 0 auto !important;
}

/* 1.1.2: aktueller Menüpunkt unterstrichen; Werkstatt-Einleitung links bündig */
.sh-header .wp-block-navigation .current-menu-item > a,
.sh-header .wp-block-navigation a[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}

.sh-ws-intro .sh-ws-lead {
	max-width: 720px !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.sh-ws-intro > *,
.sh-ws-bio > *,
.sh-ws-steps > *,
.sh-ws-gallery > *,
.sh-ws-cta > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* =========================================================
   1.1.3
   ========================================================= */

/* Aktueller Menüpunkt unterstrichen – auch wenn WordPress ihn nicht erkennt */
.sh-page-werkstatt .sh-header .wp-block-navigation a[href*="werkstatt"],
.term-loeffel-salatbesteck .sh-header .wp-block-navigation a[href*="loeffel-salatbesteck"],
.term-schalen-schuesseln .sh-header .wp-block-navigation a[href*="schalen-schuesseln"],
.term-schneidebretter .sh-header .wp-block-navigation a[href*="schneidebretter"] {
	text-decoration: underline !important;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}

/* Werkstatt: Schriftgrößen wie im Entwurf */
.sh-ws-intro p.sh-ws-lead {
	font-size: 19px !important;
	line-height: 1.8 !important;
}

.sh-ws-bio p.sh-muted {
	font-size: 17px !important;
	line-height: 1.8 !important;
}

/* Werkstatt: großes Einstiegsbild so breit wie der Inhalt darunter */
main .sh-ws-wide.wp-block-image {
	max-width: none !important;
	margin: 0 !important;
	padding-left: max(32px, calc((100% - 1216px) / 2));
	padding-right: max(32px, calc((100% - 1216px) / 2));
	box-sizing: border-box;
}

@media (max-width: 599px) {
	main .sh-ws-wide.wp-block-image {
		padding-left: 0;
		padding-right: 0;
	}

	.sh-ws-intro p.sh-ws-lead {
		font-size: 17px !important;
	}
}

/* Bio: Text und Bild füllen gemeinsam die Inhaltsbreite */
.sh-ws-bio-cols.wp-block-columns {
	gap: 48px;
}

/* 1.1.4: Menü-Schrift fest auf Entwurfsgröße (14 px, Medium) */
.sh-header .wp-block-navigation,
.sh-header .wp-block-navigation .wp-block-navigation-item__content,
.sh-header .wp-block-navigation .wp-block-navigation-item__label {
	font-size: 14px !important;
	font-weight: 500 !important;
	letter-spacing: 0.025em;
	line-height: 1.6;
}

.sh-header .wp-block-site-title,
.sh-header .wp-block-site-title a {
	font-size: 22px !important;
	font-weight: 800 !important;
	letter-spacing: 0.32em !important;
}

@media (max-width: 599px) {
	.sh-header .wp-block-site-title,
	.sh-header .wp-block-site-title a {
		font-size: 18px !important;
	}

	.sh-nav .is-menu-open .wp-block-navigation-item__content,
	.sh-nav .is-menu-open .wp-block-navigation-item__label {
		font-size: 26px !important;
		font-weight: 300 !important;
	}
}

/* 1.1.5: Unterstreichung am Text selbst (die Beschriftung ist ein eigener
   Inline-Block, darauf wirkt die Unterstreichung des Links nicht) */
.sh-header .wp-block-navigation .current-menu-item .wp-block-navigation-item__label,
.sh-header .wp-block-navigation a[aria-current="page"] .wp-block-navigation-item__label,
.sh-page-werkstatt .sh-header .wp-block-navigation a[href*="werkstatt"] .wp-block-navigation-item__label,
.term-loeffel-salatbesteck .sh-header .wp-block-navigation a[href*="loeffel-salatbesteck"] .wp-block-navigation-item__label,
.term-schalen-schuesseln .sh-header .wp-block-navigation a[href*="schalen-schuesseln"] .wp-block-navigation-item__label,
.term-schneidebretter .sh-header .wp-block-navigation a[href*="schneidebretter"] .wp-block-navigation-item__label {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}

/* 1.1.6: Menü 15 px */
.sh-header .wp-block-navigation,
.sh-header .wp-block-navigation .wp-block-navigation-item__content,
.sh-header .wp-block-navigation .wp-block-navigation-item__label {
	font-size: 15px !important;
}

/* 1.1.7: mehr Abstand zwischen den Menüpunkten */
@media (min-width: 600px) {
	.sh-header .wp-block-navigation .wp-block-navigation__container {
		gap: 40px !important;
	}
}

/* =========================================================
   1.1.8 – Alle Unikate
   ========================================================= */

/* Kopf: Einleitung links bündig, Abstand zu den Filtern */
.sh-archive-head > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
}

.sh-archive-head > .sh-archive-intro,
.sh-archive-head > .wp-block-term-description {
	max-width: 620px !important;
	margin-top: 20px !important;
	margin-bottom: 0 !important;
}

.sh-archive-head > .sh-chips {
	margin-top: 32px !important;
}

/* Raster: fest 4 nebeneinander (Handy 2) */
@media (min-width: 600px) {
	.sh-gallery .wp-block-woocommerce-product-template,
	.sh-gallery .wc-block-product-template {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 48px 24px !important;
	}

	.sh-gallery .wp-block-woocommerce-product-template > li,
	.sh-gallery .wc-block-product-template > li {
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
	}
}

@media (min-width: 600px) and (max-width: 1023px) {
	.sh-gallery .wp-block-woocommerce-product-template,
	.sh-gallery .wc-block-product-template {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

.sh-gallery .wp-block-post-title {
	margin-top: 14px !important;
}

/* 1.1.10: Abstand Brotkrumen → Überschrift wie im Entwurf */
.sh-archive-head > .wp-block-woocommerce-breadcrumbs,
.sh-product > .wp-block-woocommerce-breadcrumbs {
	margin-bottom: 24px !important;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.sh-archive-head > .wp-block-woocommerce-breadcrumbs a,
.sh-product > .wp-block-woocommerce-breadcrumbs a {
	color: var(--wp--preset--color--muted);
}

.sh-archive-head > .sh-archive-title,
.sh-archive-head > .wp-block-query-title {
	margin-top: 0 !important;
}

/* 1.1.11: Produktraster überall mit fester Spaltenzahl (Startseite 4, Kategorien 3) */
@media (min-width: 600px) {
	.wp-block-woocommerce-product-template.columns-4,
	.wc-block-product-template.columns-4 {
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 40px 24px !important;
	}

	.wp-block-woocommerce-product-template.columns-3,
	.wc-block-product-template.columns-3 {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 40px 24px !important;
	}

	.wp-block-woocommerce-product-template.columns-4 > li,
	.wp-block-woocommerce-product-template.columns-3 > li,
	.wc-block-product-template.columns-4 > li,
	.wc-block-product-template.columns-3 > li {
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
	}
}

@media (min-width: 600px) and (max-width: 1023px) {
	.wp-block-woocommerce-product-template.columns-4,
	.wc-block-product-template.columns-4 {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

/* =========================================================
   1.1.12 – Pflichtangaben (Germanized) dezent, aktiver Filter
   ========================================================= */
.wp-block-woocommerce-product-template .wc-gzd-additional-info,
.wp-block-woocommerce-product-template .wc-gzd-additional-info p,
.wc-block-product-template .wc-gzd-additional-info,
.wp-block-woocommerce-product-template [class*="wc-gzd"],
.wc-block-product-template [class*="wc-gzd"] {
	font-size: 12px !important;
	line-height: 1.5 !important;
	color: var(--wp--preset--color--muted) !important;
	margin: 2px 0 0 !important;
	letter-spacing: 0.02em;
}

.wp-block-woocommerce-product-template [class*="wc-gzd"] a,
.wc-block-product-template [class*="wc-gzd"] a {
	color: var(--wp--preset--color--muted) !important;
}

/* Produktseite: Hinweise unter dem Preis */
.sh-product .wc-gzd-additional-info,
.sh-product [class*="wc-gzd"]:not(.wc-gzd-additional-info-placeholder) {
	font-size: 13px !important;
	line-height: 1.5 !important;
	color: var(--wp--preset--color--muted) !important;
	margin: 4px 0 0 !important;
}

.sh-product [class*="wc-gzd"] a {
	color: var(--wp--preset--color--muted) !important;
}

/* Aktiver Filter-Knopf auf den Kategorieseiten */
.term-loeffel-salatbesteck .sh-chips a[href*="loeffel-salatbesteck"],
.term-schalen-schuesseln .sh-chips a[href*="schalen-schuesseln"],
.term-schneidebretter .sh-chips a[href*="schneidebretter"] {
	background: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--paper);
}

/* =========================================================
   1.1.13 – Produktseite wie im Entwurf
   ========================================================= */
.sh-product-cols.wp-block-columns {
	align-items: flex-start;
}

/* Galerie: volle Spaltenbreite, Vorschaubilder kräftig, 6 nebeneinander */
.sh-product .woocommerce-product-gallery,
.sh-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

.sh-product .woocommerce-product-gallery .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	margin: 12px 0 0 !important;
	padding: 0 !important;
	list-style: none;
}

.sh-product .woocommerce-product-gallery .flex-control-thumbs li {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}

.sh-product .woocommerce-product-gallery .flex-control-thumbs img {
	opacity: 1 !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: #fff;
	border: 2px solid transparent;
	box-sizing: border-box;
	cursor: pointer;
}

.sh-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	border-color: var(--wp--preset--color--charcoal);
}

.sh-product .woocommerce-product-gallery__trigger {
	top: 16px !important;
	right: 16px !important;
}

/* Rechte Spalte */
.sh-product-info > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.sh-product-info > * + * {
	margin-top: 28px !important;
}

.sh-product-info > .sh-eyebrow + .wp-block-post-title {
	margin-top: 12px !important;
}

.sh-product-info .wp-block-post-title + .sh-price-block {
	margin-top: 12px !important;
}

.sh-price-block {
	gap: 4px !important;
}

.sh-price-block .wp-block-woocommerce-product-price,
.sh-price-block .wc-block-components-product-price {
	font-size: 26px !important;
	font-weight: 500 !important;
}

.sh-price-notes,
.sh-price-notes p,
.sh-price-notes * {
	font-size: 13px !important;
	line-height: 1.5 !important;
	color: var(--wp--preset--color--muted) !important;
	margin: 0 !important;
}

.sh-price-notes a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sh-product-description,
.sh-product-description p {
	font-size: 16px;
	line-height: 1.7;
	color: var(--wp--preset--color--muted);
}

.sh-product-description p {
	margin: 0 0 12px;
}

.sh-product-description strong {
	color: var(--wp--preset--color--charcoal);
	font-weight: 600;
}

/* Warenkorb-Knopf: volle Breite, kein Versatz, kein „1 vorrätig“ */
.sh-product .wp-block-woocommerce-add-to-cart-form,
.sh-product form.cart {
	margin: 0 !important;
	padding: 0 !important;
}

.sh-product form.cart {
	display: block !important;
}

.sh-product form.cart .quantity {
	display: none !important;
}

.sh-product .single_add_to_cart_button {
	width: 100% !important;
	min-height: 56px;
	margin: 0 !important;
}

.sh-product .stock.in-stock {
	display: none !important;
}

.sh-product .sh-muted[style*="font-size:14px"] {
	margin: 0 0 12px !important;
	padding: 0 !important;
}

/* Eigenschaften als Liste mit feinen Linien */
.sh-specs {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	margin: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: 15px;
}

.sh-specs dt,
.sh-specs dd {
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.sh-specs dt {
	color: var(--wp--preset--color--muted);
}

@media (max-width: 599px) {
	.sh-product .woocommerce-product-gallery .flex-control-thumbs {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
	}

	.sh-specs {
		grid-template-columns: 110px minmax(0, 1fr);
	}
}

/* 1.1.14: Produktbild breiter (wie Entwurf: Bild füllt den Großteil, Infos ~400 px) */
@media (min-width: 782px) {
	.sh-product-cols.wp-block-columns {
		flex-wrap: nowrap !important;
		gap: 64px !important;
	}

	.sh-product-cols > .wp-block-column:first-child {
		flex: 1 1 0 !important;
		min-width: 0;
	}

	.sh-product-cols > .wp-block-column.sh-product-info {
		flex: 0 0 400px !important;
	}
}

.sh-product .wp-block-woocommerce-product-image-gallery,
.sh-product .wp-block-woocommerce-product-image-gallery > .woocommerce-product-gallery,
.sh-product .woocommerce-product-gallery {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
}

.sh-product .woocommerce-product-gallery__image img,
.sh-product .woocommerce-product-gallery__image a img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Abstand zwischen Beschreibung und „Nur 1 Stück vorhanden“ */
.sh-product-info > .wp-block-woocommerce-add-to-cart-form {
	margin-top: 28px !important;
}

/* =========================================================
   1.1.15 – Sternchen am Preis + Sammel-Hinweis statt Einzelhinweisen
   ========================================================= */
.wp-block-woocommerce-product-template [class*="wc-gzd"],
.wc-block-product-template [class*="wc-gzd"] {
	display: none !important;
}

.wp-block-woocommerce-product-template .wc-block-components-product-price::after,
.wc-block-product-template .wc-block-components-product-price::after {
	content: "*";
	margin-left: 1px;
	color: var(--wp--preset--color--muted);
}

.sh-price-footnote {
	margin: 48px 0 0 !important;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

.sh-price-footnote a {
	color: var(--wp--preset--color--muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* 1.1.16: Vorschaubilder größer – 4 nebeneinander */
.sh-product .woocommerce-product-gallery .flex-control-thumbs {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 16px !important;
	margin-top: 16px !important;
}

/* 1.1.17: Bildwechsel per Vorschaubild repariert, keine Lupe */
.sh-product .woocommerce-product-gallery__trigger {
	display: none !important;
}

/* 1.1.18: Sternchen und Hinweis sehr dezent */
.wp-block-woocommerce-product-template .wc-block-components-product-price::after,
.wc-block-product-template .wc-block-components-product-price::after {
	font-size: 11px;
	vertical-align: top;
	margin-left: -2px;
}

.sh-price-footnote {
	margin: 40px 0 0 !important;
	font-size: 11px !important;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

/* 1.1.19: Kleine Überschrift „Kategorien“ */
h2.sh-cats-label,
.sh-section h2.sh-cats-label {
	margin: 0 0 32px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* =========================================================
   1.1.20 – Lupe + Vollbild-Ansicht mit echter Vergrößerung
   ========================================================= */
.sh-product .woocommerce-product-gallery {
	position: relative;
}

.sh-product .woocommerce-product-gallery__image a {
	cursor: zoom-in;
}

.sh-loupe {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 5;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(246, 245, 242, 0.92);
	color: var(--wp--preset--color--charcoal);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.sh-loupe:hover {
	background: #E9E5DE;
}

html.sh-zoom-open,
html.sh-zoom-open body {
	overflow: hidden;
}

.sh-zoom {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: var(--wp--preset--color--paper);
}

.sh-zoom[hidden] {
	display: none;
}

.sh-zoom__stage {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 72px 88px;
	box-sizing: border-box;
	overflow: hidden;
}

.sh-zoom__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	cursor: zoom-in;
	transition: transform 0.25s ease;
	user-select: none;
	-webkit-user-select: none;
}

.sh-zoom.is-zoomed .sh-zoom__img {
	cursor: zoom-out;
	transition: transform 0.25s ease, transform-origin 0s;
}

.sh-zoom__close,
.sh-zoom__nav {
	position: absolute;
	z-index: 2;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--charcoal);
	cursor: pointer;
}

.sh-zoom__close {
	top: 16px;
	right: 16px;
}

.sh-zoom__prev {
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.sh-zoom__next {
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.sh-zoom__nav[hidden] {
	display: none;
}

.sh-zoom__close:hover,
.sh-zoom__nav:hover {
	background: #E9E5DE;
}

.sh-zoom__count,
.sh-zoom__hint {
	position: absolute;
	z-index: 2;
	margin: 0;
	font-size: 13px;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--muted);
}

.sh-zoom__count {
	top: 28px;
	left: 32px;
}

.sh-zoom__hint {
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
}

.sh-zoom.is-zoomed .sh-zoom__hint,
.sh-zoom.is-zoomed .sh-zoom__nav {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 599px) {
	.sh-zoom__stage {
		padding: 64px 0;
	}

	.sh-zoom__prev,
	.sh-zoom__next {
		top: auto;
		bottom: 12px;
		transform: none;
	}

	.sh-zoom__count {
		left: 20px;
	}

	.sh-zoom__hint {
		bottom: 26px;
		font-size: 12px;
	}
}

/* 1.1.21: Lupe ohne Kreis, frei auf dem Bild */
.sh-loupe,
.sh-loupe:hover {
	background: transparent !important;
	border-radius: 0;
}

.sh-loupe svg {
	transition: transform 0.2s ease;
}

.sh-loupe:hover svg {
	transform: scale(1.12);
}
