/* Single product gallery, details and buy box. */
/* Keep product codes (e.g. "WSM-32-J-M8") on one line in titles. */
.asvo-nobreak {
	white-space: nowrap;
}

.asvo-benefits {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 16px;
	margin: 24px 0;
}

.asvo-benefit {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 0;
	min-width: 0;
}

.asvo-benefit img {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	align-self: center;
}

.asvo-benefit span {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--theme-palette-color-3);
	align-self: center;
}

.asvo-divider {
	width: 1px;
	height: 22px;
	background: var(--asv-line);
	flex-shrink: 0;
}


/* Brand name above the product title: smaller and lighter so it reads as a label, not a heading. */
.ct-product-brands-single a {
	font-size: 14px;
	color: var(--asv-muted);
}


/* Gallery/summary gap on the single product page (narrower than the default 48px so the gallery gets more room; the summary column keeps its own width). Desktop only — on tablet/mobile the columns stack, so this margin would just push the summary off-center. */
@media (min-width: 1000px) {
	.product-entry-wrapper:has(.woocommerce-product-gallery:not([data-gallery="top"], [data-gallery="columns-top"])) .entry-summary {
		margin-inline-start: 38px;
	}
}

/* Description sits alone, full width. */
.product > .woocommerce-tabs {
	margin-top: 45px;
	margin-inline: auto;
	width: var(--theme-container-width);
	max-width: var(--theme-block-max-width);
	padding-top: 0;
	position: relative;
	z-index: 1; /* Keeps it painted above the product fade pseudo-element, which now extends down this far. */
}

/* Shared row: technical data (flexible) + downloads/links box (fixed width, matches the CTA/spec box column). */
.asvo-description-row {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	margin-top: 45px;
	margin-inline: auto;
	width: var(--theme-container-width);
	max-width: var(--theme-block-max-width);
	position: relative;
	z-index: 1;
}

.asvo-downloads {
	flex: 0 0 374px;
	box-sizing: border-box;
	margin-top: 0;
}

/* Tablet/mobile: stack the downloads box under the tech data box, same gap as description → tech data. */
@media (max-width: 999px) {
	.asvo-description-row {
		flex-direction: column;
		gap: 45px;
	}

	.asvo-downloads {
		flex-basis: auto;
		width: 100%;
	}
}

/* Section headings (Downloads, Technische Daten, Produktbeschreibung): icon + heading + colored accent underline. */
.asvo-section-heading,
.woocommerce-Tabs-panel > h2 {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 16px;
	font-size: 23px;
	border-bottom: 1px solid var(--asv-line);
}

.asvo-downloads .asvo-section-heading {
	margin: 0;
}

.asvo-section-heading img {
	width: 29px;
	height: 29px;
	flex-shrink: 0;
}

.asvo-section-heading::after,
.woocommerce-Tabs-panel > h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 40px;
	height: 3px;
	background: var(--theme-palette-color-1);
}

.asvo-downloads-list {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.asvo-download-item {
	background: var(--theme-palette-color-8);
	border: 1px solid var(--asv-line);
	border-radius: 6px;
	overflow: hidden;
}

.asvo-download-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.asvo-download-link:hover {
	background: var(--theme-palette-color-6);
}

.asvo-download-icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

.asvo-download-icon--placeholder {
	background-color: var(--theme-palette-color-3);
	-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='M12 2 3 7v10l9 5 9-5V7z'/%3E%3Cpath d='M3 7l9 5 9-5M12 12v10'/%3E%3C/svg%3E") no-repeat center / contain;
	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='M12 2 3 7v10l9 5 9-5V7z'/%3E%3Cpath d='M3 7l9 5 9-5M12 12v10'/%3E%3C/svg%3E") no-repeat center / contain;
}

.asvo-download-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.asvo-download-text strong {
	font-size: 14px;
	font-weight: 500;
	color: var(--theme-palette-color-3);
	line-height: 1.1;
}

.asvo-download-text small {
	font-size: 13px;
	color: var(--asv-muted);
}

.asvo-download-action {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	background-color: var(--asv-muted);
	-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='M12 3v12m0 0-4-4m4 4 4-4M4 19h16'/%3E%3C/svg%3E") no-repeat center / contain;
	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='M12 3v12m0 0-4-4m4 4 4-4M4 19h16'/%3E%3C/svg%3E") no-repeat center / contain;
}

.asvo-download-action--external {
	-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='M18 13v6a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6M15 3h6v6M10 14 21 3'/%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='M18 13v6a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6M15 3h6v6M10 14 21 3'/%3E%3C/svg%3E");
}

/* "Technische Daten" box, next to the downloads box — icon + heading + colored accent underline. */
.asvo-tech-data {
	flex: 1 1 auto;
	min-width: 0;
}

/* Spec table: no card frame, just row dividers. */
.asvo-spec-table-wrap {
	margin-top: 24px;
}

.asvo-spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.35;
	border: none;
}

.asvo-spec-table tr + tr th,
.asvo-spec-table tr + tr td {
	border-top: 1px solid var(--asv-line);
}

