/**
 * ==================================================
 * Güvencem Mobilya – Ürün Konfigüratörü
 * Future Minimal UI v2.0
 * ==================================================
 */


/* --------------------------------------------------
 * Tasarım değişkenleri
 * -------------------------------------------------- */

.gm-configurator {
	--gm-cfg-text: #171717;
	--gm-cfg-text-soft: #3f3f3f;
	--gm-cfg-muted: #7a7a7a;
	--gm-cfg-line: rgba(17, 17, 17, 0.10);
	--gm-cfg-line-strong: rgba(17, 17, 17, 0.16);
	--gm-cfg-surface: #ffffff;
	--gm-cfg-surface-soft: #f6f6f4;
	--gm-cfg-surface-hover: #fafaf8;
	--gm-cfg-accent: #171717;

	width: 100%;
	color: var(--gm-cfg-text);
}


/* --------------------------------------------------
 * Genel sıfırlama
 * -------------------------------------------------- */

.gm-configurator,
.gm-configurator *,
.gm-configurator *::before,
.gm-configurator *::after {
	box-sizing: border-box;
}

.gm-configurator button {
	font: inherit;
	-webkit-tap-highlight-color: transparent;
}


/* --------------------------------------------------
 * Ana başlık alanı
 * -------------------------------------------------- */

.gm-configurator__header {
	margin: 0 0 26px;
}

.gm-configurator__header h2,
.gm-configurator__header h3{

	margin:0;

	font:inherit;

	font-size:30px;

	font-weight:600;

	line-height:1.18;

	letter-spacing:-0.035em;

	color:#1f2937;

}

.gm-configurator__header p{

	margin-top:8px;

	font-size:15px;

	line-height:1.55;

	color:#707070;

	max-width:520px;

}


/* --------------------------------------------------
 * Ana gövde
 * -------------------------------------------------- */

.gm-configurator__body {
	display: flex;
	flex-direction: column;
	gap: 32px;
}


/* --------------------------------------------------
 * Seçenek listesi
 * Kart ve grid yapısı tamamen kaldırıldı
 * -------------------------------------------------- */

.gm-configurator__options,
.gm-configurator--corner .gm-configurator__options {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 0;
	margin: 0;
	padding: 0;
}


/* --------------------------------------------------
 * Tek seçenek satırı
 * -------------------------------------------------- */

.gm-configurator__option {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--gm-cfg-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	transform: none;
	transition:
		background-color 180ms ease,
		border-color 180ms ease;
}

.gm-configurator__option:first-child {
	border-top: 1px solid var(--gm-cfg-line);
}

.gm-configurator__option:hover {
	border-color: var(--gm-cfg-line-strong);
	background: var(--gm-cfg-surface-hover);
	box-shadow: none;
	transform: none;
}

.gm-configurator__option-row {
	display: grid;
	grid-template-columns:
		minmax(145px, 1fr)
		minmax(100px, auto)
		126px;
	align-items: center;
	width: 100%;
	min-height: 76px;
	column-gap: 30px;
	padding: 14px 4px;
}


/* --------------------------------------------------
 * Bileşen adı
 * -------------------------------------------------- */

