/* Giyim — Tasarım stüdyosu */
  .gd [hidden] { display: none !important; }
  .gd { --gd-ink: #111827; --gd-muted: #6b7280; --gd-line: #e5e7eb; --gd-bg: #f5f5f4; --gd-accent: #ea4f1a; --gd-sel: #2563eb;
    display: block; background: var(--gd-bg); color: var(--gd-ink); padding: 1.2rem 1.6rem 4rem; }
  .gd button { font: inherit; }
  .gd__topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.2rem; max-width: 144rem; margin: 0 auto 1.6rem; }
  .gd__back { display: inline-flex; align-items: center; gap: .4rem; color: var(--gd-ink); text-decoration: none; font-size: 1.4rem; }
  .gd__back:hover { text-decoration: underline; }
  .gd__product-name { text-align: center; display: flex; flex-direction: column; font-size: 1.6rem; }
  .gd__eyebrow { font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gd-muted); }
  .gd__history { justify-self: end; display: flex; gap: .6rem; }
  .gd__icon-btn { width: 4rem; height: 4rem; border-radius: 8px; border: 1px solid var(--gd-line); background: #fff; color: var(--gd-ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .gd__icon-btn:disabled { opacity: .35; cursor: default; }

  .gd__layout { display: grid; gap: 1.6rem; max-width: 144rem; margin: 0 auto; grid-template-columns: 1fr; }
  @media (min-width: 1100px) { .gd__layout { grid-template-columns: 30rem minmax(0, 1fr) 30rem; align-items: start; } }

  .gd__tools, .gd__card { background: #fff; border: 1px solid var(--gd-line); border-radius: 12px; }
  .gd__tools { overflow: hidden; }
  @media (max-width: 1099px) { .gd__tools { order: 2; } .gd__canvas-col { order: 1; } .gd__side-panel { order: 3; } }
  .gd__tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--gd-line); }
  .gd__tab { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1.2rem .4rem; border: 0; background: none; color: var(--gd-muted); font-size: 1.2rem; cursor: pointer; border-bottom: 2px solid transparent; }
  .gd__tab.is-active { color: var(--gd-ink); border-bottom-color: var(--gd-ink); font-weight: 600; }
  .gd__panel { display: none; flex-direction: column; gap: 1rem; padding: 1.6rem; }
  .gd__panel.is-active { display: flex; }
  .gd__panel-title { margin: .4rem 0 0; font-size: 1.3rem; font-weight: 700; }
  .gd__muted { font-weight: 400; color: var(--gd-muted); }
  .gd__hint { margin: 0; font-size: 1.2rem; color: var(--gd-muted); line-height: 1.4; }
  .gd__input { width: 100%; padding: .9rem 1rem; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; font-size: 1.4rem; background: #fff; resize: vertical; box-sizing: border-box; }
  .gd__btn { padding: 1rem 1.4rem; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; color: var(--gd-ink); font-size: 1.4rem; font-weight: 600; cursor: pointer; }
  .gd__btn:hover { border-color: var(--gd-ink); }
  .gd__btn--primary { background: var(--gd-ink); border-color: var(--gd-ink); color: #fff; }
  .gd__btn--cta { width: 100%; background: var(--gd-accent); border-color: var(--gd-accent); color: #fff; text-transform: uppercase; letter-spacing: .04em; padding: 1.3rem; }
  .gd__btn--cta:hover { filter: brightness(.93); border-color: var(--gd-accent); }
  .gd__link { border: 0; background: none; color: var(--gd-sel); cursor: pointer; font-size: 1.3rem; padding: 0; }
  .gd__row { display: flex; align-items: flex-end; gap: .8rem; }
  .gd__row--split > * { flex: 1; }
  .gd__field { display: flex; flex-direction: column; gap: .4rem; font-size: 1.2rem; color: var(--gd-muted); flex: 1; }
  .gd__field--sm { flex: 0 0 auto; }
  .gd__field input[type='color'] { width: 100%; min-width: 4.4rem; height: 3.6rem; padding: .2rem; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; cursor: pointer; }
  .gd__field input[type='range'] { width: 100%; accent-color: var(--gd-ink); }
  .gd__toggle { width: 3.6rem; height: 3.6rem; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; cursor: pointer; font-size: 1.5rem; }
  .gd__toggle[aria-pressed='true'] { background: var(--gd-ink); color: #fff; border-color: var(--gd-ink); }

  .gd__swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
  .gd__swatch { width: 3.6rem; height: 3.6rem; border-radius: 50%; border: 1px solid #d1d5db; background: var(--c); cursor: pointer; padding: 0; }
  .gd__swatch.is-active { outline: 2px solid var(--gd-ink); outline-offset: 2px; }
  .gd__sizes { display: flex; flex-wrap: wrap; gap: .6rem; }
  .gd__size { min-width: 4.4rem; padding: .8rem; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; cursor: pointer; font-size: 1.3rem; }
  .gd__size.is-active { background: var(--gd-ink); color: #fff; border-color: var(--gd-ink); }
  .gd__qty { display: inline-flex; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; width: max-content; }
  .gd__qty button { width: 4rem; border: 0; background: #fff; font-size: 1.8rem; cursor: pointer; }
  .gd__qty input { width: 6rem; border: 0; border-left: 1px solid #d1d5db; border-right: 1px solid #d1d5db; text-align: center; font: inherit; font-size: 1.4rem; -moz-appearance: textfield; }
  .gd__qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

  .gd__presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .gd__preset { padding: 1rem .6rem; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; cursor: pointer; font-size: 1.6rem; line-height: 1.2; }
  .gd__preset:hover { border-color: var(--gd-ink); }
  .gd__icons { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; }
  .gd__icon { aspect-ratio: 1; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; cursor: pointer; padding: .6rem; display: flex; align-items: center; justify-content: center; }
  .gd__icon:hover, .gd__icon.is-picked { border-color: var(--gd-ink); box-shadow: inset 0 0 0 1px var(--gd-ink); }
  .gd__icon svg { width: 100%; height: 100%; }
  .gd__drop { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.4rem 1.2rem; border: 2px dashed #cbd5e1; border-radius: 12px; text-align: center; cursor: pointer; font-size: 1.3rem; color: var(--gd-muted); }
  .gd__drop strong { color: var(--gd-ink); font-size: 1.5rem; }
  .gd__drop.is-over { border-color: var(--gd-sel); background: #eff6ff; }
  .gd__notice { margin: 0; padding: .8rem 1rem; border-radius: 8px; font-size: 1.3rem; }
  .gd__notice.is-ok { background: #ecfdf5; color: #047857; }
  .gd__notice.is-warn { background: #fff7ed; color: #b45309; }
  .gd__notice.is-error { background: #fef2f2; color: #b91c1c; }

  .gd__canvas-col { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
  .gd__sides { display: inline-flex; background: #fff; border: 1px solid var(--gd-line); border-radius: 999px; padding: .3rem; }
  .gd__side { border: 0; background: none; padding: .7rem 2.4rem; border-radius: 999px; cursor: pointer; font-size: 1.4rem; font-weight: 600; color: var(--gd-muted); }
  .gd__side.is-active { background: var(--gd-ink); color: #fff; }
  .gd__stage { position: relative; width: min(100%, 62rem); aspect-ratio: 500 / 560; touch-action: none; user-select: none; -webkit-user-select: none; }
  .gd__shirt { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 12px 24px rgb(0 0 0 / .08)); }
  .gd__zone { position: absolute; left: 30%; top: 19.6%; width: 40%; height: 64.3%; container-type: inline-size; border: 1.5px dashed rgb(37 99 235 / .45); border-radius: 2px; }
  .gd--no-guides .gd__zone { border-color: transparent; }
  .gd__zone-label { position: absolute; top: -2.2rem; left: 50%; transform: translateX(-50%); font-size: 1.1rem; color: rgb(37 99 235 / .8); white-space: nowrap; pointer-events: none; }
  .gd--no-guides .gd__zone-label { display: none; }
  .gd__layers { position: absolute; inset: 0; }
  .gd__warn { margin: 0; padding: .6rem 1.2rem; border-radius: 8px; background: #fff7ed; color: #b45309; font-size: 1.3rem; }
  .gd__canvas-hint { margin: 0; font-size: 1.2rem; color: var(--gd-muted); text-align: center; }

  .gd__el { position: absolute; transform-origin: center; cursor: move; line-height: 1.15; white-space: pre; outline: 1px solid transparent; }
  .gd__el.is-selected { outline: 1.5px solid var(--gd-sel); }
  .gd__el.is-outside.is-selected { outline-color: #f97316; outline-style: dashed; }
  .gd__el img, .gd__el svg { display: block; width: 100%; height: auto; pointer-events: none; }
  .gd__el-text { display: block; pointer-events: none; text-align: center; paint-order: stroke fill; }
  .gd__h { position: absolute; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #fff; border: 1.5px solid var(--gd-sel); display: none; align-items: center; justify-content: center; color: var(--gd-sel); padding: 0; }
  .gd__el.is-selected .gd__h { display: flex; }
  .gd__h svg { width: 1.2rem; height: 1.2rem; }
  .gd__h--rot { top: -3.4rem; left: 50%; margin-left: -1.1rem; cursor: grab; }
  .gd__h--rot::after { content: ''; position: absolute; top: 100%; left: 50%; width: 1.5px; height: 1.2rem; background: var(--gd-sel); }
  .gd__h--scale { right: -1.1rem; bottom: -1.1rem; cursor: nwse-resize; }
  .gd__h--del { left: -1.1rem; top: -1.1rem; border-color: #dc2626; color: #dc2626; cursor: pointer; }

  .gd__side-panel { display: flex; flex-direction: column; gap: 1.2rem; }
  .gd__card { padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
  .gd__card[hidden] { display: none; }
  .gd__card-head { display: flex; justify-content: space-between; align-items: center; }
  .gd__actions { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
  .gd__action { aspect-ratio: 1; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gd-ink); padding: 0; }
  .gd__action:hover { border-color: var(--gd-ink); }
  .gd__action--danger { color: #dc2626; }
  .gd__layer-list { margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
  .gd__layer { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border: 1px solid var(--gd-line); border-radius: 8px; cursor: pointer; font-size: 1.3rem; }
  .gd__layer.is-active { border-color: var(--gd-sel); background: #eff6ff; }
  .gd__layer-thumb { width: 2.8rem; height: 2.8rem; flex: none; border-radius: 4px; background: var(--gd-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 700; }
  .gd__layer-thumb img, .gd__layer-thumb svg { max-width: 100%; max-height: 100%; }
  .gd__layer-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gd__layer-del { border: 0; background: none; color: var(--gd-muted); cursor: pointer; font-size: 1.6rem; line-height: 1; }
  .gd__layer-empty { font-size: 1.3rem; color: var(--gd-muted); }
  .gd__sum-row { display: flex; justify-content: space-between; font-size: 1.4rem; }
  .gd__sum-total { font-size: 1.8rem; font-weight: 700; padding-top: .8rem; border-top: 1px solid var(--gd-line); }
  .gd__saved { margin: 0; font-size: 1.3rem; color: #047857; }
  .gd__saved a { color: inherit; font-weight: 600; }
  .gd__saved.is-error { color: #b91c1c; }
  .gd__my-link { display: inline-flex; align-items: center; gap: .6rem; height: 4rem; padding: 0 1.2rem; border-radius: 8px; border: 1px solid var(--gd-line); background: #fff; color: var(--gd-ink); text-decoration: none; font-size: 1.3rem; font-weight: 600; }
  .gd__my-link:hover { border-color: var(--gd-ink); }
  @media (max-width: 749px) { .gd__my-link { padding: 0 .9rem; font-size: 0; gap: 0; } }
  .gd__font { position: relative; }
  .gd__font-btn { display: flex; justify-content: space-between; align-items: center; gap: .8rem; cursor: pointer; color: var(--gd-ink); text-align: left; font-size: 1.6rem; }
  .gd__font-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gd__font-pop { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + .4rem); background: #fff; border: 1px solid #d1d5db; border-radius: 10px; box-shadow: 0 12px 30px rgb(0 0 0 / .15); padding: .8rem; display: flex; flex-direction: column; gap: .6rem; }
  .gd__font-local { display: flex; align-items: center; gap: .6rem; border: 1px dashed #cbd5e1; border-radius: 8px; background: #f8fafc; padding: .7rem .8rem; cursor: pointer; font-size: 1.2rem; color: var(--gd-ink); text-align: left; }
  .gd__font-local:hover { border-color: var(--gd-sel); }
  .gd__font-list { margin: 0; padding: 0; max-height: 32rem; overflow-y: auto; overscroll-behavior: contain; }
  .gd__font-group { position: sticky; top: 0; z-index: 1; background: #fff; padding: .6rem .4rem .3rem; font-size: 1.1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gd-muted); }
  .gd__font-opt { display: block; width: 100%; padding: .6rem .6rem; border: 0; border-radius: 6px; background: none; text-align: left; font-size: 1.8rem; line-height: 1.3; color: var(--gd-ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gd__font-opt:hover, .gd__font-opt:focus-visible { background: #f3f4f6; outline: none; }
  .gd__font-opt[aria-selected='true'] { background: #eff6ff; box-shadow: inset 0 0 0 1px var(--gd-sel); }
  .gd__font-opt small { font-family: system-ui, sans-serif; font-size: 1.1rem; color: var(--gd-muted); margin-left: .6rem; }
  .gd__font-empty { padding: 1rem .6rem; font-size: 1.3rem; color: var(--gd-muted); }

  .gd__modal { position: fixed; inset: 0; z-index: 1000; background: rgb(0 0 0 / .5); display: flex; align-items: center; justify-content: center; padding: 1.6rem; }
  .gd__modal[hidden] { display: none; }
  .gd__modal-box { position: relative; width: min(100%, 72rem); max-height: 92vh; overflow: auto; background: #fff; border-radius: 16px; padding: 2.4rem; display: flex; flex-direction: column; gap: 1.4rem; }
  .gd__modal-close { position: absolute; top: 1rem; right: 1.4rem; border: 0; background: none; font-size: 2.8rem; cursor: pointer; line-height: 1; }
  .gd__modal-title { margin: 0; font-size: 2.2rem; }
  .gd__previews { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .gd__previews figure { margin: 0; background: var(--gd-bg); border-radius: 12px; padding: 1rem; text-align: center; font-size: 1.3rem; color: var(--gd-muted); }
  .gd__previews img { width: 100%; height: auto; display: block; }
  .gd__review { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.6rem; margin: 0; font-size: 1.4rem; }
  .gd__review dt { color: var(--gd-muted); }
  .gd__review dd { margin: 0; font-weight: 600; }

/* ---------- 3. tur: ray, kütüphaneler, ürün tipleri, efektler ---------- */
.gd [hidden] { display: none !important; }
@media (min-width: 1100px) {
  .gd__layout { grid-template-columns: 7.2rem 32rem minmax(0, 1fr) 30rem; }
}
.gd__rail { display: flex; gap: .8rem; }
@media (min-width: 1100px) { .gd__rail { flex-direction: column; position: sticky; top: 1.2rem; } }
@media (max-width: 1099px) { .gd__rail { order: 0; justify-content: center; flex-wrap: wrap; } }
.gd__rail-group { display: flex; gap: .2rem; background: #fff; border: 1px solid var(--gd-line); border-radius: 10px; padding: .3rem; }
@media (min-width: 1100px) { .gd__rail-group { flex-direction: column; } }
.gd__rail-btn { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 6.2rem; padding: .8rem .4rem; border: 0; border-radius: 8px; background: none; color: var(--gd-ink); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.gd__rail-btn:hover:not(:disabled) { background: #f3f4f6; }
.gd__rail-btn:disabled { opacity: .35; cursor: default; }

.gd__types { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.gd__type { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .6rem .3rem; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--gd-ink); }
.gd__type svg { width: 100%; height: 4.4rem; }
.gd__type.is-active { border-color: var(--gd-ink); box-shadow: inset 0 0 0 1px var(--gd-ink); font-weight: 700; }

.gd__ph { display: flex; align-items: center; gap: .8rem; }
.gd__ph-back { border: 0; background: none; padding: .2rem; cursor: pointer; color: var(--gd-ink); display: flex; }
.gd__ph-title { margin: 0; font-size: 1.8rem; font-weight: 600; }
.gd__search { display: flex; align-items: center; gap: .8rem; padding: 0 1rem; border: 1px solid #d1d5db; border-radius: 6px; color: var(--gd-muted); }
.gd__search input { flex: 1; border: 0; padding: 1rem 0; font: inherit; font-size: 1.4rem; background: none; outline: none; min-width: 0; }
.gd__crumb { margin: .2rem 0 0; font-size: 1.2rem; color: var(--gd-muted); }
.gd__crumb strong { color: var(--gd-ink); }
.gd__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; max-height: 46rem; overflow-y: auto; padding: .2rem; overscroll-behavior: contain; }
.gd__tile { display: flex; flex-direction: column; border: 1px solid #e5e7eb; border-radius: 4px; background: #fff; cursor: pointer; padding: 0; overflow: hidden; text-align: center; transition: border-color .15s, box-shadow .15s; }
.gd__tile:hover, .gd__tile.is-active { border-color: var(--gd-sel); box-shadow: 0 0 0 1px var(--gd-sel); }
.gd__tile-art { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: 1rem; background-color: #fff;
  background-image: linear-gradient(45deg, #f1f1f1 25%, transparent 25%), linear-gradient(-45deg, #f1f1f1 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f1f1f1 75%), linear-gradient(-45deg, transparent 75%, #f1f1f1 75%);
  background-size: 14px 14px; background-position: 0 0, 0 7px, 7px -7px, -7px 0; }
.gd__tile-art img, .gd__tile-art svg { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.gd__tile-label { padding: .6rem .4rem; font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: var(--gd-ink); }
.gd__tile--cat .gd__tile-art { padding: 1.6rem; background: #f9fafb; }
.gd__tile--idea .gd__tile-art, .gd__tile--idea-cat .gd__tile-art { padding: .4rem; }
.gd__tile--distress .gd__tile-art { padding: 0; background: #fff; }
.gd__tiles--distress { grid-template-columns: repeat(3, 1fr); max-height: none; }
.gd__tex { display: block; width: 100%; height: 100%; background: #111; -webkit-mask-size: 70%; mask-size: 70%; -webkit-mask-repeat: repeat; mask-repeat: repeat; }
.gd__no-distress { display: block; width: 100%; height: 100%; background: linear-gradient(to top right, transparent calc(50% - 1px), #ef4444 calc(50% - 1px), #ef4444 calc(50% + 1px), transparent calc(50% + 1px)); }
.gd__credit { margin: 0; font-size: 1.05rem; color: var(--gd-muted); line-height: 1.4; }
.gd__field--inline { flex-direction: row; align-items: center; justify-content: space-between; }
.gd__field--inline input[type='color'] { width: 6rem; }

.gd__section { border-top: 1px solid var(--gd-line); padding-top: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.gd__section-title { margin: 0; font-size: 1.3rem; font-weight: 700; }
.gd__section-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: none; padding: 0; cursor: pointer; font-size: 1.3rem; color: var(--gd-ink); text-align: left; }
.gd__section-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.gd__check { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; }
.gd__btn[aria-pressed='true'] { background: var(--gd-sel); border-color: var(--gd-sel); color: #fff; }
.gd__btn:disabled { opacity: .45; cursor: default; }

.gd__stage-wrap { width: 100%; display: flex; justify-content: center; }
.gd__stage-wrap.is-zoomed { overflow: auto; max-height: 78vh; justify-content: flex-start; border-radius: 12px; background: #eceae7; }
.gd__stage-wrap.is-zoomed .gd__stage { flex: none; margin: 2rem; }
.gd.is-picking .gd__el { cursor: crosshair; }
.gd__canvas-hint.is-active { color: var(--gd-sel); font-weight: 600; }

.gd__el-text, .gd__el-content { display: block; }
.gd__el-text { position: relative; }
.gd__el-text.is-curved { white-space: nowrap; }
.gd__ch { position: absolute; white-space: pre; line-height: 1; }
.gd__el-content svg, .gd__el-content img { display: block; width: 100%; height: auto; pointer-events: none; }
.gd__el.is-multi { outline: 1.5px dashed var(--gd-sel); }
.gd__el.is-multi.is-outside { outline-color: #f97316; }

.gd__previews { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.gd__previews figure { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.gd__tabs { grid-template-columns: repeat(5, 1fr); }
.gd__tab { font-size: 1.1rem; padding: 1rem .2rem; }
.gd__tiles { grid-template-columns: repeat(auto-fill, minmax(9.2rem, 1fr)); }
.gd__tiles--distress { grid-template-columns: repeat(auto-fill, minmax(8.4rem, 1fr)); }
.gd__types { grid-template-columns: repeat(auto-fill, minmax(6.4rem, 1fr)); }

/* ---------- 4. tur ---------- */
.gd__canvas-col { min-width: 0; }
.gd__stage-wrap { max-width: 100%; }
.gd__stage-wrap.is-zoomed { display: block; overflow: auto; }
.gd__stage-wrap.is-zoomed .gd__stage { margin: 2rem auto; }
.gd__stage.is-drop { outline: 2px dashed var(--gd-sel); outline-offset: 6px; border-radius: 12px; }
.gd__tile[draggable='true'] { cursor: grab; }
.gd__tile[draggable='true']:active { cursor: grabbing; }

/* renk seçici */
.gd__cinput { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.gd__cbtn { display: flex; align-items: center; gap: .8rem; width: 100%; min-width: 11rem; height: 3.8rem; padding: 0 1rem 0 .5rem; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; cursor: pointer; color: var(--gd-ink); font-size: 1.3rem; }
.gd__cbtn:hover { border-color: var(--gd-ink); }
.gd__cbtn-chip { width: 2.6rem; height: 2.6rem; border-radius: 6px; border: 1px solid rgba(0,0,0,.15); flex: none; }
.gd__cbtn-hex { flex: 1; text-align: left; font-family: ui-monospace, Consolas, monospace; letter-spacing: .02em; }
.gd__cpop { position: fixed; z-index: 1100; width: 30rem; max-height: 70vh; overflow: auto; background: #fff; border: 1px solid #d1d5db; border-radius: 12px; box-shadow: 0 16px 40px rgb(0 0 0 / .18); padding: 1.2rem; }
.gd__cpop-title { margin: .6rem 0 .6rem; font-size: 1.1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gd-muted); }
.gd__cpop-title:first-child { margin-top: 0; }
.gd__cpop-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: .4rem; }
.gd__cpop-sw { aspect-ratio: 1; border-radius: 5px; border: 1px solid rgba(0,0,0,.14); background: var(--c); cursor: pointer; padding: 0; }
.gd__cpop-sw:hover { transform: scale(1.12); }
.gd__cpop-sw.is-active { outline: 2px solid var(--gd-sel); outline-offset: 1px; }
.gd__cpop-empty { grid-column: 1 / -1; font-size: 1.2rem; color: var(--gd-muted); }
.gd__cpop-custom { display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem; }
.gd__cpop-native { position: relative; display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; border: 1px solid #d1d5db; border-radius: 8px; cursor: pointer; font-size: 1.3rem; background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red) left .6rem center / 1.8rem 1.8rem no-repeat, #fff; padding-left: 3rem; }
.gd__cpop-native input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gd__cpop-hex { width: 9rem; font-family: ui-monospace, Consolas, monospace; text-transform: uppercase; }

/* font listesi: bilgisayar fontları butonu */
.gd__font-local { border-style: solid; border-color: var(--gd-sel); background: #eff6ff; color: #1e3a8a; font-size: 1.2rem; line-height: 1.35; }

/* kesme penceresi */
.gd__cut-box { width: min(100%, 86rem); }
.gd__cut-stage { position: relative; align-self: center; max-width: 100%; border-radius: 10px; overflow: hidden;
  background-color: #fff; background-image: linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; }
.gd__cut-stage img { display: block; max-width: 100%; max-height: 56vh; width: auto; height: auto; user-select: none; -webkit-user-drag: none; }
.gd__cut-stage canvas { position: absolute; left: 0; top: 0; cursor: crosshair; touch-action: none; }
.gd__cut-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .8rem; }
.gd__btn--bag { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; background: #ffd60a; border: 1.5px solid #000; color: #000; text-transform: uppercase; letter-spacing: .04em; }
.gd__btn--bag:hover { filter: brightness(.95); border-color: #000; }

/* Renk kartelası butonu (ürün rengi) */
.gd__swatch.gd__swatch--more { background: conic-gradient(#ef4444, #f59e0b, #facc15, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444); }

/* ---------- All-over print ---------- */
.gd__canvas-col { position: relative; }
.gd__rail-btn--aop.is-on { background: #ffd60a; color: #000; }
.gd__aop { position: static; width: 100%; margin-top: 1.2rem; padding: 1.4rem; border-radius: 14px; background: #fff; border: 1.5px solid #ffd60a; box-shadow: 0 6px 18px rgb(0 0 0 / .06); display: grid; gap: 1rem; } /* sol araç sütununda kart: tasarımı örtmez */
.gd__aop[hidden] { display: none; }
.gd__aop-head { display: flex; align-items: center; justify-content: space-between; font-size: 1.5rem; }
.gd__aop-x { width: 3.2rem; height: 3.2rem; border: 0; background: none; font-size: 2.4rem; line-height: 1; cursor: pointer; }
.gd__aop-text, .gd__aop-note { margin: 0; font-size: 1.3rem; line-height: 1.5; color: #4b5563; }
.gd__aop-note { font-size: 1.2rem; color: #6b7280; }
.gd__aop-msg { margin: 0; padding: .8rem 1rem; border-radius: 8px; background: #fef3c7; font-size: 1.25rem; color: #92400e; }
.gd__aop-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.gd__aop-btn { flex: 1; min-height: 4rem; padding: 0 1.2rem; border-radius: 999px; border: 1.5px solid #111827; background: #fff; font: inherit; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.gd__aop-btn--main { background: #ffd60a; border-color: #000; }
.gd__aop-btn--danger { border-color: #fecaca; color: #b91c1c; }
.gd__aop-row { display: flex; gap: 1rem; align-items: center; }
.gd__aop-thumb { width: 5.6rem; height: 5.6rem; object-fit: contain; border-radius: 10px; background: repeating-conic-gradient(#f3f4f6 0 25%, #fff 0 50%) 0 0 / 12px 12px; border: 1px solid #e5e7eb; }
.gd__aop-layouts { display: flex; gap: .4rem; flex: 1; }
.gd__aop-layouts button { flex: 1; min-height: 3.4rem; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; font: inherit; font-size: 1.2rem; font-weight: 600; cursor: pointer; }
.gd__aop-layouts button[aria-pressed='true'] { background: #111827; border-color: #111827; color: #fff; }
.gd__aop-range { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; font-size: 1.25rem; font-weight: 600; }
.gd__aop-range output { font-weight: 500; color: #6b7280; }
.gd__aop-range input { grid-column: 1 / -1; width: 100%; accent-color: #111827; }

.gd__aop-fee { margin: 0; padding: .8rem 1rem; border-radius: 10px; background: #fffbe6; border: 1px solid #fde68a; font-size: 1.25rem; line-height: 1.45; color: #374151; }
.gd__sum-row--aop { color: #92400e; font-weight: 600; }

/* ---------- Model fotoğrafı önizlemesi ---------- */
.gd__mp { display: grid; gap: .8rem; }
.gd__mp-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.gd__mp-head .gd__panel-title { margin: 0; }
.gd__mp-hint { font-size: 1.1rem; }
.gd__mp-stage { position: relative; aspect-ratio: 9 / 16; width: 100%; border-radius: 14px; overflow: hidden; background: #ececec; }
.gd__mp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gd__mp-design { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; transform-origin: 50% 40%; }
.gd__mp-design.is-in { animation: gd-mp-in .8s cubic-bezier(.2, .8, .2, 1) both; }
.gd__mp-design.is-out { animation: gd-mp-out .5s cubic-bezier(.5, 0, .75, 0) both; }
@keyframes gd-mp-in {
  0% { transform: translateX(-115%) rotate(-10deg) scale(1.15); opacity: 0; }
  55% { transform: translateX(5%) rotate(1.5deg) scale(1.04); opacity: 1; }
  78% { transform: translateX(-1.5%) rotate(-.5deg) scale(.99); }
  100% { transform: none; opacity: 1; }
}
@keyframes gd-mp-out { to { transform: translateX(115%) rotate(10deg) scale(.92); opacity: 0; } }
.gd__mp-img--flat { object-fit: contain; padding: 1.2rem; background: #f5f5f4; }
.gd__mp-status { position: absolute; left: .8rem; right: .8rem; bottom: .8rem; margin: 0; padding: .5rem .9rem; border-radius: 999px; background: rgb(255 255 255 / .9); text-align: center; font-size: 1.15rem; color: #4b5563; }
.gd__mp-status[hidden] { display: none; }
.gd__mp-size { position: absolute; top: .8rem; left: .8rem; padding: .3rem .9rem; border-radius: 999px; background: rgb(255 255 255 / .92); font-size: 1.15rem; font-weight: 700; color: #111827; box-shadow: 0 2px 8px rgb(0 0 0 / .08); }
.gd__mp-size:empty { display: none; }
.gd__mp-bar { display: flex; flex-wrap: wrap; gap: .6rem; }
.gd__mp-sides, .gd__mp-who { display: flex; flex: 1; gap: .3rem; padding: .3rem; border-radius: 999px; background: #f3f4f6; }
.gd__mp-sides[hidden], .gd__mp-who[hidden], .gd__mp-who button[hidden] { display: none; }
.gd__mp-sides button, .gd__mp-who button { flex: 1; min-height: 3.4rem; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 1.25rem; font-weight: 700; color: #4b5563; cursor: pointer; }
.gd__mp-sides button[aria-pressed='true'] { background: #ffd60a; color: #000; }
.gd__mp-who button[aria-pressed='true'] { background: #111827; color: #fff; }
@media (max-width: 1099px) { .gd__mp-stage { max-width: 36rem; margin: 0 auto; } }

.gd__aop-layouts { flex-wrap: wrap; }
.gd__aop-layouts button { min-width: 5.4rem; }
.gd__aop-sides { display: flex; flex-wrap: wrap; gap: .4rem; }
.gd__aop-sides:empty { display: none; }
.gd__aop-sides button { flex: 1; min-height: 3.4rem; padding: 0 .8rem; border-radius: 999px; border: 1px solid #d1d5db; background: #fff; font: inherit; font-size: 1.2rem; font-weight: 600; cursor: pointer; }
.gd__aop-sides button[aria-pressed='true'] { background: #ffd60a; border-color: #000; }
.gd__aop-btn[aria-pressed='true'] { background: #111827; border-color: #111827; color: #fff; }
.gd__stage.is-aop-drag { cursor: move; }
.gd__stage.is-aop-drag .gd__zone { pointer-events: none; }
/* Clip art: klasör kütüphanesinden gelenler sarı çerçeveli */
.gd__tile--mine { box-shadow: inset 0 0 0 2px #ffd60a; }
/* Mobil: model önizlemesi tasarım alanının hemen altında (kullanıcı yaptığını anında görür) */
@media (max-width: 1099px) {
  .gd__side-panel { display: contents; }
  .gd__side-panel > * { order: 3; }
  .gd__side-panel > .gd__mp { order: 1; }
}
.gd__aop-sides-note { flex: 1 1 100%; margin: 0 0 .2rem; font-size: 1.2rem; line-height: 1.4; color: #374151; }
/* Model önizlemesi: yakınlaştırma, kaydırma, ön ↔ arka dönüş */
.gd__mp-view { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.gd__mp-stage { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.gd__mp-stage.can-turn { cursor: grab; }
.gd__mp-stage.is-zoomed { cursor: move; touch-action: none; }
.gd__mp-stage.is-dragging { cursor: grabbing; }
.gd__mp-zoom { position: absolute; top: .8rem; right: .8rem; z-index: 2; display: flex; flex-direction: column; gap: .4rem; }
.gd__mp-zoom button { width: 3.6rem; height: 3.6rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / .94); color: #111827; font: 700 2rem/1 inherit; cursor: pointer; box-shadow: 0 2px 10px rgb(0 0 0 / .15); display: flex; align-items: center; justify-content: center; }
.gd__mp-zoom button:hover:not(:disabled) { background: #ffd60a; }
.gd__mp-zoom button:disabled { opacity: .45; cursor: default; }
.gd__mp-tip { position: absolute; left: 50%; bottom: .8rem; transform: translateX(-50%); z-index: 2; padding: .4rem 1.2rem; border-radius: 999px; background: rgb(17 24 39 / .72); color: #fff; font-size: 1.15rem; font-weight: 600; white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.gd__mp-tip::before { content: '⟷ '; }
.gd__mp-tip.is-hidden, .gd__mp-tip[hidden] { opacity: 0; }
.gd__mp-stage .gd__mp-status { z-index: 3; }
.gd__mp-stage .gd__mp-size { z-index: 2; }
