/**
 * Horror Haven – WooCommerce styles.
 * WooCommerce's own stylesheets are switched off in inc/woocommerce.php; everything is styled here.
 *
 * Contents: 1 notices · 2 product grid & cards · 3 ratings · 4 shop page & filters ·
 * 5 single product · 6 cart · 7 checkout · 8 order received · 9 my account ·
 * 10 mini-cart drawer · 11 misc · 12 responsive
 */

/* 1. Notices -------------------------------------------------------------- */

.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice,
.wc-block-components-notice-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 18px;
	margin: 0 0 22px;
	padding: 14px 18px;
	list-style: none;
	border: 1px solid var(--border-strong);
	border-left: 3px solid var(--success);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	font-size: 0.9rem;
}

.woocommerce-info,
.woocommerce-notice {
	border-left-color: var(--info);
}

.woocommerce-error,
.woocommerce-notice--error {
	border-left-color: var(--error);
	flex-direction: column;
	align-items: flex-start;
}

.woocommerce-error li {
	margin: 0;
}

.woocommerce-message .button,
.woocommerce-info .button {
	order: 2;
	min-height: 36px;
	padding: 8px 14px;
	background: transparent;
	border-color: var(--gold);
	color: var(--text);
}

.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a:not(.button) {
	color: var(--gold-soft);
	text-decoration: underline;
}

.demo_store,
.woocommerce-store-notice {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	margin: 0;
	padding: 12px 20px;
	background: var(--accent);
	color: var(--accent-contrast);
	text-align: center;
	font-size: 0.85rem;
}

.woocommerce-store-notice__dismiss-link {
	margin-left: 12px;
	color: inherit;
	text-decoration: underline;
}

/* 2. Product grid & cards -------------------------------------------------- */

ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

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

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

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

ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	width: auto;
	float: none;
}

.product-photo {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--surface-2);
}

html[data-theme="light"] .product-photo {
	background: #f1f1f3;
}

.product-photo-link {
	display: block;
	height: 100%;
}

.product-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.35s, transform 0.4s;
}

.product-photo .product-photo-alt {
	opacity: 0;
}

.product-card:hover .product-photo img {
	transform: scale(1.035);
}

.product-card:hover .product-photo-alt {
	opacity: 1;
}

.product-card:hover .product-photo img:first-child:not(:only-child) {
	opacity: 0;
}

.badges {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	pointer-events: none;
}

.badge,
.onsale {
	display: inline-flex;
	padding: 5px 8px;
	border: 1px solid var(--gold);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	color: var(--gold-soft);
	font-size: 0.63rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
}

.onsale {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--accent-contrast);
}

.badge-soldout {
	border-color: var(--border-strong);
	color: var(--text-soft);
}

.heart {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--border-strong);
	border-radius: 50%;
	background: color-mix(in srgb, var(--bg) 85%, transparent);
	color: var(--text);
}

.heart.is-active svg,
.wishlist-btn.is-active svg {
	fill: var(--accent);
	stroke: var(--accent);
}

.product-info {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	padding-top: 12px;
}

.product-title,
ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	font-family: var(--font-body);
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.4;
}

.product-title a {
	color: var(--text);
}

.price {
	color: var(--text);
	font-weight: 600;
}

.price del {
	margin-right: 6px;
	color: var(--text-muted);
	font-size: 0.85em;
	font-weight: 400;
}

.price ins {
	text-decoration: none;
	color: var(--text);
}

.price-note,
.wc-gzd-additional-info,
.product-info .wc-gzd-additional-info {
	display: block;
	font-size: 0.7rem;
	font-weight: 400;
	color: var(--text-muted);
}

.price-note a {
	color: inherit;
	text-decoration: underline;
}

ul.products li.product .button {
	align-self: flex-start;
	margin-top: auto;
	min-height: 38px;
	padding: 9px 14px;
	font-size: 0.68rem;
	background: transparent;
	border-color: var(--border-strong);
	color: var(--text);
}

ul.products li.product .product-info .price + .button,
ul.products li.product .product-info .price-note + .button {
	margin-top: 10px;
}

ul.products li.product .button:hover {
	border-color: var(--text);
	background: var(--surface-2);
}

ul.products li.product .button.loading {
	opacity: 0.6;
}

ul.products li.product .added_to_cart {
	margin-top: 8px;
	font-size: 0.78rem;
	color: var(--gold-soft);
	text-decoration: underline;
}

.woocommerce .related,
.woocommerce .upsells,
.cross-sells {
	margin-top: 64px;
}

.related > h2,
.upsells > h2,
.cross-sells > h2 {
	margin-bottom: 24px;
}

/* 3. Ratings (drawn with ★, no icon font) ---------------------------------- */

.star-rating {
	position: relative;
	display: inline-block;
	width: 5.4em;
	height: 1.1em;
	overflow: hidden;
	font-family: Arial, sans-serif;
	font-size: 0.9rem;
	line-height: 1.1;
	letter-spacing: 0.08em;
	vertical-align: middle;
}

.star-rating::before {
	content: "★★★★★";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--border-strong);
}

