/* ==========================================================================
   MEGATECH — product detail page (PAGE-SPECS §3, C§13–15, RESPONSIVE §9)
   ≥1366: thumbs · stage · info · side panel
   1024–1365: gallery | info, side panel under info
   768–1023: stacked; thumbs horizontal under the stage
   ≤767: swipe gallery (dots + counter), accordion tabs, sticky buy bar
   ========================================================================== */

.mt-pdp {
	padding-bottom: var(--mt-space-4);
}

.single-product .mt-shop {
	padding-top: var(--mt-space-4);
}

.single-product .mt-breadcrumb {
	margin-bottom: var(--mt-space-4);
}

/* --------------------------------------------------------------------------
   Top grid
   ----------------------------------------------------------------------- */

.mt-pdp__top {
	display: grid;
	grid-template-areas: "gallery" "info" "side";
	grid-template-columns: minmax(0, 1fr);
	gap: var(--mt-space-6);
}

.mt-gallery { grid-area: gallery; }
.mt-pdp__info { grid-area: info; min-width: 0; }
.mt-pdp__side { grid-area: side; min-width: 0; }

/* WooCommerce's float layout (.woocommerce div.product div.summary { width: 48%; float: right })
   targets the .summary class we keep for plugin compatibility — the grid owns layout here. */
.woocommerce div.product.mt-pdp .mt-pdp__info.summary,
.woocommerce div.product.mt-pdp .mt-gallery {
	float: none;
	width: auto;
	margin: 0;
}

@media (min-width: 1024px) {
	.mt-pdp__top {
		grid-template-areas:
			"gallery info"
			"gallery side";
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		align-items: start;
		column-gap: var(--mt-space-8);
	}
}

@media (min-width: 1366px) {
	.mt-pdp__top {
		grid-template-areas: "gallery info side";
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 290px;
		gap: var(--mt-space-7);
	}
}

/* --------------------------------------------------------------------------
   Gallery (§3.2)
   ----------------------------------------------------------------------- */

.mt-gallery {
	display: flex;
	flex-direction: column-reverse;
	gap: var(--mt-space-3);
	min-width: 0;
}

@media (min-width: 1024px) {
	.mt-gallery {
		display: grid;
		grid-template-columns: 76px minmax(0, 1fr);
		align-items: start;
		gap: var(--mt-space-4);
		position: sticky;
		top: calc(var(--mt-header-offset, 128px) + var(--mt-space-4));
	}
}

.mt-gallery__thumbs {
	display: none;
	gap: var(--mt-space-2);
	overflow: auto;
	scrollbar-width: none;
}

@media (min-width: 768px) {
	.mt-gallery__thumbs {
		display: flex;
	}
}

@media (min-width: 1024px) {
	.mt-gallery__thumbs {
		flex-direction: column;
		max-height: calc(6 * 76px + 5 * var(--mt-space-2));
	}
}

.mt-gallery__thumb {
	position: relative;
	display: grid;
	flex: 0 0 72px;
	place-items: center;
	width: 72px;
	height: 72px;
	padding: 4px;
	overflow: hidden;
	border: 1px solid var(--mt-border-subtle);
	border-radius: var(--mt-radius-md);
	background: var(--mt-bg-muted);
	transition: border-color var(--mt-dur-fast) var(--mt-ease-standard);
}

.mt-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mt-gallery__thumb:hover {
	border-color: var(--mt-border-strong);
}

.mt-gallery__thumb.is-active {
	border: 2px solid var(--mt-color-primary);
}

.mt-gallery__thumb--video {
	background: var(--mt-ink-900);
	color: var(--mt-white);
}

.mt-gallery__stage {
	position: relative;
	min-width: 0;
	overflow: hidden;
	border-radius: var(--mt-radius-xl);
	background: var(--mt-bg-muted);
}

