/*
 * V2 product page surface.
 * The scope is deliberately limited to .v2-product-surface so the existing
 * category grids, product lists and legacy shop pages keep their styling.
 */
.v2-option-selection-preview {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 82px;
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px solid #e8e2dc;
	border-radius: 8px 13px 9px 11px / 10px 8px 12px 9px;
	background: #fffdfb;
	box-sizing: border-box;
}
.v2-option-selection-preview[hidden],
.v2-option-preview-media[hidden] {
	display: none;
}
.v2-option-preview-media {
	flex: 0 0 62px;
	width: 62px;
	height: 62px;
	display: grid;
	place-items: center;
	border: 1px solid #ebe6e1;
	border-radius: 6px;
	background: #f8f5f1;
	overflow: hidden;
}
.v2-option-preview-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.v2-option-preview-copy {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	line-height: 1.3;
}
.v2-option-preview-copy strong {
	color: #282828;
	font-size: 15px;
	font-weight: 600;
	overflow-wrap: anywhere;
}
.v2-option-preview-number {
	color: #706c68;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}
.v2-option-preview-price {
	color: #282828;
	font-size: 13px;
	font-weight: 600;
}
.v2-option-thumbnails {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	gap: 8px;
	margin-top: 10px;
}
.v2-option-thumb {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: 70px;
	padding: 6px;
	border: 1px solid #ded8d2;
	border-radius: 7px 10px 7px 9px / 8px 7px 9px 7px;
	background: #fff;
	color: #282828;
	text-align: left;
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.v2-option-thumb:hover,
.v2-option-thumb:focus-visible,
.v2-option-thumb.is-selected {
	border-color: #282828;
	background: #fffaf5;
	box-shadow: 0 0 0 1px rgba(40,40,40,.12);
	outline: 0;
}
.v2-option-thumb img {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 4px;
	background: #f8f5f1;
	object-fit: contain;
}
.v2-option-thumb-copy {
	display: flex;
	min-width: 0;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
}
.v2-option-thumb-copy strong,
.v2-option-thumb-copy small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.v2-option-thumb-copy strong {
	font-size: 12px;
	font-weight: 600;
}
.v2-option-thumb-copy small {
	color: #706c68;
	font-size: 10px;
	font-variant-numeric: tabular-nums;
}
.v2-product-surface {
	background: #f5f1ec;
	color: #282828;
	margin: 0 -15px;
	padding: 0 32px 62px;
	overflow: hidden;
}
.v2-product-breadcrumb-wrap {
	float: none !important;
	width: 100% !important;
	max-width: 1440px;
	margin: 0 auto !important;
	padding: 17px 0 18px;
}
.v2-product-breadcrumb {
	display: flex !important;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 5px;
	font-size: 12px !important;
	line-height: 1.4;
	color: #6e6b68;
}
.v2-product-breadcrumb > div {
	float: none !important;
	padding: 0 !important;
	background: transparent !important;
}
.v2-product-breadcrumb .icon-angle-right {
	font-size: 10px;
	color: #9d9995;
}
.v2-product-main-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
	gap: 54px;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 8px 0 56px;
}
.v2-product-main-grid > .v2-product-gallery-column,
.v2-product-main-grid > .v2-product-info-column {
	float: none !important;
	width: auto !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.v2-product-gallery-column {
	min-width: 0;
}
.v2-product-gallery-column > div:first-child {
	display: none;
}
.v2-product-gallery-column .catalog-gallery-stage {
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}
.v2-product-gallery-column .catalog-gallery-slide,
.v2-product-gallery-column .catalog-gallery-slide img {
	border-radius: 10px;
}
.v2-product-info-column {
	min-width: 0;
}
.v2-product-info-column > div {
	float: none !important;
	width: auto !important;
	padding-top: 0 !important;
}
.v2-product-info-column .product-name {
	margin: 22px 0 12px;
	font-size: 42px !important;
	line-height: 1.08 !important;
	font-weight: 700 !important;
	color: #282828 !important;
}
.v2-product-info-column .product-intro {
	font-size: 17px !important;
	line-height: 1.5 !important;
	color: #706c68 !important;
}
.v2-product-info-column #wishlist-link {
	float: none !important;
	display: inline-flex;
	align-items: center;
	width: auto !important;
	margin: 12px 0 18px !important;
	color: #5e5a57;
}
.v2-product-info-column #wishlist-link > div:first-child {
	width: auto !important;
	margin-right: 8px;
}
.v2-product-info-column #wishlist-link .glyphicon {
	font-size: 22px !important;
	color: #282828 !important;
}
.v2-product-info-column #buy-button-position {
	float: none !important;
	width: auto !important;
	border-top: 0 !important;
	padding: 0 !important;
	margin-top: 22px;
}
.v2-product-info-column #buy-button-position > div {
	float: none !important;
	width: auto !important;
}
.v2-product-commercial {
	clear: both;
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 100%;
	margin-top: 20px;
	padding-top: 17px;
	border-top: 1px solid #e8e2dc;
	box-sizing: border-box;
}
/* The legacy selector above intentionally normalizes every direct child of
 * the purchase wrapper.  Restore the commercial block's full column width
 * after that compatibility rule has done its job. */
