/**
 * IDH Print Builder — arayüz stilleri.
 * Marka paleti: lacivert / beyaz / yeşil. Modern, minimal, mobil uyumlu.
 * Tema (WoodMart) stillerine dokunmaz; her şey .ipb kapsamı altındadır.
 */

.ipb {
	--ipb-navy: #14315d;
	--ipb-navy-dark: #0d2244;
	--ipb-green: #1f9d55;
	--ipb-wa: #25d366;
	--ipb-bg: #f5f7fa;
	--ipb-border: #dfe5ee;
	--ipb-radius: 12px;
	color: #22293a;
	margin: 0 auto;
	max-width: 1200px;
}

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

.ipb__grid {
	display: grid;
	grid-template-columns: minmax(300px, 420px) 1fr;
	gap: 28px;
	align-items: start;
}

/* ---------- Adım kartları ---------- */

.ipb__step {
	background: #fff;
	border: 1px solid var(--ipb-border);
	border-radius: var(--ipb-radius);
	padding: 18px 20px;
	margin-bottom: 16px;
}

.ipb__step-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 14px;
	color: var(--ipb-navy);
}

.ipb__step-title small { font-weight: 500; color: #8a93a5; }

.ipb__step-no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--ipb-navy);
	color: #fff;
	font-size: 12px;
	flex: 0 0 auto;
}

/* ---------- İlan türü (radio pill) ---------- */

.ipb__listing { display: flex; flex-wrap: wrap; gap: 8px; }

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

.ipb__pill span {
	display: inline-block;
	padding: 8px 14px;
	border: 1.5px solid var(--ipb-border);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all .15s ease;
	background: #fff;
	color: #4a5468;
}

.ipb__pill input:checked + span {
	background: var(--ipb-navy);
	border-color: var(--ipb-navy);
	color: #fff;
}

.ipb__pill input:focus-visible + span { outline: 2px solid var(--ipb-green); outline-offset: 2px; }

/* ---------- Telefon ---------- */

.ipb__phone {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--ipb-border);
	border-radius: 10px;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: .5px;
	color: var(--ipb-navy);
}

.ipb__phone:focus { border-color: var(--ipb-green); outline: none; }

.ipb__hint { margin: 8px 0 0; font-size: 12px; color: #8a93a5; }

/* ---------- Ölçü kartları ---------- */

.ipb__sizes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 8px;
}

.ipb__size-card input { position: absolute; opacity: 0; pointer-events: none; }

.ipb__size-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 12px 6px;
	border: 1.5px solid var(--ipb-border);
	border-radius: 10px;
	cursor: pointer;
	transition: all .15s ease;
	background: #fff;
}

