/* Mutfak 3D Konfigüratör — uygulama stilleri (temadan bağımsız) */

.k3d-fullscreen {
	margin: 0;
	background: #f4f5f7;
}

.k3d {
	--k3d-accent: #1f5f8b;
	--k3d-accent-soft: #e6f0f7;
	--k3d-text: #1d2327;
	--k3d-muted: #6b7178;
	--k3d-border: #dfe2e6;
	--k3d-bg: #f4f5f7;
	--k3d-panel: #ffffff;
	--k3d-danger: #b32d2e;
	--k3d-radius: 10px;
	--k3d-top: 60px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: var(--k3d-text);
	background: var(--k3d-bg);
	height: 100vh;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.k3d-embed .k3d {
	height: 85vh;
	min-height: 640px;
	border: 1px solid var(--k3d-border);
	border-radius: var(--k3d-radius);
}

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

.k3d [hidden] {
	display: none !important;
}

.k3d h2 {
	font-size: 18px;
	margin: 0 0 4px;
	line-height: 1.25;
}

.k3d h3 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--k3d-muted);
	margin: 20px 0 8px;
}

.k3d p {
	margin: 0 0 8px;
}

.k3d-muted {
	color: var(--k3d-muted);
	font-size: 13px;
}

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

.k3d button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.k3d .k3d-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 14px;
	border: 1px solid var(--k3d-border);
	border-radius: 8px;
	background: #fff;
	color: var(--k3d-text);
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
}

.k3d .k3d-btn:hover {
	border-color: #b9c0c7;
}

.k3d .k3d-btn-primary {
	background: var(--k3d-accent);
	border-color: var(--k3d-accent);
	color: #fff;
}

.k3d .k3d-btn-primary:hover {
	background: #184d71;
}

.k3d .k3d-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.k3d .k3d-btn-lg {
	padding: 12px 18px;
	font-size: 15px;
}

.k3d .k3d-btn-danger {
	color: var(--k3d-danger);
}

.k3d .k3d-link,
.k3d .k3d-link-danger,
.k3d .k3d-back {
	background: none;
	border: 0;
	padding: 4px 0;
	color: var(--k3d-accent);
	text-decoration: underline;
	font-size: 13px;
}

.k3d .k3d-link-danger {
	color: var(--k3d-danger);
}

.k3d .k3d-back {
	text-decoration: none;
	margin-bottom: 6px;
}

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

.k3d-col {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 12px;
}

/* ---------- Üst çubuk ---------- */

.k3d-top {
	height: var(--k3d-top);
	flex: 0 0 var(--k3d-top);
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 16px;
	background: #fff;
	border-bottom: 1px solid var(--k3d-border);
	z-index: 5;
}

.k3d-brand {
	display: flex;
	align-items: center;
	font-weight: 700;
	font-size: 16px;
	color: var(--k3d-text);
	text-decoration: none;
	min-width: 0;
}

.k3d-brand img {
	max-height: 36px;
	max-width: 140px;
	object-fit: contain;
}

.k3d-steps {
	display: flex;
	gap: 4px;
	margin: 0 auto;
}

.k3d .k3d-step-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--k3d-muted);
	font-weight: 600;
}

.k3d-step-btn span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--k3d-border);
	color: var(--k3d-text);
	font-size: 12px;
}

.k3d .k3d-step-btn.is-on {
	background: var(--k3d-accent-soft);
	color: var(--k3d-accent);
}

.k3d-step-btn.is-on span {
	background: var(--k3d-accent);
	color: #fff;
}

.k3d-top-right {
	display: flex;
	align-items: center;
	gap: 14px;
}

.k3d-total {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.15;
}

.k3d-total small {
	color: var(--k3d-muted);
	font-size: 11px;
}

.k3d-total strong {
	font-size: 18px;
}

/* ---------- Adım görünürlüğü ---------- */

.k3d-room,
.k3d-design {
	flex: 1 1 auto;
	min-height: 0;
	display: none;
}