.star-rating span {
	position: absolute;
	top: 0;
	left: 0;
	height: 1.1em;
	overflow: hidden;
	padding-top: 1.5em;
}

.star-rating span::before {
	content: "★★★★★";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--gold);
}

.woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	font-size: 0.82rem;
}

.woocommerce-review-link {
	color: var(--text-soft);
}

p.stars {
	display: inline-flex;
	margin: 6px 0 14px;
}

p.stars a {
	position: relative;
	width: 1.4em;
	height: 1.4em;
	overflow: hidden;
	text-indent: -999em;
	font-size: 1.2rem;
}

p.stars a::before {
	content: "★";
	position: absolute;
	inset: 0;
	text-indent: 0;
	color: var(--border-strong);
}

p.stars:hover a::before,
p.stars.selected a::before {
	color: var(--gold);
}

p.stars a:hover ~ a::before,
p.stars.selected a.active ~ a::before {
	color: var(--border-strong);
}

p.stars.selected:hover a::before {
	color: var(--gold);
}

p.stars.selected:hover a:hover ~ a::before {
	color: var(--border-strong);
}

/* 4. Shop page & filters --------------------------------------------------- */

.shop-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.shop-header .page-title {
	margin-bottom: 6px;
}

.term-description,
.page-description {
	max-width: 720px;
}

.woocommerce-result-count {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.85rem;
}

.woocommerce-ordering {
	margin: 0;
}

.woocommerce-ordering select {
	min-width: 220px;
}

.shop-layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 32px;
	padding-bottom: 40px;
}

.filters-toggle > summary {
	display: none;
}

.filters {
	border-top: 1px solid var(--border);
}

.filters-title {
	margin: 16px 0;
	font-size: 1.1rem;
}

.filters details {
	padding: 14px 0;
	border-top: 1px solid var(--border);
}

.filters summary {
	cursor: pointer;
	font-size: 0.88rem;
	color: var(--text);
}

.filters .checkline {
	margin: 10px 0;
}

.filters .count {
	color: var(--text-muted);
}

.filters input[type="range"] {
	width: 100%;
	margin-top: 10px;
	accent-color: var(--accent);
}

.range-label {
	display: block;
	margin-top: 10px;
}

.filters-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}

.js .filters-actions .btn.primary {
	display: none;
}

.shop-sidebar .widget-area {
	margin-top: 28px;
}

.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 40px 0 0;
	padding: 0;
	list-style: none;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--border-strong);
	color: var(--text-soft);
}

.woocommerce-pagination .page-numbers .current {
	border-color: var(--gold);
	color: var(--text);
}

.woocommerce-no-products-found {
	padding: 40px 0;
}

/* 5. Single product -------------------------------------------------------- */

.detail {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 6%;
	padding-block: 8px 40px;
}

/* display:block overrides the post-gallery grid (.gallery) from theme.css. */
.detail .gallery {
	display: block;
	position: relative;
	min-width: 0;
}

.detail .gallery > .onsale {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
}

.woocommerce-product-gallery {
	position: relative;
	margin: 0;
}

.woocommerce-product-gallery figure {
	margin: 0;
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
}

.woocommerce-product-gallery__image {
	background: var(--surface-2);
}

html[data-theme="light"] .woocommerce-product-gallery__image {
	background: #f1f1f3;
}

.woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--bg) 85%, transparent);
	border: 1px solid var(--border-strong);
	font-size: 0;
}

.woocommerce-product-gallery__trigger::before {
	content: "";
	width: 14px;
	height: 14px;
	border: 2px solid var(--text);
	border-radius: 50%;
	transform: translate(-1px, -1px);
}

.woocommerce-product-gallery__trigger::after {
	content: "";
	position: absolute;
	width: 2px;
	height: 7px;
	background: var(--text);
	transform: translate(6px, 6px) rotate(-45deg);
}

.woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border: 1px solid var(--border);
	opacity: 0.6;
	cursor: pointer;
	transition: opacity 0.2s;
}

.woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs img:hover {
	opacity: 1;
	border-color: var(--gold);
}

.detail-copy .product_title {
	font-size: clamp(1.8rem, 3.6vw, 3rem);
	margin-bottom: 12px;
}

.detail-copy > .price,
.detail-copy .price {
	font-size: 1.35rem;
	margin-bottom: 4px;
}

.detail-copy .price-note,
.detail-copy .wc-gzd-additional-info {
	font-size: 0.78rem;
	margin-bottom: 10px;
}

.lowest-price {
	margin: 4px 0 8px;
	font-size: 0.8rem;
	color: var(--text-muted);
}

.woocommerce-product-details__short-description {
	margin: 18px 0;
}

.stock {
	font-size: 0.85rem;
	color: var(--success);
}

.stock.out-of-stock {
	color: var(--error);
}

form.cart {
	margin: 22px 0;
}

form.cart:not(.variations_form),
.woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}

.single_add_to_cart_button {
	flex: 1 1 220px;
	min-height: 48px;
}

table.variations {
	margin-bottom: 14px;
	border: 0;
}

table.variations th,
table.variations td {
	display: block;
	padding: 0;
	border: 0;
}

