/* ==========================================================================
   Rolle Mühle – WooCommerce
   Ergänzt die WooCommerce-Standardstyles; keine Template-Overrides nötig.
   ========================================================================== */

.woocommerce,
.woocommerce-page {
	--wc-primary: var(--wp--preset--color--brown);
	--wc-primary-text: #fff;
	--wc-secondary: var(--wp--preset--color--cream);
	--wc-secondary-text: var(--wp--preset--color--heading);
	--wc-highlight: var(--wp--preset--color--green-dark);
	--wc-highligh-text: #fff;
	--wc-form-border-radius: 8px;
	--wc-form-border-color: #cfc8bb;
}

/* ---------- Layout ---------- */
.shop-layout {
	/* Oben genug Platz für das hängende Logo. */
	padding-block: calc(var(--wp--preset--spacing--40) + 3.5rem) var(--wp--preset--spacing--60);
}
@media (max-width: 1024px) {
	.shop-layout { padding-top: calc(var(--wp--preset--spacing--40) + 1.5rem); }
}
.shop-layout.has-sidebar {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 3rem;
	align-items: start;
}
.shop-main {
	min-width: 0;
}
.woocommerce-breadcrumb {
	margin: 0 0 1.25rem !important;
	color: #777 !important;
	font-size: .875rem !important;
}
.woocommerce-breadcrumb a {
	color: var(--rm-text) !important;
	text-decoration: none;
}
.woocommerce-breadcrumb a:hover {
	color: var(--rm-brown) !important;
}
.breadcrumb__sep {
	margin-inline: .45rem;
	opacity: .5;
}
.woocommerce-products-header {
	margin-bottom: 1.5rem;
}
.woocommerce-products-header__title {
	margin: 0 0 .5rem;
}
.woocommerce-products-header__title.page-title::after {
	margin-left: 0;
}
.shop-sidebar .woocommerce-product-search button {
	background: var(--rm-brown);
	color: #fff;
	border: 0;
	cursor: pointer;
}
.shop-sidebar .woocommerce-product-search button:hover {
	background: var(--wp--preset--color--brown-dark);
}

/* Paginierung */
.woocommerce nav.woocommerce-pagination ul {
	display: inline-flex;
	gap: .4rem;
	border: 0;
}
.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: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 .5rem;
	border-radius: 999px;
	color: var(--rm-heading);
	font-size: 1rem;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
	background: var(--rm-cream);
	color: var(--rm-brown);
}
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--rm-brown);
	color: #fff;
}
.term-description,
.page-description {
	max-width: 70ch;
	color: var(--rm-text);
}
.term-image img {
	width: 100%;
	max-height: 280px;
	object-fit: cover;
	border-radius: var(--rm-radius);
	margin-bottom: 1.5rem;
}

/* ---------- Seitenleiste ---------- */
.shop-sidebar {
	position: sticky;
	top: calc(var(--rm-header-h) + 1.5rem);
	max-height: calc(100vh - var(--rm-header-h) - 3rem);
	overflow-y: auto;
	scrollbar-width: thin;
}
.admin-bar .shop-sidebar {
	top: calc(var(--rm-header-h) + 1.5rem + 32px);
}
.shop-sidebar__toggle {
	display: none;
}
.shop-sidebar .widget {
	margin-bottom: 2rem;
}
.shop-sidebar .widget-title {
	margin: 0 0 .85rem;
	color: var(--rm-brown);
	font-size: 1.1rem;
}
.shop-sidebar .woocommerce-product-search {
	display: flex;
	border: 1px solid #cfc8bb;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
}
.shop-sidebar .woocommerce-product-search:focus-within {
	border-color: var(--rm-brown);
	box-shadow: 0 0 0 3px rgb(94 60 0 / .15);
}
.shop-sidebar .woocommerce-product-search .search-field {
	border: 0;
	box-shadow: none;
	border-radius: 0;
	min-height: 42px;
	padding-inline: 1rem;
}
.shop-sidebar .woocommerce-product-search button {
	min-height: 42px;
	padding: 0 1rem;
	border-radius: 0;
	font-size: .875rem;
}
.shop-sidebar .product-categories,
.shop-sidebar .product-categories .children {
	margin: 0;
	padding: 0;
	list-style: none;
}
.shop-sidebar .product-categories .children {
	padding-left: .85rem;
	border-left: 2px solid var(--rm-border);
	margin: .1rem 0 .4rem .6rem;
}
.shop-sidebar .product-categories a {
	display: block;
	padding: .35rem .6rem;
	border-radius: 6px;
	color: var(--rm-text);
	font-size: .95rem;
	line-height: 1.35;
	text-decoration: none;
}
.shop-sidebar .product-categories a:hover {
	background: var(--rm-cream);
	color: var(--rm-brown);
}
.shop-sidebar .product-categories .current-cat > a {
	background: var(--rm-brown);
	color: #fff;
	font-weight: 500;
}
.shop-sidebar .product-categories .count {
	float: right;
	opacity: .6;
	font-size: .8rem;
}

@media (max-width: 1024px) {
	.shop-layout.has-sidebar {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	.shop-sidebar {
		position: static;
		max-height: none;
		overflow: visible;
	}
	.shop-sidebar__details {
		border: 1px solid var(--rm-border);
		border-radius: var(--rm-radius);
		background: #fff;
	}
	.shop-sidebar__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: .9rem 1.1rem;
		cursor: pointer;
		font-weight: 500;
		color: var(--rm-heading);
		list-style: none;
	}
	.shop-sidebar__toggle::-webkit-details-marker { display: none; }
	.shop-sidebar__toggle::after {
		content: "+";
		font-size: 1.4rem;
		line-height: 1;
		color: var(--rm-brown);
	}
	.shop-sidebar__details[open] .shop-sidebar__toggle::after { content: "–"; }
	.shop-sidebar__details[open] {
		padding-bottom: .5rem;
	}
	.shop-sidebar__details > .widget {
		margin: 0;
		padding: .5rem 1.1rem 1rem;
	}
}

