<?php
/**
 * Selina Bäckerei – WooCommerce Styles
 */

/* ── Shop-Hintergrund ─────────────────────────────────────── */

body.selina-woocommerce .site-main.selina-shop-page {
	background: var(--selina-cream);
	min-height: 60vh;
}

body.selina-woocommerce .site-main.selina-shop-page > .woocommerce {
	margin: 0;
	padding: 0;
	max-width: none;
}

/* ── Shop & Kategorie-Layout ──────────────────────────────── */

.selina-shop-page {
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 24px 56px;
	box-sizing: border-box;
}

.selina-shop-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.selina-shop-layout > .selina-archive-header {
	grid-column: 1 / -1;
}

.selina-shop-main {
	min-width: 0;
}

.selina-shop-main > .woocommerce-breadcrumb {
	margin: 0 0 20px;
	font-size: 0.8rem;
	color: rgba(74, 50, 40, 0.6);
}

.selina-shop-main .woocommerce-breadcrumb a,
.selina-product-page .woocommerce-breadcrumb a {
	color: var(--selina-brown);
}

.selina-product-page .woocommerce-breadcrumb {
	margin: 0 0 20px;
	font-size: 0.8rem;
	color: rgba(74, 50, 40, 0.6);
}

/* ── Archiv-Header ────────────────────────────────────────── */

.selina-archive-header {
	background: #fff;
	border-radius: var(--selina-radius);
	box-shadow: var(--selina-shadow);
	padding: 32px 36px;
	margin: 0;
}

.selina-archive-header__title {
	font-family: var(--selina-font-script);
	font-size: 2.4rem;
	color: var(--selina-brown);
	margin: 0;
	line-height: 1.15;
}

.selina-archive-header__desc {
	font-size: 0.95rem;
	line-height: 1.65;
	color: rgba(74, 50, 40, 0.78);
	margin: 14px 0 0;
	max-width: 62ch;
}

.selina-archive-header__desc p {
	margin: 0;
}

/* Shop-Toolbar (Anzahl + Sortierung) */
.selina-shop-main .woocommerce-result-count,
.selina-shop-main .woocommerce-ordering {
	margin: 0;
	font-size: 0.82rem;
	color: rgba(74, 50, 40, 0.72);
}

.selina-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	background: #fff;
	border-radius: var(--selina-radius);
	box-shadow: var(--selina-shadow);
	padding: 14px 18px;
	margin: 0 0 24px;
}

.selina-shop-main .woocommerce-notices-wrapper {
	margin-bottom: 20px;
}

.selina-shop-main ul.products {
	margin-top: 0 !important;
}

/* ── Einzelprodukt ────────────────────────────────────────── */

.selina-product-page {
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 24px 56px;
	box-sizing: border-box;
}

.selina-product-page__inner {
	background: #fff;
	border-radius: var(--selina-radius);
	box-shadow: var(--selina-shadow);
	padding: 32px 40px 40px;
}

.selina-single-product {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 48px;
	align-items: start;
}

.selina-single-product .related.products,
.selina-single-product .upsells.products,
.selina-single-product .woocommerce-tabs {
	grid-column: 1 / -1;
}

.selina-single-product__gallery {
	background: var(--selina-cream);
	border-radius: var(--selina-radius);
	padding: 20px;
}

.selina-single-product__gallery .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

.selina-single-product__gallery .woocommerce-product-gallery__image img {
	border-radius: var(--selina-radius);
	width: 100%;
	height: auto;
}

/* Produktgalerie: Thumbnails */
.selina-single-product__gallery .woocommerce-product-gallery .flex-viewport {
	margin-bottom: 0;
	border-radius: var(--selina-radius);
	overflow: hidden;
}

.selina-single-product__gallery .woocommerce-product-gallery__trigger {
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--selina-brown);
	box-shadow: 0 2px 12px rgba(74, 50, 40, 0.14);
	transition: background 0.2s, color 0.2s, transform 0.15s;
}

.selina-single-product__gallery .woocommerce-product-gallery__trigger:hover {
	background: var(--selina-rose);
	color: #fff;
	transform: scale(1.04);
}

.selina-single-product__gallery .woocommerce-product-gallery__trigger::before {
	font-size: 18px;
}

.selina-single-product__gallery .woocommerce-product-gallery__trigger img.emoji {
	display: none;
}

.selina-single-product__gallery ol.flex-control-thumbs {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	width: 100% !important;
	margin: 12px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.selina-single-product__gallery ol.flex-control-thumbs li {
	float: none !important;
	width: 56px !important;
	flex: 0 0 56px;
	margin: 0 !important;
	padding: 0 !important;
}

.selina-single-product__gallery ol.flex-control-thumbs li img {
	display: block;
	width: 56px !important;
	height: 56px !important;
	max-width: 56px !important;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--selina-radius);
	border: 2px solid rgba(74, 50, 40, 0.12);
	box-shadow: 0 2px 8px rgba(74, 50, 40, 0.06);
	opacity: 0.78 !important;
	cursor: pointer;
	transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.selina-single-product__gallery ol.flex-control-thumbs li img:hover {
	opacity: 1 !important;
	border-color: rgba(229, 154, 154, 0.55);
}

.selina-single-product__gallery ol.flex-control-thumbs li img.flex-active {
	opacity: 1 !important;
	border-color: var(--selina-rose);
	box-shadow: 0 4px 14px rgba(229, 154, 154, 0.28);
}

.selina-single-product__summary {
	padding-top: 8px;
}

.selina-single-product__summary .product_title {
	font-family: var(--selina-font-script);
	font-size: 2.5rem;
	font-weight: 600;
	color: var(--selina-brown);
	margin: 0 0 12px;
	line-height: 1.15;
}

.selina-single-product__summary p.price {
	font-size: 1.6rem !important;
	font-weight: 700 !important;
	color: var(--selina-brown) !important;
	margin: 0 0 20px !important;
}

.selina-single-product__summary .woocommerce-product-details__short-description {
	font-size: 0.95rem;
	line-height: 1.65;
	color: rgba(74, 50, 40, 0.82);
	margin-bottom: 24px;
}

.selina-single-product__summary .woocommerce-product-details__short-description p {
	margin: 0 0 0.8em;
}

.selina-single-product__summary form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 0 0 24px;
	padding: 20px 0;
	border-top: 1px solid rgba(74, 50, 40, 0.1);
	border-bottom: 1px solid rgba(74, 50, 40, 0.1);
}