.k3d[data-step="room"] .k3d-room {
	display: grid;
}

.k3d[data-step="design"] .k3d-design {
	display: grid;
}

/* ---------- 1. adım: oda ---------- */

.k3d-room {
	grid-template-columns: minmax(320px, 420px) 1fr;
}

.k3d-room-form {
	overflow-y: auto;
	padding: 20px 20px 32px;
	background: var(--k3d-panel);
	border-right: 1px solid var(--k3d-border);
}

.k3d-plan-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	min-height: 0;
}

.k3d-plan {
	width: 100%;
	height: 100%;
	max-height: calc(100% - 30px);
}

.k3d-plan-note {
	margin-top: 8px;
}

.k3d-shapes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.k3d .k3d-shape {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 6px;
	background: #fff;
	border: 2px solid var(--k3d-border);
	border-radius: var(--k3d-radius);
	font-weight: 600;
	font-size: 13px;
}

.k3d .k3d-shape.is-on {
	border-color: var(--k3d-accent);
	background: var(--k3d-accent-soft);
	color: var(--k3d-accent);
}

.k3d-fields {
	display: grid;
	gap: 8px;
}

.k3d-field {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.k3d-unit {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.k3d-unit em {
	font-style: normal;
	color: var(--k3d-muted);
	font-size: 12px;
}

.k3d input[type="number"],
.k3d select {
	font: inherit;
	padding: 7px 8px;
	border: 1px solid var(--k3d-border);
	border-radius: 7px;
	background: #fff;
	color: var(--k3d-text);
}

.k3d input[type="number"] {
	width: 84px;
	text-align: right;
}

.k3d input.is-bad {
	border-color: var(--k3d-danger);
	background: #fdf0f0;
}

.k3d-opening {
	border: 1px solid var(--k3d-border);
	border-radius: var(--k3d-radius);
	padding: 10px 12px;
	margin-bottom: 8px;
	background: #fbfbfc;
}

.k3d-opening-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.k3d-opening-head strong {
	flex: 1;
}

.k3d-grid2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
}

.k3d-room-next {
	margin-top: 24px;
}

/* Ana kategori kartları (1. adım) */
.k3d-mains-wrap {
	border-radius: var(--k3d-radius);
}

.k3d-mains-wrap.is-need {
	animation: k3d-need 0.9s ease;
}

@keyframes k3d-need {
	0%, 100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
	30% { box-shadow: 0 0 0 6px rgba(234, 88, 12, 0.35); }
}

.k3d-mains {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 10px;
}

.k3d .k3d-main {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	padding: 0 0 10px;
	overflow: hidden;
	background: #fff;
	border: 2px solid var(--k3d-border);
	border-radius: var(--k3d-radius);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.k3d .k3d-main:hover {
	border-color: var(--k3d-accent);
	transform: translateY(-1px);
}

.k3d .k3d-main img,
.k3d .k3d-main .k3d-main-noimg {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin-bottom: 6px;
	background: var(--k3d-bg);
}

.k3d .k3d-main .k3d-main-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	font-weight: 700;
	color: var(--k3d-accent);
}

.k3d-main-name {
	font-weight: 700;
	font-size: 14px;
	padding: 0 6px;
}

.k3d-main-desc {
	font-size: 12px;
	color: var(--k3d-muted);
	padding: 0 6px;
	line-height: 1.3;
}

.k3d-main-check {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--k3d-accent);
	color: #fff;
	font-size: 14px;
	line-height: 24px;
	display: none;
}

.k3d .k3d-main.is-on {
	border-color: var(--k3d-accent);
	box-shadow: 0 0 0 3px var(--k3d-accent-soft);
}

.k3d .k3d-main.is-on .k3d-main-check {
	display: block;
}

/* Tasarım ekranında seçili ana kategori */
.k3d-main-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	margin-bottom: 10px;
	background: var(--k3d-accent-soft);
	border-radius: var(--k3d-radius);
}

.k3d-main-chip img {
	width: 42px;
	height: 42px;
	object-fit: cover;
	border-radius: 6px;
}