table.variations th label {
	display: block;
	margin-bottom: 10px;
	color: var(--text);
	font-weight: 600;
	font-size: 0.85rem;
}

table.variations tr + tr th {
	margin-top: 16px;
}

.reset_variations {
	display: inline-block;
	margin-top: 10px;
	font-size: 0.8rem;
	color: var(--text-soft);
	text-decoration: underline;
}

.size-select .size-select-native {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.sizes {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 2px;
}

.sizes::-webkit-scrollbar {
	display: none;
}

.sizes button {
	flex: 0 0 auto;
	min-width: 48px;
	height: 44px;
	padding: 0 10px;
	border: 1px solid var(--border-strong);
	border-radius: 2px;
	background: none;
	color: var(--text);
	font-size: 0.85rem;
}

.sizes button.selected {
	border-color: var(--gold-soft);
	color: var(--gold-soft);
	box-shadow: inset 0 0 0 1px var(--gold-soft);
}

.sizes button:disabled {
	opacity: 0.4;
	text-decoration: line-through;
	cursor: not-allowed;
}

.size-guide-link {
	margin-bottom: 12px;
}

.single_variation_wrap .woocommerce-variation {
	margin-bottom: 12px;
}

.woocommerce-variation-price .price {
	font-size: 1.1rem;
}

.quantity {
	display: inline-flex;
	align-items: stretch;
	height: 48px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
}

.quantity .qty {
	width: 52px;
	min-height: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	text-align: center;
	-moz-appearance: textfield;
}

.quantity .qty::-webkit-inner-spin-button,
.quantity .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.qty-btn {
	display: grid;
	place-items: center;
	width: 38px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--text);
}

.qty-btn:hover {
	background: var(--surface-2);
}

.single-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin: 4px 0 20px;
}

.wishlist-btn {
	position: static;
	width: auto;
	height: auto;
	border-radius: var(--radius);
}

.wishlist-btn::after {
	content: attr(aria-label);
}

.product_meta {
	display: grid;
	gap: 4px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	font-size: 0.8rem;
	color: var(--text-muted);
}

.product_meta a {
	color: var(--text-soft);
}

.woocommerce-tabs.accordion {
	margin-top: 26px;
}

.woocommerce-Tabs-panel h2,
.woocommerce-Reviews-title {
	font-size: 1.1rem;
}

.woocommerce-product-attributes {
	font-size: 0.85rem;
}

.woocommerce-product-attributes th {
	width: 35%;
}

#reviews .commentlist {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

#reviews .commentlist li {
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
}

#reviews .commentlist .avatar {
	float: left;
	width: 40px;
	height: 40px;
	margin-right: 12px;
	border-radius: 50%;
}

#reviews .comment-text .meta {
	font-size: 0.78rem;
	color: var(--text-muted);
}

#review_form .comment-reply-title {
	display: block;
	margin-bottom: 12px;
	font-family: var(--font-display);
	font-size: 1.1rem;
}

#review_form p {
	margin-bottom: 14px;
}

.woocommerce-noreviews,
.woocommerce-verification-required {
	font-size: 0.9rem;
}

/* PhotoSwipe lightbox: keep it above the sticky header. */
.pswp {
	z-index: 100000;
}

/* 6. Cart ------------------------------------------------------------------ */

.woo-page .entry-header,
.woo-content .entry-header {
	margin-bottom: 26px;
}

.cart-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 40px;
	align-items: start;
}

.shop_table {
	width: 100%;
	border: 0;
}

.shop_table th {
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.woocommerce-cart-form .shop_table td {
	vertical-align: middle;
}

.woocommerce-cart-form .product-thumbnail img {
	width: 88px;
	height: 88px;
	object-fit: contain;
	background: var(--surface-2);
}

.woocommerce-cart-form .product-name a {
	color: var(--text);
	font-weight: 500;
}

.woocommerce-cart-form .product-name .variation,
.wc-item-meta {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 2px 6px;
	margin: 6px 0 0;
	font-size: 0.8rem;
	color: var(--text-muted);
}

.variation dt,
.variation dd,
.wc-item-meta li,
.variation dd p {
	margin: 0;
	font-weight: 400;
	color: var(--text-muted);
}

a.remove {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: var(--text-soft);
	font-size: 1.3rem;
	line-height: 1;
}

a.remove:hover {
	background: var(--surface-2);
	color: var(--error);
}

.woocommerce-cart-form td.actions {
	padding-top: 20px;
}

.woocommerce-cart-form .coupon {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-right: 12px;
}

.woocommerce-cart-form .coupon .input-text {
	width: 200px;
}

.woocommerce-cart-form td.actions > .button {
	float: right;
}

.cart-collaterals.summary,
.checkout-review {
	padding: 22px;
	border: 1px solid var(--border);
	background: var(--surface);
}

.cart_totals h2 {
	font-size: 1.4rem;
}

.cart_totals table th,
.cart_totals table td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
	padding: 10px 0;
}

.cart_totals table td,
.woocommerce-checkout-review-order-table td {
	text-align: right;
}