.selina-single-product__summary form.cart .quantity {
	margin-right: 4px;
}

.selina-single-product__summary form.cart .quantity input.qty {
	width: 64px;
	padding: 10px;
	border: 1px solid rgba(74, 50, 40, 0.2);
	border-radius: var(--selina-radius);
	font-family: var(--selina-font-body);
	text-align: center;
}

.selina-single-product__summary form.cart .button {
	background: var(--selina-rose) !important;
	color: #fff !important;
	border-radius: var(--selina-radius) !important;
	padding: 14px 36px !important;
	font-weight: 600 !important;
	font-size: 0.9rem !important;
	transition: background 0.2s !important;
}

.selina-single-product__summary form.cart .button:hover {
	background: var(--selina-rose-dark) !important;
}

.selina-single-product__summary .product_meta {
	font-size: 0.82rem;
	color: rgba(74, 50, 40, 0.7);
	line-height: 1.6;
}

.selina-single-product__summary .product_meta > span {
	display: block;
	margin-bottom: 6px;
}

.selina-single-product__summary .product_meta a {
	color: var(--selina-brown);
	font-weight: 600;
}

/* Tabs & verwandte Produkte */
.woocommerce div.product .woocommerce-tabs {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid rgba(74, 50, 40, 0.1);
}

.woocommerce div.product .related.products,
.woocommerce div.product .upsells.products {
	margin-top: 40px;
	padding-top: 16px;
}

.woocommerce div.product .related.products > h2,
.woocommerce div.product .upsells.products > h2 {
	font-family: var(--selina-font-script);
	font-size: 1.45rem;
	color: var(--selina-brown);
	margin-bottom: 16px;
}

/* Kompakte Karten für ähnliche / empfohlene Produkte */
.woocommerce div.product .related.products ul.products,
.woocommerce div.product .upsells.products ul.products {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 14px !important;
}

.woocommerce div.product .related.products ul.products li.product,
.woocommerce div.product .upsells.products ul.products li.product {
	padding-bottom: 12px !important;
	box-shadow: 0 2px 12px rgba(74, 50, 40, 0.07);
}

.woocommerce div.product .related.products ul.products li.product:hover,
.woocommerce div.product .upsells.products ul.products li.product:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(74, 50, 40, 0.1);
}

.woocommerce div.product .related.products ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .upsells.products ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.82rem !important;
	padding: 10px 10px 2px !important;
	line-height: 1.3 !important;
}

.woocommerce div.product .related.products ul.products li.product .price,
.woocommerce div.product .upsells.products ul.products li.product .price {
	font-size: 0.82rem !important;
	padding: 0 10px 6px !important;
}

.woocommerce div.product .related.products ul.products li.product .button,
.woocommerce div.product .upsells.products ul.products li.product .button {
	margin: 0 10px !important;
	width: calc(100% - 20px) !important;
	font-size: 0.72rem !important;
	padding: 8px 10px !important;
}

.woocommerce div.product .related.products ul.products li.product .selina-loop-excerpt,
.woocommerce div.product .upsells.products ul.products li.product .selina-loop-excerpt {
	display: none;
}

/* ── Produkt-Grid (Shop & Kategorie) ──────────────────────── */

body.selina-woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body.selina-woocommerce ul.products::before,
body.selina-woocommerce ul.products::before,
body.selina-woocommerce ul.products::after {
	display: none !important;
	content: none !important;
}

body.selina-woocommerce ul.products li.product {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
	background: #fff;
	border-radius: var(--selina-radius);
	overflow: hidden;
	box-shadow: var(--selina-shadow);
	padding-bottom: 16px !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.selina-woocommerce ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 28px rgba(74, 50, 40, 0.12);
}

body.selina-woocommerce ul.products li.product a img {
	border-radius: var(--selina-radius) var(--selina-radius) 0 0;
	width: 100%;
	object-fit: cover;
	aspect-ratio: 1;
	margin: 0 !important;
}

body.selina-woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--selina-font-body) !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	color: var(--selina-brown) !important;
	padding: 12px 14px 4px !important;
	margin: 0 !important;
}

body.selina-woocommerce ul.products li.product .price {
	padding: 0 14px 8px !important;
	color: var(--selina-brown) !important;
	font-weight: 700 !important;
	font-size: 0.95rem !important;
	margin: 0 !important;
}

