/* Çalı Fırın — Pasta tasarla (3D editör) */
.studio { display: grid; grid-template-columns: 1fr 430px; height: calc(100vh - 126px); min-height: 600px; background: var(--paper); }
.stage { position: relative; overflow: hidden; background:
  radial-gradient(ellipse 70% 55% at 50% 42%, #fffaf1 0%, #f4ead9 55%, #e6d7c0 100%); }
.stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(180deg, transparent, rgba(120, 92, 60, .08)); pointer-events: none; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage-title { position: absolute; left: 28px; top: 24px; z-index: 2; pointer-events: none; }
.stage-title .script { font-size: 2rem; }
.stage-title h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; font-weight: 500; color: var(--ink); }
.stage-title p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.stage-tools { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); padding: 6px; border-radius: 40px; box-shadow: 0 12px 30px -16px rgba(60, 40, 20, .45); }
.tool { height: 40px; min-width: 40px; padding: 0 14px; border-radius: 22px; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s, transform .12s; }
.tool:hover { background: rgba(31, 77, 54, .08); }
.tool:active { transform: scale(.95); }
.tool.on { background: var(--accent); color: #fff; }
.tool svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-sep { width: 1px; background: var(--line); margin: 6px 2px; }
.stage-hint { position: absolute; right: 22px; top: 26px; z-index: 2; font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.7); padding: 6px 12px; border-radius: 20px; }
.stage-loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 4; background: radial-gradient(ellipse at center, #fffaf1, #efe3cf); transition: opacity .5s; }
.stage-loading.done { opacity: 0; pointer-events: none; }
.stage-loading .oven { text-align: center; color: var(--ink-2); }
.stage-loading .oven .bar { width: 160px; height: 4px; border-radius: 2px; background: var(--line); margin: 14px auto 0; overflow: hidden; }
.stage-loading .oven .bar i { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 2px; animation: load 1.1s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.no-webgl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--muted); }