.cart_totals .order-total th,
.cart_totals .order-total td,
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
	font-size: 1.05rem;
	color: var(--text);
	border-bottom: 0;
}

.includes_tax,
.tax_label,
.woocommerce-shipping-destination,
.woocommerce-shipping-contents {
	display: block;
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--text-muted);
}

ul#shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul#shipping_method li {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-bottom: 6px;
}

.woocommerce-shipping-calculator .shipping-calculator-button {
	font-size: 0.8rem;
	color: var(--gold-soft);
	text-decoration: underline;
}

.shipping-calculator-form p {
	margin: 8px 0;
}

.wc-proceed-to-checkout .checkout-button {
	width: 100%;
	min-height: 50px;
	margin-top: 14px;
}

.free-shipping {
	margin-bottom: 18px;
}

.free-shipping p {
	margin: 8px 0 0;
	font-size: 0.8rem;
}

.progress {
	height: 5px;
	background: var(--surface-2);
	border-radius: 3px;
	overflow: hidden;
}

.progress span {
	display: block;
	height: 100%;
	background: var(--accent);
}

.cart-empty.woocommerce-info {
	justify-content: center;
	margin-top: 20px;
}

.return-to-shop {
	text-align: center;
}

.cart-layout + .trust {
	margin-top: 40px;
	border-top: 1px solid var(--border);
}

/* 7. Checkout --------------------------------------------------------------- */

.checkout-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 32px;
	align-items: start;
}

.checkout-aside {
	position: sticky;
	top: calc(var(--header-h) + 50px);
}

.admin-bar .checkout-aside {
	top: calc(var(--header-h) + 82px);
}

.checkout-step {
	padding: 24px;
	border: 1px solid var(--border);
	background: var(--surface);
}

.step-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.3rem;
}

.step-number {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	border: 1px solid var(--gold);
	border-radius: 50%;
	color: var(--gold);
	font-family: var(--font-body);
	font-size: 0.9rem;
}

.col2-set .col-1,
.col2-set .col-2 {
	width: 100%;
}

.col2-set .col-2 {
	margin-top: 10px;
}

.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields > h3,
.woocommerce-additional-fields > h3,
#ship-to-different-address {
	margin: 18px 0 12px;
	font-size: 1.05rem;
}

#ship-to-different-address label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-body);
	font-size: 0.9rem;
	color: var(--text);
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper,
.woocommerce-EditAccountForm,
.edit-account {
	display: flex;
	flex-wrap: wrap;
	gap: 0 4%;
}

.form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	margin: 0 0 14px;
	padding: 0;
}

.form-row-first,
.form-row-last {
	width: 48%;
}

.form-row label {
	font-size: 0.8rem;
	color: var(--text-soft);
}

.form-row .required {
	color: var(--error);
	text-decoration: none;
	border: 0;
}

.form-row .optional {
	color: var(--text-muted);
}

.form-row .woocommerce-input-wrapper {
	display: block;
	width: 100%;
}

.form-row.woocommerce-invalid input.input-text,
.form-row.woocommerce-invalid select {
	border-color: var(--error);
}

.form-row.woocommerce-validated input.input-text {
	border-color: color-mix(in srgb, var(--success) 60%, var(--border-strong));
}

.checkout-inline-error-message {
	font-size: 0.78rem;
	color: var(--error);
}

.form-row .woocommerce-form__label-for-checkbox,
.woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.85rem;
	color: var(--text-soft);
}

.select2-container {
	width: 100% !important;
}

.select2-container .select2-selection--single {
	height: 44px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	background: var(--bg);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 42px;
	padding-left: 12px;
	color: var(--text);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 42px;
	right: 6px;
}

.select2-dropdown {
	background: var(--surface);
	border-color: var(--border-strong);
	color: var(--text);
}

.select2-search--dropdown .select2-search__field {
	background: var(--bg);
	color: var(--text);
	border-color: var(--border-strong);
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
	background: var(--accent);
	color: var(--accent-contrast);
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
	background: var(--surface-2);
}

.woocommerce-checkout-review-order-table {
	margin-bottom: 18px;
}

/* Germanized paints this table #eee: use the theme colours and keep text off the edges. */
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table {
	background: transparent;
	border-collapse: collapse;
}

.woocommerce-checkout-review-order-table > thead > tr > th,
.woocommerce-checkout-review-order-table > tbody > tr > td,
.woocommerce-checkout-review-order-table > tfoot > tr > th,
.woocommerce-checkout-review-order-table > tfoot > tr > td {
	padding: 14px 10px;
	border-bottom: 1px solid var(--border);
}

/* Fixed layout: the table always fits the order box, long product names wrap. */
.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table {
	width: 100%;
	table-layout: fixed;
}

.woocommerce-checkout-review-order-table > tbody > tr > td.product-name {
	text-align: left;
	overflow-wrap: break-word;
	hyphens: auto;
}

.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout-review-order-table > tfoot > tr > td {
	width: 35%;
	vertical-align: middle;
}

.woocommerce-checkout-review-order-table > thead > tr > th {
	white-space: nowrap;
	font-size: 0.68rem;
	letter-spacing: 0.02em;
}