.k3d-main-chip span {
	display: flex;
	flex-direction: column;
	flex: 1;
	line-height: 1.2;
}

.k3d-main-chip small {
	font-size: 11px;
	color: var(--k3d-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.k3d-main-chip strong {
	color: var(--k3d-accent);
}

.k3d .k3d-main-chip .k3d-link {
	background: none;
	border: 0;
	color: var(--k3d-accent);
	text-decoration: underline;
	font-weight: 600;
	cursor: pointer;
	padding: 4px;
}

.k3d-room-next .k3d-btn {
	width: 100%;
}

/* ---------- 2. adım: tasarım ---------- */

.k3d-design {
	grid-template-columns: 250px 1fr 320px;
}

.k3d-catalog,
.k3d-side {
	background: var(--k3d-panel);
	overflow-y: auto;
	min-height: 0;
}

.k3d-catalog {
	border-right: 1px solid var(--k3d-border);
	padding: 16px 14px 24px;
}

.k3d-side {
	border-left: 1px solid var(--k3d-border);
	padding: 16px 16px 24px;
}

.k3d-cat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.k3d .k3d-cat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 10px 6px;
	border: 1px solid var(--k3d-border);
	border-radius: var(--k3d-radius);
	background: #fff;
	text-align: center;
}

.k3d .k3d-cat-item:hover {
	border-color: var(--k3d-accent);
	box-shadow: 0 0 0 2px var(--k3d-accent-soft);
}

.k3d-cat-item img {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.k3d-icon {
	color: #7a8591;
	display: flex;
}

.k3d-cat-name {
	font-weight: 600;
	font-size: 12.5px;
	line-height: 1.25;
}

.k3d-cat-meta {
	font-size: 11px;
	color: var(--k3d-muted);
}

.k3d-stage {
	position: relative;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	background: #e9ecef;
}

.k3d-stage canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
	touch-action: none;
}

.k3d-toolbar {
	position: absolute;
	top: 12px;
	left: 12px;
	right: 12px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	pointer-events: none;
}

.k3d-seg {
	display: inline-flex;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--k3d-border);
	border-radius: 8px;
	padding: 3px;
	pointer-events: auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.k3d .k3d-seg button {
	border: 0;
	background: none;
	padding: 6px 10px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--k3d-muted);
}

.k3d .k3d-seg button.is-on {
	background: var(--k3d-accent);
	color: #fff;
}

.k3d-toast {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	background: rgba(29, 35, 39, 0.92);
	color: #fff;
	padding: 10px 14px;
	border-radius: 8px;
	max-width: 90%;
	font-size: 13px;
	z-index: 3;
}

.k3d-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--k3d-muted);
}

.k3d-loading.is-soft {
	inset: auto auto 16px 16px;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--k3d-border);
	border-radius: 8px;
	padding: 8px 12px;
	color: var(--k3d-text);
	font-weight: 600;
}

.k3d-panel-head {
	margin-bottom: 8px;
}

.k3d-group {
	border-top: 1px solid var(--k3d-border);
	padding-top: 4px;
	margin-top: 12px;
}

.k3d-group h3 {
	margin-top: 10px;
}

.k3d-dim {
	margin-bottom: 10px;
}

.k3d-dim-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 2px;
}

.k3d-dim input[type="range"] {
	width: 100%;
	accent-color: var(--k3d-accent);
}

.k3d-stepper {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.k3d .k3d-stepper button {
	width: 30px;
	height: 30px;
	border: 1px solid var(--k3d-border);
	border-radius: 7px;
	background: #fff;
	font-size: 16px;
	line-height: 1;
}

.k3d-label {
	font-size: 13px;
	margin: 8px 0 6px !important;
}

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

.k3d .k3d-swatch {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px var(--k3d-border);
	background-size: cover;
	background-position: center;
	padding: 0;
}

.k3d .k3d-swatch.is-on {
	box-shadow: 0 0 0 2px var(--k3d-accent);
}

.k3d-price-row {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 3px 0;
	font-size: 13px;
}

.k3d-price-total {
	border-top: 1px solid var(--k3d-border);
	margin-top: 4px;
	padding-top: 8px;
	font-size: 14px;
}

.k3d-list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.k3d-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid var(--k3d-border);
}