.ipb__size-box strong { font-size: 14px; color: #22293a; }
.ipb__size-box em { font-style: normal; font-size: 11px; color: #8a93a5; }

.ipb__size-card input:checked + .ipb__size-box {
	border-color: var(--ipb-green);
	background: #f0faf4;
	box-shadow: 0 0 0 1px var(--ipb-green);
}

.ipb__size-card input:checked + .ipb__size-box strong { color: var(--ipb-green); }
.ipb__size-card input:focus-visible + .ipb__size-box { outline: 2px solid var(--ipb-navy); outline-offset: 2px; }

/* ---------- Adet ---------- */

.ipb__qty { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--ipb-border); border-radius: 10px; overflow: hidden; }

.ipb__qty-btn {
	width: 44px;
	height: 44px;
	border: none;
	background: #fff;
	font-size: 20px;
	font-weight: 700;
	color: var(--ipb-navy);
	cursor: pointer;
	transition: background .15s ease;
}

.ipb__qty-btn:hover { background: var(--ipb-bg); }

.ipb__qty input {
	width: 64px;
	height: 44px;
	border: none;
	border-left: 1.5px solid var(--ipb-border);
	border-right: 1.5px solid var(--ipb-border);
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	color: #22293a;
	-moz-appearance: textfield;
	appearance: textfield;
	background: #fff;
}

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

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

.ipb__stage { position: sticky; top: 90px; }

.ipb__preview {
	background:
		linear-gradient(45deg, #e9edf3 25%, transparent 25%, transparent 75%, #e9edf3 75%),
		linear-gradient(45deg, #e9edf3 25%, #f4f6fa 25%, #f4f6fa 75%, #e9edf3 75%);
	background-size: 24px 24px;
	background-position: 0 0, 12px 12px;
	border: 1px solid var(--ipb-border);
	border-radius: var(--ipb-radius);
	padding: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
}

.ipb__preview svg {
	max-width: 100%;
	height: auto;
	filter: drop-shadow(0 10px 24px rgba(13, 34, 68, .18));
}

.ipb__preview-note { margin: 10px 2px 18px; font-size: 12px; color: #8a93a5; text-align: center; }

/* ---------- Fiyat kutusu ---------- */

.ipb__price {
	background: #fff;
	border: 1px solid var(--ipb-border);
	border-radius: var(--ipb-radius);
	padding: 6px 20px;
	margin-bottom: 16px;
}

.ipb__price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	font-size: 14px;
	color: #4a5468;
	border-bottom: 1px dashed var(--ipb-border);
}

.ipb__price-row:last-child { border-bottom: none; }

.ipb__price-row--total { font-size: 16px; }
.ipb__price-row--total span { font-weight: 700; color: var(--ipb-navy); }
.ipb__price-row--total strong { font-size: 24px; color: var(--ipb-green); }

/* ---------- Butonlar ---------- */

.ipb__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ipb__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 18px;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none !important;
	transition: transform .1s ease, filter .15s ease;
}

.ipb__btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.ipb__btn--wa { background: var(--ipb-wa); color: #fff !important; }
.ipb__btn--cart { background: var(--ipb-navy); color: #fff !important; }

/* ---------- Mobil ---------- */

@media (max-width: 900px) {
	.ipb__grid { grid-template-columns: 1fr; }
	.ipb__stage { position: static; order: -1; margin-bottom: 20px; }
	.ipb__preview { min-height: 220px; padding: 16px; }
	.ipb__actions {
		position: sticky;
		bottom: 0;
		background: rgba(255, 255, 255, .95);
		padding: 10px 0;
		z-index: 5;
	}
}

/* ---------- v2: metin girişleri, serbest ölçü, stil kartları ---------- */

.ipb__text {
	width: 100%;
	padding: 13px 14px;
	font-size: 16px;
	font-weight: 600;
	border: 1.5px solid var(--ipb-border);
	border-radius: 10px;
	background: #fff;
	color: #22293a;
}

.ipb__text:focus { border-color: var(--ipb-green); outline: none; }

.ipb__property-custom { margin-top: 10px; }

.ipb__dims { display: flex; align-items: flex-end; gap: 10px; }

.ipb__dim { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.ipb__dim span { font-size: 12px; font-weight: 600; color: #8a93a5; }

.ipb__dim input {
	width: 100%;
	padding: 12px 10px;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	border: 1.5px solid var(--ipb-border);
	border-radius: 10px;
}

.ipb__dim input:focus { border-color: var(--ipb-green); outline: none; }

.ipb__dim-x { padding-bottom: 12px; font-size: 16px; font-weight: 700; color: #8a93a5; }

.ipb__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.ipb__preset {
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ipb-navy);
	background: var(--ipb-bg);
	border: 1.5px solid var(--ipb-border);
	border-radius: 999px;
	cursor: pointer;
}

.ipb__preset:hover { border-color: var(--ipb-green); color: var(--ipb-green); }

.ipb__styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.ipb__style-card { position: relative; cursor: pointer; }

.ipb__style-card input { position: absolute; opacity: 0; pointer-events: none; }

.ipb__style-box {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	border: 2px solid var(--ipb-border);
	border-radius: 10px;
	background: #fff;
}

.ipb__style-swatch { display: block; height: 34px; border-radius: 6px; border: 1px solid var(--ipb-border); }

.ipb__style-box strong { font-size: 12.5px; color: #22293a; }

.ipb__style-card input:checked + .ipb__style-box {
	border-color: var(--ipb-green);
	box-shadow: 0 0 0 3px rgba(31, 157, 85, .15);
}

.ipb__style-card input:focus-visible + .ipb__style-box { outline: 2px solid var(--ipb-navy); outline-offset: 2px; }

.ipb__preview img { max-width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 4px 18px rgba(13, 34, 68, .18); }

/* Önerilen ölçü rozeti */
.ipb__preset--onerilen {
	border-color: var(--ipb-green);
	color: var(--ipb-green);
	font-weight: 700;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.ipb__preset-rozet {
	font-style: normal;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: var(--ipb-green);
	border-radius: 999px;
	padding: 1px 8px;
	white-space: nowrap;
}