.mt-gallery__track {
	display: flex;
	aspect-ratio: var(--mt-ratio-pdp);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.mt-gallery__track::-webkit-scrollbar {
	display: none;
}

.mt-gallery__track:focus-visible {
	outline: 2px solid var(--mt-border-focus);
	outline-offset: -2px;
}

.mt-gallery__slide {
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: center;
	scroll-snap-stop: always;
}

.mt-gallery__zoom {
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}

.mt-gallery .mt-gallery__img,
.mt-gallery__slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mt-gallery__new {
	position: absolute;
	top: var(--mt-space-4);
	left: var(--mt-space-4);
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--mt-color-primary-strong);
	color: var(--mt-color-on-primary);
	font-family: var(--mt-font-heading);
	font-size: var(--mt-fs-sm);
	font-weight: var(--mt-fw-extrabold);
	line-height: 1.05;
	text-align: center;
	pointer-events: none;
}

@media (min-width: 768px) {
	.mt-gallery__new {
		width: 64px;
		height: 64px;
		font-size: var(--mt-fs-md);
	}
}

.mt-gallery .mt-gallery__fav {
	top: var(--mt-space-4);
	right: var(--mt-space-4);
	width: 44px;
	height: 44px;
	box-shadow: var(--mt-shadow-sm);
}

.mt-gallery__full {
	position: absolute;
	right: var(--mt-space-4);
	bottom: var(--mt-space-4);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: var(--mt-shadow-sm);
	color: var(--mt-text-heading);
}

.mt-gallery__full:hover {
	color: var(--mt-color-primary-strong);
}

.mt-gallery__counter {
	position: absolute;
	bottom: var(--mt-space-4);
	left: var(--mt-space-4);
	margin: 0;
	padding: 2px 10px;
	border-radius: var(--mt-radius-pill);
	background: rgba(14, 19, 25, 0.62);
	color: var(--mt-white);
	font-size: var(--mt-fs-xs);
	font-weight: var(--mt-fw-semibold);
}

.mt-gallery__dots {
	position: absolute;
	right: 0;
	bottom: var(--mt-space-3);
	left: 0;
	display: flex;
	justify-content: center;
	gap: 6px;
	pointer-events: none;
}

.mt-gallery__dot {
	width: 8px;
	height: 8px;
	border-radius: var(--mt-radius-pill);
	background: var(--mt-gray-300);
	transition: width var(--mt-dur-base) var(--mt-ease-standard), background-color var(--mt-dur-base) var(--mt-ease-standard);
}

.mt-gallery__dot.is-active {
	width: 24px;
	background: var(--mt-color-primary);
}

.mt-gallery__video-btn {
	position: absolute;
	bottom: var(--mt-space-4);
	left: 50%;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 var(--mt-space-3);
	border: 0;
	border-radius: var(--mt-radius-pill);
	background: var(--mt-ink-900);
	color: var(--mt-white);
	font-size: var(--mt-fs-sm);
	transform: translateX(-50%);
}

@media (min-width: 768px) {
	.mt-gallery__counter,
	.mt-gallery__dots,
	.mt-gallery__video-btn {
		display: none;
	}
}

/* Lightbox */
.mt-lightbox {
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(14, 19, 25, 0.94);
	color: var(--mt-white);
}

.mt-lightbox::backdrop {
	background: rgba(14, 19, 25, 0.6);
}

.mt-lightbox[open] {
	display: grid;
	place-items: center;
	animation: mt-fade var(--mt-dur-base) var(--mt-ease-out);
}

.mt-lightbox__media {
	display: grid;
	place-items: center;
	width: min(92vw, 1100px);
	height: 82dvh;
}

.mt-lightbox__media img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: var(--mt-radius-lg);
	background: var(--mt-white);
}

.mt-lightbox__media iframe,
.mt-lightbox__media video {
	width: 100%;
	max-height: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--mt-radius-lg);
	background: #000;
}

.mt-lightbox .mt-icon-btn {
	position: absolute;
	color: var(--mt-white);
	background: rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	width: 48px;
	height: 48px;
}

