/* HW Landingpages 1.18.2 – Warenkorb. Wirkt nur mit body.hw-cart. */
@font-face { font-family: "HW Barlow Condensed"; src: url(fonts/barlow-condensed-latin-300-normal.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "HW Barlow Condensed"; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "HW Barlow Condensed"; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "HW Barlow"; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "HW Barlow"; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

body.hw-cart {
	--hw-cream: #FBF2ED;
	--hw-anth: #263039;
	--hw-anth-deep: #1A2229;
	--hw-brown: #B08E75;
	--hw-brown-text: #7A5B45;
	--hw-ink: #1F272E;
	--hw-ink2: #3A444D;
	--hw-muted: #55606A;
	--hw-line: #DCCABD;
	--hw-mat: #F4EEE9;
	--hw-display: "HW Barlow Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
	--hw-body: "HW Barlow", Barlow, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
body.hw-cart .entry-content { font-family: var(--hw-body); color: var(--hw-ink); }

/* ---------- Fortschritt: eine schmale Zeile ---------- */
body.hw-cart #atomion-order-progress { display: flex; flex-wrap: nowrap; gap: 6px; margin: 8px 0 28px; }
body.hw-cart #atomion-order-progress .progress-step {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 10px 6px;
	border: 0;
	border-bottom: 3px solid #EADBD0;
	background: transparent;
	font-family: var(--hw-display);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-align: center;
	text-transform: uppercase;
	color: #9AA1A7;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
body.hw-cart #atomion-order-progress .progress-step a { color: inherit; text-decoration: none; }
body.hw-cart #atomion-order-progress .progress-step.current { border-bottom-color: var(--hw-anth); color: var(--hw-anth); }

/* ---------- Überschrift ---------- */
body.hw-cart .entry-header .entry-title {
	margin: 0 0 22px;
	font-family: var(--hw-display);
	font-weight: 700;
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--hw-anth);
}
body.hw-cart .entry-header .entry-title::after { content: none; }

/* ---------- Aufteilung: Desktop links Produkte, rechts mitlaufende Summe ---------- */
@media (min-width: 1000px) {
	body.hw-cart .entry-content > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 48px; align-items: start; }
	body.hw-cart .entry-content > .woocommerce > * { grid-column: 1 / -1; }
	body.hw-cart .entry-content > .woocommerce > form.woocommerce-cart-form { grid-column: 1; grid-row: 2; }
	body.hw-cart .entry-content > .woocommerce > .cart-collaterals { grid-column: 2; grid-row: 2 / span 2; position: sticky; top: 24px; }
	body.hw-cart .entry-content > .woocommerce > .cross-sells { grid-column: 1; grid-row: 3; }
}
body.hw-cart .cart-collaterals { width: 100%; margin: 0; }
body.hw-cart .cart-collaterals .cart_totals, body.hw-cart .cross-sells { width: 100% !important; float: none !important; margin: 0; }

/* ---------- Produkte als Karten ---------- */
body.hw-cart table.shop_table.cart { display: block; width: 100%; margin: 0; border: 0; border-collapse: separate; }
body.hw-cart table.shop_table.cart thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.hw-cart table.shop_table.cart,
body.hw-cart table.shop_table.cart tbody { display: block; width: 100%; }
body.hw-cart table.shop_table.cart tr.cart_item {
	display: grid;
	grid-template-columns: 136px minmax(0, 1fr) auto minmax(110px, auto);
	grid-template-areas: "thumb name qty sub" "thumb name price sub" "thumb remove . .";
	grid-template-rows: auto minmax(0, 1fr) auto;
	gap: 6px 24px;
	align-items: start;
	margin: 0 0 14px;
	padding: 20px;
	border: 1px solid #EADBD0;
	border-radius: 16px 0 16px 0;
	background: #fff;
}
body.hw-cart table.shop_table.cart tr.cart_item td {
	display: block !important;
	width: auto !important;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	background: none;
	text-align: left !important;
}
body.hw-cart table.shop_table.cart td::before { content: none !important; display: none !important; }
body.hw-cart td.product-thumbnail { grid-area: thumb; }
body.hw-cart td.product-name { grid-area: name; }
body.hw-cart td.product-quantity { grid-area: qty; }
body.hw-cart td.product-price { grid-area: price; font-size: 13px; color: var(--hw-muted); text-align: center !important; }
body.hw-cart td.product-price .woocommerce-Price-amount::before { content: "je "; }
body.hw-cart tr.cart_item.is-single td.product-price { visibility: hidden; }
body.hw-cart td.product-subtotal { grid-area: sub; text-align: right !important; }
body.hw-cart td.product-remove { grid-area: remove; align-self: end; }

body.hw-cart td.product-thumbnail a {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 8%;
	box-sizing: border-box;
	border-radius: 12px 0 12px 0;
	background: var(--hw-mat);
}
body.hw-cart td.product-thumbnail img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	margin: 0;
	object-fit: contain;
	filter: drop-shadow(0 6px 10px rgba(31, 39, 46, 0.24));
}