.k3d .k3d-list li button {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	border: 0;
	background: none;
	padding: 0;
	min-width: 0;
}

.k3d-list-name {
	font-weight: 600;
}

.k3d-sum-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 12px;
	font-size: 16px;
}

.k3d-sum-total strong {
	font-size: 20px;
}

.k3d-note {
	margin-top: 4px;
}

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

@media (max-width: 1100px) {
	.k3d-design {
		grid-template-columns: 210px 1fr 280px;
	}
}

@media (max-width: 860px) {
	.k3d {
		height: auto;
		min-height: 100vh;
		overflow: visible;
	}

	.k3d-embed .k3d {
		height: auto;
	}

	.k3d-top {
		position: sticky;
		top: 0;
		flex-wrap: wrap;
		height: auto;
		padding: 8px 12px;
		gap: 8px;
	}

	.k3d-steps {
		order: 3;
		width: 100%;
		justify-content: center;
	}

	.k3d-total strong {
		font-size: 16px;
	}

	.k3d-room {
		grid-template-columns: 1fr;
	}

	.k3d-plan-wrap {
		order: -1;
		height: 38vh;
		padding: 12px;
	}

	.k3d-room-form {
		border-right: 0;
	}

	.k3d-design {
		grid-template-columns: 1fr;
		grid-template-rows: 55vh auto auto;
	}

	.k3d-stage {
		order: -2;
		height: 55vh;
	}

	.k3d-catalog,
	.k3d-side {
		border: 0;
		border-top: 1px solid var(--k3d-border);
		overflow: visible;
	}

	.k3d-side {
		order: -1;
	}

	.k3d-cat-grid {
		grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	}
}

/* ---------- Oda görünümü (duvar/zemin) ---------- */

.k3d-look {
	border: 1px solid var(--k3d-border);
	border-radius: var(--k3d-radius);
	margin-bottom: 16px;
	background: #fafbfc;
}

.k3d .k3d-look-head {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	background: none;
	font-weight: 600;
	text-align: left;
}

.k3d-look-head span:nth-child(2) {
	flex: 1;
}

.k3d-look-arrow {
	transition: transform 0.15s ease;
	color: var(--k3d-muted);
}

.k3d-look-head.is-open .k3d-look-arrow {
	transform: rotate(180deg);
}

.k3d-look-dots {
	display: inline-flex;
}

.k3d-look-dots i {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px var(--k3d-border);
}

.k3d-look-dots i + i {
	margin-left: -6px;
}

.k3d-look-body {
	padding: 0 12px 12px;
}

.k3d .k3d-swatch-sm {
	width: 30px;
	height: 30px;
}

