.mp-configurator {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
	gap: 32px;
	margin: 24px 0 32px;
	align-items: start;
}

@media (max-width: 860px) {
	.mp-configurator {
		grid-template-columns: 1fr;
	}
}

/* ---------------------------------------------------------------- Önizleme */

.mp-preview__stage {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #f4f5f7;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Katmanlar: renk başına hazır PNG, üst üste. Kenarlık paspasın üstünde durur. */
.mp-preview__layer {
	position: absolute;
	inset: 4%;
	width: 92%;
	height: 92%;
	object-fit: contain;
}

.mp-preview__layer[hidden] {
	display: none;
}

.mp-preview__layer--mat {
	z-index: 1;
}

.mp-preview__layer--edge {
	z-index: 2;
}

/* Galeri fotoğrafı: seçilince simülasyon katmanlarının üstünü kaplar */
.mp-preview__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
	z-index: 4;
}

.mp-preview__photo[hidden] {
	display: none;
}

/* Küçük görsel şeridi: 1. kare canlı simülasyon, sonrakiler fotoğraflar */
.mp-gal {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.mp-gal__t {
	position: relative;
	width: 96px;
	height: 96px;
	padding: 6px;
	background: #fff;
	border: 1px solid #d1d5db;
	cursor: pointer;
	transition: border-color 120ms ease;
}

.mp-gal__t:hover {
	border-color: #9ca3af;
}

.mp-gal__t.is-active {
	border-color: #c21513;
	box-shadow: 0 0 0 1px #c21513;
}

.mp-gal__t > img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.mp-gal__sim {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

.mp-gal__sim img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mp-preview__empty {
	position: relative;
	z-index: 3;
	margin: 0;
	padding: 0 24px;
	text-align: center;
	color: #6b7280;
	font-size: 14px;
}

.mp-preview__caption {
	margin: 10px 0 0;
	text-align: center;
	font-weight: 600;
	color: #111827;
	min-height: 1.4em;
}

/* ---------------------------------------------------------------- Alanlar */

.mp-field {
	margin-bottom: 20px;
}

.mp-field--row {
	display: flex;
	gap: 16px;
}

.mp-field__col {
	flex: 1;
}

.mp-field__label {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 8px;
	color: #111827;
}

.mp-field__value {
	font-weight: 400;
	color: #6b7280;
	font-size: 13px;
}

.mp-configurator select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
}

.mp-configurator select:disabled {
	background: #f3f4f6;
	color: #9ca3af;
}

/* ---------------------------------------------------------------- Araç seçim butonu */

.mp-vehicle-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	font-size: 14px;
	transition: border-color 120ms ease;
}

.mp-vehicle-btn:hover {
	border-color: #111827;
}

.mp-vehicle-btn.is-chosen {
	border-color: #111827;
	background: #f9fafb;
}

.mp-vehicle-btn__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
}

.mp-vehicle-btn__icon:empty {
	display: none;
}

.mp-vehicle-btn__icon img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.mp-vehicle-btn__text {
	flex: 1;
	font-weight: 600;
	color: #111827;
}

.mp-vehicle-btn__action {
	font-size: 13px;
	color: #6b7280;
	text-decoration: underline;
}

/* ---------------------------------------------------------------- Araç seçim modali */

.mp-picker[hidden] {
	display: none;
}

.mp-picker {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.mp-picker__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
}

.mp-picker__dialog {
	position: relative;
	background: #fff;
	border-radius: 14px;
	width: 100%;
	max-width: 880px;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.mp-picker__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid #e5e7eb;
}

.mp-picker__title {
	flex: 1;
	margin: 0;
	font-size: 17px;
	font-weight: 600;
}

.mp-picker__back,
.mp-picker__close {
	background: none;
	border: none;
	cursor: pointer;
	color: #6b7280;
	font-size: 14px;
	padding: 4px 8px;
	border-radius: 6px;
}

.mp-picker__close {
	font-size: 24px;
	line-height: 1;
}

.mp-picker__back:hover,
.mp-picker__close:hover {
	background: #f3f4f6;
	color: #111827;
}