body.hw-cart td.product-name > a { font-family: var(--hw-display); font-weight: 600; font-size: 21px; line-height: 1.15; color: var(--hw-anth); text-decoration: none; }
body.hw-cart td.product-name > a:hover { color: var(--hw-brown-text); }
/* Kurzbeschreibung, die German Market im Warenkorb anhängt (enthält einen nicht ausgeführten Shortcode). */
body.hw-cart td.product-name > small, body.hw-cart td.product-name > br { display: none; }
body.hw-cart td.product-name dl.variation { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 10px 0 0; font-size: 14px; line-height: 1.45; }
body.hw-cart td.product-name dl.variation dt { margin: 0; padding: 0; font-weight: 600; color: var(--hw-muted); float: none; clear: none; }
body.hw-cart td.product-name dl.variation dd { margin: 0; padding: 0; color: var(--hw-ink2); float: none; }
body.hw-cart td.product-name dl.variation dd p { margin: 0; }
body.hw-cart td.product-name .wgm-info, body.hw-cart td.product-name .delivery-time-info { margin: 4px 0 0; font-size: 14px; color: var(--hw-ink2); }
body.hw-cart p.hw-cart-specs { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--hw-ink2); }
body.hw-cart #main-footer .widget_recently_viewed_products,
body.hw-cart #main-footer .widget_top_rated_products { display: none !important; }
body.hw-cart p.hw-cart-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--hw-brown-text); }

/* Menge mit − und + */
/* Feste Breite: Die Buttons − und + kommen per Skript hinzu, ohne dass sich etwas verschiebt. */
body.hw-cart td.product-quantity .quantity { display: inline-flex; align-items: stretch; justify-content: center; width: 128px; box-sizing: border-box; margin: 0; border: 1.5px solid var(--hw-anth); border-radius: 10px 0 10px 0; overflow: hidden; }
body.hw-cart td.product-quantity input.qty {
	flex: 0 0 44px;
	width: 44px !important;
	min-width: 0 !important;
	height: 44px;
	margin: 0 !important;
	padding: 0 !important;
	text-align: center !important;
	border: 0 !important;
	border-radius: 0;
	background: #fff;
	font-family: var(--hw-body);
	font-size: 16px;
	text-align: center;
	-moz-appearance: textfield;
}
body.hw-cart td.product-quantity input.qty::-webkit-outer-spin-button, body.hw-cart td.product-quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.hw-cart button.hw-qty-btn {
	width: 40px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--hw-anth);
	font-family: var(--hw-body);
	font-size: 20px;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}
body.hw-cart button.hw-qty-btn:hover { background: var(--hw-cream); color: var(--hw-anth); }
body.hw-cart button.hw-qty-btn:focus-visible, body.hw-cart td.product-quantity input.qty:focus-visible { outline: 2px solid var(--hw-brown-text); outline-offset: -2px; }

body.hw-cart td.product-subtotal > .woocommerce-Price-amount { font-family: var(--hw-display); font-weight: 700; font-size: 22px; line-height: 1.1; color: var(--hw-ink); }
body.hw-cart td.product-subtotal .wgm-break { display: block; }
body.hw-cart td.product-subtotal .wgm-tax { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--hw-muted); }

