/* Yuniee Builder — inline (ürün sayfası içi) 2 sütunlu tasarımcı */

/* Ürün sayfasındaki Tasarla butonu (inline mod kapalıysa kullanılır) */
.yc-open-btn { display:inline-block; margin:0 0 14px; padding:12px 24px; font-weight:600; border-radius:10px; background:#111; color:#fff !important; text-decoration:none; cursor:pointer; }
.yc-open-btn:hover { opacity:.9; }

/* ---- Tam sayfa gövde ---- */
.yc-builder-body { margin:0; font-family:Poppins,-apple-system,Segoe UI,Roboto,sans-serif; background:#f4f1ec; color:#1a1a1a; }
/* Reset SADECE tasarımcı içine — temanın geri kalanını etkilemesin. */
.yc-app *, .yc-app *::before, .yc-app *::after,
.yc-embed *, .yc-embed *::before, .yc-embed *::after { box-sizing:border-box; }

/* Galeriye gömülü tasarımcı (ürün sayfası içi) */
.yc-embed { width:100%; max-width:560px; margin:0 auto; font-family:inherit; }
.yc-embed .yc-card { box-shadow:0 6px 24px rgba(0,0,0,.06); }

/* Tema buton stillerine karşı savunma — editör içindeki butonlar sade kalsın, hover sakin olsun */
.yc-embed button, .yc-app button {
	text-transform:none !important; letter-spacing:normal !important; box-shadow:none !important;
	min-height:0 !important; line-height:normal !important; text-shadow:none !important;
	transition:background-color .12s ease, border-color .12s ease, color .12s ease !important;
	animation:none !important;
}
.yc-embed button:hover, .yc-app button:hover { transform:none !important; filter:none !important; }

.yc-app {
	display:grid; grid-template-columns: 1fr 380px; gap:28px;
	max-width:1320px; margin:0 auto; padding:28px 24px; align-items:start;
}

/* SOL */
.yc-back { display:inline-block; margin-bottom:12px; color:#555; text-decoration:none; font-weight:600; font-size:14px; }
.yc-back:hover { color:#111; }
.yc-card { background:#fff; border-radius:16px; box-shadow:0 10px 40px rgba(0,0,0,.06); overflow:hidden; }

.yc-card-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 16px; border-bottom:1px solid #f0f0f0; min-height:60px; }
.yc-history { display:flex; gap:6px; }
.yc-obj-tools { display:inline-flex; gap:6px; }
.yc-obj-tools[hidden] { display:none; }

/* Üst sekmeler */
.yc-tabs { display:flex; border-bottom:1px solid #f0f0f0; }
.yc-toptab {
	flex:1; border:none !important; background:#fff !important; cursor:pointer;
	padding:14px 8px !important; margin:0 !important; border-radius:0 !important; width:auto !important; height:auto !important;
	display:flex; flex-direction:column; align-items:center; gap:4px;
	font-size:12px !important; font-weight:600; color:#8a8f98 !important;
	border-bottom:2px solid transparent !important;
}
.yc-toptab span { font-size:18px; line-height:1; }
.yc-tab-label { font-size:12px !important; font-weight:600; }
.yc-tab-badge { position:relative; display:inline-flex; }
.yc-tab-plus {
	position:absolute; top:-6px; right:-9px;
	display:inline-flex; align-items:center; justify-content:center;
	width:15px; height:15px; border-radius:50%;
	background:#111; color:#fff; box-shadow:0 0 0 2px #fff;
}
.yc-toptab:hover .yc-tab-plus { background:#2563eb; }
.yc-tab-plus .yc-svg { width:10px; height:10px; stroke-width:3; }
.yc-toptab.is-active { color:#111 !important; border-bottom-color:#111 !important; background:#fff !important; }
.yc-toptab:hover { color:#111 !important; background:#fafafa !important; }

/* Sekme panelleri */
.yc-panels { padding:14px 16px; border-bottom:1px solid #f0f0f0; background:#fafafa; }
.yc-panel { display:none; }
.yc-panel.is-active { display:block; }
.yc-text-row { display:flex; gap:8px; }
.yc-text-row input { flex:1; padding:10px; border:1px solid #d9dde3; border-radius:9px; }
.yc-field-row { display:flex; align-items:center; gap:6px; margin-top:10px; flex-wrap:wrap; }
.yc-num {
	width:74px !important; min-width:74px !important; height:38px !important; min-height:38px !important;
	padding:6px 8px !important; border:1px solid #d9dde3 !important; border-radius:9px !important;
	font-size:14px !important; text-align:center; box-sizing:border-box !important; background:#fff !important; color:#1a1a1a !important;
}
#yc-font { height:38px; padding:6px 10px !important; border:1px solid #d9dde3 !important; border-radius:9px !important; min-width:120px; box-sizing:border-box; background:#fff !important; }
.yc-dropzone { display:flex; align-items:center; justify-content:center; gap:8px; border:2px dashed #c7cdd6; border-radius:12px; padding:22px; cursor:pointer; color:#4b5563; font-weight:600; }
.yc-dropzone:hover { border-color:#111; color:#111; }
.yc-btn-primary { border:none; background:#111; color:#fff; font-weight:700; padding:0 18px; border-radius:9px; cursor:pointer; }
.yc-btn-primary:hover { opacity:.9; }
.yc-hint { font-size:12px; color:#8a8f98; margin:6px 0 0; }

/* İkon butonlar */
.yc-iconbtn { width:38px !important; height:38px !important; border:1px solid #d9dde3 !important; background:#fff !important; color:#1a1a1a !important; border-radius:9px !important; cursor:pointer; font-size:15px !important; font-weight:700; display:inline-flex; align-items:center; justify-content:center; padding:0 !important; }
.yc-iconbtn:hover { border-color:#111 !important; background:#fff !important; }
.yc-iconbtn.is-on { background:#111 !important; color:#fff !important; border-color:#111 !important; }
.yc-iconbtn.yc-danger:hover { border-color:#e11d48; color:#e11d48; }
.yc-iconbtn[disabled] { opacity:.35; cursor:default; }
input[type="color"] { width:38px; height:38px; padding:3px; border:1px solid #d9dde3; border-radius:9px; background:#fff; cursor:pointer; }

/* Katmanlar */
.yc-layers { list-style:none; margin:0; padding:0; max-height:180px; overflow:auto; }
.yc-layer { display:flex; align-items:center; gap:8px; padding:8px 10px; border:1px solid #eee; border-radius:8px; margin-bottom:6px; cursor:pointer; background:#fff; }
.yc-layer.is-sel { border-color:#111; background:#f6f6f6; }
.yc-layer__name { flex:1; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.yc-layer__del { border:none; background:transparent; cursor:pointer; color:#999; font-size:14px; }
.yc-layer__del:hover { color:#e11d48; }

/* Canvas alanı */
.yc-canvas-area { position:relative; display:flex; align-items:center; justify-content:center; padding:0; background:#fff; overflow:hidden; }
/* Embed: canvas alana TAM genişlikte sığar, yükseklik canvas'a eşit → etrafta boşluk (bej) kalmaz. */
.yc-embed .yc-canvas-area { height:auto; min-height:0; max-height:none; }
.yc-canvas-wrap { background:transparent; transform-origin:center center; line-height:0; }
.yc-toolbar { position:absolute; right:14px; top:50%; transform:translateY(-50%); display:flex; flex-direction:column; align-items:stretch; gap:2px; background:#fff; padding:8px 6px; border-radius:14px; box-shadow:0 4px 18px rgba(0,0,0,.12); z-index:6; }
.yc-tool { border:none !important; background:transparent !important; cursor:pointer; border-radius:10px !important; display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 10px !important; font-size:10px !important; font-weight:600; color:#6b7280 !important; min-width:58px; }
.yc-tool:hover { background:#f3f4f6 !important; color:#111 !important; }
.yc-tool.is-active { background:#eef2ff !important; color:#2563eb !important; }
.yc-tool-sep { height:1px; background:#eee; margin:4px 6px; }
.yc-zoom-label { font-size:11px; color:#666; font-weight:700; text-align:center; padding:2px 0; }

/* Seçili nesne bağlamsal araç çubuğu (altta yüzer) */
.yc-obj-bar {
	position:absolute; left:50%; bottom:14px; transform:translateX(-50%);
	display:flex; gap:6px; background:#fff; padding:8px; border-radius:16px;
	box-shadow:0 6px 24px rgba(0,0,0,.14); z-index:5; max-width:94%; overflow-x:auto;
}
.yc-obj-bar[hidden] { display:none; }
.yc-objbtn {
	border:none !important; background:transparent !important; cursor:pointer; border-radius:12px !important;
	display:flex; flex-direction:column; align-items:center; gap:3px; padding:8px 12px !important;
	font-size:11px !important; font-weight:600; color:#444 !important; min-width:58px;
}
.yc-objbtn span { font-size:18px; line-height:1; }
.yc-objbtn:hover { background:#f3f4f6 !important; color:#111 !important; }
.yc-objbtn.yc-danger:hover { color:#e11d48 !important; }

/* Ön/arka önizlemeler */
.yc-thumbs { display:flex; gap:10px; padding:14px 16px; }
.yc-thumb { width:64px; height:64px; border:2px solid #e3e3e3; border-radius:10px; overflow:hidden; cursor:pointer; background:#fff; padding:0; }
.yc-thumb img { width:100%; height:100%; object-fit:contain; }
.yc-thumb.is-active { border-color:#111; }

/* SAĞ: satın alma */
.yc-buy { position:sticky; top:24px; }
.yc-buy__title { font-size:26px; font-weight:800; line-height:1.2; margin:0 0 20px; }
.yc-buy__block { margin-bottom:20px; }
.yc-buy__label { font-size:13px; font-weight:600; letter-spacing:.2px; color:#111; margin-bottom:10px; }
.yc-var-group { margin-bottom:18px; }
.yc-var-group label { display:block; font-size:13px; font-weight:700; letter-spacing:.5px; color:#444; margin-bottom:8px; }
.yc-var-group select { width:100%; padding:12px; border:1px solid #d9dde3; border-radius:10px; }
.yc-buy__price { font-size:26px; font-weight:800; color:#c0392b; margin:8px 0 18px; }
.yc-buy__price .woocommerce-Price-amount { color:#c0392b; }
.yc-cta { width:100%; border:none; background:#111; color:#fff; font-weight:700; cursor:pointer; padding:16px; border-radius:12px; font-size:15px; letter-spacing:.5px; }
.yc-cta:hover { opacity:.9; }
.yc-cta:disabled { opacity:.5; cursor:default; }

/* Modern SVG ikonlar */
.yc-svg { display:inline-block; vertical-align:middle; flex:0 0 auto; pointer-events:none; }
.yc-app .yc-svg, .yc-embed .yc-svg { max-width:none !important; }
.yc-toptab .yc-svg { margin-bottom:2px; }

/* Opsiyonel tasarım notu */
.yc-note { padding:14px 16px; }
.yc-embed .yc-note { border-top:1px solid #f0f0f0; }
.yc-note label { display:block; font-size:13px; font-weight:600; color:#444; margin-bottom:6px; }
.yc-note textarea { width:100%; min-height:54px; padding:10px; border:1px solid #d9dde3; border-radius:10px; font-family:inherit; font-size:13px; resize:vertical; box-sizing:border-box; }

/* Ürün sayfası canlı ek ücret satırı (tema sağ sütununda) */
/* Fiyatın hemen yanına taşınan kompakt ek-ücret rozeti (.price'ın içine eklenir) */
.yc-price-inline { display:inline-flex !important; align-items:center; gap:12px; flex-wrap:wrap; width:auto !important; justify-content:flex-start !important; }
.yc-surcharge {
	display:inline-flex; vertical-align:middle; gap:10px; align-items:center; flex-wrap:wrap;
	margin:0; padding:6px 12px; background:#f6f8ff; border:1px solid #e0e7ff; border-radius:999px; font-size:13px;
}
.yc-surcharge[hidden] { display:none; }
.yc-surcharge .yc-sur-line strong { color:#2563eb; }
.yc-surcharge .yc-sur-total strong { color:#111; }
.yc-surcharge .yc-sur-total { padding-left:10px; border-left:1px solid #dbe3ff; }

/* Üst bar bağlantı/önizleme butonu */
.yc-card-head { justify-content:space-between; }
.yc-link { border:none !important; background:transparent !important; cursor:pointer; color:#2563eb !important; font-weight:600 !important; font-size:14px !important; display:inline-flex; align-items:center; gap:6px; padding:8px 10px !important; border-radius:8px !important; }
.yc-link:hover { background:#eef2ff !important; }

/* Medya Ekle çekmecesi (alttan) */
.yc-canvas-area { position:relative; }
/* Çekmece: alttan animasyonlu açılır */
.yc-drawer {
	position:absolute; left:0; right:0; bottom:0; background:#fff; border-top:1px solid #eee;
	box-shadow:0 -8px 30px rgba(0,0,0,.12); border-radius:18px 18px 0 0; z-index:8; max-height:88%; overflow:auto;
	transform:translateY(105%); opacity:0; visibility:hidden;
	transition:transform .28s cubic-bezier(.22,.61,.36,1), opacity .22s ease, visibility 0s linear .28s;
}
.yc-drawer.is-open {
	transform:translateY(0); opacity:1; visibility:visible;
	transition:transform .28s cubic-bezier(.22,.61,.36,1), opacity .22s ease;
}
.yc-drawer__head { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; }
.yc-drawer__head strong { font-size:16px; }
.yc-drawer__close { border:none !important; background:#f1f1f1 !important; width:30px; height:30px; border-radius:50%; cursor:pointer; font-size:16px; color:#333 !important; }
.yc-drawer__tabs { display:flex; gap:18px; padding:0 18px; border-bottom:1px solid #eee; }
.yc-dtab { border:none !important; background:transparent !important; cursor:pointer; padding:10px 2px !important; font-weight:600; color:#8a8f98 !important; border-bottom:2px solid transparent !important; }
.yc-dtab.is-active { color:#2563eb !important; border-bottom-color:#2563eb !important; }
.yc-drawer__body { padding:16px 18px 20px; }

/* Alt sekmeler (Yükle / QR Kod) */
.yc-subtabs { display:flex; gap:8px; margin-bottom:14px; }
.yc-subtab { border:1px solid #d9dde3 !important; background:#fff !important; color:#555 !important; cursor:pointer; padding:7px 16px !important; border-radius:20px !important; font-weight:600; font-size:13px !important; }
.yc-subtab.is-active { background:#111 !important; color:#fff !important; border-color:#111 !important; }
.yc-subpanel { display:none; }
.yc-subpanel.is-active { display:block; }

/* QR oluşturma */
.yc-qr-preview { display:flex; flex-direction:column; align-items:center; gap:10px; margin-top:14px; }
.yc-qr-img { width:160px; height:160px; border:1px solid #eee; border-radius:10px; background:#fff; }
.yc-dpanel { display:none; }
.yc-dpanel.is-active { display:block; }
.yc-dropzone-lg { display:flex; flex-direction:column; align-items:center; gap:6px; border:2px dashed #c7cdd6; border-radius:12px; padding:30px 16px; cursor:pointer; text-align:center; }
.yc-dropzone-lg.is-drag { border-color:#2563eb; background:#f5f8ff; }
.yc-dz-icon { font-size:26px; color:#2563eb; }
.yc-dz-title { font-weight:600; color:#333; }
.yc-dz-sub { font-size:12px; color:#9aa0a8; }
.yc-media-lib { display:grid; grid-template-columns:repeat(auto-fill,minmax(84px,1fr)); gap:10px; margin-top:14px; }
.yc-media-item { position:relative; border:1px solid #eee; border-radius:10px; overflow:hidden; cursor:pointer; aspect-ratio:1; background:#fff; }
.yc-media-item img { width:100%; height:100%; object-fit:contain; }
.yc-media-item:hover { border-color:#2563eb; }
.yc-media-item__del { position:absolute; top:3px; right:3px; width:20px; height:20px; border:none; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; cursor:pointer; font-size:12px; line-height:1; }

/* Önizleme modalı */
.yc-preview-modal { position:fixed; inset:0; z-index:100000; }
.yc-preview-modal[hidden] { display:none; }
.yc-preview-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.6); }
.yc-preview-box { position:relative; max-width:900px; width:92%; margin:5vh auto; background:#fff; border-radius:16px; padding:24px; max-height:90vh; overflow:auto; }
.yc-preview-close { position:absolute; top:12px; right:14px; border:none; background:#f1f1f1; width:34px; height:34px; border-radius:50%; cursor:pointer; font-size:16px; }
.yc-preview-grid { display:flex; gap:20px; flex-wrap:wrap; justify-content:center; }
.yc-preview-side { text-align:center; }
.yc-preview-side img { max-width:340px; width:100%; border:1px solid #eee; border-radius:12px; }
.yc-preview-side span { display:block; margin-top:8px; font-weight:600; color:#444; }

/* Yükleniyor */
.yc-loading { position:fixed; inset:0; background:rgba(255,255,255,.6); display:flex; align-items:center; justify-content:center; z-index:50; }
.yc-loading[hidden] { display:none; }
.yc-spinner { width:42px; height:42px; border:4px solid #d9dde3; border-top-color:#111; border-radius:50%; animation:yc-spin .8s linear infinite; }
@keyframes yc-spin { to { transform:rotate(360deg); } }

/* Mobil */
@media (max-width:900px) {
	.yc-app { grid-template-columns:1fr; gap:18px; padding:16px; }
	.yc-buy { position:static; }
	.yc-buy__title { font-size:22px; }
}