.asvo-spec-table th,
.asvo-spec-table td {
	padding: 10px 0;
	text-align: left;
	font-weight: 400;
	color: var(--theme-palette-color-3);
	border: none;
}

.asvo-spec-table th {
	width: 170px;
	padding-right: 16px;
	font-weight: 500;
	white-space: nowrap;
}

/* Only one tab remains — hide the tab nav, use the panel's own heading instead. */
.woocommerce div.product div.woocommerce-tabs ul.tabs {
	display: none;
}

.woocommerce-Tabs-panel > h2::before {
	content: "";
	width: 29px;
	height: 29px;
	flex-shrink: 0;
	background-color: var(--theme-palette-color-3);
	-webkit-mask: url("../Produktbeschreibung.svg") no-repeat center / contain;
	mask: url("../Produktbeschreibung.svg") no-repeat center / contain;
}

.woocommerce-tabs .entry-content {
	margin-inline: 0;
	padding-inline: 0;
	max-width: none;
}

.woocommerce div.product div.woocommerce-tabs div.woocommerce-Tabs-panel.panel {
	padding-top: 5px;
}


/* Gallery lightbox trigger: a magnifier with a plus instead of Blocksy's corner-brackets "expand" icon. The circular button itself (40px, white, teal on hover) comes from Blocksy; the subtle border is added here. */
.woocommerce-product-gallery__trigger {
	border: 1px solid var(--asv-line);
	box-sizing: border-box;
	color: color-mix(in srgb, var(--theme-palette-color-3) 80%, var(--theme-palette-color-8));
}

.woocommerce-product-gallery__trigger:hover {
	border-color: var(--theme-palette-color-1);
}

.woocommerce-product-gallery__trigger::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='18.5' cy='18.5' r='6.5'/%3E%3Cpath d='M23.3 23.3 28 28M15.5 18.5h6M18.5 15.5v6'/%3E%3C/svg%3E");
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='18.5' cy='18.5' r='6.5'/%3E%3Cpath d='M23.3 23.3 28 28M15.5 18.5h6M18.5 15.5v6'/%3E%3C/svg%3E");
}

/* No outer frame around the product gallery. overflow:hidden clips the sliding track so adjacent slides never poke out; the corners are not rounded here because the thumbnails sit flush in the top-left corner (the main image and each thumbnail round their own corners). */
.ct-product-gallery-container {
	overflow: hidden;
}

/* Thumbnails sit flush with the top-left of the gallery; the gap to the main image is on their right. */
.flexy-pills ol {
	align-items: center;
	margin-top: 0;
}

.flexy-pills {
	background: var(--theme-palette-color-8);
}

.flexy-pills li {
	display: flex;
	justify-content: flex-start;
	padding-top: 10px;
}

.flexy-pills li:first-child {
	padding-top: 0;
}

.flexy-pills li.active .ct-media-container {
	border-color: var(--theme-palette-color-1);
}

/* Remove Blocksy's built-in second (gray) active-thumbnail frame; our own border above already marks the active state. */
.woocommerce-product-gallery li.active .ct-media-container::after {
	border-color: transparent;
}

.flexy-pills .ct-media-container {
	width: 110px;
	margin: 0 10px 0 0;
	border: 1px solid var(--asv-line);
	overflow: hidden;
}

/* Frame around the main image itself (the gallery container has no outer frame). */
.flexy-items > .flexy-item > .ct-media-container {
	border: 1px solid var(--asv-line);
}

/* Spec block: product attributes grouped on a light gray card. */
.entry-summary-items > .ct-product-attributes {
	background: var(--theme-palette-color-6);
	border-radius: 8px;
	padding: 5px 16px;
}

.ct-product-attributes .ct-product-attribute {
	display: flex;
	justify-content: flex-start;
	gap: 16px;
	padding: 7px 0;
	margin-bottom: 0;
	font-size: 14px;
	line-height: 1.35;
	border-bottom: 1px solid var(--asv-line);
}

.ct-product-attributes .ct-product-attribute:last-child {
	border-bottom: 0;
}

.ct-product-attributes .ct-attributes-label {
	flex: 0 0 160px;
	font-weight: 500;
	color: var(--theme-text-color);
}

.ct-product-attributes .ct-attributes-value {
	text-align: left;
	color: var(--theme-text-color);
}

/* Mobile: hide the quantity +/- steppers and the cart icon so the buy box row takes up less width; hide the breadcrumb; drop the gallery's outer frame; let the trust badges wrap, third one alone under the aligned first two. */
@media (max-width: 689px) {
	.ct-product-add-to-cart .quantity .ct-increase,
	.ct-product-add-to-cart .quantity .ct-decrease {
		display: none;
	}

	.asvo-benefits {
		flex-wrap: wrap;
		row-gap: 18px;
		margin-top: 25px;
	}

	.asvo-benefit {
		flex: 1 1 150px;
		min-width: 150px;
	}

	.asvo-benefit:last-child {
		flex-basis: 100%;
		justify-content: flex-start;
	}

	.asvo-benefits .asvo-divider:nth-child(2),
	.asvo-benefits .asvo-divider:nth-child(4) {
		display: none;
	}

}