.mp-picker__search {
	padding: 12px 20px;
	border-bottom: 1px solid #e5e7eb;
}

.mp-picker__search input {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
}

.mp-picker__body {
	overflow-y: auto;
	padding: 16px 20px 20px;
	flex: 1;
}

.mp-picker__loading {
	text-align: center;
	color: #6b7280;
	padding: 40px 0;
	margin: 0;
}

.mp-picker__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 12px;
}

.mp-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 10px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	transition: border-color 120ms ease, transform 120ms ease;
}

.mp-card:hover {
	border-color: #111827;
	transform: translateY(-2px);
}

.mp-card__img {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 58px;
	width: 100%;
}

.mp-card__img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.mp-card__ph {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #f3f4f6;
}

.mp-card__name {
	font-size: 13px;
	font-weight: 600;
	color: #111827;
	text-align: center;
	line-height: 1.3;
}

.mp-card__sub {
	font-size: 11px;
	color: #6b7280;
	text-align: center;
}

/* ---------------------------------------------------------------- Renk kutucukları */

.mp-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 4px;
}

.mp-swatch {
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	width: 52px;
	text-align: center;
}

.mp-swatch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mp-swatch__chip {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #d1d5db;
	transition: box-shadow 120ms ease, transform 120ms ease;
}

.mp-swatch:hover .mp-swatch__chip {
	transform: scale(1.08);
}

.mp-swatch input:checked + .mp-swatch__chip {
	box-shadow: 0 0 0 2px #c21513;
	transform: scale(1.08);
}

.mp-swatch input:focus-visible + .mp-swatch__chip {
	box-shadow: 0 0 0 2px #2563eb;
}

/* Kutucuğun altındaki renk adı */
.mp-swatch__name {
	font-size: 10.5px;
	line-height: 1.15;
	color: #6b7280;
	word-break: break-word;
}

.mp-swatch input:checked ~ .mp-swatch__name {
	color: #c21513;
	font-weight: 700;
}

/* ---------------------------------------------------------------- Malzeme */