/* ---------- Toolbar ---------- */
.shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1.5rem;
	margin-bottom: 1.5rem;
}
.woocommerce .shop-toolbar .woocommerce-result-count,
.woocommerce .shop-toolbar .woocommerce-ordering {
	float: none;
	margin: 0;
}
.woocommerce .shop-toolbar .woocommerce-result-count {
	color: #777;
	font-size: .9rem;
}
.woocommerce-ordering select {
	width: auto;
	min-height: 42px;
	padding-right: 2.25rem;
}

/* ---------- Produktkacheln ---------- */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(var(--rm-cols, 3), minmax(0, 1fr));
	gap: 2rem 1.5rem;
	margin: 0 0 2rem;
	padding: 0;
}
.woocommerce ul.products.columns-2 { --rm-cols: 2; }
.woocommerce ul.products.columns-3 { --rm-cols: 3; }
.woocommerce ul.products.columns-4 { --rm-cols: 4; }
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
}
@media (max-width: 1100px) {
	.woocommerce ul.products.columns-4 { --rm-cols: 3; }
}
@media (max-width: 860px) {
	.woocommerce ul.products[class*="columns-"] { --rm-cols: 2; gap: 1.5rem 1rem; }
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	padding: .75rem .75rem 1rem;
	border-radius: var(--rm-radius);
	background: #fff;
	transition: box-shadow .2s ease;
}
.woocommerce ul.products li.product:hover {
	box-shadow: var(--rm-shadow);
}
.woocommerce ul.products li.product a img {
	aspect-ratio: 1;
	object-fit: contain;
	margin: 0 0 1rem;
	border-radius: var(--rm-radius-sm);
	background: #fff;
	transition: transform .35s ease;
}
.woocommerce ul.products li.product:hover a img {
	transform: scale(1.03);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0;
	margin: 0 0 .5rem;
	color: var(--rm-heading);
	font: 400 1rem/1.4 var(--wp--preset--font-family--heading);
}
.woocommerce ul.products li.product .price {
	margin: auto 0 .2rem;
	color: var(--rm-heading);
	font-size: 1.1rem;
	font-weight: 700;
}
.woocommerce ul.products li.product .price del {
	opacity: .55;
	font-weight: 400;
}
.woocommerce ul.products li.product .price ins {
	text-decoration: none;
	color: #b02a00;
}
/* Germanized: Grundpreis, MwSt.- und Versandhinweis */
.woocommerce ul.products li.product .wc-gzd-additional-info,
.woocommerce ul.products li.product .price-unit,
.woocommerce ul.products li.product .tax-info,
.woocommerce ul.products li.product .shipping-costs-info {
	display: block;
	margin: 0 0 .1rem;
	color: #777;
	font-size: .78rem;
	line-height: 1.45;
}
.woocommerce ul.products li.product .button {
	align-self: flex-start;
	margin-top: .85rem;
	font-size: .9rem;
	padding: .55em 1.2em;
	min-height: 40px;
}
.woocommerce ul.products li.product .added_to_cart {
	display: inline-block;
	margin-top: .5rem;
	font-size: .85rem;
	color: var(--rm-green-dark);
}

.woocommerce span.onsale {
	top: 1rem !important;
	left: 1rem !important;
	right: auto !important;
	min-width: 0;
	min-height: 0;
	margin: 0 !important;
	padding: .3em .75em;
	border-radius: 999px;
	background: var(--rm-green);
	color: #1d1d1d;
	font-size: .8rem;
	font-weight: 700;
	line-height: 1.4;
	z-index: 2;
}

/* ---------- Buttons (WooCommerce) ---------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .7em 1.5em;
	border-radius: 999px;
	background: var(--rm-brown);
	color: #fff;
	font-weight: 500;
	line-height: 1.2;
	transition: background-color .2s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--wp--preset--color--brown-dark);
	color: #fff;
}
.woocommerce a.button.loading::after,
.woocommerce button.button.loading::after {
	top: auto;
	right: .9em;
}
.woocommerce a.button.loading,
.woocommerce button.button.loading {
	padding-right: 2.6em;
}
.woocommerce .button:disabled,
.woocommerce .button.disabled,
.woocommerce button.button:disabled[disabled] {
	opacity: .5;
	padding: .7em 1.5em;
}

/* ---------- Einzelprodukt ---------- */
.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1rem 4rem;
	align-items: start;
}
.single-product div.product > * {
	grid-column: 1 / -1;
}
.single-product div.product > .woocommerce-product-gallery,
.single-product div.product > .images {
	grid-column: 1;
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}
.single-product div.product > .summary {
	grid-column: 2;
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	/* Nicht sticky: Der Grid-Container umfasst auch Tabs/Beschreibung, die Zusammenfassung würde sonst darüber gleiten. */
}
.single-product div.product > .onsale {
	grid-column: 1;
}
@media (max-width: 860px) {
	.single-product div.product {
		grid-template-columns: 1fr;
	}
	.single-product div.product > .summary {
		grid-column: 1;
		position: static;
	}
}
.woocommerce div.product .woocommerce-product-gallery__wrapper img {
	border-radius: var(--rm-radius);
}
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	gap: .5rem;
	margin-top: .75rem;
}
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li {
	width: 72px !important;
	float: none;
}
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img {
	border-radius: 6px;
	border: 2px solid transparent;
}
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	border-color: var(--rm-green);
}
.woocommerce div.product .product_title {
	margin: 0 0 .75rem;
	font-size: var(--wp--preset--font-size--x-large);
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	margin: 0 0 .25rem;
	color: var(--rm-heading);
	font-size: 1.6rem;
	font-weight: 700;
}
.woocommerce div.product .summary .wc-gzd-additional-info,
.woocommerce div.product .summary .price-unit,
.woocommerce div.product .summary .tax-info,
.woocommerce div.product .summary .shipping-costs-info,
.woocommerce div.product .summary .delivery-time-info {
	margin: 0 0 .15rem;
	color: #6b6b6b;
	font-size: .875rem;
}
.woocommerce div.product .woocommerce-product-details__short-description {
	margin: 1.25rem 0;
}
.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: .75rem;
	margin: 1.5rem 0;
	padding: 1.25rem;
	border-radius: var(--rm-radius);
	background: var(--rm-cream);
}
.woocommerce div.product form.cart::before,
.woocommerce div.product form.cart::after {
	display: none;
}
.woocommerce div.product form.cart div.quantity {
	float: none;
	margin: 0;
}
.woocommerce .quantity .qty {
	width: 5em;
	min-height: 48px;
	text-align: center;
}
.woocommerce div.product form.cart .button {
	flex: 1 1 200px;
	min-height: 48px;
	float: none;
	font-size: 1.05rem;
}
.woocommerce div.product .product_meta {
	color: #777;
	font-size: .875rem;
}
.woocommerce div.product .product_meta > span {
	display: block;
	margin-bottom: .25rem;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
	margin-top: var(--wp--preset--spacing--50);
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 1.5rem;
	padding: 0;
	border-bottom: 1px solid var(--rm-border);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: .75rem 1rem;
	color: var(--rm-text);
	font-weight: 500;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--rm-brown);
	border-bottom-color: var(--rm-brown);
}
.woocommerce div.product .woocommerce-tabs .panel {
	max-width: 860px;
}
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child {
	display: none;
}
.woocommerce div.product .woocommerce-tabs .panel table {
	max-width: 560px;
	margin: 1.25rem 0 1.75rem;
	border: 0;
	border-collapse: collapse;
}
.woocommerce div.product .woocommerce-tabs .panel table :is(td, th) {
	padding: .6rem 0;
	border: 0;
	border-bottom: 1px solid var(--rm-border);
	background: none;
	vertical-align: top;
}
.woocommerce div.product .woocommerce-tabs .panel table :is(td, th) + :is(td, th) {
	padding-left: 1rem;
	text-align: right;
	white-space: nowrap;
}
.woocommerce div.product .woocommerce-tabs .panel table tr:first-child :is(td, th) {
	border-bottom-color: var(--rm-heading);
	color: var(--rm-heading);
}
.woocommerce table.shop_attributes {
	border-top: 1px solid var(--rm-border);
}
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
	padding: .65rem .75rem;
	font-style: normal;
}