.mt-lightbox .mt-icon-btn:hover {
	background: rgba(255, 255, 255, 0.24);
}

.mt-lightbox__close {
	top: max(var(--mt-space-4), env(safe-area-inset-top));
	right: var(--mt-space-4);
}

.mt-lightbox__nav--prev { left: var(--mt-space-4); }
.mt-lightbox__nav--next { right: var(--mt-space-4); }

.mt-lightbox__count {
	position: absolute;
	bottom: max(var(--mt-space-4), env(safe-area-inset-bottom));
	margin: 0;
	font-size: var(--mt-fs-sm);
	opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Info column (§3.3)
   ----------------------------------------------------------------------- */

.mt-pdp__brand {
	display: inline-block;
	margin-bottom: var(--mt-space-1);
	color: var(--mt-color-primary-strong);
	font-size: var(--mt-fs-sm);
	font-weight: var(--mt-fw-bold);
	text-decoration: none;
}

.mt-pdp__title {
	margin: 0 0 var(--mt-space-3);
	font-size: clamp(1.375rem, 1rem + 0.6vw, 1.75rem); /* 22 → 28px (PAGE-SPECS §3.3) */
	font-weight: var(--mt-fw-extrabold);
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.mt-pdp__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mt-space-2) var(--mt-space-3);
	margin-bottom: var(--mt-space-4);
	color: var(--mt-text-secondary);
	font-size: var(--mt-fs-sm);
}

.mt-pdp__sep {
	width: 1px;
	height: 16px;
	background: var(--mt-border-default);
}

.mt-pdp__rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--mt-text-secondary);
	text-decoration: none;
}

.mt-pdp__rating strong {
	color: var(--mt-text-heading);
}

.mt-pdp__fav {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-sm);
	font-weight: var(--mt-fw-medium);
	text-decoration: none;
}

.mt-pdp__fav:hover,
.mt-pdp__fav.is-active {
	color: var(--mt-color-primary-strong);
}

.mt-pdp__fav.is-active .mt-icon {
	fill: currentColor;
}

.mt-pdp__sku {
	color: var(--mt-text-muted);
}

/* Star bar (real rating only) */
.mt-stars {
	--_s: 16px;
	display: inline-block;
	width: calc(var(--_s) * 5);
	height: var(--_s);
	background: linear-gradient(90deg, var(--mt-amber-400) var(--mt-rating, 0%), var(--mt-gray-200) var(--mt-rating, 0%));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") 0 0 / var(--_s) var(--_s) repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") 0 0 / var(--_s) var(--_s) repeat-x;
}

.mt-stars--lg {
	--_s: 22px;
}

/* Price (§3.3 #4) */
.mt-pdp__price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mt-space-2) var(--mt-space-4);
	margin-bottom: var(--mt-space-4);
}

.mt-pdp__price-current {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px var(--mt-space-3);
	color: var(--mt-text-price-pdp);
	font-family: var(--mt-font-body);
	font-size: clamp(1.75rem, 1.4rem + 1vw, 2.125rem);
	font-weight: var(--mt-fw-extrabold);
	line-height: 1.1;
}

.mt-pdp__price-current ins {
	order: -1;
	text-decoration: none;
}

.mt-pdp__price-current del {
	color: var(--mt-text-muted);
	font-size: var(--mt-fs-md);
	font-weight: var(--mt-fw-medium);
}

.mt-pdp__price-current .woocommerce-Price-amount + .woocommerce-Price-amount,
.mt-pdp__price-current .screen-reader-text + .woocommerce-Price-amount {
	font-size: inherit;
}

.mt-pdp__discount {
	height: 28px;
	padding: 0 var(--mt-space-3);
	font-size: var(--mt-fs-md);
	font-weight: var(--mt-fw-bold);
}

/* Status (§3.3 #5) */
.mt-pdp__status {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mt-space-2) var(--mt-space-5);
	margin-bottom: var(--mt-space-4);
	font-size: var(--mt-fs-md);
	font-weight: var(--mt-fw-semibold);
}