.mp-radios {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mp-radio {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 120ms ease, background 120ms ease;
}

.mp-radio:hover {
	border-color: #9ca3af;
}

.mp-radio:has(input:checked) {
	border-color: #111827;
	background: #f9fafb;
}

.mp-radio__name {
	flex: 1;
	font-size: 14px;
}

.mp-radio__price {
	font-size: 13px;
	font-weight: 600;
	color: #6b7280;
}

.mp-radio__price .amount {
	color: #111827;
}

/* ---------------------------------------------------------------- Ek ürünler / aksesuarlar */

.mp-accessories {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mp-acc {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	transition: border-color 120ms ease, background 120ms ease;
}

.mp-acc--toggle {
	cursor: pointer;
}

.mp-acc--toggle:hover {
	border-color: #9ca3af;
}

.mp-acc--toggle:has(input:checked) {
	border-color: #111827;
	background: #f9fafb;
}

.mp-acc__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.mp-acc__name {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}

.mp-acc__desc {
	font-size: 12px;
	color: #6b7280;
}

.mp-acc__price {
	font-size: 13px;
	font-weight: 600;
	color: #6b7280;
	white-space: nowrap;
}

.mp-acc__price .amount {
	color: #111827;
}

/* Adet artır/azalt */
.mp-stepper {
	display: flex;
	align-items: center;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.mp-stepper.is-active {
	border-color: #111827;
}

.mp-stepper__btn {
	width: 34px;
	height: 36px;
	border: none;
	background: #f3f4f6;
	font-size: 18px;
	font-weight: 600;
	color: #111827;
	cursor: pointer;
	line-height: 1;
	transition: background 120ms ease;
}

.mp-stepper__btn:hover {
	background: #e5e7eb;
}

.mp-stepper__val {
	width: 40px;
	height: 36px;
	border: none;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	color: #111827;
	background: #fff;
	-moz-appearance: textfield;
	appearance: textfield;
}

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

/* ---------------------------------------------------------------- Çapraz satış (tik) */

.mp-bundle {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mp-bundle__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 120ms ease, background 120ms ease;
}

.mp-bundle__row:hover {
	border-color: #9ca3af;
}

.mp-bundle__row:has(input:checked) {
	border-color: #111827;
	background: #f9fafb;
}

.mp-bundle__row input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: #c21513;
}

.mp-bundle__img {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	background: #f4f5f7;
}

.mp-bundle__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.mp-bundle__name {
	flex: 1;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}

.mp-bundle__price {
	font-size: 14px;
	font-weight: 700;
	color: #c21513;
	white-space: nowrap;
}

/* ---------------------------------------------------------------- Paket içeriği */

.mp-includes {
	background: #f9fafb;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 20px;
}

.mp-includes h4 {
	margin: 0 0 8px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
}

.mp-includes ul {
	margin: 0;
	padding-left: 18px;
	font-size: 14px;
}

.mp-includes li {
	margin-bottom: 3px;
}

/* ---------------------------------------------------------------- Satın alma butonları */

/* Sağ seçim panelinin altına hizalı şerit: Sepete Ekle + WhatsApp yarım-yarım.
   Konfigüratör grid'i 2 eşit kolon + 32px boşluk → sağ kolon = 50% - 16px. */
.mp-buy {
	display: flex;
	gap: 12px;
	width: calc(50% - 16px);
	margin-left: auto;
	margin-top: 4px;
}

.mp-buy--single {
	margin-top: 16px;
}

.mp-buy .single_add_to_cart_button {
	width: auto !important;
	flex: 1 1 0;
	padding: 16px 10px !important;
	font-size: 14px !important;
	white-space: nowrap;
}

.mp-wa-order {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #25d366;
	color: #fff !important;
	font-family: "Oswald", "Arial Narrow", sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 16px 10px;
	white-space: nowrap;
	transition: background 140ms ease;
}

.mp-wa-order:hover {
	background: #1eb956;
	color: #fff;
}

@media (max-width: 860px) {
	.mp-buy {
		width: 100%;
		flex-direction: column;
	}
}

/* ---------------------------------------------------------------- Toplam */

.mp-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
	border-top: 2px solid #111827;
	margin-bottom: 8px;
}

.mp-total__label {
	font-size: 14px;
	color: #6b7280;
}

.mp-total__value {
	font-size: 26px;
	font-weight: 700;
	color: #111827;
}

/* ------------------------------------------------- Renksiz konfigüratör (Torpido) */

/* Önizleme yok: alanlar tek sütun, tam genişlik. Standart Woo görseli solda kalır
   (bkz. tema style.css'teki div.product grid'i). */
.mp-configurator--plain {
	grid-template-columns: 1fr;
}

/* Sepete Ekle/WhatsApp şeridi: .mp-buy, .mp-configurator'ün DIŞINDA (form.cart içinde,
   ayrı bir hook'tan) basılıyor — bu yüzden .mp-configurator--plain ile seçilemiyor.
   50%-16px hesabı yalnızca renk simülasyonlu ürünlerin 2 kolonlu grid'i için geçerli;
   renksiz ürünlerde (Torpido) tam genişlik olmalı. body sınıfı ayrımı kullanılır
   (bkz. tema functions.php: mt-sim-only yalnız renk alanı olan üründe eklenir). */
.mt-has-configurator:not(.mt-sim-only) .mp-buy {
	width: 100%;
	margin-left: 0;
}

/* --------------------------------------- Araç penceresi: son adım (yıl + yakıt) */

.mp-details {
	max-width: 420px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mp-details__img {
	width: 200px;
	max-width: 60%;
	align-self: center;
	border-radius: 10px;
}

.mp-details__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mp-details__field span {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #374151;
}

.mp-details__field select {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	background: #fff;
}

.mp-details__err {
	margin: 0;
	color: #c21513;
	font-size: 13px;
	font-weight: 600;
}

.mp-details__done {
	padding: 13px 16px;
	background: #c21513;
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 120ms ease;
}

.mp-details__done:hover {
	background: #a01210;
}

/* Köşe rozetleri (.mp-badge*) tema style.css'te tanımlı — vitrin/shop sayfasında
   da görünmeleri gerekiyor, o sayfa bu configurator.css'i hiç yüklemiyor. */
