/* rh-shop Frontend. Zurückhaltend und theme-neutral, erbt Farben/Fonts wo möglich. */

/*
 * Design-Tokens an einer Stelle. Radien und Palette sind feste Werte, die Tinten
 * (Kanten, Trennlinien, Flächen) erben die Textfarbe des Themes über color-mix,
 * damit sie hell wie dunkel funktionieren. Jede Tinte hat einen rgba-Fallback für
 * Browser ohne color-mix: am Einsatzort steht der Fallback als erste, das Token als
 * zweite Deklaration (Progressive Enhancement).
 */
:root {
	--rhshop-radius: 8px;
	--rhshop-radius-lg: 12px;
	--rhshop-radius-pill: 999px;

	--rhshop-accent: #141414;
	--rhshop-on-accent: #fff;
	--rhshop-ok: #1a7f37;
	--rhshop-warn: #9a6700;
	--rhshop-error: #b3261e;

	--rhshop-border-fallback: rgba(128, 128, 128, 0.48);
	--rhshop-border: color-mix(in srgb, currentColor 34%, transparent);
	--rhshop-line-fallback: rgba(128, 128, 128, 0.26);
	--rhshop-line: color-mix(in srgb, currentColor 14%, transparent);
	--rhshop-line-strong-fallback: rgba(128, 128, 128, 0.4);
	--rhshop-line-strong: color-mix(in srgb, currentColor 26%, transparent);
	--rhshop-surface-fallback: rgba(128, 128, 128, 0.1);
	--rhshop-surface: color-mix(in srgb, currentColor 6%, transparent);
	--rhshop-surface-2-fallback: rgba(128, 128, 128, 0.18);
	--rhshop-surface-2: color-mix(in srgb, currentColor 11%, transparent);
}

.rhshop-grid {
	display: grid;
	grid-template-columns: repeat(var(--rhshop-cols, 3), 1fr);
	gap: clamp(1rem, 3vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 782px) {
	.rhshop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.rhshop-grid { grid-template-columns: 1fr; }
}

/* Karte = <article> mit innerem Link über den ganzen Inhalt; der Quick-Add-Button
   liegt als Geschwister daneben (Button im Link wäre invalides HTML). */
.rhshop-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--rhshop-radius-lg);
	transition: transform 0.18s ease;
}

/* display:flex schlägt das UA-[hidden], darum explizit: der Kategorie-Filter
   blendet Karten über das hidden-Attribut aus. */
.rhshop-card[hidden] { display: none; }

.rhshop-card__link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	border-radius: var(--rhshop-radius-lg);
}

.rhshop-card:hover { transform: translateY(-3px); }
.rhshop-card:hover .rhshop-card__media {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.rhshop-card__link:focus-visible {
	outline: 2px solid var(--rhshop-accent);
	outline-offset: 4px;
}

/* Quick-Add: oben rechts auf dem Bild (das Badge sitzt links). Auf Zeige-Geräten
   erst beim Karten-Hover sichtbar, auf Touch immer. */
.rhshop-card__quick-add {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--rhshop-accent);
	color: var(--rhshop-on-accent);
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.rhshop-card__quick-add:hover { transform: scale(1.08); }
.rhshop-card__quick-add:focus-visible {
	outline: 2px solid var(--rhshop-on-accent);
	outline-offset: -4px;
}
.rhshop-card__quick-add.is-error {
	background: var(--rhshop-error);
}
@media (hover: hover) and (pointer: fine) {
	.rhshop-card__quick-add { opacity: 0; }
	.rhshop-card:hover .rhshop-card__quick-add,
	.rhshop-card__quick-add:focus-visible,
	.rhshop-card__quick-add.is-pending,
	.rhshop-card__quick-add.is-error { opacity: 1; }
}

.rhshop-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--rhshop-radius-lg);
	background: var(--rhshop-surface-fallback);
	background: var(--rhshop-surface);
	transition: box-shadow 0.18s ease;
}

.rhshop-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.rhshop-card:hover .rhshop-card__media img { transform: scale(1.04); }

.rhshop-card__ph {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--rhshop-surface-2-fallback);
	background: var(--rhshop-surface-2);
}

.rhshop-card__title { margin-top: 0.7rem; font-weight: 600; }
.rhshop-card__price { margin-top: 0.15rem; opacity: 0.75; }

/* PAngV: Grundpreis und Preishinweis (inkl. MwSt. / § 19, zzgl. Versand) */
.rhshop-grundpreis { font-size: 0.82em; font-weight: 400; opacity: 0.75; }
.rhshop-price-note { display: block; font-size: 0.78rem; font-weight: 400; opacity: 0.7; }
.rhshop-card__price .rhshop-price-note { margin-top: 0.1rem; }
.rhshop-price-note a { color: inherit; }

.rhshop-card.is-sold-out .rhshop-card__media { opacity: 0.55; }

.rhshop-badge {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	padding: 0.2rem 0.55rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: var(--rhshop-radius-pill);
	/* Dunkles Overlay auf dem Produktbild, bewusst themen-unabhängig. */
	background: rgba(20, 20, 20, 0.85);
	color: var(--rhshop-on-accent);
}

/* "Fast ausverkauft" hebt sich vom schwarzen Ausverkauft-Badge ab (Amber). */
.rhshop-badge--low {
	background: var(--rhshop-warn);
	color: #fff;
}

/* Einzelprodukt-Block */
.rhshop-single {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}
@media (max-width: 782px) {
	.rhshop-single { grid-template-columns: 1fr; }
}