.woocommerce-checkout-review-order-table .product-quantity,
.woocommerce-checkout-review-order-table .woocommerce-Price-amount {
	white-space: nowrap;
}

.woocommerce-checkout-review-order-table .wc-gzd-cart-item-name-wrapper {
	display: flex;
	align-items: center;
	gap: 14px;
	text-align: left;
}

.woocommerce-checkout-review-order-table .wc-gzd-cart-item-thumbnail {
	flex: 0 0 52px;
	margin: 0;
}

.woocommerce-checkout-review-order-table .wc-gzd-cart-item-name-wrapper > :not(.wc-gzd-cart-item-thumbnail) {
	flex: 1 1 auto;
	min-width: 0;
}

.woocommerce-checkout-review-order-table .wc-gzd-cart-item-thumbnail img {
	display: block;
	width: 52px;
	height: 52px;
	object-fit: contain;
	background: var(--surface-2);
}

.woocommerce-checkout-review-order-table tfoot tr:last-child th,
.woocommerce-checkout-review-order-table tfoot tr:last-child td {
	border-bottom: 0;
}

.woocommerce-checkout-review-order-table .product-name {
	color: var(--text);
}

.woocommerce-checkout-review-order-table .product-quantity {
	color: var(--text-muted);
}

#payment {
	margin-top: 10px;
}

#payment ul.payment_methods {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

#payment ul.payment_methods > li {
	padding: 14px;
	margin-bottom: 8px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
}

#payment ul.payment_methods > li > label {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-left: 8px;
	color: var(--text);
	font-size: 0.9rem;
	cursor: pointer;
}

#payment ul.payment_methods > li img {
	display: inline-block;
	max-height: 24px;
	width: auto;
}

#payment .payment_box {
	margin-top: 12px;
	padding: 12px;
	background: var(--surface-2);
	font-size: 0.84rem;
	color: var(--text-soft);
}

#payment .payment_box p:last-child {
	margin-bottom: 0;
}

#payment .payment_box fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce-terms-and-conditions-wrapper {
	margin: 14px 0;
	font-size: 0.82rem;
}

.woocommerce-privacy-policy-text p {
	font-size: 0.78rem;
}

.woocommerce-terms-and-conditions {
	max-height: 200px;
	overflow: auto;
	padding: 12px;
	margin-bottom: 12px;
	border: 1px solid var(--border);
}

#place_order {
	width: 100%;
	min-height: 52px;
	font-size: 0.8rem;
}

.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info {
	justify-content: flex-start;
}

form.checkout_coupon,
form.woocommerce-form-login {
	margin-bottom: 22px;
	padding: 18px;
	border: 1px solid var(--border);
	background: var(--surface);
}

form.checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-end;
}

form.checkout_coupon p {
	margin: 0;
}

form.checkout_coupon .form-row {
	width: auto;
	flex: 1 1 200px;
	margin: 0;
}

.blockUI.blockOverlay {
	background: var(--bg) !important;
	opacity: 0.6 !important;
}

/* 8. Order received ------------------------------------------------------- */

.confirmation {
	max-width: 820px;
}

.woocommerce-thankyou-order-received {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	color: var(--text);
	line-height: 1.25;
	border: 0;
	background: none;
	padding: 0;
	display: block;
}

ul.order_details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1px;
	margin: 24px 0 36px;
	padding: 0;
	list-style: none;
	background: var(--border);
	border: 1px solid var(--border);
}

ul.order_details li {
	padding: 16px;
	background: var(--surface);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

ul.order_details li strong {
	display: block;
	margin-top: 6px;
	font-size: 0.95rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--text);
}

.woocommerce-order-details,
.woocommerce-customer-details {
	margin-bottom: 32px;
}

.woocommerce-order-details__title,
.woocommerce-column__title {
	font-size: 1.3rem;
}

.woocommerce-customer-details address {
	padding: 16px;
	border: 1px solid var(--border);
	font-style: normal;
	line-height: 1.7;
	color: var(--text-soft);
}

.confirmation-actions {
	margin-top: 24px;
}

/* 9. My account ------------------------------------------------------------ */

.woocommerce-account .woo-content .entry-content > .woocommerce {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.woocommerce-account .woo-content .entry-content > .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-account:not(.logged-in) .woo-content .entry-content > .woocommerce > * {
	grid-column: 1 / -1;
}

.account-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--border);
}

.account-nav a {
	display: block;
	padding: 12px 4px;
	border-bottom: 1px solid var(--border);
	color: var(--text-soft);
	font-size: 0.9rem;
}

.account-nav .is-active a,
.account-nav a[aria-current="page"] {
	color: var(--text);
	box-shadow: inset 3px 0 0 var(--accent);
	padding-left: 14px;
}

.woocommerce-MyAccount-content > p:first-child {
	margin-bottom: 24px;
}

.woocommerce-MyAccount-content a:not(.button):not(.account-card) {
	color: var(--gold-soft);
	text-decoration: underline;
}

.account-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
	margin-bottom: 28px;
}

.account-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
}

.account-card .icon {
	color: var(--gold);
	margin-bottom: 6px;
}