.related.products,
.upsells.products,
.cross-sells {
	margin-top: var(--wp--preset--spacing--60);
}
.related.products > h2,
.upsells.products > h2,
.cross-sells > h2 {
	text-align: center;
	margin-bottom: 1.5rem;
}

/* ---------- Hinweise ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	margin: 0 0 1.5rem !important;
	padding: 1rem 1.25rem 1rem 3.25rem !important;
	border: 0 !important;
	border-left: 4px solid var(--rm-green) !important;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-cream) !important;
	color: var(--rm-heading) !important;
}
.woocommerce-info { border-left-color: var(--rm-brown) !important; }
.woocommerce-error { border-left-color: #b3261e !important; background: #fdf0ef !important; }
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	top: 1rem !important;
	left: 1.15rem !important;
}
.woocommerce-message::before { color: var(--rm-green-dark) !important; }
.woocommerce-info::before { color: var(--rm-brown) !important; }
.woocommerce-message .button,
.woocommerce-info .button {
	float: right;
	min-height: 36px !important;
	padding: .4em 1em !important;
	font-size: .875rem;
}

/* ---------- Tabellen (Warenkorb, Kasse, Bestellungen, Konto) ----------
   Ruhig und flach: keine Rahmen/Rundungen, nur feine Trennlinien. */
.woocommerce table.shop_table {
	margin: 0 0 1.5rem;
	border: 0;
	border-radius: 0;
	border-collapse: collapse;
	font-size: .95rem;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: .9rem .75rem;
	border: 0;
	border-top: 1px solid var(--rm-border);
	background: none;
	vertical-align: middle;
}
.woocommerce table.shop_table th:first-child,
.woocommerce table.shop_table td:first-child { padding-left: 0; }
.woocommerce table.shop_table th:last-child,
.woocommerce table.shop_table td:last-child { padding-right: 0; }
.woocommerce table.shop_table thead th {
	padding-block: .6rem;
	border-top: 0;
	border-bottom: 1px solid var(--rm-heading);
	color: #777;
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.woocommerce table.shop_table tbody tr:first-child td { border-top: 0; }
.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td { font-weight: 400; }
.woocommerce table.shop_table tfoot tr.order-total th,
.woocommerce table.shop_table tfoot tr.order-total td {
	border-top-color: var(--rm-heading);
	color: var(--rm-heading);
	font-size: 1.1rem;
	font-weight: 700;
}
.woocommerce-page table.shop_table_responsive tbody tr:nth-child(2n) td { background: none; }

/* ---------- Warenkorb ---------- */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content {
	--wp--style--global--content-size: var(--rm-wide);
}
.woocommerce-cart .entry-content > .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 1.5rem 3.5rem;
	align-items: start;
}
.woocommerce-cart .entry-content > .woocommerce > :not(.woocommerce-cart-form, .cart-collaterals) {
	grid-column: 1 / -1;
}
.woocommerce-cart .woocommerce-notices-wrapper:empty { display: none; }

/* Artikelliste: Tabelle als Raster je Zeile. */
body.woocommerce-cart table.shop_table.cart {
	display: block;
	margin: 0;
}
body.woocommerce-cart table.shop_table.cart :is(thead, tbody) { display: block; }
body.woocommerce-cart table.shop_table.cart tr {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) 7rem 6.5rem 6.5rem 2.25rem;
	align-items: center;
	column-gap: 1.25rem;
	border-bottom: 1px solid var(--rm-border);
}
body.woocommerce-cart table.shop_table.cart thead tr { border-bottom-color: var(--rm-heading); }
body.woocommerce-cart table.shop_table.cart :is(th, td) {
	display: block;
	padding: 1.25rem 0;
	border: 0;
	text-align: left;
}
body.woocommerce-cart table.shop_table.cart thead th { padding-block: .6rem; }
body.woocommerce-cart table.shop_table.cart td::before { content: none; display: none; }
body.woocommerce-cart table.shop_table.cart .product-thumbnail { grid-column: 1; }
body.woocommerce-cart table.shop_table.cart .product-name { grid-column: 2; }
body.woocommerce-cart table.shop_table.cart .product-price { grid-column: 3; }
body.woocommerce-cart table.shop_table.cart .product-quantity { grid-column: 4; }
body.woocommerce-cart table.shop_table.cart .product-subtotal { grid-column: 5; text-align: right; }
body.woocommerce-cart table.shop_table.cart .product-remove { grid-column: 6; grid-row: 1; justify-self: end; }
body.woocommerce-cart table.shop_table.cart thead th.product-thumbnail { grid-column: 1 / 3; }
body.woocommerce-cart table.shop_table.cart thead th.product-name { display: none; }
body.woocommerce-cart table.shop_table.cart thead th.product-thumbnail .screen-reader-text {
	position: static !important;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
	clip-path: none;
	overflow: visible;
	white-space: normal;
}
body.woocommerce-cart table.shop_table.cart thead th.product-thumbnail .screen-reader-text { font-size: 0; }
body.woocommerce-cart table.shop_table.cart thead th.product-thumbnail .screen-reader-text::after {
	content: "Produkt";
	font-size: .75rem;
}