.rhshop-single__media img { width: 100%; height: auto; border-radius: var(--rhshop-radius-lg); }
.rhshop-single__title { margin: 0 0 0.5rem; }
.rhshop-single__excerpt { opacity: 0.8; margin: 0 0 1.2rem; }

/* Kauf-Steuerung */
.rhshop-buy { margin-top: 1.2rem; }
.rhshop-buy__price {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.3rem;
}
.rhshop-buy__price .rhshop-grundpreis { font-size: 0.85rem; }
.rhshop-buy__price .rhshop-grundpreis:not(:empty) { margin-left: 0.4em; }
.rhshop-buy .rhshop-price-note { margin-bottom: 1rem; }

.rhshop-buy__select {
	display: block;
	width: 100%;
	max-width: 260px;
	padding: 0.6rem 0.7rem;
	margin-bottom: 0.7rem;
	border: 1px solid var(--rhshop-border-fallback);
	border: 1px solid var(--rhshop-border);
	border-radius: var(--rhshop-radius);
	background: transparent;
	color: inherit;
	font-size: 1rem;
}

.rhshop-buy__row {
	display: flex;
	gap: 0.7rem;
	align-items: stretch;
	margin-top: 0.4rem;
	flex-wrap: wrap;
}

.rhshop-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--rhshop-border-fallback);
	border: 1px solid var(--rhshop-border);
	border-radius: var(--rhshop-radius);
	overflow: hidden;
}
.rhshop-qty button {
	width: 2.4rem;
	border: 0;
	background: transparent;
	font-size: 1.2rem;
	cursor: pointer;
	line-height: 1;
}
.rhshop-qty input {
	width: 3rem;
	border: 0;
	border-left: 1px solid var(--rhshop-line-fallback);
	border-left: 1px solid var(--rhshop-line);
	border-right: 1px solid var(--rhshop-line-fallback);
	border-right: 1px solid var(--rhshop-line);
	text-align: center;
	font-size: 1rem;
	-moz-appearance: textfield;
}
.rhshop-qty input::-webkit-outer-spin-button,
.rhshop-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rhshop-btn-add,
.rhshop-btn-checkout {
	appearance: none;
	border: 0;
	border-radius: var(--rhshop-radius);
	padding: 0.7rem 1.4rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	background: var(--rhshop-accent);
	color: var(--rhshop-on-accent);
	transition: opacity 0.2s ease, transform 0.1s ease;
	text-decoration: none;
	display: inline-block;
}
.rhshop-btn-add:hover:not(:disabled),
.rhshop-btn-checkout:hover { opacity: 0.85; }
.rhshop-btn-add:active:not(:disabled) { transform: translateY(1px); }
.rhshop-btn-add:disabled { opacity: 0.4; cursor: not-allowed; }

.rhshop-buy__msg { min-height: 1.2em; margin: 0.6rem 0 0; font-size: 0.9rem; opacity: 0.8; }

/* Bestandshinweis "Nur noch X verfügbar": leer -> kein Platz (:not(:empty)). */
.rhshop-buy__stock { margin: 0; }
.rhshop-buy__stock:not(:empty) { margin: 0.6rem 0 0; font-size: 0.9rem; font-weight: 600; color: var(--rhshop-warn); }

/* Vor-Auswahl-Zusammenfassung über dem Dropdown ("Einige Varianten nur noch X"). */
.rhshop-buy__summary { margin: 0; }
.rhshop-buy__summary:not(:empty) { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--rhshop-warn); }

/* Warenkorb-Warnung, wenn die Menge wegen Bestand gedeckelt wurde. */
.rhshop-cart__notice { margin: 0; }
.rhshop-cart__notice:not(:empty) { margin: 0 0 0.8rem; padding: 0.5rem 0.7rem; font-size: 0.88rem; font-weight: 600; color: var(--rhshop-warn); background: var(--rhshop-surface-fallback); background: var(--rhshop-surface); border-radius: var(--rhshop-radius); }

/* Ausverkaufte Auswahl-Optionen (per JS deaktiviert) sichtbar abschwächen. */
.rhshop-buy__select option:disabled { color: color-mix(in srgb, currentColor 45%, transparent); }

/* Warenkorb */
.rhshop-cart__lines { list-style: none; margin: 0; padding: 0; }

.rhshop-cart__line {
	display: grid;
	grid-template-columns: 64px 1fr auto auto auto;
	gap: 1rem;
	align-items: center;
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--rhshop-line-fallback);
	border-bottom: 1px solid var(--rhshop-line);
}
@media (max-width: 600px) {
	.rhshop-cart__line { grid-template-columns: 56px 1fr auto; grid-row-gap: 0.5rem; }
}

.rhshop-cart__media img,
.rhshop-cart__media .rhshop-card__ph { width: 64px; height: 64px; object-fit: cover; border-radius: var(--rhshop-radius); display: block; }
.rhshop-cart__info { display: flex; flex-direction: column; }
.rhshop-cart__title { font-weight: 600; }
.rhshop-cart__opts { font-size: 0.85rem; opacity: 0.7; }
.rhshop-cart__unit { font-size: 0.85rem; opacity: 0.6; }
.rhshop-cart__lt { font-weight: 600; white-space: nowrap; }
.rhshop-cart__remove {
	width: 2rem; height: 2rem;
	border: 0; border-radius: 50%;
	background: var(--rhshop-surface-fallback);
	background: var(--rhshop-surface);
	font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.rhshop-cart__remove:hover {
	background: var(--rhshop-surface-2-fallback);
	background: var(--rhshop-surface-2);
}

/* display:flex schlägt das UA-[hidden], darum explizit: leer -> Summe/Kasse weg. */
.rhshop-cart__foot[hidden] { display: none; }
.rhshop-cart__foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-top: 1.2rem;
	flex-wrap: wrap;
}
.rhshop-cart__sum { font-size: 1.2rem; display: flex; gap: 0.6rem; align-items: baseline; }
.rhshop-cart__sum strong { font-size: 1.4rem; }