.v2-product-info-column #buy-button-position > .v2-product-commercial {
	width: 100%;
}
.v2-product-code-row {
	font-size: 17px;
	line-height: 1.35;
	font-weight: 400;
	color: #282828;
}
.v2-product-code-row span {
	font-variant-numeric: tabular-nums;
}
/* Keep price on its own baseline so it can never collide with the article
 * number, even when a long product code or translated label is present. */
.v2-product-price-row {
	display: flex;
	align-items: baseline;
	width: 100%;
	margin-top: 25px;
}
.v2-product-price-row .price-total,
.v2-product-price {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	text-align: left !important;
	font-size: 30px !important;
	font-weight: 700;
	line-height: 1.15;
	color: #282828;
}
.v2-product-price-row .price-total .pricetag,
.v2-product-price .pricetag {
	font-size: inherit !important;
}
.v2-product-delivery {
	font-size: 12px;
	line-height: 1.35;
	font-weight: 400;
	color: #282828;
}
.v2-product-discount {
	float: none !important;
	width: 100%;
	padding-bottom: 10px;
}
.v2-product-info-column .v2-product-buy-row {
	margin-top: 14px;
}
.v2-product-buy-row,
.v2-sticky-buy-row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
/*
 * The product fragment follows legacy floated content in the information
 * column.  This explicit containing block prevents those floats from making
 * the primary purchase row start outside the visible mobile column.  Keeping
 * the width and box model bounded also ensures that the quantity tile and CTA
 * share the same available width instead of being clipped at the right edge.
 */
.v2-product-buy-row {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	clear: both;
}
.v2-product-buy-row .v2-qty-control {
	flex: 0 0 auto;
}
/* Match the wide German primary CTA on desktop without affecting card buttons. */
.v2-product-buy-row #buy-button.v2-button {
	min-width: 290px;
	white-space: nowrap;
}
@media (max-width: 1100px) {
	/* Keep quantity and CTA in one visible row inside the narrower product column. */
	.v2-product-buy-row {
		flex-wrap: nowrap;
	}
	.v2-product-buy-row #buy-button.v2-button {
		flex: 1 1 auto;
		min-width: 0;
	}
}
/*
 * The German quantity control is a compact white tile, not a generic input.
 * The very small radius variation gives the corners the same handmade/wavy
 * character as the reference while the fixed tracks keep the control stable.
 */
.v2-qty-control {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	background: #fffdfb;
	/* Four deliberately different corner radii reproduce the German
	 * quantity tile's slightly hand-drawn left and right edges. */
	border-radius: 9px 16px 10px 14px / 12px 9px 13px 10px;
	overflow: hidden;
	box-shadow: 0 1px 0 rgba(0,0,0,.025);
}
.v2-qty-button,
.v2-qty-control input {
	width: 38px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #282828;
	font-size: 19px;
	font-weight: 400;
	line-height: 44px;
	text-align: center;
}
.v2-qty-button {
	cursor: pointer;
}
.v2-qty-button:hover,
.v2-qty-button:focus-visible {
	background: #f5f0eb;
	outline: 0;
}
.v2-qty-control input {
	width: 43px;
	border-left: 1px solid #e0dbd6;
	border-right: 1px solid #e0dbd6;
	font-size: 16px;
	-moz-appearance: textfield;
}
.v2-qty-control input::-webkit-outer-spin-button,
.v2-qty-control input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
/* Primary actions use the slightly irregular, soft-edged German CTA shape. */
.v2-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 29px;
	border: 1px solid transparent;
	/* The primary CTA is intentionally asymmetrical instead of a standard
	 * pill: the left and right sides use different curves like the German
	 * reference button. */
	border-radius: 14px 24px 12px 19px / 11px 15px 13px 9px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.v2-button:hover,