.woocommerce-cart table.cart img {
	display: block;
	width: 88px;
	height: 88px;
	object-fit: contain;
	padding: .35rem;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-cream);
}
body.woocommerce-cart table.shop_table.cart .product-name > a {
	display: block;
	margin-bottom: .35rem;
	color: var(--rm-heading);
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
}
body.woocommerce-cart table.shop_table.cart .product-name > a:hover { color: var(--rm-brown); }
body.woocommerce-cart .wc-gzd-cart-info,
body.woocommerce-cart .product-name dl.variation {
	margin: 0;
	color: #777;
	font-size: .82rem;
	line-height: 1.5;
}
body.woocommerce-cart .product-price .unit-price {
	display: block;
	color: #777;
	font-size: .78rem;
}
body.woocommerce-cart table.shop_table.cart td.product-subtotal {
	color: var(--rm-heading);
	font-weight: 700;
}
body.woocommerce-cart table.shop_table.cart .quantity .qty {
	width: 4.5rem;
	min-height: 42px;
	text-align: center;
}

/* Entfernen-Button: dezentes Kreuz statt rotem X. */
.woocommerce table.cart a.remove {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	color: #999 !important;
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
}
.woocommerce table.cart a.remove:hover {
	background: #fdf0ef;
	color: #b3261e !important;
}

/* Aktionen-Zeile (Warenkorb aktualisieren) */
body.woocommerce-cart table.shop_table.cart tr:has(> td.actions) {
	display: block;
	border-bottom: 0;
}
body.woocommerce-cart table.shop_table.cart td.actions {
	padding: 1rem 0 0;
	text-align: right;
}
body.woocommerce-cart td.actions .button[name="update_cart"] {
	min-height: 40px;
	border: 1px solid var(--rm-border);
	background: transparent;
	color: var(--rm-heading);
	font-size: .9rem;
}
body.woocommerce-cart td.actions .button[name="update_cart"]:disabled { display: none; }
body.woocommerce-cart td.actions .button[name="update_cart"]:not(:disabled):hover {
	border-color: var(--rm-brown);
	background: transparent;
	color: var(--rm-brown);
}

/* Summen-Karte */
.woocommerce-cart .cart-collaterals {
	position: sticky;
	top: calc(var(--rm-header-h, 76px) + 1.5rem);
}
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
	float: none;
	width: auto;
	padding: 1.75rem;
	border-radius: var(--rm-radius);
	background: var(--rm-cream);
}
.woocommerce .cart_totals h2 {
	margin: 0 0 1rem;
	font-size: 1.35rem;
	text-align: left;
}
.woocommerce .cart_totals table.shop_table { margin-bottom: 1.25rem; }
.woocommerce .cart_totals table.shop_table :is(th, td) {
	padding: .65rem 0;
	border-top-color: rgba(0, 0, 0, .08);
	font-weight: 400;
}
.woocommerce .cart_totals table.shop_table td { text-align: right; }
.woocommerce .cart_totals table.shop_table tr:first-child :is(th, td) { border-top: 0; }
.woocommerce .cart_totals tr.order-total :is(th, td) {
	padding-top: 1rem;
	border-top: 1px solid var(--rm-heading) !important;
	color: var(--rm-heading);
	font-size: 1.15rem;
	font-weight: 700;
}
.woocommerce .cart_totals tr.order-tax :is(th, td) {
	padding-top: 0;
	border-top: 0;
	color: #777;
	font-size: .85rem;
}
.woocommerce .cart_totals .woocommerce-shipping-destination,
.woocommerce .cart_totals .woocommerce-shipping-calculator { font-size: .85rem; }
.wc-proceed-to-checkout { padding: 0 !important; }
.wc-proceed-to-checkout .checkout-button {
	display: flex !important;
	width: 100%;
	margin: 0 !important;
	font-size: 1.05rem !important;
	min-height: 54px !important;
}
.wc-proceed-to-checkout + *,
.cart_totals .wc-gzd-cart-info { font-size: .82rem; }

/* Leerer Warenkorb */
.woocommerce-cart .wc-empty-cart-message,
.woocommerce-cart .return-to-shop { grid-column: 1 / -1; text-align: center; }