/* Der Summe-Block als abgesetztes Panel (steht meist in einer schmalen Spalte neben
   den Positionen). Klebt beim Scrollen oben mit. */
.rhshop-cart-summary { position: sticky; top: 1.5rem; }
.rhshop-cart-summary .rhshop-cart__foot {
	flex-direction: column;
	align-items: stretch;
	gap: 0.9rem;
	margin-top: 0;
	padding: clamp(1.1rem, 3vw, 1.5rem);
	border: 1px solid var(--rhshop-line-fallback);
	border: 1px solid var(--rhshop-line);
	border-radius: var(--rhshop-radius-lg);
	background: var(--rhshop-surface-fallback);
	background: var(--rhshop-surface);
}
.rhshop-cart-summary .rhshop-cart__sum { justify-content: space-between; }
.rhshop-cart-summary .rhshop-btn-checkout { display: block; text-align: center; }

.rhshop-editor-hint {
	padding: 1.5rem;
	border: 1px dashed var(--rhshop-border-fallback);
	border: 1px dashed var(--rhshop-border);
	border-radius: var(--rhshop-radius);
	text-align: center;
	opacity: 0.7;
}

/* Kasse */
/* Keine feste Breite mehr: das Layout (z.B. zweispaltig via Core-Spalten) bestimmt der
   Betreiber selbst über die getrennten Kassen-Blöcke. Der Block füllt seinen Container. */
.rhshop-checkout__title { margin: 0 0 0.8rem; font-size: 1.3rem; }

/* §312j-Gesamtzeile direkt über dem Bestell-Button (im Formular-Block). */
.rhshop-checkout__payline {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2rem 0.6rem;
	margin: 0 0 1rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid var(--rhshop-line-fallback);
	border-bottom: 1px solid var(--rhshop-line);
}
.rhshop-checkout__payline-label { font-weight: 600; }
.rhshop-checkout__payline-total { font-size: 1.35rem; font-weight: 700; margin-left: auto; }
.rhshop-checkout__payline-note { flex-basis: 100%; font-size: 0.82rem; opacity: 0.65; }
.rhshop-checkout__items { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.rhshop-checkout__item {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 0.8rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--rhshop-line-fallback);
	border-bottom: 1px solid var(--rhshop-line);
}
.rhshop-checkout__item-qty { opacity: 0.6; font-size: 0.9rem; }
.rhshop-checkout__item-total { font-weight: 600; white-space: nowrap; }

.rhshop-checkout__breakdown { margin: 1.2rem 0; }
.rhshop-checkout__row {
	display: flex;
	justify-content: space-between;
	padding: 0.3rem 0;
}
.rhshop-checkout__row--muted { opacity: 0.65; font-size: 0.9rem; }
.rhshop-checkout__freeship { margin: 0.2rem 0 0; font-size: 0.85rem; opacity: 0.75; }
.rhshop-checkout__total {
	border-top: 2px solid var(--rhshop-line-strong-fallback);
	border-top: 2px solid var(--rhshop-line-strong);
	margin-top: 0.4rem;
	padding-top: 0.7rem;
	font-size: 1.25rem;
	font-weight: 700;
}
.rhshop-checkout__taxnote { font-size: 0.85rem; opacity: 0.7; margin: 0.4rem 0 0; }

/* Versandmethoden-Auswahl im Checkout. */
.rhshop-checkout__shipping { margin: 1.2rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.rhshop-checkout__ship-opt {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--rhshop-border-fallback);
	border: 1px solid var(--rhshop-border);
	border-radius: var(--rhshop-radius);
	cursor: pointer;
	transition: border-color 0.15s ease;
}
.rhshop-checkout__ship-opt:hover { border-color: var(--rhshop-accent); }
.rhshop-checkout__ship-opt:has(input:checked) { border-color: var(--rhshop-accent); box-shadow: inset 0 0 0 1px var(--rhshop-accent); }
.rhshop-checkout__ship-opt input { flex: none; margin: 0; }
.rhshop-checkout__ship-name { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.rhshop-checkout__ship-time { font-size: 0.82rem; opacity: 0.65; }
.rhshop-checkout__ship-price { font-weight: 600; white-space: nowrap; }

.rhshop-checkout__form .rhshop-field { margin-bottom: 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; }
.rhshop-checkout__form label { font-weight: 500; }
.rhshop-checkout__form input[type="email"],
.rhshop-checkout__form input[type="text"] {
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--rhshop-border-fallback);
	border: 1px solid var(--rhshop-border);
	border-radius: var(--rhshop-radius);
	background: transparent;
	color: inherit;
	font-size: 1rem;
}

.rhshop-checkout__section { margin: 1.3rem 0; }
.rhshop-checkout__section-title { display: block; font-weight: 500; margin-bottom: 0.5rem; }

.rhshop-checkout__consents { margin: 1rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.rhshop-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; line-height: 1.4; }
.rhshop-consent input { margin-top: 0.2rem; flex: none; }