.mt-pdp__status li,
.mt-stock {
	display: inline-flex;
	align-items: center;
	gap: var(--mt-space-2);
}

.mt-stock--in { color: var(--mt-color-primary-strong); }
.mt-stock--low { color: var(--mt-warning); }
.mt-stock--out { color: var(--mt-danger); }
.mt-stock--catalog { color: var(--mt-info); } /* FAZ 12: stock unknown, ordering closed */

.mt-pdp__ship {
	color: var(--mt-text-heading);
}

.mt-pdp__ship .mt-icon {
	color: var(--mt-color-primary);
}

.mt-pdp__excerpt {
	margin-bottom: var(--mt-space-4);
	color: var(--mt-text-secondary);
	font-size: var(--mt-fs-md);
}

.mt-pdp__excerpt p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Variations (§3.4)
   ----------------------------------------------------------------------- */

.mt-variations {
	display: flex;
	flex-direction: column;
	gap: var(--mt-space-4);
	margin-bottom: var(--mt-space-4);
}

.mt-variation__label {
	margin: 0 0 var(--mt-space-2);
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-md);
	font-weight: var(--mt-fw-bold);
}

.mt-variation__value {
	font-weight: var(--mt-fw-regular);
}

.mt-variation.is-missing .mt-variation__value {
	color: var(--mt-danger);
	font-weight: var(--mt-fw-semibold);
}

.mt-variation__options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mt-space-2);
}

.mt-variation.is-missing .mt-variation__options {
	padding: var(--mt-space-2);
	margin: calc(-1 * var(--mt-space-2));
	border: 1.5px solid var(--mt-danger);
	border-radius: var(--mt-radius-md);
}

/* Round colour swatches */
.mt-swatch-btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 50%;
	background: transparent;
	transition: border-color var(--mt-dur-fast) var(--mt-ease-standard);
}

.mt-swatch-btn__dot {
	width: 34px;
	height: 34px;
	border: 1px solid var(--mt-border-default);
	border-radius: 50%;
	background: var(--mt-swatch);
}

.mt-swatch-btn:hover {
	border-color: var(--mt-border-strong);
}

.mt-swatch-btn[aria-pressed="true"] {
	border-color: var(--mt-gray-900);
}

.mt-swatch-btn:focus-visible {
	outline: none;
	box-shadow: var(--mt-focus-ring);
}

.mt-swatch-btn.is-oos::after,
.mt-chip-btn.is-oos::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 6px;
	right: 6px;
	height: 2px;
	background: var(--mt-danger);
	transform: rotate(-45deg);
	pointer-events: none;
}

.mt-swatch-btn.is-oos .mt-swatch-btn__dot,
.mt-chip-btn.is-oos {
	opacity: 0.45;
}

.mt-swatch-btn[aria-disabled="true"],
.mt-chip-btn[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.3;
}

/* Model chips */
.mt-chip-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--mt-space-4);
	border: 1px solid var(--mt-border-default);
	border-radius: var(--mt-radius-md);
	background: var(--mt-bg-surface);
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-base);
	font-weight: var(--mt-fw-medium);
	transition: border-color var(--mt-dur-fast) var(--mt-ease-standard), background-color var(--mt-dur-fast) var(--mt-ease-standard);
}

@media (min-width: 1024px) {
	.mt-chip-btn {
		min-height: 38px;
	}
}

.mt-chip-btn:hover {
	border-color: var(--mt-border-strong);
}

.mt-chip-btn[aria-pressed="true"] {
	border: 1.5px solid var(--mt-color-primary);
	background: var(--mt-color-primary-soft);
	color: var(--mt-color-primary-strong);
	font-weight: var(--mt-fw-semibold);
}

.mt-chip-btn:focus-visible {
	outline: none;
	box-shadow: var(--mt-focus-ring);
}

.mt-variation__reset,
.mt-variations .reset_variations {
	align-self: flex-start;
	font-size: var(--mt-fs-sm);
	font-weight: var(--mt-fw-semibold);
}