.account-card span {
	font-size: 0.82rem;
	color: var(--text-muted);
}

.account-card:hover {
	border-color: var(--gold);
	color: var(--text);
}

.woocommerce-orders-table .button,
.woocommerce-MyAccount-content .woocommerce-button {
	min-height: 34px;
	padding: 7px 12px;
	margin: 2px;
	font-size: 0.66rem;
}

.woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.woocommerce-Address {
	padding: 18px;
	border: 1px solid var(--border);
}

.woocommerce-Address-title {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
}

.woocommerce-Address-title h2 {
	font-size: 1.1rem;
}

.woocommerce-Address address {
	font-style: normal;
	color: var(--text-soft);
	line-height: 1.7;
}

.woocommerce-EditAccountForm fieldset {
	width: 100%;
	margin: 18px 0;
	padding: 16px;
	border: 1px solid var(--border);
}

.woocommerce-EditAccountForm legend {
	padding: 0 6px;
	font-family: var(--font-display);
}

/* Login / register: one card with tabs. */
.auth {
	display: flex;
	justify-content: center;
	padding-block: 8px 48px;
}

.auth-card {
	width: 100%;
	max-width: 560px;
	padding: 34px 36px 30px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
}

.auth-title {
	margin: 0 0 22px;
	font-size: clamp(1.4rem, 2.6vw, 1.85rem);
}

.auth-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 26px;
	border-bottom: 1px solid var(--border);
}

.auth .auth-tabs a.auth-tab:not(.btn),
.auth .auth-tabs a.auth-tab:not(.btn):hover,
.auth .auth-tabs a.auth-tab:not(.btn):focus {
	margin-bottom: -1px;
	padding: 12px 8px;
	border-bottom: 2px solid transparent;
	color: var(--text-muted);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: color 0.2s, border-color 0.2s;
}

/* The forms sit directly in the card (no inner box, full width). */
.auth form.woocommerce-form-login,
.auth form.woocommerce-form-register {
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.auth .auth-tabs a.auth-tab:not(.btn):hover {
	color: var(--text);
}

.auth .auth-tabs a.auth-tab:not(.btn)[aria-selected="true"] {
	border-bottom-color: var(--accent);
	color: var(--text);
}

.auth .form-row {
	margin: 0 0 18px;
}

.auth .form-row label:not(.woocommerce-form__label-for-checkbox) {
	display: block;
	margin-bottom: 7px;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--text);
}

.auth .required {
	color: var(--accent-hover);
	text-decoration: none;
}

.auth .input-text {
	width: 100%;
	min-height: 48px;
	border-radius: 8px;
}

.auth-remember {
	margin-bottom: 20px !important;
}

.auth-remember label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.88rem;
	color: var(--text-soft);
	cursor: pointer;
}

.auth .auth-submit {
	width: 100%;
	min-height: 50px;
	border-radius: 999px;
	font-size: 0.9rem;
}

.auth-hint {
	display: block;
	margin-top: 7px;
	font-size: 0.76rem;
	line-height: 1.5;
	color: var(--text-muted);
}

.auth-note {
	margin: 4px 0 0;
	font-size: 0.78rem;
	line-height: 1.6;
	color: var(--text-muted);
}

.auth-note a {
	color: var(--gold-soft);
	text-decoration: underline;
}

.auth .lost_password {
	margin: 18px 0 0;
	text-align: center;
}

/* Show/hide password button added by WooCommerce. */
.auth .password-input {
	position: relative;
	display: block;
}

.auth .password-input .input-text {
	padding-right: 48px;
}

.show-password-input {
	position: absolute;
	top: 50%;
	right: 8px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	transform: translateY(-50%);
}

.show-password-input::after {
	content: "";
	position: absolute;
	inset: 8px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.show-password-input.display-password::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A10.4 10.4 0 0 1 12 5c6.4 0 10 7 10 7a17 17 0 0 1-3.2 4.2M6.6 6.6C3.9 8.4 2 12 2 12s3.6 7 10 7a9.7 9.7 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A10.4 10.4 0 0 1 12 5c6.4 0 10 7 10 7a17 17 0 0 1-3.2 4.2M6.6 6.6C3.9 8.4 2 12 2 12s3.6 7 10 7a9.7 9.7 0 0 0 5.4-1.6M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
}

.show-password-input:hover,
.show-password-input:focus-visible {
	color: var(--text);
}

@media (max-width: 560px) {
	.auth-card {
		padding: 26px 18px 22px;
	}
}

.lost_password a {

	font-size: 0.85rem;
	color: var(--gold-soft);
	text-decoration: underline;
}

.woocommerce-ResetPassword,
.woocommerce-form-register {
	max-width: 520px;
}

.woocommerce-password-strength {
	font-size: 0.8rem;
	padding: 6px 10px;
	margin-top: 6px;
	border-radius: var(--radius);
	background: var(--surface-2);
}

.woocommerce-password-strength.strong {
	color: var(--success);
}

.woocommerce-password-strength.short,
.woocommerce-password-strength.bad {
	color: var(--error);
}

.woocommerce-password-hint {
	font-size: 0.78rem;
	color: var(--text-muted);
}