.rhshop-btn-order {
	appearance: none;
	border: 0;
	border-radius: var(--rhshop-radius);
	padding: 0.9rem 1.6rem;
	width: 100%;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	background: var(--rhshop-accent);
	color: var(--rhshop-on-accent);
	transition: opacity 0.2s ease;
}
.rhshop-btn-order:hover:not(:disabled) { opacity: 0.88; }
.rhshop-btn-order:disabled { opacity: 0.5; cursor: progress; }

.rhshop-checkout__msg { min-height: 1.2em; margin: 0.7rem 0 0; color: var(--rhshop-error); font-size: 0.9rem; }
.rhshop-checkout__payment { margin-top: 1.5rem; }

/* Widerruf (§356a) */
.rhshop-widerruf { max-width: 520px; }
.rhshop-widerruf .rhshop-field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; }
.rhshop-widerruf .rhshop-field label { font-weight: 500; }
.rhshop-widerruf input[type="text"],
.rhshop-widerruf input[type="email"],
.rhshop-widerruf textarea {
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--rhshop-border-fallback);
	border: 1px solid var(--rhshop-border);
	border-radius: var(--rhshop-radius);
	background: transparent;
	color: inherit;
	font-size: 1rem;
}
.rhshop-widerruf .rhshop-btn-order { margin-top: 0.4rem; }
.rhshop-widerruf__belehrung { font-size: 0.9rem; opacity: 0.8; }
.rhshop-widerruf__success h3 { margin-top: 0; }

/* Muster-Widerrufsformular (Shortcode auf der Widerrufsbelehrungs-Seite) */
.rhshop-widerrufsformular { margin: 1.5rem 0; }
.rhshop-widerrufsformular__list { list-style: none; margin: 0; padding: 0; }
.rhshop-widerrufsformular__list li {
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--rhshop-line-fallback);
	border-bottom: 1px solid var(--rhshop-line);
}
.rhshop-widerrufsformular__note { margin-top: 0.75rem; font-size: 0.85rem; opacity: 0.75; }

/* Bestätigungsseite (/danke, [rhshop_danke]). Fließt links im Content, keine
   zentrierte Box: nur die Bestellübersicht ist eine abgesetzte Beleg-Karte. */
/* Selbst-Constraint der Shop-Seiten-Blocks. Auf full-width-Themes (Container ohne
   Content-Breite, z.B. eine alignfull post-content) saessen sie sonst randlos am
   Viewport-Rand. Nutzt die Layout-Breiten des Themes (theme.json), zentriert und
   gibt seitliches Padding. Auf constrained-Themes weitgehend ein No-op. Die Kauf-Box
   ist bewusst NICHT dabei (sitzt im Produkt-Template in einer Spalte). */
/* Das Produkt-Raster begrenzt sich selbst (steht meist allein auf der Shop-Seite). Die
   Warenkorb- und Kassen-Blöcke NICHT: die ordnet der Betreiber selbst über Core-Layout
   (Spalten/Gruppen) an, ein eigener Constraint würde damit kollidieren. */
.wp-block-rh-shop-product-grid {
	margin-inline: auto;
	margin-block: clamp(2rem, 5vw, 4rem);
	padding-inline: clamp(1rem, 4vw, 2rem);
	box-sizing: border-box;
	max-width: var(--wp--style--global--wide-size, 1200px);
}

.rhshop-danke {
	max-width: var(--wp--style--global--content-size, 720px);
	margin-inline: auto;
	/* padding statt margin: das Block-Theme resettet margin-block der Content-Kinder,
	   padding wird nicht geresettet und kollabiert nicht. */
	padding-block: clamp(2.5rem, 6vw, 5rem);
	padding-inline: clamp(1rem, 4vw, 2rem);
	box-sizing: border-box;
}

/* Als Block eingebunden bestimmt das Layout der Seite Breite und Abstände (der
   Betreiber setzt den Block in seine Gruppen/Sektionen); der Self-Constraint oben
   bleibt nur der Fallback für den Legacy-Shortcode ohne Seitenlayout. */
.rhshop-danke-block .rhshop-danke {
	max-width: none;
	margin-inline: 0;
	padding-block: 0;
	padding-inline: 0;
}

/* Gleiches Prinzip fürs Widerruf-Formular: die eigene 520px-Klemme gilt nur
   standalone, im Block regelt das Seiten-Layout die Breite. */
.rhshop-widerruf-block .rhshop-widerruf { max-width: none; }

.rhshop-danke__status { display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 1.1rem; }
.rhshop-danke__badge {
	flex: none;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	line-height: 1;
}
.rhshop-danke__badge--ok { background: var(--rhshop-ok); color: var(--rhshop-on-accent); }
.rhshop-danke__badge--wait {
	background: var(--rhshop-surface-2-fallback);
	background: var(--rhshop-surface-2);
}
.rhshop-danke__status-text { padding-top: 0.15rem; }
.rhshop-danke__lead { margin: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.rhshop-danke__order-no { margin: 0.2rem 0 0; opacity: 0.65; font-size: 0.95rem; }
.rhshop-danke__note { margin: 0 0 1.6rem; max-width: 46ch; }

.rhshop-danke__order {
	border: 1px solid var(--rhshop-line-strong-fallback);
	border: 1px solid var(--rhshop-line-strong);
	border-radius: var(--rhshop-radius-lg);
	padding: clamp(1.1rem, 3vw, 1.5rem);
	background: var(--rhshop-surface-fallback);
	background: var(--rhshop-surface);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.rhshop-danke__order-title {
	margin: 0 0 0.9rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.55;
}
.rhshop-danke__items { list-style: none; margin: 0; padding: 0; }
.rhshop-danke__item {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 0.9rem;
	align-items: baseline;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--rhshop-line-fallback);
	border-bottom: 1px solid var(--rhshop-line);
}
.rhshop-danke__item-qty { opacity: 0.55; font-size: 0.9rem; white-space: nowrap; }
.rhshop-danke__item-total { font-weight: 600; white-space: nowrap; }
.rhshop-danke__breakdown { margin-top: 0.9rem; }
.rhshop-danke__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.28rem 0; }
.rhshop-danke__row--muted { opacity: 0.6; font-size: 0.9rem; }
.rhshop-danke__row--total {
	border-top: 2px solid var(--rhshop-line-strong-fallback);
	border-top: 2px solid var(--rhshop-line-strong);
	margin-top: 0.45rem;
	padding-top: 0.6rem;
	font-size: 1.15rem;
	font-weight: 700;
}
.rhshop-danke__taxnote { font-size: 0.85rem; opacity: 0.65; margin: 0.5rem 0 0; }