/* WooCommerce hides "Temizle" with visibility:hidden (still takes a flex row + gap → ~36px
   empty band above the buy row, not in the approved design). Take it out of the flow instead. */
.mt-variations .reset_variations[style*="visibility: hidden"] {
	display: none;
}

/* WooCommerce's own variation output is mirrored into the price/stock block. */
.mt-pdp .single_variation {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Buy area (§3.5)
   ----------------------------------------------------------------------- */

.mt-buy {
	margin: 0;
}

.mt-buy__row {
	display: flex;
	gap: var(--mt-space-3);
	margin-bottom: var(--mt-space-3);
}

.mt-qty {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	height: 52px;
	border: 1px solid var(--mt-border-default);
	border-radius: var(--mt-radius-pill);
	background: var(--mt-bg-surface);
}

.mt-qty__btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--mt-text-heading);
}

.mt-qty__btn:hover {
	background: var(--mt-bg-muted);
}

.mt-qty__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.woocommerce .mt-qty .mt-qty__input,
.mt-qty .mt-qty__input {
	width: 40px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mt-text-heading);
	font-size: 1rem;
	font-weight: var(--mt-fw-bold);
	text-align: center;
	-moz-appearance: textfield;
}

.mt-qty__input::-webkit-inner-spin-button,
.mt-qty__input::-webkit-outer-spin-button {
	-webkit-appearance: none;
}

.mt-qty__input:focus-visible {
	outline: 2px solid var(--mt-border-focus);
	border-radius: var(--mt-radius-sm);
}

.mt-buy__add {
	flex: 1;
	min-height: 52px;
	font-size: var(--mt-fs-lg);
}

.mt-buy__now {
	min-height: 52px;
}

.mt-pdp .single_add_to_cart_button.disabled {
	opacity: 0.6;
	cursor: not-allowed;
	box-shadow: none;
}

.mt-buy__error {
	display: flex;
	align-items: flex-start;
	gap: var(--mt-space-2);
	margin: var(--mt-space-3) 0 0;
	color: var(--mt-danger);
	font-size: var(--mt-fs-base);
	font-weight: var(--mt-fw-semibold);
}

.mt-buy__unavailable {
	display: flex;
	align-items: center;
	gap: var(--mt-space-2);
	padding: var(--mt-space-3) var(--mt-space-4);
	border-radius: var(--mt-radius-md);
	background: var(--mt-danger-bg);
	color: var(--mt-danger);
	font-weight: var(--mt-fw-semibold);
}

/* --------------------------------------------------------------------------
   Side panel (§3.6)
   ----------------------------------------------------------------------- */

.mt-pdp__side {
	display: grid;
	gap: var(--mt-space-4);
	align-content: start;
}

@media (min-width: 768px) and (max-width: 1023.98px) {
	.mt-pdp__side {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.mt-pdp-benefits {
	display: grid;
	gap: var(--mt-space-5);
	padding: var(--mt-space-6);
	border-radius: var(--mt-radius-xl);
	background: var(--mt-color-primary-soft);
}

.mt-pdp-benefits__item {
	display: flex;
	align-items: flex-start;
	gap: var(--mt-space-4);
}

.mt-pdp-benefits__icon {
	color: var(--mt-color-primary);
}

.mt-pdp-benefits__title {
	margin: 0;
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-md);
	font-weight: var(--mt-fw-bold);
}

.mt-pdp-benefits__text {
	margin: 2px 0 0;
	color: var(--mt-text-secondary);
	font-size: var(--mt-fs-sm);
}

.mt-pdp-pay {
	padding: var(--mt-space-5);
	border: 1px solid var(--mt-border-subtle);
	border-radius: var(--mt-radius-xl);
}

.mt-pdp-pay__title {
	display: flex;
	align-items: center;
	gap: var(--mt-space-2);
	margin: 0 0 var(--mt-space-3);
	color: var(--mt-text-heading);
	font-family: var(--mt-font-heading);
	font-size: var(--mt-fs-xl);
	font-weight: var(--mt-fw-bold);
}

.mt-pdp-pay__title .mt-icon {
	color: var(--mt-color-primary);
}

.mt-pdp-pay__logos {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mt-space-2);
}