@media (max-width: 960px) {
	.woocommerce-cart .entry-content > .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-cart .cart-collaterals { position: static; }
}
@media (max-width: 700px) {
	body.woocommerce-cart table.shop_table.cart thead { display: none; }
	body.woocommerce-cart table.shop_table.cart tr.cart_item {
		grid-template-columns: 72px minmax(0, 1fr) auto;
		grid-template-areas:
			"img name remove"
			"img price price"
			"img qty sub";
		column-gap: 1rem;
		row-gap: .5rem;
		padding-block: 1.1rem;
	}
	body.woocommerce-cart table.shop_table.cart tr.cart_item td { padding: 0; text-align: left !important; }
	body.woocommerce-cart table.shop_table.cart tr.cart_item td.product-subtotal { text-align: right !important; }
	body.woocommerce-cart table.shop_table.cart .product-thumbnail { grid-area: img; align-self: start; }
	body.woocommerce-cart table.shop_table.cart .product-name { grid-area: name; }
	body.woocommerce-cart table.shop_table.cart .product-price { grid-area: price; font-size: .85rem; }
	body.woocommerce-cart table.shop_table.cart .product-quantity { grid-area: qty; }
	body.woocommerce-cart table.shop_table.cart .product-subtotal { grid-area: sub; align-self: center; }
	body.woocommerce-cart table.shop_table.cart .product-remove { grid-area: remove; align-self: start; margin: -.35rem -.35rem 0 0; }
	.woocommerce-cart table.cart img { width: 72px; height: 72px; }
	body.woocommerce-cart table.shop_table.cart .quantity .qty { min-height: 38px; }
	body.woocommerce-cart table.shop_table.cart td.actions { text-align: center; }
	.woocommerce .cart-collaterals .cart_totals { padding: 1.25rem; }
	/* Responsive-Tabelle von WooCommerce: Zeilen wieder nebeneinander. */
	.woocommerce .cart_totals table.shop_table_responsive tr { display: flex; justify-content: space-between; gap: 1rem; }
	.woocommerce .cart_totals table.shop_table_responsive :is(th, td) { display: block; flex: 0 1 auto; }
	.woocommerce .cart_totals table.shop_table_responsive th { padding-right: 0; }
	.woocommerce .cart_totals table.shop_table_responsive td::before { content: none; display: none; }
	.woocommerce .cart_totals table.shop_table_responsive tr :is(th, td) { border: 0 !important; }
	.woocommerce .cart_totals table.shop_table_responsive tr + tr { border-top: 1px solid rgba(0, 0, 0, .08); }
	.woocommerce .cart_totals table.shop_table_responsive tr.order-total { border-top-color: var(--rm-heading); }
	.woocommerce .cart_totals table.shop_table_responsive tr.order-tax { border-top: 0; }
}

/* ---------- Kasse ---------- */
.woocommerce-checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 440px;
	gap: 0 3.5rem;
	align-items: start;
}
.woocommerce-checkout form.checkout > * { grid-column: 1; }
.woocommerce-checkout form.checkout > #order_review {
	grid-column: 2;
	grid-row: 1 / span 20;
	padding: 1.75rem;
	border-radius: var(--rm-radius);
	background: var(--rm-cream);
}
.woocommerce-checkout #customer_details.col2-set { width: auto; margin: 0; }
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
	float: none;
	width: auto;
}
.woocommerce-checkout #customer_details .col-2 { margin-top: 2rem; }
.woocommerce-checkout #customer_details::before,
.woocommerce-checkout #customer_details::after { content: none; }
.woocommerce-checkout h3 {
	margin: 0 0 1.25rem;
	font-size: 1.35rem;
}
.woocommerce-checkout #ship-to-different-address {
	padding: 1rem 1.15rem;
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-sm);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
}
.woocommerce-checkout #ship-to-different-address label { display: flex; align-items: center; gap: .6rem; margin: 0; cursor: pointer; }
.woocommerce-checkout .shipping_address { margin-top: 1.5rem; }