.rhshop-danke__invoice { margin: 1.4rem 0 0; }
.rhshop-danke__invoice a {
	display: inline-block;
	padding: 0.6rem 1.3rem;
	border: 1px solid currentColor;
	border-radius: var(--rhshop-radius);
	font-weight: 600;
	text-decoration: none;
	color: inherit;
}
.rhshop-danke__invoice a:hover { opacity: 0.7; }
.rhshop-danke__invoice-wait { opacity: 0.55; font-size: 0.9rem; }

/* --- Loading-States (Spinner für Aktionen, Skeleton für ladenden Inhalt) --- */
@keyframes rhshop-spin { to { transform: rotate(360deg); } }
.rhshop-spinner {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.15em;
	margin-right: 0.4em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: rhshop-spin 0.7s linear infinite;
}

@keyframes rhshop-pulse { 50% { opacity: 0.45; } }
.rhshop-skeleton {
	background: var(--rhshop-surface-2-fallback);
	background: var(--rhshop-surface-2);
	border-radius: var(--rhshop-radius);
	animation: rhshop-pulse 1.4s ease-in-out infinite;
}
.rhshop-skeleton + .rhshop-skeleton { margin-top: 0.7rem; }

/* Ladender Button: leicht gedimmt, Cursor signalisiert warten. */
.rhshop-btn-order:disabled,
.rhshop-btn-add:disabled { cursor: progress; }

/* Einheitlicher Pending-Zustand (withPending in shop.js): auf gefüllten Buttons ersetzt
   ein zentrierter Spinner das Label, Warenkorb-Zeilen dimmen während der Anfrage. */
.rhshop-btn-add.is-pending,
.rhshop-btn-order.is-pending,
.rhshop-btn-checkout.is-pending,
.rhshop-card__quick-add.is-pending {
	position: relative;
	color: transparent;
	pointer-events: none;
}
.rhshop-btn-add.is-pending::after,
.rhshop-btn-order.is-pending::after,
.rhshop-btn-checkout.is-pending::after,
.rhshop-card__quick-add.is-pending::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.1em;
	height: 1.1em;
	margin: -0.55em 0 0 -0.55em;
	border: 2px solid var(--rhshop-on-accent);
	border-right-color: transparent;
	border-radius: 50%;
	animation: rhshop-spin 0.7s linear infinite;
}
.rhshop-cart__line.is-pending { opacity: 0.55; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
	.rhshop-spinner { animation-duration: 1.6s; }
	.rhshop-skeleton { animation: none; opacity: 0.7; }
	.rhshop-btn-add.is-pending::after,
	.rhshop-btn-order.is-pending::after,
	.rhshop-btn-checkout.is-pending::after { animation-duration: 1.6s; }
}

/* =========================================================================
   Warenkorb-Widget (Nav-Trigger + Drawer-Overlay)
   Der Drawer wird per JS an den <body> gehängt. Alles ist unter .rhshop-cw
   bzw. .rhshop-cw__drawer gescopt, plus ein :where()-Reset (Specificity 0),
   der Theme-Defaults der genutzten Elemente neutralisiert, ohne unsere
   eigenen Klassen-Regeln zu überstimmen. So keine Konflikte mit dem Theme.
   ========================================================================= */

/* --- Trigger in der Navigation (erbt Farbe/Schrift der Nav) --- */
.rhshop-cw { display: inline-flex; }
.rhshop-cw__trigger {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: inherit;
	text-decoration: none;
	line-height: 1;
	cursor: pointer;
}
.rhshop-cw__icon { display: inline-flex; }
.rhshop-cw__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.3em;
	height: 1.3em;
	padding: 0 0.35em;
	font-size: 0.7em;
	font-weight: 700;
	line-height: 1;
	color: var(--rhshop-on-accent);
	background: var(--rhshop-accent);
	border-radius: var(--rhshop-radius-pill);
}
.rhshop-cw__badge[hidden] { display: none; }

/* --- Drawer-Overlay (an body gehängt) --- */
.rhshop-cw__drawer { position: fixed; inset: 0; z-index: 2147483000; }
.rhshop-cw__drawer[hidden] { display: none; }

.rhshop-cw__drawer,
.rhshop-cw__drawer *,
.rhshop-cw__drawer *::before,
.rhshop-cw__drawer *::after { box-sizing: border-box; }

/* Reset für die im Drawer genutzten Element-Typen: neutralisiert Theme-Grundstile.
   Der Vorfahre .rhshop-cw__panel gibt Specificity 0,1,0 (schlägt Theme-Element-
   Selektoren), das :where() hält nur den Element-Teil bei 0. Eigene gestylte Klassen
   mit gleicher Specificity (0,1,0) verlieren also per Reihenfolge und müssen unten
   nachgezogen werden, wo eine eigene Farbe/BG nötig ist (siehe .rhshop-btn-checkout). */