body.selina-woocommerce ul.products li.product .button,
body.selina-woocommerce ul.products li.product .add_to_cart_button,
.selina-recommendations ul.products li.product .button,
.selina-recommendations ul.products li.product .add_to_cart_button {
	display: block !important;
	margin: 0 14px !important;
	width: calc(100% - 28px) !important;
	background: var(--selina-rose) !important;
	background-color: var(--selina-rose) !important;
	color: #fff !important;
	border: none !important;
	border-radius: var(--selina-radius) !important;
	font-weight: 600 !important;
	font-size: 0.8rem !important;
	padding: 10px 16px !important;
	text-align: center;
}

body.selina-woocommerce ul.products li.product .button:hover,
body.selina-woocommerce ul.products li.product .add_to_cart_button:hover,
.selina-recommendations ul.products li.product .button:hover,
.selina-recommendations ul.products li.product .add_to_cart_button:hover {
	background: var(--selina-rose-dark) !important;
	background-color: var(--selina-rose-dark) !important;
	color: #fff !important;
}

body.selina-woocommerce ul.products li.product .button.added,
body.selina-woocommerce ul.products li.product .add_to_cart_button.added,
.selina-recommendations ul.products li.product .button.added,
.selina-recommendations ul.products li.product .add_to_cart_button.added {
	background: var(--selina-rose-dark) !important;
	background-color: var(--selina-rose-dark) !important;
	color: #fff !important;
}

body.selina-woocommerce ul.products li.product .button.added,
body.selina-woocommerce ul.products li.product .add_to_cart_button.added,
.selina-recommendations ul.products li.product .button.added,
.selina-recommendations ul.products li.product .add_to_cart_button.added {
	background: var(--selina-rose) !important;
	background-color: var(--selina-rose) !important;
}

body.selina-woocommerce ul.products li.product .button.added:hover,
body.selina-woocommerce ul.products li.product .add_to_cart_button.added:hover,
.selina-recommendations ul.products li.product .button.added:hover,
.selina-recommendations ul.products li.product .add_to_cart_button.added:hover {
	background: var(--selina-rose-dark) !important;
	background-color: var(--selina-rose-dark) !important;
}

.selina-loop-excerpt,
body.selina-woocommerce ul.products li.product .selina-loop-excerpt {
	padding: 0 14px;
	font-size: 0.72rem;
	line-height: 1.45;
	color: rgba(74, 50, 40, 0.72);
	margin: 0 0 8px;
}

.selina-loop-excerpt p {
	margin: 0;
}

/* Shop-Toolbar */
body.selina-woocommerce .woocommerce-result-count,
body.selina-woocommerce .woocommerce-ordering {
	margin-bottom: 0;
	font-size: 0.82rem;
}

body.selina-woocommerce .woocommerce-ordering select {
	padding: 9px 36px 9px 12px;
	border: 1px solid rgba(74, 50, 40, 0.18);
	border-radius: var(--selina-radius);
	font-family: var(--selina-font-body);
	font-size: 0.82rem;
	background: var(--selina-cream);
	color: var(--selina-brown);
	min-width: 190px;
}

/* ── Sidebar auf Kategorieseiten ──────────────────────────── */

.selina-has-shop-sidebar .selina-sidebar {
	align-self: start;
	position: sticky;
	top: 100px;
}

.selina-has-shop-sidebar .selina-categories {
	background: #fff;
	border-radius: var(--selina-radius);
	box-shadow: var(--selina-shadow);
	overflow: hidden;
}

.selina-has-shop-sidebar .selina-category-list a.is-active,
.selina-has-shop-sidebar .selina-category-list li.is-active a {
	background: rgba(229, 154, 154, 0.16);
	color: var(--selina-brown);
}

.selina-has-shop-sidebar .selina-category-list li.is-active .selina-category-chevron {
	opacity: 1;
	color: var(--selina-rose);
}

.selina-has-shop-sidebar .selina-categories__callout {
	margin: 0;
	border-radius: 0;
}

/* Verstecke Standard-WordPress-Widgets falls noch registriert */
.selina-has-shop-sidebar .selina-sidebar .widget:not(.selina-categories) {
	display: none;
}

/* ── Startseite Empfehlungen ──────────────────────────────── */

.selina-recommendations ul.products {
	grid-template-columns: repeat(5, 1fr) !important;
}

/* ── Einheitliche Buttons (wie «In den Warenkorb») ─────────── */

body.selina-woocommerce .woocommerce #respond input#submit,
body.selina-woocommerce .woocommerce a.button,
body.selina-woocommerce .woocommerce button.button,
body.selina-woocommerce .woocommerce input.button,
body.selina-woocommerce .woocommerce a.button.alt,
body.selina-woocommerce .woocommerce button.button.alt,
body.selina-woocommerce .woocommerce input.button.alt,
body.selina-woocommerce .woocommerce .checkout-button,
body.selina-woocommerce .woocommerce-cart .button,
body.selina-woocommerce .woocommerce-cart input.button,
body.selina-woocommerce .woocommerce-checkout .button,
body.selina-woocommerce .woocommerce-checkout input.button,
body.selina-woocommerce .woocommerce button[name="update_cart"],
body.selina-woocommerce .woocommerce button[name="apply_coupon"],
body.selina-woocommerce .wc-block-components-button:not(.is-link),
body.selina-woocommerce a.wc-block-components-button.contained,
body.selina-woocommerce button.wc-block-components-button.contained,
body.selina-woocommerce .wc-block-cart__submit-button,
body.selina-woocommerce .wc-block-components-checkout-place-order-button,
body.selina-woocommerce .wp-block-woocommerce-cart .wc-block-components-button:not(.is-link),
body.selina-woocommerce .wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link) {
	background: var(--selina-rose) !important;
	background-color: var(--selina-rose) !important;
	color: #fff !important;
	border: none !important;
	border-radius: var(--selina-radius) !important;
	font-family: var(--selina-font-body) !important;
	font-weight: 600 !important;
	font-size: 0.9rem !important;
	padding: 12px 24px !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	transition: background 0.2s ease !important;
}