/* Tablet + Mobile: square gallery corners. */
@media (max-width: 999px) {
	.ct-product-gallery-container {
		border-radius: 0;
	}

	.flexy-items > .flexy-item > .ct-media-container {
		border: none;
	}
}

/* Buy box: stock status + quantity + button grouped on a teal-tinted card. Top/bottom padding and the gap below the stock status all match, so the three internal spacings (above status, below status, below button) read as equal. */
.entry-summary-items > .ct-product-add-to-cart {
	background: linear-gradient(135deg, var(--theme-palette-color-7) 0%, var(--asv-tint) 100%);
	border: 1px solid var(--asv-tint-line);
	border-radius: 8px;
	padding: 19px 20px 24px;
}

/* Keep quantity + add-to-cart button on one line without wrapping. */
.entry-summary .ct-cart-actions {
	flex-wrap: nowrap;
}

.entry-summary-items > .ct-product-add-to-cart .single_add_to_cart_button {
	white-space: nowrap;
	flex: 1 1 auto;
	max-width: 100%;
	min-width: 0;
	padding-left: 14px;
	padding-right: 14px;
	font-size: 16px;
}

/* "Warenkorb anzeigen" link that appears next to the button after adding to cart. */
.entry-summary .ct-cart-actions .added_to_cart {
	font-size: 12px;
	line-height: 1.3;
}

/* Slimmer, white quantity selector inside the buy box, bordered to match the buy box card. */
.ct-product-add-to-cart .quantity {
	--quantity-width: 96px;
	flex-shrink: 0;
}

.ct-product-add-to-cart .quantity input[type="number"] {
	--theme-form-field-background-initial-color: var(--theme-palette-color-8);
	padding-inline: 28px;
	border-color: var(--asv-tint-line);
	font-weight: 700;
}

/* Mobile: narrow the quantity field now that the +/- steppers are hidden. Uses the same selector as Blocksy's own rule so it overrides it. */
@media (max-width: 689px) {
	.ct-product-add-to-cart .ct-cart-actions .quantity[data-type="type-2"] {
		--quantity-width: 45px;
	}

	.ct-product-add-to-cart .quantity input[type="number"] {
		padding-inline: 10px;
	}
}

.ct-product-add-to-cart .quantity .ct-increase::before,
.ct-product-add-to-cart .quantity .ct-decrease::before {
	text-shadow: 0 0 0.5px currentColor, 0 0 0.5px currentColor;
}

/* White cart icon before the add-to-cart label. */
.entry-summary-items > .ct-product-add-to-cart .single_add_to_cart_button::before {
	content: "";
	position: static;
	z-index: auto;
	opacity: 1;
	filter: none;
	inset: auto;
	display: block;
	width: 22px;
	height: 22px;
	margin-right: 8px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2028%2028%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20aria-hidden%3D%22true%22%3E%3Cpath%20d%3D%22M3.25%205.25h2.5l2%2012.4a2%202%200%200%200%201.97%201.68h10.05a2%202%200%200%200%201.96-1.6l1.65-8.23H6.44%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2223%22%20r%3D%221.25%22%20fill%3D%22currentColor%22%20stroke%3D%22none%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2223%22%20r%3D%221.25%22%20fill%3D%22currentColor%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2028%2028%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.75%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20aria-hidden%3D%22true%22%3E%3Cpath%20d%3D%22M3.25%205.25h2.5l2%2012.4a2%202%200%200%200%201.97%201.68h10.05a2%202%200%200%200%201.96-1.6l1.65-8.23H6.44%22%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2223%22%20r%3D%221.25%22%20fill%3D%22currentColor%22%20stroke%3D%22none%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2223%22%20r%3D%221.25%22%20fill%3D%22currentColor%22%20stroke%3D%22none%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

/* Mobile: hide the cart icon so the button (and the buy box row) can be narrower. Placed after the icon rule above so it wins the tie on equal specificity. */
@media (max-width: 689px) {
	.entry-summary-items > .ct-product-add-to-cart .single_add_to_cart_button::before {
		display: none;
		margin-right: 0;
	}
}


/* Product descriptions and section headings use the primary text color. */
body.single-product #tab-description,
body.single-product #tab-description :is(h2,h3,h4,h5,h6,p,li),
body.single-product .asvo-section-heading { color: var(--theme-palette-color-3); }

/* Trust symbols use the primary accent palette. */
.asvo-benefit .asvo-benefit-icon {
 display:block; width:34px; height:34px; flex:0 0 34px;
 background-color:var(--theme-palette-color-1);
 -webkit-mask:var(--asvo-benefit-icon) no-repeat center / contain;
 mask:var(--asvo-benefit-icon) no-repeat center / contain;
}

/* CSS masks let the download glyph follow the palette instead of an SVG color. */
.asvo-document-icon {
 display:inline-block;
 flex-shrink:0;
 background-color:var(--theme-palette-color-3);
 -webkit-mask:var(--asvo-document-icon) center / contain no-repeat;
 mask:var(--asvo-document-icon) center / contain no-repeat;
}
.asvo-section-heading .asvo-document-icon { width:29px; height:29px; }