.mt-pdp-pay__logos .mt-pay {
	display: grid;
	place-items: center;
	width: 60px;
	height: 40px;
	border: 1px solid var(--mt-border-subtle);
	border-radius: var(--mt-radius-md);
}

/* --------------------------------------------------------------------------
   Tabs (§3.7) — desktop tabs, mobile accordion, no-JS all open
   ----------------------------------------------------------------------- */

.mt-tabs {
	margin-top: var(--mt-section-gap);
}

.mt-tabs__list {
	display: flex;
	gap: var(--mt-space-8);
	overflow-x: auto;
	border-bottom: 1px solid var(--mt-border-subtle);
	scrollbar-width: none;
}

.mt-tabs__tab {
	position: relative;
	flex: 0 0 auto;
	min-height: 52px;
	padding: 0 var(--mt-space-1);
	border: 0;
	background: transparent;
	color: var(--mt-text-body);
	font-size: var(--mt-fs-lg);
	font-weight: var(--mt-fw-medium);
	white-space: nowrap;
}

.mt-tabs__tab::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 3px;
	border-radius: 2px 2px 0 0;
	background: var(--mt-color-primary);
	transform: scaleX(0);
	transition: transform var(--mt-dur-base) var(--mt-ease-standard);
}

.mt-tabs__tab[aria-selected="true"] {
	color: var(--mt-color-primary-strong);
	font-weight: var(--mt-fw-bold);
}

.mt-tabs__tab[aria-selected="true"]::after {
	transform: scaleX(1);
}

.mt-tabs__tab:focus-visible {
	outline: 2px solid var(--mt-border-focus);
	outline-offset: -2px;
}

.mt-tabs__panel {
	border-bottom: 1px solid var(--mt-border-subtle);
}

.mt-tabs__heading {
	margin: 0;
	font-size: var(--mt-fs-lg);
}

.mt-tabs__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 56px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mt-text-heading);
	font: inherit;
	font-weight: var(--mt-fw-bold);
	text-align: left;
}

.mt-tabs__toggle .mt-icon {
	color: var(--mt-text-secondary);
	transition: transform var(--mt-dur-base) var(--mt-ease-standard);
}

.mt-tabs__toggle[aria-expanded="true"] .mt-icon {
	transform: rotate(180deg);
}

.mt-tabs__body {
	padding-bottom: var(--mt-space-6);
}

.js .mt-tabs__panel:not(.is-open) .mt-tabs__body {
	display: none;
}

@media (min-width: 1024px) {
	.js .mt-tabs__list[hidden] {
		display: flex !important;
	}
	.js .mt-tabs__heading {
		display: none;
	}
	.js .mt-tabs__panel {
		border-bottom: 0;
	}
	.js .mt-tabs__panel:not(.is-open) {
		display: none;
	}
	.mt-tabs__body {
		padding-top: var(--mt-space-6);
	}
}

/* Description + spec summary */
.mt-pdp-desc {
	display: grid;
	gap: var(--mt-space-8);
}

@media (min-width: 1024px) {
	.mt-pdp-desc {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	}
	.mt-pdp-desc__specs {
		padding-left: var(--mt-space-8);
		border-left: 1px solid var(--mt-border-subtle);
	}
}

.mt-pdp-desc__title {
	margin-bottom: var(--mt-space-3);
	font-size: var(--mt-fs-xl);
}

.mt-tabs .entry-content ul {
	padding: 0;
	list-style: none;
}

.mt-tabs .entry-content ul li {
	position: relative;
	margin-bottom: var(--mt-space-2);
	padding-left: 28px;
}