body.hw-cart td.product-remove a.remove {
	display: inline-flex !important;
	align-items: center;
	width: auto !important;
	height: auto !important;
	min-height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0 !important;
	background: none !important;
	color: var(--hw-muted) !important;
	font-family: var(--hw-body);
	font-size: 13px !important;
	font-weight: 400;
	line-height: 1.2 !important;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
}
body.hw-cart td.product-remove a.remove:hover { color: var(--hw-anth) !important; }

/* Zeilen unter den Produkten: Hinweis von German Market, Aktualisieren-Button */
body.hw-cart table.shop_table.cart tr:not(.cart_item) { display: block; }
body.hw-cart table.shop_table.cart tr:not(.cart_item) td { display: block; padding: 6px 0 !important; border: 0 !important; text-align: left !important; font-size: 13px; color: var(--hw-muted); }
body.hw-cart table.shop_table.cart tr:not(.cart_item) td a { color: var(--hw-ink2); }
/* Aktualisieren-Button nur ohne JavaScript zeigen; Atomion setzt ihn am Handy mit Vorrang sichtbar. */
html.hw-js body.hw-cart form.woocommerce-cart-form [name="update_cart"],
body.hw-cart.hw-cart-js form.woocommerce-cart-form [name="update_cart"],
body.hw-cart.hw-cart-js form.woocommerce-cart-form td.actions > .button[name="update_cart"] { display: none !important; }

/* ---------- Zusammenfassung ---------- */
body.hw-cart .cart_totals { padding: 24px; box-sizing: border-box; border-radius: 20px 0 20px 0; background: var(--hw-cream); }
body.hw-cart .cart_totals > h2 {
	margin: 0 0 12px;
	font-family: var(--hw-display);
	font-weight: 700;
	font-size: 24px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--hw-anth);
}
body.hw-cart .cart_totals > h2::after { content: none; }
body.hw-cart .cart_totals table.shop_table { width: 100%; margin: 0; border: 0; }
body.hw-cart .cart_totals table.shop_table tr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid #E5D6CA; }
body.hw-cart .cart_totals table.shop_table th, body.hw-cart .cart_totals table.shop_table td { display: block; padding: 12px 0 !important; border: 0 !important; background: none; font-size: 15px; text-align: left; }
body.hw-cart .cart_totals table.shop_table td { text-align: right !important; }
body.hw-cart .cart_totals table.shop_table td::before { content: none !important; display: none !important; }
body.hw-cart .cart_totals th { font-weight: 600; color: var(--hw-ink2); }
body.hw-cart .cart_totals .woocommerce-shipping-destination,
body.hw-cart .cart_totals .woocommerce-shipping-calculator,
body.hw-cart .cart_totals .shipping-calculator-button,
body.hw-cart .wc-cart-shipping-notice { display: none !important; }
body.hw-cart .cart_totals ul#shipping_method { margin: 0; padding: 0; list-style: none; }
body.hw-cart .cart_totals tr.order-total { border-bottom: 0; }
body.hw-cart .cart_totals tr.order-total th { font-family: var(--hw-display); font-size: 20px; color: var(--hw-anth); }
body.hw-cart .cart_totals tr.order-total td > strong .woocommerce-Price-amount { font-family: var(--hw-display); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--hw-ink); }
body.hw-cart .cart_totals tr.order-total td > strong { font-weight: 700; }
body.hw-cart .cart_totals .wgm-break { display: block; }
body.hw-cart .cart_totals .includes_tax,
body.hw-cart .cart_totals .wgm-tax,
body.hw-cart .cart_totals .includes_tax .woocommerce-Price-amount,
body.hw-cart .cart_totals .wgm-tax .woocommerce-Price-amount { display: inline; font-family: var(--hw-body) !important; font-weight: 400 !important; font-size: 12px !important; line-height: 1.4 !important; color: var(--hw-muted); }
body.hw-cart .cart_totals .includes_tax, body.hw-cart .cart_totals .wgm-tax { display: block; margin-top: 2px; }