/* 10. Mini-cart drawer ---------------------------------------------------- */

.widget_shopping_cart_content {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.woocommerce-mini-cart {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 72px 1fr;
	column-gap: 14px;
	padding: 16px 34px 16px 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.88rem;
}

.woocommerce-mini-cart-item > a:not(.remove) {
	display: contents;
	color: var(--text);
	font-weight: 500;
}

.woocommerce-mini-cart-item img {
	grid-row: span 3;
	width: 72px;
	height: 72px;
	object-fit: contain;
	background: var(--surface-2);
}

.woocommerce-mini-cart-item .remove {
	position: absolute;
	top: 12px;
	right: 0;
}

.woocommerce-mini-cart-item .variation {
	margin: 4px 0;
	font-size: 0.78rem;
}

.woocommerce-mini-cart-item .quantity {
	display: block;
	height: auto;
	border: 0;
	font-size: 0.82rem;
	color: var(--text-soft);
}

.woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	margin: 20px 0 14px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	color: var(--text);
}

.woocommerce-mini-cart__buttons {
	display: grid;
	gap: 8px;
	margin: 0;
}

.woocommerce-mini-cart__buttons .button {
	width: 100%;
}

.woocommerce-mini-cart__buttons .button:not(.checkout) {
	background: transparent;
	border-color: var(--gold);
	color: var(--text);
}

.woocommerce-mini-cart__empty-message {
	padding: 40px 0;
	text-align: center;
}

.drawer .free-shipping {
	margin-top: 4px;
}

/* 11. Misc ------------------------------------------------------------------ */

.woocommerce-breadcrumb {
	margin: 0;
}

.woocommerce .woocommerce-loop-category__title {
	font-size: 1rem;
	text-align: center;
	margin-top: 10px;
}

.woocommerce .woocommerce-loop-category__title mark {
	background: none;
	color: var(--text-muted);
}

.wishlist-page ul.products {
	margin-top: 24px;
}

.wishlist-page ul.products[aria-busy="true"] {
	min-height: 200px;
	opacity: 0.5;
}

/* 12. Responsive ------------------------------------------------------------ */

@media (max-width: 1100px) {
	ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.checkout-layout {
		grid-template-columns: minmax(0, 1fr) 340px;
	}
}

@media (max-width: 900px) {
	ul.products,
	ul.products.columns-3,
	.shop-products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}

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

	.woocommerce-ordering,
	.woocommerce-ordering select {
		width: 100%;
	}

	.shop-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.filters-toggle {
		border: 1px solid var(--border);
		padding: 0 14px;
	}

	.filters-toggle > summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 48px;
		cursor: pointer;
		font-weight: 600;
	}

	.filters-toggle .filters {
		border-top: 1px solid var(--border);
	}

	.filters-toggle .filters-title {
		display: none;
	}

	.detail {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.cart-layout,
	.checkout-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.checkout-aside {
		position: static;
	}

	.woocommerce-account .woo-content .entry-content > .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

}

@media (max-width: 760px) {
	.product-title,
	ul.products li.product .woocommerce-loop-product__title {
		font-size: 0.82rem;
	}

	.price {
		font-size: 0.9rem;
	}

	.heart {
		width: 36px;
		height: 36px;
		top: 8px;
		right: 8px;
	}

	.badges {
		top: 8px;
		left: 8px;
	}

	ul.products li.product .button {
		width: 100%;
		padding-inline: 8px;
	}

	.form-row-first,
	.form-row-last {
		width: 100%;
	}

	.checkout-step,
	.cart-collaterals.summary,
	.checkout-review {
		padding: 16px;
	}

	/* Cart table → stacked rows (uses the data-title labels from WooCommerce). */
	.woocommerce-cart-form .shop_table_responsive thead {
		display: none;
	}

	.woocommerce-cart-form .shop_table_responsive tbody tr {
		display: grid;
		grid-template-columns: 80px 1fr;
		column-gap: 14px;
		padding: 14px 0;
		border-bottom: 1px solid var(--border);
	}

	.woocommerce-cart-form .shop_table_responsive tbody td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 4px 0;
		border: 0;
		text-align: right;
	}

	.woocommerce-cart-form .shop_table_responsive tbody td[data-title]::before {
		content: attr(data-title);
		font-size: 0.75rem;
		color: var(--text-muted);
		text-align: left;
	}

	.woocommerce-cart-form .product-thumbnail {
		grid-row: 1 / span 5;
		align-items: flex-start;
	}

	.woocommerce-cart-form .product-thumbnail img {
		width: 80px;
		height: 80px;
	}

	.woocommerce-cart-form .product-remove {
		grid-column: 2;
		justify-content: flex-end;
	}

	.woocommerce-cart-form .product-name {
		display: block;
		text-align: left;
	}

	.woocommerce-cart-form .product-name::before {
		display: none;
	}

	.woocommerce-cart-form tr:last-child {
		display: block;
	}

	.woocommerce-cart-form td.actions {
		display: block;
		text-align: left;
	}

	.woocommerce-cart-form .coupon {
		display: flex;
		width: 100%;
		margin: 0 0 12px;
	}

	.woocommerce-cart-form .coupon .input-text {
		flex: 1;
		width: auto;
	}

	.woocommerce-cart-form td.actions > .button {
		float: none;
		width: 100%;
	}

	.woocommerce-orders-table tbody tr,
	.woocommerce-table--order-downloads tbody tr {
		display: block;
	}

	ul.order_details {
		grid-template-columns: 1fr 1fr;
	}
}