/* Adressfelder als Raster: Straße + Nr., PLZ + Ort nebeneinander. */
.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper) {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	column-gap: 1rem;
}
.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper) > .form-row {
	grid-column: span 6;
	width: auto;
	float: none;
	margin-bottom: 1rem;
}
.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper) > :is(.form-row-first, .form-row-last) { grid-column: span 3; }
.woocommerce-checkout :is(#billing_address_1_field, #shipping_address_1_field, #billing_city_field, #shipping_city_field) { grid-column: span 4 !important; }
.woocommerce-checkout :is(#billing_houseno_field, #shipping_houseno_field, #billing_postcode_field, #shipping_postcode_field) { grid-column: span 2 !important; }
.woocommerce-checkout :is(#billing_postcode_field, #shipping_postcode_field) { grid-column: 1 / span 2 !important; }
.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper) > .form-row-first { grid-column: 1 / span 3; }
.woocommerce-checkout :is(#billing_country_field, #shipping_country_field) strong { font-weight: 500; }

/* Bestellübersicht in der Karte */
.woocommerce-checkout #order_review h3 { font-size: 1.2rem; }
.woocommerce-checkout #order_review > h3:not(:first-child) { margin-top: 1.75rem; }
.woocommerce-checkout #payment {
	border-radius: 0;
	background: none;
}
.woocommerce-checkout #payment ul.payment_methods {
	display: grid;
	gap: .5rem;
	margin: 0;
	padding: 0;
	border: 0;
}
.woocommerce-checkout #payment ul.payment_methods li {
	margin: 0;
	padding: .85rem 1rem;
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius-sm);
	background: #fff;
	line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.woocommerce-checkout #payment ul.payment_methods li:has(> input:checked) {
	border-color: var(--rm-brown);
	box-shadow: inset 0 0 0 1px var(--rm-brown);
}
.woocommerce-checkout #payment ul.payment_methods li > input { margin: 0 .55rem 0 0; accent-color: var(--rm-brown); vertical-align: middle; }
.woocommerce-checkout #payment ul.payment_methods li > label {
	display: inline;
	color: var(--rm-heading);
	font-weight: 500;
	cursor: pointer;
}
.woocommerce-checkout #payment ul.payment_methods li img {
	float: right;
	max-height: 24px;
	margin: 0 0 0 .35rem !important;
}
.woocommerce-checkout #payment div.payment_box {
	margin: .75rem 0 0 !important;
	padding: .75rem .9rem !important;
	border-radius: var(--rm-radius-sm);
	background: var(--rm-cream) !important;
	font-size: .88rem;
}
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #order_review .checkbox-legal,
.woocommerce-checkout #order_review .wc-gzd-checkbox-placeholder .form-row {
	margin: 0 0 1rem;
	font-size: .88rem;
	line-height: 1.5;
}
.woocommerce-checkout #order_review .checkbox-legal label { display: flex !important; gap: .6rem; align-items: flex-start; }
.woocommerce-checkout #order_review .checkbox-legal label > span:not(.screen-reader-text) { display: inline; }
.woocommerce-checkout .woocommerce-checkout-review-order-table,
.woocommerce-checkout .woocommerce-checkout-review-order-table :is(thead, tbody, tfoot, tr) { background: none !important; }
.woocommerce-checkout #order_review .checkbox-legal input { margin-top: .25rem; flex: none; accent-color: var(--rm-brown); }
.woocommerce-checkout .woocommerce-checkout-review-order-table { margin-bottom: 1.25rem !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table :is(th, td) {
	padding: .7rem 0 !important;
	border-top-color: rgba(0, 0, 0, .08) !important;
	font-size: .9rem;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table thead th { border-bottom-color: rgba(0, 0, 0, .25) !important; }
.woocommerce-checkout .woocommerce-checkout-review-order-table :is(.product-total, tfoot td) { text-align: right; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name { color: var(--rm-heading); }
.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name .wc-gzd-cart-info,
.woocommerce-checkout .woocommerce-checkout-review-order-table .unit-price {
	display: block;
	margin: .1rem 0 0;
	color: #777;
	font-size: .8rem;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tr.order-total :is(th, td) {
	padding-top: 1rem !important;
	border-top: 1px solid var(--rm-heading) !important;
	font-size: 1.1rem;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tr.order-tax :is(th, td) {
	padding-top: 0 !important;
	border-top: 0 !important;
	color: #777;
	font-size: .82rem;
}
.woocommerce-checkout .place-order { margin: 0 !important; padding: 0 !important; }
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order,
.woocommerce-checkout #place_order {
	float: none;
	width: 100%;
	min-height: 54px;
	font-size: 1.05rem;
}
.woocommerce-checkout .ppc-button-wrapper { margin-top: .75rem; }

@media (max-width: 960px) {
	.woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-checkout form.checkout > #order_review { grid-column: 1; grid-row: auto; margin-top: 2rem; }
}
@media (max-width: 480px) {
	.woocommerce-checkout :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper) > :is(.form-row-first, .form-row-last) { grid-column: 1 / -1; }
	.woocommerce-checkout :is(#billing_address_1_field, #shipping_address_1_field, #billing_houseno_field, #shipping_houseno_field) { grid-column: 1 / -1 !important; }
	.woocommerce-checkout :is(#billing_city_field, #shipping_city_field) { grid-column: span 4 !important; }
	.woocommerce-checkout form.checkout > #order_review { margin-inline: calc(-1 * var(--rm-gutter, 16px)); padding: 1.25rem var(--rm-gutter, 16px); border-radius: 0; }
}

.select2-container--default .select2-selection--single {
	min-height: 46px;
	border-color: #cfc8bb;
	border-radius: 8px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 44px;
	padding-left: .85rem;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 44px;
}

/* ---------- Mein Konto ---------- */
.woocommerce-account .entry-content > .woocommerce {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 2rem 3.5rem;
	align-items: start;
}
/* Clearfix-Pseudoelemente von WooCommerce würden sonst eine Rasterzelle belegen. */
.woocommerce-account .entry-content > .woocommerce::before,
.woocommerce-account .entry-content > .woocommerce::after { content: none; display: none; }
.woocommerce-account .entry-content > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account .entry-content > .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-account:not(.logged-in) .entry-content > .woocommerce { display: block; }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	width: auto;
	float: none;
	min-width: 0;
}
.woocommerce-MyAccount-navigation {
	position: sticky;
	top: calc(var(--rm-header-h, 76px) + 1.5rem);
	padding: .75rem;
	border-radius: var(--rm-radius);
	background: var(--rm-cream);
}
.woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: .15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce-MyAccount-navigation a {
	display: block;
	padding: .6rem .9rem;
	border-radius: var(--rm-radius-sm);
	color: var(--rm-text);
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.woocommerce-MyAccount-navigation a:hover {
	background: rgba(255, 255, 255, .7);
	color: var(--rm-brown);
}
.woocommerce-MyAccount-navigation .is-active a {
	background: #fff;
	color: var(--rm-brown);
	font-weight: 500;
	box-shadow: inset 3px 0 0 var(--rm-brown);
}
.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: .35rem;
	padding-top: .35rem;
	border-top: 1px solid rgba(0, 0, 0, .08);
}
.woocommerce-MyAccount-navigation-link--customer-logout a { color: #777; }
.woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3,
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 {
	margin: 0 0 1rem;
	font-size: 1.35rem;
	text-align: left;
}
.woocommerce-MyAccount-content > form > h2:first-child,
.woocommerce-MyAccount-content > form > h3:first-child { margin-top: 0; }

/* Adressen-Übersicht */
.woocommerce-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after { content: none; }
.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
	float: none;
	width: auto;
	padding: 1.5rem;
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius);
}
.woocommerce-account .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem;
}
.woocommerce-account .woocommerce-Address-title::before,
.woocommerce-account .woocommerce-Address-title::after { content: none; }
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 { font-size: 1.15rem; }
.woocommerce-account .woocommerce-Address-title a { float: none; font-size: .9rem; }
.woocommerce-account .woocommerce-Address address { font-style: normal; line-height: 1.7; }

/* Adress-/Kontoformular: Raster wie an der Kasse */
.woocommerce-account .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	column-gap: 1rem;
	max-width: 640px;
}
.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row {
	grid-column: span 6;
	width: auto;
	float: none;
}
.woocommerce-account .woocommerce-address-fields__field-wrapper > :is(.form-row-first, .form-row-last) { grid-column: span 3; }
.woocommerce-account .woocommerce-address-fields__field-wrapper > .form-row-first { grid-column: 1 / span 3; }
.woocommerce-account :is(#billing_address_1_field, #shipping_address_1_field, #billing_city_field, #shipping_city_field) { grid-column: span 4 !important; }
.woocommerce-account :is(#billing_houseno_field, #shipping_houseno_field) { grid-column: span 2 !important; }
.woocommerce-account :is(#billing_postcode_field, #shipping_postcode_field) { grid-column: 1 / span 2 !important; }
.woocommerce-account form.edit-account { max-width: 640px; }
.woocommerce-account form.edit-account fieldset {
	margin: 2rem 0 1rem;
	padding: 1.5rem;
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius);
}
.woocommerce-account form.edit-account legend { padding: 0 .5rem; font-weight: 500; color: var(--rm-heading); }

/* Bestellungen */
.woocommerce-account .woocommerce-orders-table .button {
	min-height: 34px;
	margin: .15rem .25rem .15rem 0;
	padding: .35em .9em;
	font-size: .82rem;
}
.woocommerce-account .woocommerce-orders-table__cell-order-number a { font-weight: 500; }
.woocommerce-account mark { background: none; color: var(--rm-heading); font-weight: 500; }

/* Anmelden / Registrieren */
.woocommerce-account .u-columns.col2-set {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 2rem 3rem;
	max-width: 1000px;
	margin-inline: auto;
}
.woocommerce-account .u-columns.col2-set::before,
.woocommerce-account .u-columns.col2-set::after { content: none; }
.woocommerce-account .u-columns .u-column1,
.woocommerce-account .u-columns .u-column2 { float: none; width: auto; }
.woocommerce-account .u-columns h2 { margin: 0 0 1rem; font-size: 1.5rem; text-align: left; }
.woocommerce-account:not(.logged-in) .entry-content > .woocommerce > form.login {
	max-width: 480px;
	margin-inline: auto;
}
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon,
.woocommerce form.lost_reset_password {
	margin: 0;
	padding: 1.75rem;
	border: 0;
	border-radius: var(--rm-radius);
	background: var(--rm-cream);
}
.woocommerce form.login .form-row:has(.woocommerce-form-login__submit) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1rem;
}
.woocommerce form.login .woocommerce-form-login__rememberme { order: -1; margin: 0; }
.woocommerce form.login .woocommerce-form-login__submit { float: none; margin: 0 !important; }
.woocommerce form.login .lost_password { margin: .75rem 0 0; font-size: .9rem; }
.woocommerce form :is(.woocommerce-form__label-for-checkbox) {
	display: inline-flex;
	gap: .55rem;
	align-items: flex-start;
	line-height: 1.5;
}
.woocommerce form .woocommerce-form__label-for-checkbox input { margin-top: .3rem; accent-color: var(--rm-brown); flex: none; }

@media (max-width: 860px) {
	.woocommerce-account .entry-content > .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
	}
	.woocommerce-MyAccount-navigation { position: static; padding: .4rem; }
	.woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: .25rem;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.woocommerce-MyAccount-navigation a { white-space: nowrap; padding: .5rem .8rem; }
	.woocommerce-MyAccount-navigation .is-active a { box-shadow: none; }
	.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
}
@media (max-width: 480px) {
	.woocommerce-account :is(#billing_address_1_field, #shipping_address_1_field, #billing_houseno_field, #shipping_houseno_field) { grid-column: 1 / -1 !important; }
	.woocommerce-account .woocommerce-address-fields__field-wrapper > :is(.form-row-first, .form-row-last) { grid-column: 1 / -1; }
	.woocommerce form.login, .woocommerce form.register { padding: 1.25rem; }
}

/* ---------- Bewertungen ---------- */
.woocommerce .star-rating span::before,
.woocommerce p.stars a {
	color: #d29b00;
}

@media (max-width: 600px) {
	.woocommerce ul.products li.product,
	.woocommerce-page ul.products li.product {
		padding: .5rem .25rem .75rem;
	}
	.woocommerce ul.products li.product .button {
		align-self: stretch;
		padding-inline: .75em;
		font-size: .85rem;
		white-space: nowrap;
	}
}

/* Login: Button rechts neben "Angemeldet bleiben"; Select2 so hoch wie Eingabefelder */
.woocommerce form.login .woocommerce-form-login__submit { margin-left: auto !important; }
.select2-container--default .select2-selection--single { height: 46px; }

/* ==========================================================================
   Shop-Übersicht: Suche, Kategorien, Sortierung (modernisiert)
   ========================================================================== */

/* Buttons: Text immer vertikal mittig */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce ul.products li.product .button,
.woocommerce a.added_to_cart {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: .4em;
	line-height: 1.2 !important;
	padding-block: .55em !important;
	vertical-align: middle;
	text-align: center;
}
.woocommerce ul.products li.product .button { min-height: 42px; }

/* Suche */
.rm-search {
	position: relative;
	display: flex;
	align-items: center;
}
.shop-sidebar .rm-search { margin: 0; border: 0; border-radius: 0; overflow: visible; background: none; }
.shop-sidebar .rm-search:focus-within { box-shadow: none; }
.rm-search .rm-search__field,
.shop-sidebar .rm-search .rm-search__field {
	width: 100%;
	min-height: 46px;
	padding: 0 3rem 0 1.1rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--rm-cream);
	color: var(--rm-heading);
	font-size: .95rem;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.rm-search .rm-search__field::placeholder { color: #8a8478; }
.rm-search .rm-search__field:hover { border-color: var(--rm-border); }
.rm-search .rm-search__field:focus {
	outline: none;
	border-color: var(--rm-brown);
	background: #fff;
	box-shadow: 0 0 0 3px rgb(94 60 0 / .12);
}
.rm-search .rm-search__field::-webkit-search-cancel-button { cursor: pointer; }
.rm-search .rm-search__btn,
.shop-sidebar .rm-search .rm-search__btn {
	position: absolute;
	right: 4px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--rm-brown);
	color: #fff;
	cursor: pointer;
	transition: background-color .15s ease;
}
.rm-search .rm-search__btn:hover { background: var(--wp--preset--color--brown-dark); }
.rm-search .rm-search__btn .rm-icon { width: 18px; height: 18px; }

/* Kategorien */
.shop-sidebar .widget_product_search { margin-bottom: 1.75rem; }
.shop-sidebar .widget-title {
	margin: 0 0 .6rem;
	padding-left: .75rem;
	color: #8a8478;
	font-family: inherit;
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.shop-sidebar .product-categories { display: grid; gap: 2px; }
.shop-sidebar .product-categories a {
	position: relative;
	padding: .5rem .75rem;
	border-radius: var(--rm-radius-sm);
	color: var(--rm-heading);
	font-size: .93rem;
	transition: background-color .15s ease, color .15s ease;
}
.shop-sidebar .product-categories a:hover {
	background: var(--rm-cream);
	color: var(--rm-brown);
}
.shop-sidebar .product-categories :is(.current-cat, .current-cat-parent) > a {
	background: var(--rm-cream);
	color: var(--rm-brown);
	font-weight: 500;
	box-shadow: inset 3px 0 0 var(--rm-brown);
}

/* Toolbar + Sortier-Dropdown */
.shop-toolbar {
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--rm-border);
}
.woocommerce-ordering.is-enhanced select.orderby {
	position: absolute !important;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.rm-select { position: relative; }
.rm-select__btn {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	min-height: 42px;
	padding: 0 .9rem 0 1.1rem;
	border: 1px solid var(--rm-border);
	border-radius: 999px;
	background: #fff;
	color: var(--rm-heading);
	font: inherit;
	font-size: .92rem;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.rm-select__btn:hover,
.rm-select__btn[aria-expanded="true"] { border-color: var(--rm-brown); }
.rm-select__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgb(94 60 0 / .15); border-color: var(--rm-brown); }
.rm-select__label { color: #8a8478; }
.rm-select__value { font-weight: 500; }
.rm-select__btn .rm-icon { margin-left: .15rem; transition: transform .2s ease; }
.rm-select__btn[aria-expanded="true"] .rm-icon { transform: rotate(180deg); }
.rm-select__list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 30;
	min-width: 100%;
	width: max-content;
	max-width: min(92vw, 340px);
	margin: 0;
	padding: .35rem;
	list-style: none;
	border: 1px solid var(--rm-border);
	border-radius: var(--rm-radius);
	background: #fff;
	box-shadow: 0 18px 40px -16px rgb(40 28 0 / .3);
	animation: rm-pop .15s ease;
}
.rm-select__list:focus { outline: none; }
.rm-select__list li {
	position: relative;
	padding: .55rem 2.2rem .55rem .85rem;
	border-radius: var(--rm-radius-sm);
	color: var(--rm-heading);
	font-size: .92rem;
	cursor: pointer;
}
.rm-select__list li.is-active { background: var(--rm-cream); }
.rm-select__list li[aria-selected="true"] { color: var(--rm-brown); font-weight: 500; }
.rm-select__list li[aria-selected="true"]::after {
	content: "";
	position: absolute;
	right: .85rem;
	top: 50%;
	width: .45rem;
	height: .8rem;
	border: solid var(--rm-brown);
	border-width: 0 2px 2px 0;
	transform: translateY(-65%) rotate(45deg);
}
@keyframes rm-pop {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
	.shop-toolbar { flex-direction: column; align-items: stretch; }
	.rm-select__btn { width: 100%; justify-content: space-between; }
	.rm-select__btn .rm-select__value { margin-right: auto; }
	.rm-select__list { left: 0; right: 0; max-width: none; width: auto; }
}

/* ==========================================================================
   Produktdetail: Beschreibung als Fläche
   ========================================================================== */
.woocommerce div.product .woocommerce-tabs {
	grid-column: 1 / -1;
	margin-top: var(--wp--preset--spacing--60);
	padding: clamp(1.25rem, 4vw, 3rem);
	border-radius: var(--rm-radius);
	background: var(--rm-cream);
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: inline-flex;
	gap: .25rem;
	margin: 0 0 2rem;
	padding: .3rem;
	border: 0;
	border-radius: 999px;
	background: #fff;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: .55rem 1.2rem;
	border: 0;
	border-radius: 999px;
	margin: 0;
	color: var(--rm-text);
	font-size: .95rem;
	transition: background-color .15s ease, color .15s ease;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--rm-brown); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	background: var(--rm-brown);
	color: #fff;
}
.woocommerce div.product .woocommerce-tabs .panel {
	max-width: none;
	margin: 0;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 0 clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}
.woocommerce div.product .woocommerce-tabs .panel > * { grid-column: 1; }
.woocommerce div.product .woocommerce-tabs .panel > table,
.woocommerce div.product .woocommerce-tabs .panel > figure.wp-block-table,
.woocommerce div.product .woocommerce-tabs .panel > .wp-block-table {
	grid-column: 2;
	grid-row: 1 / span 20;
	max-width: none;
	margin: 0;
	padding: 1.25rem 1.5rem;
	border-radius: var(--rm-radius);
	background: #fff;
}
.woocommerce div.product .woocommerce-tabs .panel > figure.wp-block-table table,
.woocommerce div.product .woocommerce-tabs .panel > .wp-block-table table { margin: 0; max-width: none; padding: 0; }
.woocommerce div.product .woocommerce-tabs .panel > table :is(td, th) { border-bottom-color: rgb(0 0 0 / .07); }
.woocommerce div.product .woocommerce-tabs .panel > table tr:last-child :is(td, th) { border-bottom: 0; }
.woocommerce div.product .woocommerce-tabs .panel > p:first-of-type {
	color: var(--rm-heading);
	font-size: 1.1rem;
	line-height: 1.6;
}
.woocommerce div.product .woocommerce-tabs .panel :is(h3, h4) { margin-top: 1.5rem; }
@media (max-width: 860px) {
	.woocommerce div.product .woocommerce-tabs .panel { grid-template-columns: minmax(0, 1fr); }
	.woocommerce div.product .woocommerce-tabs .panel > :is(table, figure.wp-block-table, .wp-block-table) {
		grid-column: 1;
		grid-row: auto;
		margin-top: 1rem;
		padding: 1rem 1.1rem;
	}
	.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; overflow-x: auto; max-width: 100%; }
	.woocommerce div.product .woocommerce-tabs ul.tabs li a { white-space: nowrap; }
}
.woocommerce div.product .woocommerce-tabs .panel > table {
	border-collapse: separate;
	border-spacing: 0;
}
.woocommerce div.product .woocommerce-tabs .panel > table td:first-child { padding-left: 0; }
@media (max-width: 860px) {
	.woocommerce div.product .woocommerce-tabs ul.tabs { display: inline-flex; width: auto; }
}

/* Fixes Lieferland (nur ein Land): WooCommerce zeigt ein Select mit einer Option – als deaktiviertes Feld darstellen */
.woocommerce form .form-row select.country_to_state--single {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 0 .9rem;
	border: 1px solid var(--rm-border);
	border-radius: 8px;
	background: var(--rm-cream);
	color: var(--rm-heading);
	font: inherit;
	font-weight: 400;
	appearance: none;
	pointer-events: none;
	cursor: not-allowed;
}

/* Bestellhinweise: größeres Textfeld */
.woocommerce-checkout #order_comments {
	min-height: 150px;
	padding: .75rem .9rem;
	line-height: 1.5;
	resize: vertical;
}