.rhshop-cw__panel :where(ul, ol, li) { margin: 0; padding: 0; list-style: none; }
.rhshop-cw__panel :where(p, h1, h2, h3, h4, figure, span, strong, div) { margin: 0; }
.rhshop-cw__panel :where(button) { margin: 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.rhshop-cw__panel :where(a) { color: inherit; }
.rhshop-cw__panel :where(img) { max-width: 100%; height: auto; display: block; }
.rhshop-cw__panel :where(input) { font: inherit; }
/* Der "Zur Kasse"-Button ist ein <a> mit eigener heller Schrift auf dunklem Grund.
   Der :where(a)-Reset oben (0,1,0) würde ihm sonst die Farbe klauen -> dunkel auf
   dunkel, unlesbar. Höhere Specificity (0,2,0) holt die Button-Farbe zurück. */
.rhshop-cw__panel .rhshop-btn-checkout { color: var(--rhshop-on-accent); }

.rhshop-cw__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.rhshop-cw__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(420px, 100%);
	display: flex;
	flex-direction: column;
	/* Eigene, theme-neutrale Fläche: das Overlay steht bewusst nicht auf der
	   (evtl. transparenten) Theme-Fläche. Über die Variablen überschreibbar. */
	--rhshop-cw-bg: #ffffff;
	--rhshop-cw-fg: #1c2c2c;
	background: var(--rhshop-cw-bg);
	color: var(--rhshop-cw-fg);
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.16);
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	font-family: inherit;
}
.rhshop-cw__drawer.is-open .rhshop-cw__backdrop { opacity: 1; }
.rhshop-cw__drawer.is-open .rhshop-cw__panel { transform: translateX(0); }

.rhshop-cw__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.2rem;
	border-bottom: 1px solid var(--rhshop-line-fallback);
	border-bottom: 1px solid var(--rhshop-line);
}
.rhshop-cw__panel-title { font-size: 1.15rem; font-weight: 700; }
.rhshop-cw__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	font-size: 1.6rem;
	border-radius: var(--rhshop-radius-pill);
}
.rhshop-cw__close:hover {
	background: var(--rhshop-surface-fallback);
	background: var(--rhshop-surface);
}
.rhshop-cw__body { flex: 1 1 auto; overflow-y: auto; padding: 0.6rem 1.2rem; }
.rhshop-cw__summary { padding: 1rem 1.2rem 1.3rem; }

/* Die wiederverwendete Summe klebt im Drawer nicht (kein sticky), der Rahmen
   der Summe bleibt als abgesetztes Panel erhalten. */
.rhshop-cw__panel .rhshop-cart-summary { position: static; top: auto; }
.rhshop-cw__panel .rhshop-cart__notice:not(:empty) { margin-top: 0.6rem; }

/* Im schmalen Drawer die Positions-Zeile zweizeilig: Bild links über beide Zeilen,
   oben Titel + Entfernen, unten Mengen-Stepper + Zeilensumme. Sonst quetscht das
   5-spaltige Desktop-Raster den Stepper zusammen. */
.rhshop-cw__panel .rhshop-cart__line {
	grid-template-columns: 56px 1fr auto;
	grid-template-areas:
		"media info remove"
		"media qty total";
	column-gap: 0.9rem;
	row-gap: 0.55rem;
	align-items: center;
}
.rhshop-cw__panel .rhshop-cart__media { grid-area: media; align-self: start; }
.rhshop-cw__panel .rhshop-cart__info { grid-area: info; }
.rhshop-cw__panel .rhshop-cart__remove { grid-area: remove; justify-self: end; }
.rhshop-cw__panel .rhshop-qty { grid-area: qty; justify-self: start; }
.rhshop-cw__panel .rhshop-cart__lt { grid-area: total; justify-self: end; }

@media (prefers-reduced-motion: reduce) {
	.rhshop-cw__backdrop,
	.rhshop-cw__panel { transition: none; }
}

/* =========================================================================
   Produktseite: Titel-Umbruch, Sticky-Kaufspalte, Akkordeons
   ========================================================================= */

/* Lange Produktnamen ("Waschtischarmatur") sauber trennen statt hart umbrechen. */
.single-rh_product .wp-block-post-title {
	overflow-wrap: anywhere;
	hyphens: auto;
	-webkit-hyphens: auto;
}

/* Die Kauf-Spalte bleibt beim Scrollen neben langer Galerie/Beschreibung stehen.
   align-self ist Pflicht: gestreckte Flex-Kinder sticken nicht. */
@media (min-width: 782px) {
	.wp-block-column.rhshop-sticky-col {
		position: sticky;
		top: 2rem;
		align-self: flex-start;
	}
}

/* Feature-Liste unter der Kauf-Box: Häkchen statt Bullets, kompakter Takt. */
.rhshop-features {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.95rem;
}
.rhshop-features li {
	position: relative;
	padding-left: 1.7rem;
	margin: 0;
}
.rhshop-features li + li { margin-top: 0.45rem; }
.rhshop-features li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.28em;
	width: 1.05em;
	height: 1.05em;
	border-radius: 50%;
	background-color: var(--rhshop-ok);
	/* Haken als Maske, damit er die ok-Farbe traegt und skaliert. */
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.8 4.6 4.6L19.5 6.6"/></svg>') center / contain no-repeat;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.8 4.6 4.6L19.5 6.6"/></svg>') center / contain no-repeat;
}