/* 12. Mobile ---------------------------------------------------------------- */

/* Wide tables in product descriptions and pages scroll sideways instead of widening the page. */
#tab-description .accordion-body table,
.entry-content > table,
.entry-content .wp-block-table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

#tab-description .accordion-body table th,
#tab-description .accordion-body table td {
	white-space: nowrap;
}

@media (max-width: 760px) {
	/* 16px stops iOS Safari from zooming into a field on focus. */
	.input-text,
	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="number"],
	input[type="password"],
	input[type="search"],
	select,
	textarea,
	.quantity .qty,
	.select2-container .select2-selection {
		font-size: 16px;
	}

	/* Cart totals: label left, amount right, no stacked labels. */
	.cart_totals .shop_table_responsive tr {
		display: table-row;
	}

	.cart_totals .shop_table_responsive th,
	.cart_totals .shop_table_responsive td {
		display: table-cell;
		padding: 12px 0;
		border-bottom: 1px solid var(--border);
	}

	.cart_totals .shop_table_responsive td {
		padding-left: 12px;
		text-align: right;
		overflow-wrap: anywhere;
	}

	.cart_totals .shop_table_responsive td::before {
		display: none;
	}

	.cart_totals .woocommerce-shipping-methods {
		padding: 0;
	}

	.cart_totals .wc-proceed-to-checkout .button,
	.cart_totals .checkout-button {
		width: 100%;
	}
}

@media (max-width: 760px) {
	/* Cart rows: remove (×) in the corner, name on the left. */
	.woocommerce-cart-form .shop_table_responsive tbody tr.cart_item {
		position: relative;
		padding-right: 0;
	}

	.woocommerce-cart-form .shop_table_responsive td.product-remove {
		position: absolute;
		top: 8px;
		right: 0;
		padding: 0;
	}

	.woocommerce-cart-form .product-remove a.remove {
		display: grid;
		place-items: center;
		width: 36px;
		height: 36px;
	}

	.woocommerce-cart-form .shop_table_responsive td.product-name {
		justify-content: flex-start;
		padding-right: 40px;
		text-align: left;
	}

	.woocommerce-cart-form td.product-name a:not(.btn):not(.button) {
		color: var(--text);
		font-weight: 600;
		text-decoration: none;
	}

	/* Rows are grids/blocks on phones, so the table and its body must be blocks too
	   (otherwise the browser wraps the rows in a shrink-to-fit anonymous cell). */
	.woocommerce-cart-form .shop_table_responsive,
	.woocommerce-cart-form .shop_table_responsive tbody {
		display: block;
		width: 100%;
	}

	/* The actions row (coupon, update) is a normal full-width block, not a label/value cell. */
	.woocommerce-cart-form .shop_table_responsive tbody tr:last-child {
		display: block;
	}

	.woocommerce-cart-form .shop_table_responsive tbody td.actions {
		display: block;
		width: 100%;
		text-align: left;
	}

	/* Coupon field and button on one line; update button full width. */
	.woocommerce-cart-form td.actions .coupon {
		display: flex;
		flex-wrap: nowrap;
		gap: 8px;
		width: 100%;
		margin: 0 0 12px;
	}

	.woocommerce-cart-form td.actions .coupon .input-text {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
	}

	.woocommerce-cart-form .coupon .button,
	.woocommerce-cart-form td.actions > .button {
		white-space: nowrap;
	}
}

/* Germanized price notes in product cards: two compact lines like the theme's own note. */
ul.products li.product .product-info p.wc-gzd-additional-info {
	margin: 0;
	font-size: 0.7rem;
	line-height: 1.45;
	color: var(--text-muted);
}

ul.products li.product .product-info p.wc-gzd-additional-info + p.wc-gzd-additional-info {
	margin-top: -4px;
}

.wc-gzd-additional-info a {
	color: inherit;
	text-decoration: underline;
}

@media (max-width: 760px) {
	/* Checkout order box on phones: no thumbnail (the cart shows it), more room for the name. */
	.woocommerce-checkout-review-order-table .wc-gzd-cart-item-thumbnail {
		display: none;
	}

	.woocommerce-checkout-review-order-table .wc-gzd-cart-item-name-wrapper {
		gap: 8px;
	}

	.woocommerce-checkout-review-order-table .product-total,
	.woocommerce-checkout-review-order-table > tfoot > tr > td {
		width: 34%;
	}

	.woocommerce-checkout-review-order-table > thead > tr > th,
	.woocommerce-checkout-review-order-table > tbody > tr > td,
	.woocommerce-checkout-review-order-table > tfoot > tr > th,
	.woocommerce-checkout-review-order-table > tfoot > tr > td {
		padding-inline: 6px;
	}
}