/* Atomion gibt dem Kassenbereich ein eigenes Layout; hier zwingend untereinander und volle Breite. */
body.hw-cart .cart_totals .wc-proceed-to-checkout {
	display: block !important;
	position: static !important;
	float: none !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 12px 0 0 !important;
	padding: 0 !important;
	text-align: left !important;
}
body.hw-cart .cart_totals .wc-proceed-to-checkout > * {
	position: static !important;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	transform: none !important;
	box-sizing: border-box;
}
body.hw-cart .wc-proceed-to-checkout a.checkout-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	margin: 0 0 12px;
	padding: 0 20px;
	box-sizing: border-box;
	border: 0 !important;
	border-radius: 12px 0 12px 0;
	background: var(--hw-anth) !important;
	color: var(--hw-cream) !important;
	font-family: var(--hw-display);
	font-weight: 600;
	font-size: 20px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: none !important;
}
body.hw-cart .wc-proceed-to-checkout a.checkout-button:hover { background: var(--hw-anth-deep) !important; }
body.hw-cart .wc-proceed-to-checkout a.checkout-button:focus-visible { outline: 2px solid var(--hw-brown-text); outline-offset: 3px; }
body.hw-cart ul.hw-cart-trust { display: flex !important; flex-direction: column; gap: 8px; clear: both; margin: 16px 0 0 !important; padding: 0 !important; list-style: none; font-family: var(--hw-body); font-size: 14px; line-height: 1.4; color: var(--hw-ink2); }
body.hw-cart ul.hw-cart-trust li { display: flex !important; align-items: flex-start; gap: 8px; width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; text-align: left; }
body.hw-cart ul.hw-cart-trust li::before { content: none; }
body.hw-cart ul.hw-cart-trust .hw-icon { flex: none; margin-top: 1px; color: var(--hw-brown-text); }
body.hw-cart ul.hw-cart-trust a { color: var(--hw-ink2); }
body.hw-cart p.hw-cart-help { margin: 12px 0 0; font-size: 14px; color: var(--hw-ink2); }
body.hw-cart p.hw-cart-help a { color: var(--hw-brown-text); font-weight: 600; }

/* ---------- Empfehlungen ---------- */
body.hw-cart .cross-sells { margin-top: 40px !important; }
body.hw-cart .cross-sells > h2 {
	margin: 0 0 18px;
	font-family: var(--hw-display);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: 0.03em;
	text-align: left;
	text-transform: uppercase;
	color: var(--hw-anth);
}
body.hw-cart .cross-sells li.product .product-image-wrapper { aspect-ratio: 1 / 1; padding: 7%; box-sizing: border-box; border-radius: 14px 0 14px 0; background: var(--hw-mat); overflow: hidden; }
body.hw-cart .cross-sells li.product a.atomion-product-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
body.hw-cart .cross-sells li.product a.atomion-product-image img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(31, 39, 46, 0.22)); transform: none; }
body.hw-cart .cross-sells li.product .atomion-product-lupe, body.hw-cart .cross-sells li.product .product-image-wrapper .button { display: none !important; }
body.hw-cart .cross-sells .woocommerce-loop-product__title { font-family: var(--hw-display); font-weight: 600; font-size: 18px; line-height: 1.15; text-transform: none; color: var(--hw-anth); }
body.hw-cart .cross-sells .woocommerce-loop-product__title::after { content: none; display: none; }
body.hw-cart .cross-sells .price { font-family: var(--hw-display); font-weight: 700; font-size: 19px; color: var(--hw-ink); }
body.hw-cart .cross-sells .hw-plp-ab { font-weight: 400; font-size: 0.72em; color: var(--hw-muted); }
body.hw-cart .cross-sells .wgm-info, body.hw-cart .cross-sells .wgm-info * { font-size: 11px !important; line-height: 1.4 !important; color: var(--hw-muted); }
body.hw-cart .cross-sells .go-to-product a.button {
	border: 1.5px solid var(--hw-anth) !important;
	border-radius: 10px 0 10px 0;
	background: #fff !important;
	color: var(--hw-anth) !important;
	font-family: var(--hw-display);
	font-weight: 600;
	letter-spacing: 0.05em;
}