.mt-tabs .entry-content ul li::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--mt-color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Spec table (§3.7) */
.mt-specs {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--mt-fs-base);
}

.mt-specs th,
.mt-specs td {
	padding: var(--mt-space-2) var(--mt-space-3);
	border-bottom: 1px solid var(--mt-border-subtle);
	text-align: left;
	vertical-align: top;
}

.mt-specs tr:first-child th,
.mt-specs tr:first-child td {
	border-top: 1px solid var(--mt-border-subtle);
}

.mt-specs th {
	width: 40%;
	color: var(--mt-text-heading);
	font-weight: var(--mt-fw-bold);
}

.mt-specs td {
	color: var(--mt-text-body);
}

/* Reviews */
.mt-reviews__summary {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mt-space-6) var(--mt-space-10);
	margin-bottom: var(--mt-space-6);
	padding: var(--mt-space-5);
	border-radius: var(--mt-radius-xl);
	background: var(--mt-bg-subtle);
}

.mt-reviews__score {
	text-align: center;
}

.mt-reviews__avg {
	margin: 0;
	color: var(--mt-text-heading);
	font-family: var(--mt-font-heading);
	font-size: 3rem;
	font-weight: var(--mt-fw-extrabold);
	line-height: 1;
}

.mt-reviews__total {
	margin: var(--mt-space-1) 0 0;
	color: var(--mt-text-secondary);
	font-size: var(--mt-fs-sm);
}

.mt-reviews__bars {
	display: grid;
	flex: 1;
	gap: 6px;
	min-width: 220px;
	font-size: var(--mt-fs-sm);
}

.mt-reviews__bars li {
	display: grid;
	grid-template-columns: 36px 1fr 32px;
	align-items: center;
	gap: var(--mt-space-2);
}

.mt-reviews__bar {
	height: 8px;
	overflow: hidden;
	border-radius: var(--mt-radius-pill);
	background: var(--mt-gray-200);
}

.mt-reviews__bar span {
	display: block;
	height: 100%;
	background: var(--mt-amber-400);
}

.mt-reviews__list {
	margin: 0 0 var(--mt-space-6);
	padding: 0;
	list-style: none;
}

.mt-reviews__list .comment_container {
	display: flex;
	gap: var(--mt-space-3);
	padding: var(--mt-space-4) 0;
	border-bottom: 1px solid var(--mt-border-subtle);
}

.mt-reviews__list .avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.mt-reviews__list .comment-text {
	flex: 1;
}

.mt-reviews__form {
	max-width: 640px;
}

.mt-reviews__form .comment-reply-title {
	display: block;
	margin-bottom: var(--mt-space-3);
	color: var(--mt-text-heading);
	font-family: var(--mt-font-heading);
	font-size: var(--mt-fs-xl);
	font-weight: var(--mt-fw-bold);
}

.mt-reviews__form textarea.mt-input {
	min-height: 120px;
	padding: var(--mt-space-3) var(--mt-space-4);
}

.mt-reviews__form .stars a {
	color: var(--mt-amber-400);
}

/* --------------------------------------------------------------------------
   Related products (§3.8)
   ----------------------------------------------------------------------- */

.mt-related {
	margin-top: var(--mt-section-gap);
}

ul.mt-products.mt-products--related {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--mt-card-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 767.98px) {
	.mt-products--related > li:nth-child(n + 5) {
		display: none;
	}
}