/* Akkordeons (Versand/Widerruf) unter der Kauf-Box: eigene Chevrons rechts,
   ruhige Zeilen mit Trennlinien, Antwort-Text leicht zurueckgenommen. */
.rhshop-details {
	border-top: 1px solid var(--rhshop-line-fallback);
	border-top: 1px solid var(--rhshop-line);
	padding: 0;
	margin: 0;
}
.rhshop-details:last-of-type {
	border-bottom: 1px solid var(--rhshop-line-fallback);
	border-bottom: 1px solid var(--rhshop-line);
}
.rhshop-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	padding: 0.85rem 0;
	cursor: pointer;
	font-weight: 600;
	list-style: none;
	transition: opacity 0.15s ease;
}
.rhshop-details summary::-webkit-details-marker { display: none; }
.rhshop-details summary::after {
	content: '';
	flex: none;
	width: 0.55em;
	height: 0.55em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.55;
	transition: transform 0.2s ease;
	/* Die rotierte Box ragt diagonal ~2px über ihre Layout-Box hinaus und erzeugt
	   sonst horizontalen Overflow auf Mobile; der Rand-Abstand fängt das ab. */
	margin: -0.2em 3px 0;
}
.rhshop-details[open] summary::after { transform: rotate(225deg); margin-top: 0.2em; }
.rhshop-details summary:hover { opacity: 0.75; }
.rhshop-details > :not(summary) {
	margin: 0 0 0.9rem;
	font-size: 0.92rem;
	opacity: 0.8;
	max-width: 60ch;
}

@media (prefers-reduced-motion: reduce) {
	.rhshop-details summary::after { transition: none; }
}

/* =========================================================================
   Produkt-Galerie (Hauptbild + Thumbnail-Leiste + Lightbox)
   ========================================================================= */

.rhshop-gallery__main {
	margin: 0;
	border-radius: var(--rhshop-radius-lg);
	overflow: hidden;
	background: var(--rhshop-surface-fallback);
	background: var(--rhshop-surface);
	aspect-ratio: 1;
}
.rhshop-gallery__main .rhshop-card__ph { aspect-ratio: 1; }
.rhshop-gallery__zoom {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}
.rhshop-gallery__zoom img,
.rhshop-gallery__main > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rhshop-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 0.7rem;
}
.rhshop-gallery__thumb {
	display: block;
	width: clamp(56px, 8vw, 76px);
	aspect-ratio: 1;
	border-radius: var(--rhshop-radius);
	overflow: hidden;
	border: 2px solid transparent;
	transition: border-color 0.15s ease, opacity 0.15s ease;
	opacity: 0.75;
}
.rhshop-gallery__thumb:hover { opacity: 1; }
.rhshop-gallery__thumb.is-active {
	border-color: var(--rhshop-accent);
	opacity: 1;
}
.rhshop-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Zoom-Overlay (per JS an den body gehängt). */
.rhshop-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 4vw, 3rem);
	background: rgba(10, 10, 10, 0.88);
	cursor: zoom-out;
	animation: rhshop-fade 0.2s ease;
}
@keyframes rhshop-fade { from { opacity: 0; } }
.rhshop-lightbox img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: var(--rhshop-radius);
}
.rhshop-lightbox__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 2.6rem;
	height: 2.6rem;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}
.rhshop-lightbox__close:hover { background: rgba(255, 255, 255, 0.26); }

/* =========================================================================
   Grid-Erweiterungen: Überschrift, Kategorie-Pills, Suche
   ========================================================================= */

.rhshop-grid-heading { margin: 0 0 1.2rem; }

.rhshop-grid-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.7rem 1rem;
	margin: 0 0 1.4rem;
}
.rhshop-grid-controls[hidden] { display: none; }

.rhshop-grid-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.rhshop-grid-pill {
	appearance: none;
	padding: 0.42rem 0.95rem;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1;
	color: inherit;
	background: transparent;
	border: 1px solid var(--rhshop-border-fallback);
	border: 1px solid var(--rhshop-border);
	border-radius: var(--rhshop-radius-pill);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rhshop-grid-pill:hover { border-color: var(--rhshop-accent); }
.rhshop-grid-pill[aria-pressed="true"] {
	background: var(--rhshop-accent);
	border-color: var(--rhshop-accent);
	color: var(--rhshop-on-accent);
}
.rhshop-grid-pill:focus-visible {
	outline: 2px solid var(--rhshop-accent);
	outline-offset: 2px;
}

.rhshop-grid-empty { opacity: 0.7; }

/* Der Grid-Block-Wrapper übernimmt den bisherigen Self-Constraint des Rasters. */
.wp-block-rh-shop-product-grid .rhshop-grid { margin: 0; }

/* In einem constrained Layout (Produkt-Template, Section-Gruppen) regelt das
   Layout-System Breite und Zentrierung. Das eigene Seiten-Padding des
   Self-Constraints würde den Block dort gegen die Nachbarn einrücken (gemessen:
   32px Versatz auf der Produktseite), darum dort neutralisieren. */
.is-layout-constrained > .wp-block-rh-shop-product-grid {
	padding-inline: 0;
	margin-block: 0;
}

@media (prefers-reduced-motion: reduce) {
	.rhshop-card,
	.rhshop-card:hover { transform: none; transition: none; }
	.rhshop-card__quick-add,
	.rhshop-card__quick-add:hover { transform: none; transition: none; }
	.rhshop-card__media img { transition: none; }
	.rhshop-card:hover .rhshop-card__media img { transform: none; }
	.rhshop-lightbox { animation: none; }
	.rhshop-gallery__thumb { transition: none; }
}

/* =========================================================================
   Produkt-Suche (Nav-Trigger + Overlay)
   Das Overlay wird per JS an den <body> gehängt, gleiche Isolation wie beim
   Warenkorb-Widget (eigene Fläche, box-sizing-Reset).
   ========================================================================= */

.rhshop-search { display: inline-flex; }
.rhshop-search__trigger {
	display: inline-flex;
	align-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	line-height: 1;
	cursor: pointer;
}

.rhshop-search__overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
}
.rhshop-search__overlay[hidden] { display: none; }
.rhshop-search__overlay,
.rhshop-search__overlay *,
.rhshop-search__overlay *::before,
.rhshop-search__overlay *::after { box-sizing: border-box; }