body.selina-woocommerce .woocommerce #respond input#submit:hover,
body.selina-woocommerce .woocommerce a.button:hover,
body.selina-woocommerce .woocommerce button.button:hover,
body.selina-woocommerce .woocommerce input.button:hover,
body.selina-woocommerce .woocommerce a.button.alt:hover,
body.selina-woocommerce .woocommerce button.button.alt:hover,
body.selina-woocommerce .woocommerce input.button.alt:hover,
body.selina-woocommerce .woocommerce .checkout-button:hover,
body.selina-woocommerce .woocommerce-cart .button:hover,
body.selina-woocommerce .woocommerce-cart input.button:hover,
body.selina-woocommerce .woocommerce-checkout .button:hover,
body.selina-woocommerce .woocommerce-checkout input.button:hover,
body.selina-woocommerce .woocommerce button[name="update_cart"]:hover,
body.selina-woocommerce .woocommerce button[name="apply_coupon"]:hover,
body.selina-woocommerce .wc-block-components-button:not(.is-link):hover,
body.selina-woocommerce a.wc-block-components-button.contained:hover,
body.selina-woocommerce button.wc-block-components-button.contained:hover,
body.selina-woocommerce .wc-block-cart__submit-button:hover,
body.selina-woocommerce .wc-block-components-checkout-place-order-button:hover {
	background: var(--selina-rose-dark) !important;
	background-color: var(--selina-rose-dark) !important;
	color: #fff !important;
}

body.selina-woocommerce .wc-block-components-button:not(.is-link):focus,
body.selina-woocommerce .wc-block-cart__submit-button:focus {
	box-shadow: 0 0 0 3px rgba(229, 154, 154, 0.35) !important;
	outline: none !important;
}

/* ── Suchergebnisse ───────────────────────────────────────── */

.selina-search-page .selina-search-header {
	margin-bottom: 24px;
}

.selina-search-empty {
	background: #fff;
	border-radius: var(--selina-radius);
	box-shadow: var(--selina-shadow);
	padding: 32px 28px;
	text-align: center;
}

.selina-search-empty p {
	margin: 0 0 16px;
	color: rgba(74, 50, 40, 0.82);
	line-height: 1.6;
}

.selina-search-posts {
	display: grid;
	gap: 16px;
}

/* ── Warenkorb & Kasse (Block-Layout) ─────────────────────── */

body.selina-woocommerce.selina-has-cart-checkout-hero .site-main {
	padding-top: 0;
	width: 100%;
	max-width: 100%;
}