/* ---------- panel ---------- */
.bpanel { display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--line); min-height: 0; }
.bsteps { display: flex; gap: 4px; padding: 16px 16px 0; overflow-x: auto; scrollbar-width: none; }
.bsteps::-webkit-scrollbar { display: none; }
.bstep { flex: 1; min-width: 58px; border: 0; background: none; cursor: pointer; padding: 6px 2px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; position: relative; }
.bstep .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink-2); transition: background .2s, color .2s, transform .2s; }
.bstep .dot svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bstep.done .dot { background: #e2ede5; color: var(--accent); }
.bstep.on { color: var(--ink); }
.bstep.on .dot { background: var(--accent); color: #fff; transform: scale(1.08); box-shadow: 0 6px 16px -6px rgba(31, 77, 54, .6); }
.bprogress { height: 3px; background: var(--line); margin: 0 16px; border-radius: 2px; overflow: hidden; }
.bprogress i { display: block; height: 100%; background: var(--accent); transition: width .4s ease; }
.bbody { flex: 1; overflow-y: auto; padding: 22px 22px 10px; }
.bbody h2 { font-size: 1.9rem; margin: 0 0 4px; }
.bbody .lead { color: var(--muted); margin: 0 0 18px; font-size: .92rem; }
.bgroup { margin-bottom: 22px; }
.bgroup > .lbl { display: flex; justify-content: space-between; align-items: baseline; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--ink-2); margin-bottom: 10px; }
.bgroup > .lbl span { letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 400; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles.c2 { grid-template-columns: repeat(2, 1fr); }
.tiles.c4 { grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 8px 10px; cursor: pointer; text-align: center; transition: border-color .15s, transform .12s, box-shadow .15s; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink); }
.tile:hover { border-color: #cdbfae; transform: translateY(-1px); }
.tile:active { transform: scale(.97); }
.tile.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 77, 54, .12); }
.tile.on::after { content: ''; position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat; }
.tile[disabled] { opacity: .4; cursor: not-allowed; }
.tile .ic { width: 52px; height: 44px; display: grid; place-items: center; }
.tile .ic svg { max-width: 100%; max-height: 100%; }
.tile b { font-weight: 500; line-height: 1.2; }
.tile small { color: var(--muted); font-size: .74rem; line-height: 1.2; }
.tile .plus { color: var(--accent); font-weight: 600; font-size: .72rem; }
.sw { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 -6px 10px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.12); border: 2px solid #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; box-shadow: 0 0 0 1px var(--line), inset 0 -6px 10px rgba(0,0,0,.1); transition: transform .12s, box-shadow .15s; }
.swatch:hover { transform: scale(1.08); }
.swatch.on { box-shadow: 0 0 0 2.5px var(--accent), inset 0 -6px 10px rgba(0,0,0,.1); transform: scale(1.08); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 30px; overflow: hidden; }
.stepper button { width: 44px; height: 42px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; }
.stepper button:hover { background: var(--cream); }
.stepper output { min-width: 40px; text-align: center; font-weight: 600; font-size: 1.1rem; }
.txt-wrap { position: relative; }
.txt-wrap .count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .78rem; color: var(--muted); }
.txt-in { width: 100%; height: 52px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 60px 0 16px; font-family: var(--script); font-size: 1.7rem; color: #4a2a18; background: #fffcf6; }
.txt-in:focus { outline: none; border-color: var(--accent); }
.chips-q { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips-q button { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 5px 12px; font-size: .8rem; cursor: pointer; }
.chips-q button:hover { border-color: var(--accent); color: var(--accent); }
.recipe { list-style: none; padding: 0; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 14px; }
.recipe li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.recipe li:last-child { border-bottom: 0; }
.recipe li span:first-child { color: var(--muted); min-width: 92px; }
.recipe li span:last-child { text-align: right; }
.note-box { font-size: .85rem; color: var(--muted); background: var(--cream); border-radius: 12px; padding: 12px 14px; }

.bfoot { border-top: 1px solid var(--line); padding: 14px 18px 16px; background: #fff; }
.bprice { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.bprice .p { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; transition: transform .2s; }
.bprice .p.bump { transform: scale(1.06); }
.bprice .meta { text-align: right; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.bprice .meta b { color: var(--ink); font-weight: 500; }
.bnav { display: flex; gap: 8px; }
.bnav .btn { flex: 1; padding: 14px 10px; }
.bnav .btn.back { flex: 0 0 auto; padding: 14px 18px; }
.btn.go { background: var(--accent); border-color: var(--accent); }
.btn.go:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* sepete eklendi penceresi */
.bmodal-bg { position: fixed; inset: 0; background: rgba(20, 28, 22, .5); z-index: 120; display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.bmodal { background: #fff; border-radius: 20px; max-width: 440px; width: 100%; padding: 26px; text-align: center; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); animation: rise .35s cubic-bezier(.2, 1.3, .4, 1); }
.bmodal img { width: 100%; border-radius: 14px; margin-bottom: 14px; aspect-ratio: 4 / 3; object-fit: cover; }
.bmodal h3 { font-size: 1.9rem; margin: 0 0 4px; }
.bmodal p { color: var(--muted); margin: 0 0 18px; }
.bmodal .row { display: flex; gap: 8px; }
.bmodal .row .btn { flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 130; }

/* ---------- anasayfa tanıtım bölümü ---------- */
.tease { display: grid; grid-template-columns: 1fr 1.1fr; background: radial-gradient(ellipse 80% 70% at 75% 50%, #2b6a4b 0%, #1f4d36 45%, #13301f 100%); color: #fff; overflow: hidden; position: relative; }
.tease-body { padding: 100px 60px 100px max(24px, calc((100vw - 1200px) / 2 + 24px)); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.tease-body .script { color: #e6d3a6; font-size: 2.2rem; }
.tease-body h2 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); font-weight: 400; margin: 6px 0 18px; }
.tease-body p { color: rgba(255,255,255,.82); max-width: 460px; font-size: 1.05rem; }
.tease-steps { list-style: none; padding: 0; margin: 14px 0 32px; display: grid; gap: 10px; }
.tease-steps li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.9); }
.tease-steps b { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(230,211,166,.6); color: #e6d3a6; display: grid; place-items: center; font-family: var(--serif); font-weight: 500; flex: none; }
.tease-stage { position: relative; min-height: 560px; }
.tease-stage::before { content: ''; position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 244, 220, .28), transparent 65%); }
.tease-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tease-stage img { position: absolute; inset: 10% 15%; width: 70%; height: 80%; object-fit: contain; }
.tease-tag { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.12); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); padding: 8px 16px; border-radius: 30px; font-size: .85rem; white-space: nowrap; transition: opacity .4s; }

@media (max-width: 1000px) {
  .studio { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .stage { height: 52vh; min-height: 340px; position: sticky; top: 0; z-index: 5; }
  .stage-title { left: 16px; top: 14px; }
  .stage-title h1 { font-size: 1.5rem; }
  .stage-title p, .stage-hint { display: none; }
  .stage-tools { bottom: 12px; }
  .tool .t { display: none; }
  .tool { padding: 0 11px; }
  .bpanel { border-left: 0; }
  .bbody { overflow: visible; }
  .bfoot { position: sticky; bottom: 0; box-shadow: 0 -10px 30px -20px rgba(0,0,0,.3); }
  .tease { grid-template-columns: 1fr; }
  .tease-body { padding: 70px 24px 10px; }
  .tease-stage { min-height: 400px; }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .tiles.c4 { grid-template-columns: repeat(3, 1fr); }
  .tile { padding: 10px 4px 8px; font-size: .78rem; }
  .bbody { padding: 18px 14px 10px; }
}
@media (prefers-reduced-motion: reduce) { .bmodal, .bmodal-bg { animation: none; } }

.studio > * { min-width: 0; }

/* ---------- şeker hamuru figürleri ---------- */
.fig-lock { border: 1.5px dashed #d8c9b5; border-radius: 16px; padding: 16px; text-align: center; background: #fffbf4; }
.fig-lock-ic { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.fig-lock-ic svg { width: 40px; height: 40px; }
.fig-lock p { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.tiles.figs .tile .ic { height: 40px; }
.tiles.figs .tile .ic svg { width: 40px; height: 40px; }
.tiles.figs .tile.on { animation: wiggle .9s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2deg); } 75% { transform: rotate(2deg); } }
.place-hint { display: flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font-size: .86rem; }
.place-hint button { margin-left: auto; background: rgba(255,255,255,.16); color: #fff; border: 0; border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.place-hint .pulse { width: 10px; height: 10px; border-radius: 50%; background: #e6d3a6; flex: none; animation: ping 1.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(230,211,166,.8); } 100% { box-shadow: 0 0 0 10px rgba(230,211,166,0); } }
.fig-placed { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fig-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 20px; padding: 3px 12px 3px 4px; font-size: .8rem; cursor: pointer; }
.fig-chip span { width: 24px; height: 24px; display: grid; place-items: center; }
.fig-chip svg { width: 24px; height: 24px; }
.fig-chip.on { border-color: var(--accent); background: #eef5f0; }
.stage.dragging canvas { cursor: grabbing; }

.figbar { position: absolute; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 16px; padding: 6px 8px; box-shadow: 0 16px 36px -16px rgba(40, 28, 16, .5); max-width: calc(100% - 24px); flex-wrap: wrap; justify-content: center; animation: rise .25s ease-out; }
.figbar button { height: 36px; min-width: 36px; border: 0; background: var(--cream); border-radius: 10px; cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.figbar button:hover { background: #ede2cf; }
.figbar .fb-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; padding: 0 8px; }
.figbar .fb-digit { min-width: 22px; text-align: center; font-size: 1.1rem; }
.figbar .fb-sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.figbar .fb-colors { display: inline-flex; gap: 4px; }
.figbar .fb-col { width: 22px; height: 22px; min-width: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); padding: 0; }
.figbar .fb-col.on { box-shadow: 0 0 0 2px var(--accent); }
.figbar .fb-del { font-size: .8rem; padding: 0 12px; color: #a33b2b; }
.figbar .fb-ok { font-size: .8rem; padding: 0 14px; background: var(--accent); color: #fff; }
.figbar .fb-ok:hover { background: var(--accent-dark); }
@media (max-width: 1000px) { .figbar { bottom: 64px; } .figbar .fb-colors { order: 9; width: 100%; justify-content: center; } }
.figbar[hidden] { display: none; }
@media (max-width: 1000px) {
  .figbar { bottom: auto; top: 8px; padding: 4px 6px; gap: 3px; border-radius: 12px; max-width: calc(100% - 16px); }
  .figbar .fb-name, .figbar .fb-sep { display: none; }
  .figbar button { height: 30px; min-width: 30px; font-size: .95rem; border-radius: 8px; }
  .figbar .fb-del, .figbar .fb-ok { padding: 0 10px; }
  .figbar .fb-colors { order: 9; width: 100%; justify-content: center; gap: 5px; padding-top: 2px; }
  .figbar .fb-col { width: 20px; height: 20px; min-width: 20px; }
  .stage:has(.figbar:not([hidden])) .stage-title { display: none; }
}

/* hazır temalar */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-card { display: flex; gap: 10px; align-items: center; text-align: left; border: 1.5px solid var(--line); background: linear-gradient(135deg, #1f1f22, #2c2a26); color: #f2ead8; border-radius: 14px; padding: 10px; cursor: pointer; transition: transform .12s, box-shadow .15s; }
.theme-card:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.theme-card .th-ic { width: 52px; height: 52px; flex: none; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; }
.theme-card .th-ic svg { width: 44px; height: 44px; }
.theme-card b { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: #e6c98c; }
.theme-card small { display: block; font-size: .74rem; line-height: 1.3; opacity: .8; }
.theme-card em { display: inline-block; margin-top: 4px; font-style: normal; font-size: .78rem; color: #e6c98c; }
.theme-card.soon { background: #fff; color: var(--muted); border-style: dashed; cursor: default; }
.theme-card.soon b { color: var(--muted); }
.board-in { font-family: var(--serif); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 1.3rem; }

/* fotoğraftan başla */
.photo-card { background: linear-gradient(135deg, #1f4d36, #13301f); }
.ref-strip { display: flex; gap: 10px; align-items: center; background: #eef5f0; border: 1px solid #cfe2d6; border-radius: 12px; padding: 8px; margin-bottom: 10px; }
.ref-strip img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.ref-strip b { display: block; font-size: .9rem; }
.ref-strip small { display: block; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.usta-note { width: 100%; min-height: 70px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .9rem; }
.scan { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(20, 28, 22, .55); backdrop-filter: blur(3px); animation: fade .2s; transition: opacity .35s; }
.scan.out { opacity: 0; }
.scan-card { background: #fff; border-radius: 18px; padding: 18px; width: min(360px, 90%); text-align: center; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.scan-img { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream); margin-bottom: 10px; }
.scan-img img { width: 100%; height: 100%; object-fit: cover; }
.scan-img i { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(69, 168, 115, .45), transparent); animation: scanline 1.6s ease-in-out infinite; }
@keyframes scanline { 0% { top: -30%; } 100% { top: 100%; } }
.scan-steps { list-style: none; padding: 0; margin: 10px 0 0; text-align: left; font-size: .88rem; color: var(--muted); }
.scan-steps li { padding: 4px 0 4px 26px; position: relative; }
.scan-steps li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.scan-steps li.on { color: var(--ink); font-weight: 500; }
.scan-steps li.on::before { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.scan-steps li.done { color: var(--accent); }
.scan-steps li.done::before { background: var(--accent); border-color: var(--accent); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .scan-img i, .scan-steps li.on::before { animation: none; } }