/* ---------- Leerer Warenkorb ---------- */
body.hw-cart .hw-cart-empty { margin: 24px 0 0; padding: 24px; border-radius: 20px 0 20px 0; background: var(--hw-cream); }
body.hw-cart .hw-cart-empty__title { margin: 0 0 12px; font-family: var(--hw-display); font-weight: 600; font-size: 22px; color: var(--hw-anth); }
body.hw-cart ul.hw-cart-empty__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
body.hw-cart ul.hw-cart-empty__links li { margin: 0; padding: 0; }
body.hw-cart ul.hw-cart-empty__links li::before { content: none; }
body.hw-cart ul.hw-cart-empty__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--hw-line); border-radius: 10px 0 10px 0; background: #fff; font-weight: 600; color: var(--hw-anth); text-decoration: none; }

/* ---------- Handy ---------- */
@media (max-width: 999px) {
	body.hw-cart .cart-collaterals { margin-top: 20px; }
	body.hw-cart table.shop_table.cart tr.cart_item {
		grid-template-columns: 120px minmax(0, 1fr) auto;
		grid-template-areas: "thumb name name" "thumb qty sub" "thumb remove price";
		grid-template-rows: auto auto auto;
		gap: 10px 18px;
	}
	body.hw-cart td.product-subtotal { align-self: center; }
	body.hw-cart td.product-price { text-align: right !important; }
	body.hw-cart td.product-remove { align-self: center; }
}
@media (max-width: 640px) {
	body.hw-cart table.shop_table.cart tr.cart_item {
		grid-template-columns: 92px minmax(0, 1fr) auto;
		grid-template-areas: "thumb name name" "thumb qty sub" "thumb remove price";
		gap: 8px 14px;
		padding: 14px;
	}
	body.hw-cart td.product-name > a { font-size: 18px; }
	body.hw-cart td.product-name dl.variation { font-size: 13px; margin-top: 6px; }
	body.hw-cart td.product-price { text-align: right !important; }
	body.hw-cart td.product-subtotal > .woocommerce-Price-amount { font-size: 20px; }
	body.hw-cart #atomion-order-progress .progress-step { font-size: 13px; letter-spacing: 0.03em; }
	body.hw-cart .cart_totals { padding: 18px; }
}

/* Kaufleiste am Handy */
body.hw-cart .hw-cart-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #EADBD0;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 -8px 20px rgba(31, 39, 46, 0.08);
	font-family: var(--hw-body);
}
body.hw-cart .hw-cart-bar[hidden] { display: none !important; }
body.hw-cart .hw-cart-bar__info { display: flex; flex-direction: column; }
body.hw-cart .hw-cart-bar__label { font-size: 12px; color: var(--hw-muted); }
body.hw-cart .hw-cart-bar__total { font-family: var(--hw-display); font-weight: 700; font-size: 21px; line-height: 1.1; color: var(--hw-ink); white-space: nowrap; }
body.hw-cart a.hw-cart-bar__btn {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	border-radius: 12px 0 12px 0;
	background: var(--hw-anth);
	color: var(--hw-cream);
	font-family: var(--hw-display);
	font-weight: 600;
	font-size: 18px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}
@media (min-width: 1000px) {
	body.hw-cart .hw-cart-bar { display: none !important; }
}
@media (max-width: 999px) {
	body.hw-cart.hw-cart-bar-visible { padding-bottom: 84px; }
}

/* ---------- Vorschau-Hinweis ---------- */
.hw-cart-preview {
	position: fixed;
	left: 12px;
	bottom: 12px;
	z-index: 9995;
	padding: 6px 12px;
	border-radius: 8px 0 8px 0;
	background: #B08E75;
	color: #161B21;
	font: 600 13px/1.3 "HW Barlow", Barlow, Arial, sans-serif;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
@media (max-width: 999px) {
	body.hw-cart-bar-visible .hw-cart-preview { bottom: 90px; }
}