.gm-configurator__option-name,
.gm-configurator__option-title {
	min-width: 0;
	margin: 0;
	color: var(--gm-cfg-text);
	font-size: 16px;
	font-weight: 520;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.gm-configurator__option-title strong {
	font-weight: inherit;
}


/* --------------------------------------------------
 * Birim fiyat
 * -------------------------------------------------- */

.gm-configurator__option-price {
	min-width: 100px;
	margin: 0;
	color: var(--gm-cfg-muted);
	font-size: 14px;
	font-weight: 450;
	line-height: 1.35;
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.gm-configurator__option-price .woocommerce-Price-amount {
	color: inherit;
	font: inherit;
}

.gm-configurator__option-price .woocommerce-Price-currencySymbol {
	font-size: 0.9em;
}


/* --------------------------------------------------
 * Seçili bileşen satırı
 *
 * JS ileride is-active veya data-count benzeri bir
 * durum eklerse hazırdır.
 * -------------------------------------------------- */

.gm-configurator__option.is-active {
	background: var(--gm-cfg-surface-soft);
	border-color: var(--gm-cfg-line-strong);
}

.gm-configurator__option.is-active .gm-configurator__option-name,
.gm-configurator__option.is-active .gm-configurator__option-title {
	font-weight: 600;
}

/* --------------------------------------------------
 * Fiyat özeti
 * Kart görünümü kaldırıldı
 * -------------------------------------------------- */

.gm-configurator__summary {
	width: 100%;
	margin: 2px 0 0;
	padding: 24px 0 0;
	border: 0;
	border-top: 1px solid var(--gm-cfg-line-strong);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.gm-configurator__summary-title {
	margin: 0 0 14px;
	color: var(--gm-cfg-text);
	font-size: 18px;
	font-weight: 570;
	line-height: 1.3;
	letter-spacing: -0.025em;
}

.gm-configurator__summary-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 30px;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 9px 0;
	border: 0;
}

.gm-configurator__summary-row:first-of-type {
	padding-top: 7px;
}

.gm-configurator__summary-row:last-child {
	padding-bottom: 0;
}

.gm-configurator__summary-label {
	min-width: 0;
	color: var(--gm-cfg-muted);
	font-size: 14px;
	font-weight: 430;
	line-height: 1.45;
	letter-spacing: -0.005em;
}

.gm-configurator__summary-value {
	flex: 0 0 auto;
	color: var(--gm-cfg-text);
	font-size: 17px;
	font-weight: 590;
	line-height: 1.3;
	text-align: right;
	white-space: nowrap;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.gm-configurator__summary-value .woocommerce-Price-amount {
	color: inherit;
	font: inherit;
}

.gm-configurator__summary-cash {
	color: #000000;
	font-size: 20px;
	font-weight: 650;
}


/* --------------------------------------------------
 * Fiyat güncelleme hareketi
 *
 * JS sınıfı kullanılırsa çalışır.
 * -------------------------------------------------- */

.gm-configurator__summary-value.is-updating {
	animation: gm-configurator-price-update 240ms ease;
}

@keyframes gm-configurator-price-update {

	0% {
		opacity: 0.45;
		transform: translateY(2px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}


/* --------------------------------------------------
 * Satın alma alanı
 * -------------------------------------------------- */

.gm-purchase {
	width: 100%;
	margin-top: 30px;
}

.gm-purchase__button {
	width: 100%;
	margin: 0;
}

.gm-purchase__note {
	margin: 11px 0 0;
	color: var(--gm-cfg-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
}

/* --------------------------------------------------
 * Ürün bilgi alanı
 * -------------------------------------------------- */

.gm-product-info {
	margin: 0 0 32px;
}

.gm-product-info__title {
	margin: 0 0 14px;
	color: #1a1a1a;
	font-size: clamp(30px, 3.2vw, 42px);
	font-weight: 570;
	line-height: 1.08;
	letter-spacing: -0.045em;
}

.gm-product-info__excerpt {
	max-width: 620px;
	color: #686868;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.75;
}

.gm-product-info__excerpt p {
	margin: 0;
}

.gm-configurator-payment-summary{
	margin-top:26px;
}


/* --------------------------------------------------
 * Orta genişlik
 * -------------------------------------------------- */

@media (max-width: 1100px) {

	.gm-configurator__option-row {
		grid-template-columns:
			minmax(130px, 1fr)
			minmax(90px, auto)
			118px;
		column-gap: 22px;
	}

}


/* --------------------------------------------------
 * Tablet
 * -------------------------------------------------- */

@media (max-width: 820px) {

	.gm-configurator__header {
		margin-bottom: 22px;
	}

	.gm-configurator__body {
		gap: 28px;
	}

	.gm-configurator__option-row {
		grid-template-columns:
			minmax(120px, 1fr)
			minmax(90px, auto)
			114px;
		min-height: 72px;
		column-gap: 16px;
		padding: 13px 2px;
	}

	.gm-configurator__option-name,
	.gm-configurator__option-title {
		font-size: 15px;
	}

	.gm-configurator__option-price {
		font-size: 13px;
	}


	.gm-configurator__summary {
		padding-top: 22px;
	}
}


/* --------------------------------------------------
 * Mobil
 *
 * Mobilde isim üstte kalır.
 * Fiyat ve sayaç aynı alt satıra yerleşir.
 * -------------------------------------------------- */

@media (max-width: 600px) {

	.gm-configurator__header {
		margin-bottom: 20px;
	}

	.gm-configurator__header h2,
	.gm-configurator__header h3 {
		font-size: 22px;
	}

	.gm-configurator__header p {
		margin-top: 7px;
		font-size: 13px;
		line-height: 1.55;
	}

	.gm-configurator__body {
		gap: 25px;
	}

	.gm-configurator__option-row {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"name name"
			"price counter";
		min-height: 0;
		column-gap: 18px;
		row-gap: 10px;
		padding: 17px 1px;
	}

	.gm-configurator__option-name,
	.gm-configurator__option-title {
		grid-area: name;
		font-size: 15px;
		font-weight: 550;
	}

	.gm-configurator__option-price {
		grid-area: price;
		align-self: center;
		min-width: 0;
		font-size: 13px;
		text-align: left;
	}


	.gm-configurator__summary {
		margin-top: 0;
		padding-top: 21px;
	}

	.gm-configurator__summary-title {
		margin-bottom: 10px;
		font-size: 17px;
	}

	.gm-configurator__summary-row {
		gap: 18px;
		min-height: 39px;
		padding: 8px 0;
	}

	.gm-configurator__summary-label {
		max-width: 62%;
		font-size: 13px;
	}

	.gm-configurator__summary-value {
		font-size: 16px;
	}

	.gm-configurator__summary-cash {
		font-size: 18px;
	}

	.gm-purchase {
		margin-top: 26px;
	}

	.gm-product-info {
		margin-bottom: 26px;
	}

	.gm-product-info__title {
		margin-bottom: 12px;
		font-size: 31px;
	}

	.gm-product-info__excerpt {
		font-size: 14px;
		line-height: 1.7;
	}
}


/* --------------------------------------------------
 * Çok dar mobil ekran
 * -------------------------------------------------- */

@media (max-width: 370px) {

	.gm-configurator__option-row {
		column-gap: 12px;
	}


	.gm-configurator__summary-label {
		max-width: 58%;
	}
}


/* --------------------------------------------------
 * Hareket azaltma tercihi
 * -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

	.gm-configurator__option,
	.gm-configurator__summary-value {
		animation: none !important;
		transition: none !important;
	}
}

/* Refined purchase summary. */
.gm-configurator__price-pending {
	color: #9a8d7d;
	font-size: 12px;
}

.gm-configurator__summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
}

.gm-configurator__summary-title {
	grid-column: 1 / -1;
}

.gm-configurator__summary-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 6px;
	min-height: 88px;
	padding: 12px 16px;
	border-left: 1px solid var(--gm-cfg-line);
}

.gm-configurator__summary-row:first-of-type {
	padding-left: 0;
	border-left: 0;
}

.gm-configurator__summary-value { text-align: left; }

@media (max-width: 520px) {
	.gm-configurator__summary { grid-template-columns: 1fr; }
	.gm-configurator__summary-title { grid-column: 1; }
	.gm-configurator__summary-row,
	.gm-configurator__summary-row:first-of-type {
		min-height: 0;
		padding: 12px 0;
		border-left: 0;
		border-top: 1px solid var(--gm-cfg-line);
	}
}

/* Premium compact desktop rhythm. */
@media (min-width: 861px) {
	.gm-configurator__header {
		margin-bottom: 14px;
	}

	.gm-configurator__header h2,
	.gm-configurator__header h3 {
		font-size: 22px;
		font-weight: 560;
		letter-spacing: -0.025em;
	}

	.gm-configurator__header p {
		max-width: 440px;
		margin: 5px 0 0;
		font-size: 13px;
		line-height: 1.5;
	}

	.gm-configurator__body {
		gap: 18px;
	}

	.gm-configurator__option-row {
		grid-template-columns: minmax(120px, 1fr) minmax(82px, auto) 110px;
		min-height: 60px;
		column-gap: 16px;
		padding: 8px 2px;
	}

	.gm-configurator__option-name,
	.gm-configurator__option-title {
		font-size: 14px;
	}

	.gm-configurator__option-price {
		font-size: 12px;
	}


	.gm-configurator__summary {
		margin-top: 0;
		padding-top: 16px;
	}

	.gm-configurator__summary-title {
		margin-bottom: 6px;
		font-size: 15px;
	}

	.gm-configurator__summary-row {
		min-height: 68px;
		gap: 4px;
		padding: 9px 12px;
	}

	.gm-configurator__summary-label {
		font-size: 11px;
		line-height: 1.35;
	}

	.gm-configurator__summary-value {
		font-size: 14px;
	}

	.gm-purchase {
		margin-top: 2px;
	}

	.gm-purchase__note {
		margin-top: 7px;
		font-size: 10px;
	}
}