.v2-button:focus-visible {
	transform: translateY(-1px);
	text-decoration: none !important;
}
.v2-button-primary {
	background: #ffb36f;
	border-color: #ffb36f;
	color: #222;
	letter-spacing: .01em;
}
.v2-button-primary:hover,
.v2-button-primary:focus-visible {
	background: #ffa15a;
	border-color: #ffa15a;
	color: #222;
}
.v2-button-primary .icon-basket {
	margin-left: 6px;
	font-size: 21px;
}
.v2-button-outline {
	background: #fff;
	border-color: #292929;
	color: #292929;
}
.v2-button-outline:hover,
.v2-button-outline:focus-visible {
	background: #f3eee8;
	color: #292929;
}
.v2-button .icon {
	font-size: 18px;
}
.v2-contact-price {
	margin-top: 22px;
}
.v2-product-surface .part-descriptions-list,
.v2-product-surface .product-content-section {
	border-color: rgba(50,45,40,.12) !important;
}
.v2-related-panel {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 30px 0 0;
	border-top: 1px solid rgba(50,45,40,.14);
}
.v2-related-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.v2-related-heading h2 {
	margin: 0;
	font-size: 30px;
	line-height: 1.2;
	font-weight: 700;
	color: #282828;
}
.v2-related-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
/* Related-product selection is a true pill, matching the reference tab. */
.v2-related-tab {
	min-height: 34px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #716c67;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	cursor: pointer;
}
.v2-related-tab:hover,
.v2-related-tab:focus-visible {
	background: rgba(255,255,255,.7);
	color: #282828;
	outline: 0;
}
 .v2-related-tab.is-active {
	background: #ffd7ae;
	color: #282828;
}
/* Keep unavailable recommendation tabs out of the layout even if the
 * component styles define an explicit display mode for the tab buttons. */
.v2-related-tab[hidden] {
	display: none;
}
.v2-related-content {
	min-height: 160px;
	margin-top: 22px;
}
.v2-related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}
.v2-related-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border-radius: 10px;
}
.v2-related-card-link {
	color: inherit;
	text-decoration: none !important;
}
.v2-related-card-media {
	display: grid;
	place-items: center;
	aspect-ratio: 1.15;
	background: #fbfaf8;
	overflow: hidden;
}
.v2-related-card-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 10px 10px 0 0;
}
.v2-related-card-copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 5px;
	padding: 15px 16px 8px;
}
.v2-related-card-copy h3 {
	margin: 0;
	font-size: 17px;
	line-height: 1.25;
	font-weight: 600;
	color: #282828;
}
.v2-related-card-copy p {
	margin: 0;
	font-size: 12px;
	color: #77716b;
}
.v2-related-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 9px;
	font-size: 15px;
	font-weight: 600;
}
.v2-related-card-actions {
	display: flex;
	gap: 8px;
	padding: 0 16px 16px;
}
.v2-related-card-actions .v2-button {
	flex: 1;
	min-height: 40px;
	padding: 0 10px;
	font-size: 13px;
}
.v2-related-loading,
.v2-related-empty {
	padding: 28px 4px;
	color: #746f6b;
	font-size: 15px;
}
.v2-sticky-buy-row {
	justify-content: center;
	width: 100%;
	padding: 10px 16px 16px;
}
.v2-sticky-price {
	font-size: 16px;
	font-weight: 600;
	color: #282828;
}
#buyfooter .v2-sticky-buy-row .v2-button {
	min-width: 220px;
}
@media (max-width: 991px) {
	.v2-product-surface {
		margin: 0 -10px;
		padding-left: 18px;
		padding-right: 18px;
	}
	.v2-product-main-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}
	.v2-product-breadcrumb {
		justify-content: flex-start;
	}
	.v2-product-info-column .product-name {
		font-size: 30px !important;
	}
	.v2-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 560px) {
	.v2-option-selection-preview {
		align-items: flex-start;
	}
	.v2-option-thumbnails {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.v2-option-thumb {
		min-height: 64px;
	}
	.v2-option-thumb img {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}
	.v2-product-surface {
		margin: 0 -5px;
		padding-left: 12px;
		padding-right: 12px;
	}
	.v2-product-main-grid {
		padding-bottom: 35px;
	}
	.v2-product-buy-row .v2-button-primary {
		flex: 1 1 auto;
		min-width: 0;
	}
	/*
	 * At phone widths reserve a stable track for the quantity control and let
	 * the CTA consume the remaining space.  This keeps both controls visible
	 * on narrow screens while preserving the wavy reference styling.
	 */
	.v2-product-buy-row {
		gap: 10px;
		flex-wrap: nowrap;
	}
	.v2-product-buy-row .v2-qty-control {
		flex: 0 0 119px;
	}
	.v2-product-buy-row #buy-button.v2-button {
		flex: 1 1 0;
		min-width: 0;
		max-width: 100%;
		box-sizing: border-box;
		padding-left: 14px;
		padding-right: 14px;
	}
	.v2-related-heading h2 {
		font-size: 24px;
	}
	.v2-related-grid {
		grid-template-columns: 1fr;
	}
	.v2-related-tabs {
		width: 100%;
	}
	.v2-related-tab {
		padding-left: 11px;
		padding-right: 11px;
		font-size: 11px;
	}
}