@media (min-width: 768px) {
	ul.mt-products.mt-products--related {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.mt-products--related > li:nth-child(n + 4) {
		display: none;
	}
}

@media (min-width: 1024px) {
	ul.mt-products.mt-products--related {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
	.mt-products--related > li:nth-child(n + 4) {
		display: block;
	}
}

/* Horizontal related card (C§10.2) on wide screens */
@media (min-width: 1366px) {
	.mt-products--related .mt-product-card {
		flex-direction: row;
		gap: var(--mt-space-3);
	}
	.mt-products--related .mt-product-card__media {
		flex: 0 0 38%;
		aspect-ratio: 3 / 4;
	}
	.mt-products--related .mt-product-card__badge {
		display: none;
	}
	.mt-products--related .mt-product-card__body {
		padding-top: var(--mt-space-1);
	}
	.mt-products--related .mt-product-card__fav {
		top: 4px;
		right: 4px;
		left: auto;
	}
}

/* --------------------------------------------------------------------------
   Mobile sticky buy bar (§3.5)
   ----------------------------------------------------------------------- */

.mt-sticky-buy {
	display: none;
}

@media (max-width: 767.98px) {
	body.mt-has-sticky-buy {
		padding-bottom: calc(var(--mt-sticky-bar-h) + env(safe-area-inset-bottom, 0px));
	}
	html:has(body.mt-has-sticky-buy) {
		scroll-padding-bottom: calc(var(--mt-sticky-bar-h) + env(safe-area-inset-bottom, 0px) + var(--mt-space-4));
	}
	.mt-sticky-buy {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: var(--mt-z-bottom-nav);
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr) auto;
		align-items: center;
		gap: var(--mt-space-3);
		min-height: var(--mt-sticky-bar-h);
		padding: var(--mt-space-2) var(--mt-gutter) calc(var(--mt-space-2) + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--mt-border-subtle);
		background: var(--mt-bg-surface);
		box-shadow: var(--mt-shadow-bottom-nav);
		transform: translateY(100%);
		transition: transform var(--mt-dur-fast) var(--mt-ease-in);
	}
	.mt-sticky-buy.is-visible {
		transform: none;
		transition-duration: var(--mt-dur-base);
		transition-timing-function: var(--mt-ease-out);
	}
	.mt-keyboard-open .mt-sticky-buy {
		display: none;
	}
	.mt-sticky-buy__media img {
		width: 44px;
		height: 44px;
		object-fit: contain;
		border-radius: var(--mt-radius-sm);
		background: var(--mt-bg-muted);
	}
	.mt-sticky-buy__price {
		display: flex;
		flex-direction: column;
		min-width: 0;
		color: var(--mt-text-price-pdp);
		font-size: var(--mt-fs-lg);
		font-weight: var(--mt-fw-extrabold);
		line-height: 1.15;
	}
	.mt-sticky-buy__price del {
		order: -1;
		color: var(--mt-text-muted);
		font-size: var(--mt-fs-xs);
		font-weight: var(--mt-fw-regular);
	}
	.mt-sticky-buy__price ins {
		text-decoration: none;
	}
	.mt-sticky-buy__btn {
		min-height: 48px;
		padding: 0 var(--mt-space-5);
	}
	/* Toasts sit above the sticky bar on product pages. */
	body.mt-has-sticky-buy .mt-toasts {
		bottom: calc(var(--mt-sticky-bar-h) + env(safe-area-inset-bottom, 0px) + var(--mt-space-3));
	}
}

/* --------------------------------------------------------------------------
 * FAZ 12 — public catalogue: contact box instead of the buy buttons
 * ----------------------------------------------------------------------- */
.mt-catalog-notice {
	display: grid;
	gap: var(--mt-space-3);
	margin-top: var(--mt-space-4);
	padding: var(--mt-space-4) var(--mt-space-5);
	border: 1px solid var(--mt-border-default);
	border-radius: var(--mt-radius-md);
	background: var(--mt-info-bg);
	color: var(--mt-text-body);
}

.mt-catalog-notice__head {
	display: flex;
	align-items: center;
	gap: var(--mt-space-2);
	color: var(--mt-text-heading);
	font-size: var(--mt-fs-base);
}

.mt-catalog-notice__head .mt-icon { color: var(--mt-info); flex: none; }

.mt-catalog-notice__text { margin: 0; }

.mt-catalog-notice__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--mt-space-3);
}

@media (max-width: 767.98px) {
	.mt-catalog-notice__actions .mt-btn { flex: 1 1 100%; justify-content: center; }
}