body.woocommerce-cart .selina-page-hero--shop,
body.woocommerce-checkout .selina-page-hero--shop {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.selina-page-hero--shop {
	position: relative;
	margin-bottom: 32px;
	width: 100%;
}

body.woocommerce-cart .page-content,
body.woocommerce-checkout .page-content,
body.woocommerce-cart .page-content .entry-content,
body.woocommerce-checkout .page-content .entry-content,
body.woocommerce-cart .selina-cart-checkout-content,
body.woocommerce-checkout .selina-cart-checkout-content {
	padding-top: 0 !important;
}

body.woocommerce-cart .selina-cart-checkout-content,
body.woocommerce-checkout .selina-cart-checkout-content {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.woocommerce-cart .selina-cart-checkout-content .wp-block-woocommerce-cart,
body.woocommerce-checkout .selina-cart-checkout-content .wp-block-woocommerce-checkout,
body.woocommerce-cart .selina-cart-checkout-content > .alignwide,
body.woocommerce-checkout .selina-cart-checkout-content > .alignwide {
	max-width: 100% !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.selina-page-hero--shop .selina-page-hero__image {
	min-height: 320px;
	background-color: #2e1e12;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

.selina-page-hero--shop .selina-page-hero__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 24px;
	background: linear-gradient(
		180deg,
		rgba(30, 20, 12, 0.58) 0%,
		rgba(30, 20, 12, 0.75) 100%
	);
}

.selina-page-hero--shop .selina-page-hero__title {
	margin: 0;
	font-family: var(--selina-font-script);
	font-size: clamp(2.6rem, 7vw, 3.8rem);
	font-weight: 600;
	line-height: 1.1;
	color: var(--selina-cream);
	text-align: center;
	text-shadow: 0 3px 24px rgba(0, 0, 0, 0.55);
}

body.selina-woocommerce.selina-has-cart-checkout-hero .wp-block-woocommerce-cart,
body.selina-woocommerce.selina-has-cart-checkout-hero .wp-block-woocommerce-checkout,
body.selina-woocommerce.selina-has-cart-checkout-hero .woocommerce {
	padding-left: 20px;
	padding-right: 20px;
}

body.selina-woocommerce.selina-has-cart-checkout-hero .site-main > h1,
body.selina-woocommerce.selina-has-cart-checkout-hero .site-main .wp-block-post-title,
body.selina-woocommerce.selina-has-cart-checkout-hero .site-main .entry-title {
	display: none !important;
}

body.selina-woocommerce.woocommerce-cart,
body.selina-woocommerce.woocommerce-checkout {
	--selina-cart-gap: 28px;
	--selina-cart-sidebar: 380px;
	background: var(--selina-cream);
}

body.selina-woocommerce.woocommerce-cart .site-main,
body.selina-woocommerce.woocommerce-checkout .site-main {
	padding-bottom: 56px;
}

body.selina-woocommerce.woocommerce-cart:not(.selina-has-cart-checkout-hero) .site-main,
body.selina-woocommerce.woocommerce-checkout:not(.selina-has-cart-checkout-hero) .site-main {
	padding: 40px 20px 56px;
}

body.selina-woocommerce .wp-block-woocommerce-cart,
body.selina-woocommerce .wp-block-woocommerce-checkout {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	font-family: var(--selina-font-body);
	color: var(--selina-brown);
}

/* Zwei Spalten: Produkte links, Summe rechts */
body.selina-woocommerce.woocommerce-cart .wc-block-components-sidebar-layout,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar-layout {
	display: grid !important;
	flex-wrap: nowrap !important;
	align-items: start;
	gap: var(--selina-cart-gap);
	width: 100%;
}

body.selina-woocommerce.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main,
body.selina-woocommerce.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-cart__main,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
body.selina-woocommerce.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar,
body.selina-woocommerce.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-cart__sidebar,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	min-width: 0;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

/* Karten-Optik */
body.selina-woocommerce.woocommerce-cart .wc-block-cart__main,
body.selina-woocommerce.woocommerce-cart .wc-block-cart__sidebar,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-main,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar {
	background: #fff;
	border-radius: calc(var(--selina-radius) + 2px);
	box-shadow: var(--selina-shadow);
	padding: 32px 36px !important;
}

body.selina-woocommerce .wc-block-components-panel,
body.selina-woocommerce .wc-block-cart__main .wc-block-cart-items {
	background: transparent;
}

@media (min-width: 992px) {
	body.selina-woocommerce.woocommerce-cart,
	body.selina-woocommerce.woocommerce-checkout {
		--selina-cart-sidebar: 400px;
	}

	body.selina-woocommerce.woocommerce-cart .wc-block-components-sidebar-layout,
	body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar-layout {
		grid-template-columns: minmax(0, 1fr) var(--selina-cart-sidebar);
	}

	body.selina-woocommerce.woocommerce-cart .wc-block-cart__main,
	body.selina-woocommerce.woocommerce-checkout .wc-block-components-main {
		grid-column: 1;
		grid-row: 1;
	}

	body.selina-woocommerce.woocommerce-cart .wc-block-cart__sidebar,
	body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar {
		grid-column: 2;
		grid-row: 1;
		position: sticky;
		top: 24px;
	}
}

@media (min-width: 1200px) {
	body.selina-woocommerce.woocommerce-cart,
	body.selina-woocommerce.woocommerce-checkout {
		--selina-cart-sidebar: 420px;
	}
}

@media (max-width: 768px) {
	body.woocommerce-cart .container.selina-cart-checkout-content,
	body.woocommerce-checkout .container.selina-cart-checkout-content {
		padding-left: 20px;
		padding-right: 20px;
	}
}

@media (max-width: 991px) {
	body.selina-woocommerce.woocommerce-cart .wc-block-components-sidebar-layout,
	body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar-layout {
		grid-template-columns: 1fr;
	}

	body.selina-woocommerce.woocommerce-cart .wc-block-cart__main,
	body.selina-woocommerce.woocommerce-cart .wc-block-cart__sidebar,
	body.selina-woocommerce.woocommerce-checkout .wc-block-components-main,
	body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar {
		padding: 28px 24px !important;
	}
}

/* Warenkorb-Tabelle */
body.selina-woocommerce.woocommerce-cart .wc-block-cart-items {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
}

body.selina-woocommerce.woocommerce-cart .wc-block-cart-items__row {
	border-bottom: 1px solid rgba(74, 50, 40, 0.08);
}

body.selina-woocommerce.woocommerce-cart .wc-block-cart-items__row td {
	padding: 18px 12px;
	vertical-align: top;
}

body.selina-woocommerce.woocommerce-cart .wc-block-cart-items__row td:last-child {
	text-align: right;
}

body.selina-woocommerce.woocommerce-cart .wc-block-cart-items__header th {
	padding: 0 12px 14px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(74, 50, 40, 0.55);
	border-bottom: 1px solid rgba(74, 50, 40, 0.1);
}

body.selina-woocommerce.woocommerce-cart .wc-block-cart-items__header th:last-child {
	text-align: right;
}

body.selina-woocommerce.woocommerce-cart .wc-block-components-product-name {
	font-size: 1rem;
	font-weight: 600;
	color: var(--selina-brown);
	text-decoration: none;
}

body.selina-woocommerce.woocommerce-cart .wc-block-components-product-name:hover {
	color: var(--selina-rose-dark);
}

body.selina-woocommerce.woocommerce-cart .wc-block-components-product-metadata__description {
	font-size: 0.85rem;
	line-height: 1.5;
	color: rgba(74, 50, 40, 0.65);
}

body.selina-woocommerce.woocommerce-cart .wc-block-cart-item__quantity {
	margin-top: 12px;
}

/* Abschnittstitel: Warenkorb, Kasse, Kontakt & Bestellübersicht */
body.selina-woocommerce .wc-block-cart__totals-title,
body.selina-woocommerce .wp-block-woocommerce-cart-order-summary-heading-block,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-main h2,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-main .wc-block-components-title,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-main .wc-block-components-checkout-step__title,
body.selina-woocommerce.woocommerce-checkout .wp-block-woocommerce-checkout-contact-information-block > h2,
body.selina-woocommerce.woocommerce-checkout .wp-block-woocommerce-checkout-shipping-address-block > h2,
body.selina-woocommerce.woocommerce-checkout .wp-block-woocommerce-checkout-billing-address-block > h2,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar h2,
body.selina-woocommerce.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-heading-block,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text,
body.selina-woocommerce.woocommerce-checkout p.wc-block-components-checkout-order-summary__title-text {
	font-family: var(--selina-font-script) !important;
	font-size: 1.75rem !important;
	font-weight: 600 !important;
	font-style: normal !important;
	color: var(--selina-brown) !important;
	margin: 0 0 20px !important;
	padding: 0 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

/* Kasse: Kontakt & Bestellübersicht auf gleicher Höhe */
body.selina-woocommerce.woocommerce-checkout .wp-block-woocommerce-checkout-contact-information-block,
body.selina-woocommerce.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-main > :first-child,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar > :first-child {
	margin-top: 0 !important;
}

body.selina-woocommerce.woocommerce-checkout .wp-block-woocommerce-checkout-contact-information-block > h2,
body.selina-woocommerce.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-heading-block,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar > .wp-block-woocommerce-checkout-order-summary-block > h2:first-child,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-checkout-order-summary__title,
body.selina-woocommerce.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.selina-woocommerce.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text {
	margin: 0 0 20px 0 !important;
}

body.selina-woocommerce .wc-block-components-totals-wrapper {
	margin-bottom: 12px;
}

body.selina-woocommerce .wc-block-components-totals-item {
	padding: 10px 0;
	font-size: 0.95rem;
}

body.selina-woocommerce .wc-block-components-totals-footer-item {
	padding-top: 14px;
	margin-top: 8px;
	border-top: 1px solid rgba(74, 50, 40, 0.12);
	font-size: 1.05rem;
}

body.selina-woocommerce .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.selina-woocommerce .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-weight: 700;
	color: var(--selina-brown);
}

body.selina-woocommerce .wc-block-cart__submit,
body.selina-woocommerce .wc-block-components-checkout-place-order-button {
	margin-top: 20px;
}

body.selina-woocommerce .wc-block-cart__submit-button,
body.selina-woocommerce .wc-block-components-checkout-place-order-button {
	width: 100%;
	justify-content: center;
}

/* Gutschein-Accordion (Warenkorb & Kasse) */
body.selina-woocommerce .wc-block-components-totals-coupon,
body.selina-woocommerce .wc-block-components-panel {
	border: none !important;
	background: transparent !important;
	margin: 0 0 18px !important;
	padding: 0 4px !important;
}

body.selina-woocommerce .wc-block-components-totals-coupon .wc-block-components-panel__button,
body.selina-woocommerce .wc-block-components-panel .wc-block-components-panel__button {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 12px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 14px 18px !important;
	text-align: left !important;
	position: relative !important;
	inset: auto !important;
	background: rgba(252, 248, 241, 0.95) !important;
	border: 1px dashed rgba(229, 154, 154, 0.65) !important;
	border-radius: var(--selina-radius) !important;
	color: var(--selina-brown) !important;
	font-size: 0.92rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	box-sizing: border-box !important;
}

body.selina-woocommerce .wc-block-components-totals-coupon .wc-block-components-panel__button:hover,
body.selina-woocommerce .wc-block-components-totals-coupon .wc-block-components-panel__button:focus,
body.selina-woocommerce .wc-block-components-panel .wc-block-components-panel__button:hover,
body.selina-woocommerce .wc-block-components-panel .wc-block-components-panel__button:focus {
	background: rgba(229, 154, 154, 0.14) !important;
	border-color: var(--selina-rose) !important;
	color: var(--selina-brown) !important;
	outline: none !important;
}

body.selina-woocommerce .wc-block-components-panel__button-icon {
	position: static !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	transform: none !important;
	margin: 0 !important;
	flex: 0 0 24px !important;
	width: 24px !important;
	height: 24px !important;
	color: var(--selina-rose-dark) !important;
}

body.selina-woocommerce .wc-block-components-totals-coupon__content,
body.selina-woocommerce .wc-block-components-panel__content {
	padding: 14px 4px 6px !important;
}

body.selina-woocommerce .wc-block-components-totals-coupon__form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	padding-top: 4px;
}

/* Formularfelder: Label über dem Feld (nicht schwebend) */
body.selina-woocommerce .wc-block-components-text-input,
body.selina-woocommerce .wc-block-components-combobox,
body.selina-woocommerce .wc-block-components-select {
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
	margin-bottom: 16px !important;
	position: relative !important;
}

body.selina-woocommerce .wc-block-components-text-input label,
body.selina-woocommerce .wc-block-components-combobox label,
body.selina-woocommerce .wc-block-components-select label {
	position: static !important;
	transform: none !important;
	translate: none !important;
	scale: 1 !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	order: -1 !important;
	display: block !important;
	margin: 0 0 2px !important;
	padding: 0 !important;
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: var(--selina-brown) !important;
	background: transparent !important;
	pointer-events: auto !important;
	white-space: normal !important;
}

body.selina-woocommerce .wc-block-components-text-input input,
body.selina-woocommerce .wc-block-components-combobox input,
body.selina-woocommerce .wc-block-components-select select {
	order: 1 !important;
	margin: 0 !important;
	min-height: 48px !important;
	padding-top: 12px !important;
	padding-bottom: 12px !important;
	width: 100% !important;
}

body.selina-woocommerce .wc-block-components-text-input.is-active label,
body.selina-woocommerce .wc-block-components-text-input:focus-within label,
body.selina-woocommerce .wc-block-components-combobox.is-active label,
body.selina-woocommerce .wc-block-components-combobox:focus-within label,
body.selina-woocommerce .wc-block-components-select.is-active label,
body.selina-woocommerce .wc-block-components-select:focus-within label {
	transform: none !important;
	translate: none !important;
	scale: 1 !important;
	font-size: 0.82rem !important;
	top: auto !important;
	left: auto !important;
}

body.selina-woocommerce .wc-block-components-totals-coupon__input {
	margin-bottom: 0 !important;
	flex: 1 1 180px;
}

/* Kanton / State: neue WooCommerce-Select-Komponente (wc-blocks-components-select) */
body.selina-woocommerce .wc-block-components-state-input,
body.selina-woocommerce .wc-block-components-address-form__state {
	margin-bottom: 16px !important;
}

body.selina-woocommerce .wc-blocks-components-select {
	display: block !important;
	width: 100% !important;
	margin-bottom: 0 !important;
}

body.selina-woocommerce .wc-blocks-components-select__container {
	display: grid !important;
	grid-template-columns: 1fr auto !important;
	grid-template-rows: auto auto !important;
	gap: 8px 0 !important;
	position: relative !important;
	align-items: center !important;
}

body.selina-woocommerce .wc-blocks-components-select__label {
	grid-column: 1 / -1 !important;
	grid-row: 1 !important;
	position: static !important;
	transform: none !important;
	translate: none !important;
	scale: 1 !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: var(--selina-brown) !important;
	background: transparent !important;
	pointer-events: auto !important;
	white-space: normal !important;
}

body.selina-woocommerce .wc-blocks-components-select__select {
	grid-column: 1 / -1 !important;
	grid-row: 2 !important;
	margin: 0 !important;
	min-height: 48px !important;
	padding: 12px 40px 12px 14px !important;
	width: 100% !important;
	border: 1px solid rgba(74, 50, 40, 0.14) !important;
	border-radius: var(--selina-radius) !important;
	background: #fff !important;
	color: var(--selina-brown) !important;
	font-family: var(--selina-font-body) !important;
	font-size: 1rem !important;
	box-shadow: inset 0 1px 2px rgba(74, 50, 40, 0.04) !important;
	appearance: none !important;
}

body.selina-woocommerce .wc-blocks-components-select__select:focus {
	border-color: var(--selina-rose) !important;
	box-shadow: 0 0 0 3px rgba(229, 154, 154, 0.22) !important;
	outline: none !important;
}

body.selina-woocommerce .wc-blocks-components-select__expand {
	grid-column: 1 / -1 !important;
	grid-row: 2 !important;
	justify-self: end !important;
	align-self: center !important;
	margin-right: 12px !important;
	pointer-events: none !important;
	position: relative !important;
	z-index: 1 !important;
	color: var(--selina-brown) !important;
}

/* ── Kasse: Bestellübersicht ohne grauen Rand ─────────────── */

body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar .wc-block-checkout__order-summary {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-item,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary-item,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals {
	border: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	width: auto !important;
	max-width: none !important;
}

body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary-item {
	padding: 14px 0;
	border-bottom: 1px solid rgba(74, 50, 40, 0.08) !important;
}

body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-item {
	padding: 12px 0;
}

body.selina-woocommerce.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-footer-item {
	padding: 18px 0 6px;
	margin-top: 10px;
	border-top: 1px solid rgba(74, 50, 40, 0.1) !important;
}

/* ── Kasse: Felder bereinigen ─────────────────────────────── */

body.selina-woocommerce.woocommerce-checkout .wc-block-components-address-form__address_2-toggle,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-address-form__address_2:not(.wc-block-components-address-form__address_2-hidden-input) {
	display: none !important;
}

body.selina-woocommerce.woocommerce-checkout .wc-block-components-address-form__country,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-country-input {
	display: none !important;
}

body.selina-woocommerce.woocommerce-checkout .wp-block-woocommerce-checkout-contact-information-block .wc-block-components-address-form__phone {
	width: min(100%, calc(25% - 6px));
	max-width: calc(25% - 6px);
}

@media (max-width: 699px) {
	body.selina-woocommerce.woocommerce-checkout .wp-block-woocommerce-checkout-contact-information-block .wc-block-components-address-form__phone {
		width: min(100%, calc(50% - 6px));
		max-width: calc(50% - 6px);
	}
}

body.selina-woocommerce.woocommerce-checkout .wc-block-components-text-input:has(input[required]) > label::after,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-text-input:has(input[aria-required="true"]) > label::after,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-combobox:has(input[required]) > label::after,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-combobox:has(input[aria-required="true"]) > label::after,
body.selina-woocommerce.woocommerce-checkout .wc-blocks-components-select:has(select[required]) .wc-blocks-components-select__label::after,
body.selina-woocommerce.woocommerce-checkout .wc-blocks-components-select:has(select[aria-required="true"]) .wc-blocks-components-select__label::after,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-select:has(select[required]) label::after,
body.selina-woocommerce.woocommerce-checkout .wc-block-components-select:has(select[aria-required="true"]) label::after {
	content: " *";
	color: var(--selina-rose-dark);
	font-weight: 700;
}

/* Warenkorb-Sidebar: inneren grauen Rand ebenfalls entfernen */
body.selina-woocommerce.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block,
body.selina-woocommerce.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-order-summary {
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.selina-woocommerce.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item {
	border: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.selina-woocommerce.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item {
	padding: 12px 0;
}

body.selina-woocommerce.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item {
	padding: 18px 0 6px;
	margin-top: 10px;
	border-top: 1px solid rgba(74, 50, 40, 0.1) !important;
}

body.selina-woocommerce .wc-block-components-text-input input,
body.selina-woocommerce .wc-block-components-textarea,
body.selina-woocommerce .wc-block-components-select select,
body.selina-woocommerce .wc-block-components-combobox input {
	border: 1px solid rgba(74, 50, 40, 0.14) !important;
	border-radius: var(--selina-radius) !important;
	background: #fff !important;
	color: var(--selina-brown) !important;
	font-family: var(--selina-font-body) !important;
	padding: 12px 14px !important;
	box-shadow: inset 0 1px 2px rgba(74, 50, 40, 0.04) !important;
}

body.selina-woocommerce .wc-block-components-text-input input:focus,
body.selina-woocommerce .wc-block-components-textarea:focus,
body.selina-woocommerce .wc-block-components-select select:focus,
body.selina-woocommerce .wc-block-components-combobox input:focus {
	border-color: var(--selina-rose) !important;
	box-shadow: 0 0 0 3px rgba(229, 154, 154, 0.22) !important;
	outline: none !important;
}

body.selina-woocommerce .wc-block-components-form .wc-block-components-text-input label,
body.selina-woocommerce .wc-block-components-form .wc-block-components-combobox label,
body.selina-woocommerce .wc-block-components-form .wc-block-components-select label,
body.selina-woocommerce .wc-block-components-checkbox__label {
	color: var(--selina-brown);
	font-weight: 600;
}

body.selina-woocommerce .wc-block-components-totals-item,
body.selina-woocommerce .wc-block-components-order-summary-item {
	border-color: rgba(74, 50, 40, 0.1) !important;
}

body.selina-woocommerce .wc-block-components-radio-control__option,
body.selina-woocommerce .wc-block-components-radio-control-accordion-option {
	border-color: rgba(74, 50, 40, 0.12) !important;
	border-radius: var(--selina-radius) !important;
}

body.selina-woocommerce .wc-block-components-radio-control__option--checked-option-highlighted,
body.selina-woocommerce .wc-block-components-radio-control__option:checked + label {
	border-color: var(--selina-rose) !important;
	box-shadow: 0 0 0 1px var(--selina-rose);
}

body.selina-woocommerce .wc-block-cart-item__image img,
body.selina-woocommerce .wc-block-components-order-summary-item__image img {
	border-radius: 6px;
}

body.selina-woocommerce .wc-block-components-notice-banner {
	border-radius: var(--selina-radius);
}

body.selina-woocommerce .wc-block-components-notice-banner.is-info {
	background: rgba(229, 154, 154, 0.12);
	border-color: var(--selina-rose);
}

body.selina-woocommerce .wc-block-components-button.is-link {
	color: var(--selina-rose-dark) !important;
}

body.selina-woocommerce .wc-block-components-button.is-link:hover {
	color: var(--selina-brown) !important;
}

/* ── Meldungen ─────────────────────────────────────────────── */

.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--selina-rose);
	background: rgba(229, 154, 154, 0.1);
	border-radius: var(--selina-radius);
	margin-bottom: 20px;
}

.woocommerce-error {
	border-top-color: #c0392b;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1200px) {
	.selina-recommendations ul.products {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 1024px) {
	.selina-shop-page {
		padding: 32px 20px 48px;
	}

	.selina-shop-layout {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 24px;
	}

	.selina-has-shop-sidebar .selina-sidebar {
		position: static;
	}

	.selina-product-page {
		padding: 32px 20px 48px;
	}

	.selina-product-page__inner {
		padding: 24px 20px 32px;
	}

	.selina-single-product {
		gap: 32px;
	}

	.woocommerce div.product .related.products ul.products,
	.woocommerce div.product .upsells.products ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	body.selina-woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 768px) {
	.selina-shop-page {
		padding: 24px 16px 40px;
	}

	.selina-shop-layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.selina-shop-layout > .selina-archive-header {
		grid-column: auto;
	}

	.selina-archive-header {
		padding: 24px 20px;
	}

	.selina-archive-header__title {
		font-size: 2rem;
	}

	.selina-shop-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	body.selina-woocommerce .woocommerce-ordering select {
		width: 100%;
	}

	.selina-single-product {
		grid-template-columns: 1fr;
	}

	.selina-single-product__gallery ol.flex-control-thumbs li,
	.selina-single-product__gallery ol.flex-control-thumbs li img {
		width: 48px !important;
		height: 48px !important;
		max-width: 48px !important;
		flex-basis: 48px;
	}

	.selina-recommendations ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	body.selina-woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.selina-single-product__summary .product_title {
		font-size: 2rem;
	}

	.woocommerce div.product .related.products ul.products,
	.woocommerce div.product .upsells.products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}
}

@media (max-width: 480px) {
	.selina-recommendations ul.products,
	body.selina-woocommerce ul.products {
		grid-template-columns: 1fr !important;
	}
}

/* ── Elementor WooCommerce Widgets ────────────────────────── */

.elementor-widget-woocommerce-products .woocommerce ul.products {
	grid-template-columns: repeat(var(--columns, 4), 1fr) !important;
}

.elementor-widget-woocommerce-products .woocommerce ul.products li.product {
	background: #fff;
	border-radius: var(--selina-radius);
	box-shadow: var(--selina-shadow);
}

.elementor-widget-woocommerce-products .woocommerce ul.products li.product .button {
	background: var(--selina-rose) !important;
}