.rhshop-search__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.rhshop-search__panel {
	position: relative;
	margin: clamp(3rem, 12vh, 8rem) auto 0;
	width: min(560px, calc(100% - 2rem));
	max-height: min(70vh, 560px);
	display: flex;
	flex-direction: column;
	--rhshop-cw-bg: #ffffff;
	--rhshop-cw-fg: #1c2c2c;
	background: var(--rhshop-cw-bg);
	color: var(--rhshop-cw-fg);
	border-radius: var(--rhshop-radius-lg);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	font-family: inherit;
}
.rhshop-search__overlay.is-open .rhshop-search__backdrop { opacity: 1; }
.rhshop-search__overlay.is-open .rhshop-search__panel { opacity: 1; transform: translateY(0); }

.rhshop-search__bar {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.9rem 1rem;
	border-bottom: 1px solid var(--rhshop-line-fallback);
	border-bottom: 1px solid var(--rhshop-line);
}
.rhshop-search__field { flex: 1; margin: 0; }
.rhshop-search__field input {
	width: 100%;
	padding: 0.45rem 0.2rem;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 1.1rem;
	outline: none;
}
/* Das native Clear-× des Suchfelds aus: der Panel-Schließen-Button steht direkt daneben. */
.rhshop-search__field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.rhshop-search__close {
	flex: none;
	width: 2.1rem;
	height: 2.1rem;
	border: 0;
	border-radius: var(--rhshop-radius-pill);
	background: none;
	color: inherit;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}
.rhshop-search__close:hover {
	background: var(--rhshop-surface-fallback);
	background: var(--rhshop-surface);
}

.rhshop-search__status { margin: 0; padding: 0.5rem 1rem 0; font-size: 0.85rem; opacity: 0.65; }
.rhshop-search__status:empty { padding: 0; }

.rhshop-search__results {
	list-style: none;
	margin: 0;
	padding: 0.5rem;
	overflow-y: auto;
}
.rhshop-search__result {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.55rem 0.6rem;
	border-radius: var(--rhshop-radius);
	color: inherit;
	text-decoration: none;
}
.rhshop-search__result:hover,
.rhshop-search__result:focus-visible {
	background: var(--rhshop-surface-fallback);
	background: var(--rhshop-surface);
}
.rhshop-search__result-media { flex: none; width: 52px; height: 52px; }
.rhshop-search__result-media img,
.rhshop-search__result-media .rhshop-card__ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--rhshop-radius);
	display: block;
}
.rhshop-search__result-info { display: flex; flex-direction: column; min-width: 0; }
.rhshop-search__result-title { font-weight: 600; }
.rhshop-search__result-price { font-size: 0.88rem; opacity: 0.7; }
.rhshop-search__soldout {
	margin-left: auto;
	flex: none;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.2rem 0.55rem;
	border-radius: var(--rhshop-radius-pill);
	background: rgba(20, 20, 20, 0.85);
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.rhshop-search__backdrop,
	.rhshop-search__panel { transition: none; transform: none; }
}

/* =========================================================================
   Leerer Warenkorb: nutzbare Fläche statt nur ein Satz
   (Seite: Symbol + Text + Button + Empfehlungs-Raster; Drawer: kompakt ohne Raster)
   ========================================================================= */

.rhshop-cart-empty__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: clamp(1.5rem, 4vw, 3rem) 1rem;
}
.rhshop-cart-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.4rem;
	height: 3.4rem;
	margin-bottom: 0.9rem;
	border-radius: 50%;
	background: var(--rhshop-surface-fallback);
	background: var(--rhshop-surface);
	font-size: 1.5rem;
}
.rhshop-cart-empty__title { margin: 0; font-size: 1.2rem; font-weight: 700; }
.rhshop-cart-empty__text { margin: 0.35rem 0 0; opacity: 0.7; }
.rhshop-cart-empty__cta { margin-top: 1.1rem; }

/* Drawer-Variante: kompakter, das Panel bringt schon Rahmen und Fläche mit. */
.rhshop-cw__panel .rhshop-cart-empty__head { padding: 2.2rem 1rem; }
.rhshop-cw__panel .rhshop-cart-empty__cta {
	background: var(--rhshop-accent);
	border-radius: var(--rhshop-radius);
	padding: 0.7rem 1.4rem;
	font-weight: 600;
}

/* Technische-Daten-Liste (Produkt-Content): ruhige Zeilen mit Trennlinien. */
.rhshop-spec-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.92rem;
}
.rhshop-spec-list li {
	margin: 0;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--rhshop-line-fallback);
	border-bottom: 1px solid var(--rhshop-line);
}
.rhshop-spec-list li:first-child { padding-top: 0; }
.rhshop-spec-list li:last-child { padding-bottom: 0; border-bottom: 0; }