.k3d .k3d-swatch-custom {
	position: relative;
	display: inline-block;
	cursor: pointer;
	background: conic-gradient(#e66, #ec6, #6c6, #6ce, #66e, #e6e, #e66);
}

.k3d-swatch-custom input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.k3d .k3d-seg-inline {
	display: flex;
	margin-bottom: 8px;
	box-shadow: none;
}

.k3d .k3d-seg-inline button {
	flex: 1;
}

.k3d-field-tight {
	margin-top: 10px;
}

.k3d-props-foot {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 16px;
	padding-top: 10px;
	border-top: 1px solid var(--k3d-border);
	color: var(--k3d-muted);
}

.k3d-props-foot strong {
	color: var(--k3d-text);
	font-size: 16px;
}

/* ---------- Katalog akordeonu ---------- */

.k3d-acc {
	border: 1px solid var(--k3d-border);
	border-radius: var(--k3d-radius);
	margin-bottom: 8px;
	background: #fff;
	overflow: hidden;
}

.k3d-acc.is-open {
	border-color: #c9d3dc;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.k3d .k3d-acc-head {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 12px 12px;
	border: 0;
	background: #fff;
	text-align: left;
	font-weight: 700;
	font-size: 14px;
}

.k3d .k3d-acc-head:hover {
	background: #f7f8fa;
}

.k3d .k3d-acc-head.is-open {
	background: var(--k3d-accent-soft);
	color: var(--k3d-accent);
}

.k3d-acc-title {
	flex: 1;
	line-height: 1.25;
}

.k3d-acc-count {
	min-width: 22px;
	padding: 1px 7px;
	border-radius: 999px;
	background: #eef0f3;
	color: var(--k3d-muted);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}

.k3d-acc-arrow {
	color: var(--k3d-muted);
	transition: transform 0.15s ease;
}

.k3d-acc-head.is-open .k3d-acc-arrow {
	transform: rotate(180deg);
}

.k3d-acc .k3d-cat-grid {
	padding: 10px;
	border-top: 1px solid var(--k3d-border);
}

/* Katalog başı: duvar seçimi */
.k3d .k3d-cta {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--k3d-text);
}

