/* Birmont tasarım stüdyosu */
.studio-page .site-footer, .studio-page .site-end, .studio-page .float-rail { display: none; }
.studio-page main { padding: 0; }
.studio {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 300px;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "left center right" "bottom bottom bottom";
  height: calc(100vh - 65px);
  min-height: 560px;
  background: #eef1f4;
}
.st-left { grid-area: left; display: grid; grid-template-columns: 64px 1fr; background: #fff; border-right: 1px solid var(--line); min-height: 0; }
.st-tabs { display: flex; flex-direction: column; background: #111827; padding: 0.4rem 0; gap: 2px; }
.st-tabs button { border: 0; background: none; color: #cbd5e1; font: 600 0.62rem var(--font); padding: 0.55rem 0.2rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; border-left: 3px solid transparent; }
.st-tabs button span { font-size: 1.15rem; line-height: 1; }
.st-tabs button.is-on, .st-tabs button:hover { color: #fff; background: rgba(255, 255, 255, 0.06); border-left-color: var(--red); }
.st-panel { overflow-y: auto; padding: 1rem; min-height: 0; }
.st-panel h3 { font-size: 0.95rem; margin: 0 0 0.6rem; }
.st-panel h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 1rem 0 0.4rem; }
.st-center { grid-area: center; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.st-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; flex-wrap: wrap; }
.st-views { display: inline-flex; background: #fff; border-radius: 10px; padding: 3px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); }
.st-views button { border: 0; background: none; padding: 0.45rem 0.9rem; border-radius: 8px; font: 700 0.82rem var(--font); cursor: pointer; color: var(--ink-2); position: relative; }
.st-views button.is-on { background: var(--red); color: #fff; }
.st-views button i { position: absolute; top: 3px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.st-zoom { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; }
.st-zoom button, .st-ico { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1rem; }
.st-ico[disabled] { opacity: 0.4; cursor: not-allowed; }
.st-toggle { display: inline-flex; gap: 0.3rem; align-items: center; margin-left: 0.5rem; cursor: pointer; }
.st-3d-btn { border: 1px solid var(--red); color: var(--red); background: #fff; border-radius: 8px; padding: 0.4rem 0.7rem; font: 700 0.78rem var(--font); cursor: pointer; margin-left: 0.4rem; }
.st-stage-wrap { position: relative; flex: 1; min-height: 0; margin: 0 0.75rem; border-radius: 14px; background: radial-gradient(circle at 50% 35%, #ffffff 0%, #e7ebef 70%); overflow: hidden; touch-action: none; }
.st-stage { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; }
.st-stage .obj { cursor: move; }
.st-stage .obj.is-locked { cursor: not-allowed; }
.st-stage text { white-space: pre; }
.st-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(238, 241, 244, 0.85); font-weight: 600; }
.studio:not([data-loading]) .st-loading { display: none; }
.st-3d { position: absolute; inset: 0; background: #f4f6f8; }
.st-hint { font-size: 0.75rem; color: var(--muted); padding: 0.35rem 0.9rem; text-align: center; }
.st-right { grid-area: right; background: #fff; border-left: 1px solid var(--line); overflow-y: auto; padding: 1rem; min-height: 0; }
.st-right h3 { font-size: 0.95rem; margin: 0 0 0.6rem; display: flex; justify-content: space-between; align-items: center; }
.st-bottom { grid-area: bottom; display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.6rem 0.9rem; background: #fff; border-top: 1px solid var(--line); flex-wrap: wrap; }
.st-save-state { margin-left: 0.4rem; }

.st-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
.st-grid button, .st-tile { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 0.55rem 0.3rem; cursor: pointer; font: 600 0.72rem var(--font); display: flex; flex-direction: column; align-items: center; gap: 0.3rem; color: var(--ink-2); }
.st-grid button:hover, .st-tile:hover { border-color: var(--red); color: var(--red); }
.st-grid svg { width: 34px; height: 34px; }
.st-colors { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.st-color { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; position: relative; }
.st-color.is-on { box-shadow: 0 0 0 2px var(--red); }
.st-color[title]::after { content: none; }
.st-drop { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 1.3rem 0.8rem; text-align: center; cursor: pointer; background: #f8fafc; transition: border-color 0.2s, background 0.2s; }
.st-drop.is-over { border-color: var(--red); background: #fff5f5; }
.st-drop b { display: block; margin-bottom: 0.25rem; }
.st-assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; margin-top: 0.6rem; }
.st-asset { border: 1px solid var(--line); border-radius: 8px; background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect width='6' height='6' fill='%23e5e7eb'/%3E%3Crect x='6' y='6' width='6' height='6' fill='%23e5e7eb'/%3E%3C/svg%3E"); aspect-ratio: 1; padding: 4px; cursor: pointer; display: grid; place-items: center; overflow: hidden; position: relative; }
.st-asset img { max-width: 100%; max-height: 100%; object-fit: contain; }
.st-asset small { position: absolute; bottom: 2px; left: 2px; right: 2px; font-size: 0.6rem; background: rgba(255, 255, 255, 0.9); border-radius: 4px; text-align: center; }
.st-layer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.3rem; padding: 0.4rem 0.5rem; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 0.3rem; cursor: pointer; background: #fff; font-size: 0.8rem; }
.st-layer.is-sel { border-color: var(--red); background: #fff5f5; }
.st-layer .lname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-layer .lname small { color: var(--muted); }
.st-layer .lbtns { display: flex; gap: 2px; }
.st-layer .lbtns button { border: 0; background: none; cursor: pointer; width: 24px; height: 24px; border-radius: 5px; font-size: 0.8rem; color: var(--ink-2); }
.st-layer .lbtns button:hover { background: var(--grey-100); }
.st-layer .lbtns button.is-on { color: var(--red); }
.st-field { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; margin-bottom: 0.55rem; }
.st-field label, .st-row label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.72rem; font-weight: 600; color: var(--ink-2); }
.st-field input, .st-field select, .st-row input, .st-row select, .st-row textarea { width: 100%; padding: 0.42rem 0.5rem; border: 1px solid var(--line); border-radius: 7px; font: 500 0.82rem var(--font); }
.st-row { margin-bottom: 0.55rem; }
.st-row input[type=range] { padding: 0; }
.st-row input[type=color], .st-field input[type=color] { padding: 2px; height: 34px; }
.st-btnrow { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.55rem; }
.st-btnrow button { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 0.35rem 0.5rem; cursor: pointer; font: 600 0.75rem var(--font); }
.st-btnrow button:hover, .st-btnrow button.is-on { border-color: var(--red); color: var(--red); }
.st-measure { background: #0f172a; color: #fff; border-radius: 10px; padding: 0.7rem 0.8rem; font-size: 0.82rem; margin-bottom: 0.7rem; }
.st-measure b { font-size: 1rem; }
.st-warn { font-size: 0.78rem; padding: 0.5rem 0.6rem; border-radius: 8px; background: #fffbeb; color: #92400e; border: 1px solid #fde68a; margin-bottom: 0.5rem; }
.st-warn.is-err { background: #fef2f2; color: var(--err); border-color: #fecaca; }
.st-warn.is-ok { background: #f0fdf4; color: var(--ok); border-color: #bbf7d0; }
.st-price { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 0.8rem; font-size: 0.82rem; }
.st-price .sum-row { font-size: 0.82rem; padding: 0.2rem 0; }
.st-method { border: 2px solid var(--line); border-radius: 10px; padding: 0.6rem 0.7rem; margin-bottom: 0.45rem; cursor: pointer; display: block; }
.st-method:has(input:checked) { border-color: var(--red); background: #fff5f5; }
.st-method.is-disabled { opacity: 0.5; cursor: not-allowed; }
.st-method p { margin: 0.25rem 0 0; font-size: 0.75rem; color: var(--muted); }
.st-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.st-compare figure { margin: 0; text-align: center; }
.st-compare img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='8' height='8' fill='%23e5e7eb'/%3E%3Crect x='8' y='8' width='8' height='8' fill='%23e5e7eb'/%3E%3C/svg%3E"); }
.st-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.6rem; }
.st-preview-grid img { width: 100%; background: #f4f6f8; border-radius: 10px; }
.st-mobile-props { display: none; }

@media (max-width: 1100px) {
  .studio { grid-template-columns: 290px minmax(0, 1fr) 260px; }
}
@media (max-width: 900px) {
  .studio-page .top-strip { display: none; }
  .studio-page .main-header .header-row { min-height: 56px; padding: 0.35rem 0; }
  .studio-page .brand-logo { max-height: 38px; width: auto; }
  .studio { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "left" "center" "bottom"; height: calc(100dvh - 56px); min-height: 520px; }
  .st-toolbar { padding: 0.35rem 0.5rem; gap: 0.3rem; }
  .st-views button { padding: 0.35rem 0.65rem; }
  .st-zoom #st-zoom-val { display: none; }
  .st-stage-wrap { margin: 0 0.4rem; }
  .st-bottom .bm-row { gap: 0.3rem; flex-wrap: nowrap; }
  .st-bottom { flex-wrap: wrap; justify-content: center; }
  .st-save-state, #st-reset { display: none; }
  .st-left { grid-template-columns: 1fr; grid-template-rows: auto auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .st-tabs { flex-direction: row; overflow-x: auto; padding: 0; }
  .st-tabs button { flex: 1 0 auto; border-left: 0; border-bottom: 3px solid transparent; padding: 0.45rem 0.6rem; }
  .st-tabs button.is-on { border-bottom-color: var(--red); }
  .st-panel { max-height: 30vh; padding: 0.7rem; }
  .st-panel.is-collapsed { display: none; }
  .st-right { position: fixed; left: 0; right: 0; bottom: 0; max-height: 55vh; z-index: 2200; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2); transform: translateY(105%); transition: transform 0.25s; }
  .st-right.is-open { transform: none; }
  .st-mobile-props { display: block; position: fixed; right: 12px; bottom: 140px; z-index: 2100; border: 0; background: #111827; color: #fff; border-radius: 999px; padding: 0.65rem 1rem; font: 700 0.8rem var(--font); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
  .st-mobile-props[hidden] { display: none; }
  .st-bottom { padding: 0.5rem; }
  .st-bottom .bm-btn { padding: 0.55rem 0.7rem; font-size: 0.78rem; }
  .st-hint { display: none; }
  .st-toggle { display: none; }
  .st-zoom button { width: 40px; height: 40px; touch-action: manipulation; }
  .st-zoom button.is-on { background: var(--red); border-color: var(--red); color: #fff; }
  .studio-focus #site-header { display: none; }
  .studio.is-focus { height: 100dvh; }
  .studio.is-focus .st-tabs { display: none; }
}

/* Özel renk ve sipariş kuralları */
.st-custom-color { display: grid; grid-template-columns: 44px 1fr; gap: 0.4rem; align-items: center; padding: 0.45rem; border: 1px dashed #cbd5e1; border-radius: 10px; }
.st-custom-color .bm-btn { grid-column: 1 / -1; }
.st-custom-color.is-on { border: 2px solid #e31e24; background: #fff5f5; }
.st-custom-color input[type="color"] { width: 44px; height: 38px; border: 0; padding: 0; background: none; cursor: pointer; }
.st-custom-color .bm-input { min-width: 0; }
.st-rules { margin-top: 0.8rem; font-size: 0.8rem; background: #f1f5f9; border-radius: 10px; padding: 0.6rem 0.75rem; }
.st-rules ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.st-rules li { margin: 0.15rem 0; }