/* Duvar seçimi: seçili modül varken görünen canlı çubuk */
.k3d .k3d-wall-pick {
	align-items: center;
	gap: 4px;
	padding: 4px;
	background: linear-gradient(135deg, #f97316, #ea580c);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
}

.k3d .k3d-wall-pick[hidden] {
	display: none;
}

.k3d .k3d-wall-pick.is-pop {
	animation: k3d-pop 0.35s ease-out;
}

@keyframes k3d-pop {
	0% { transform: scale(0.85); opacity: 0; }
	70% { transform: scale(1.04); opacity: 1; }
	100% { transform: scale(1); }
}

.k3d .k3d-wall-label {
	padding: 0 6px 0 8px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	letter-spacing: 0.01em;
}

.k3d .k3d-wall-pick button {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	border-radius: 7px;
	padding: 7px 11px;
	font-weight: 700;
}

.k3d .k3d-wall-pick button:hover {
	background: rgba(255, 255, 255, 0.32);
}

.k3d .k3d-wall-pick button.is-on {
	background: #fff;
	color: #c2410c;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.k3d-wall-arrow {
	font-size: 10px;
	opacity: 0.85;
}

/* Sağ panel: açılır bölümler */
.k3d-sec {
	border: 1px solid var(--k3d-border);
	border-radius: var(--k3d-radius);
	margin-top: 8px;
	background: #fff;
	overflow: hidden;
}

.k3d-sec.is-open {
	border-color: #c9d3dc;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.k3d .k3d-sec-head {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 11px 12px;
	border: 0;
	background: #fff;
	text-align: left;
	color: var(--k3d-text);
}

.k3d .k3d-sec-head:hover {
	background: #f7f8fa;
}

.k3d .k3d-sec-head.is-open {
	background: var(--k3d-accent-soft);
	color: var(--k3d-accent);
}

.k3d-sec-title {
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}

.k3d-sec-sum {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
	font-size: 12px;
	font-weight: 500;
	color: var(--k3d-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.k3d-sec-sum > span {
	overflow: hidden;
	text-overflow: ellipsis;
}

.k3d-sec-dot {
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.15);
	background-size: cover;
}

.k3d-sec-body {
	padding: 10px 12px 12px;
	border-top: 1px solid var(--k3d-border);
}

.k3d-sec-body[hidden] {
	display: none;
}

.k3d-sec-body > .k3d-label:first-child {
	margin-top: 0 !important;
}

/* Seçenek değerleri: tıklanabilir satırlar */
.k3d-choices {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.k3d .k3d-choice {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--k3d-border);
	border-radius: 8px;
	background: #fff;
	text-align: left;
	font-size: 13px;
	color: var(--k3d-text);
}

.k3d .k3d-choice:hover {
	border-color: #b8c3cd;
}

.k3d .k3d-choice.is-on {
	border-color: var(--k3d-accent);
	background: var(--k3d-accent-soft);
}

.k3d-choice-mark {
	flex: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid #b8c3cd;
	box-sizing: border-box;
}

.k3d-choice.is-on .k3d-choice-mark {
	border: 5px solid var(--k3d-accent);
}

.k3d-choice-name {
	flex: 1;
}

.k3d-choice-price {
	font-weight: 600;
	color: var(--k3d-muted);
	white-space: nowrap;
}

.k3d-price-card {
	margin-top: 6px;
	padding: 10px 12px;
	border: 1px solid var(--k3d-border);
	border-radius: var(--k3d-radius);
	background: #fafbfc;
}

.k3d-price-card h3 {
	margin: 0 0 6px;
}

/* Katalog grubu görseli */
.k3d-acc-thumb {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 6px;
	object-fit: cover;
	background: #f2f3f5;
	border: 1px solid var(--k3d-border);
}

/* Modüle özel seçenekler */
.k3d .k3d-opt-field {
	display: block;
	margin: 0 0 10px;
}

.k3d .k3d-opt-field .k3d-label {
	display: block;
	font-weight: 600;
	margin: 4px 0 5px !important;
}

.k3d .k3d-opt-field select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.k3d .k3d-cta {
	font-weight: 400;
}

.k3d .k3d-cta strong {
	display: block;
	font-size: 14px;
}

.k3d-cta-sub {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	color: var(--k3d-muted);
}

.k3d-acc-thumb-empty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #9aa3ad;
}

/* ---------- Yapay zekâ düğmesi ve penceresi ---------- */
.k3d .k3d-btn-ai {
	position: relative;
	overflow: hidden;
	border: 0;
	color: #fff;
	font-weight: 700;
	background: linear-gradient(120deg, #7c3aed, #db2777, #f97316);
	background-size: 200% 100%;
	box-shadow: 0 6px 18px rgba(219, 39, 119, 0.35);
	animation: k3d-ai-shift 4s ease infinite;
}

.k3d .k3d-btn-ai:hover {
	filter: brightness(1.08);
	color: #fff;
}

@keyframes k3d-ai-shift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

.k3d-ai-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(15, 18, 22, 0.72);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.k3d-ai-box {
	background: #fff;
	border-radius: 14px;
	width: min(1100px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.k3d-ai-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--k3d-border);
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
}

.k3d-ai-title {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.k3d-ai-title .k3d-ai-note {
	margin: 0;
	font-size: 12px;
	color: var(--k3d-muted);
}

.k3d-ai-head-actions .k3d-ai-actions {
	margin: 0;
	flex-wrap: nowrap;
}

@media (max-width: 640px) {
	.k3d-ai-head {
		flex-wrap: wrap;
	}

	.k3d-ai-title {
		flex-basis: calc(100% - 40px);
	}

	.k3d-ai-head-actions {
		order: 3;
		width: 100%;
	}

	.k3d-ai-head-actions .k3d-btn {
		flex: 1;
	}
}

.k3d .k3d-ai-x {
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: var(--k3d-muted);
	cursor: pointer;
}

.k3d-ai-body {
	padding: 16px;
}

.k3d-ai-wait {
	text-align: center;
	padding: 50px 10px;
}

.k3d-ai-spin {
	display: inline-block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 4px solid #f3e8ff;
	border-top-color: #db2777;
	animation: k3d-spin 0.9s linear infinite;
}

@keyframes k3d-spin {
	to { transform: rotate(360deg); }
}

.k3d-ai-img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 150px);
	width: auto;
	height: auto;
	margin: 0 auto;
	border-radius: 8px;
}

.k3d-ai-actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.k3d-ai-note {
	font-size: 12px;
	margin-top: 8px;
}

.k3d-ai-err {
	color: #b32d2e;
	text-align: center;
	padding: 30px 10px;
}

.k3d-choice-img {
	flex: none;
	width: 34px;
	height: 34px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--k3d-border);
	background: #fff;
}
