/* ==========================================================================
   qt. Sipariş Simülasyonu — tam ekran, oyunlaştırılmış ürün seçimi
   Katmanlar: arka plan yazısı (0) → 3D sahne (1) → arayüz (2+)
   ========================================================================== */
.sim-body { overflow: hidden; background: var(--cream); overscroll-behavior: none; }
.sim {
  position: relative; height: 100vh; height: 100svh; display: flex; flex-direction: column; isolation: isolate;
  background:
    radial-gradient(55% 45% at 50% 50%, rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, 0) 70%),
    radial-gradient(90% 60% at 50% 100%, var(--blush) 0, rgba(247, 227, 223, 0) 60%),
    var(--cream);
  user-select: none; -webkit-user-select: none;
}

/* Arka plandaki ürün türü — içi dolu, kıyafetlerin arkasında */
.sim-bgword {
  position: absolute; top: 46%; left: 50%; z-index: 0; transform: translate(-50%, -50%); pointer-events: none;
  /* uzun kelimeler (SWEATSHIRT) ekrana sığsın: --len harf sayısı */
  font-family: var(--sans); font-size: min(clamp(90px, 18vw, 290px), calc(150vw / var(--len, 7))); font-weight: 700; letter-spacing: -.05em; line-height: .8; white-space: nowrap;
  color: #f2e0d8;
  transition: opacity .35s, transform .55s var(--ease);
}
.sim-bgword.is-swap { opacity: 0; transform: translate(-50%, -40%); }
.sim:not([data-step="1"]) .sim-bgword { opacity: 0; }

.sim-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; display: block; }

/* ---------- Üst çubuk ---------- */
.sim-top {
  position: relative; z-index: 5; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center;
  padding: 12px var(--gutter); padding-top: calc(12px + env(safe-area-inset-top));
}
.sim-top__logo img { height: 42px; width: auto; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.sim-top__logo:hover img { transform: rotate(-10deg) scale(1.08); }
.sim-close {
  justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); transition: transform .3s, background .2s, color .2s;
}
.sim-close:hover { transform: rotate(90deg); background: var(--ink); color: #fff; }
.sim-close svg { width: 17px; height: 17px; }

/* Adım göstergesi: bulunduğun adımı animasyonla gösterir */
.sim-progress {
  justify-self: center; cursor: default; display: flex; align-items: center; gap: 12px; padding: 5px 16px 5px 5px; border-radius: 99px;
  background: var(--paper); box-shadow: 0 6px 22px rgba(94, 18, 20, .08);
}
.sim-progress__ic {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; flex: none;
  animation: prog-flip .6s cubic-bezier(.3, 1.4, .5, 1);
}
.sim-progress__ic svg { width: 19px; height: 19px; }
@keyframes prog-flip { 0% { transform: rotateY(90deg) scale(.6); } 100% { transform: none; } }
.sim-progress__txt { display: grid; min-width: 118px; overflow: hidden; }
.sim-progress__txt small { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sim-progress__txt b { font-size: 14px; font-weight: 700; white-space: nowrap; animation: prog-txt .5s var(--ease) both; }
.sim-progress__txt small { animation: prog-txt .5s var(--ease) both; animation-delay: .06s; }
@keyframes prog-txt { from { opacity: 0; transform: translateY(70%); } }
.sim-progress__bar { display: flex; gap: 5px; }
.sim-progress__bar i { position: relative; width: 26px; height: 6px; border-radius: 6px; background: #eadfd6; overflow: hidden; }
.sim-progress__bar i.is-done { background: var(--ink); }
.sim-progress__bar i.is-cur::after { content: ""; position: absolute; inset: 0; border-radius: 6px; background: var(--red); transform-origin: left; animation: prog-fill .9s .15s var(--ease) both; }
@keyframes prog-fill { from { transform: scaleX(0); } }

/* ---------- Adımlar ---------- */
.sim-step { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; }
.sim-step[hidden] { display: none; }

.sim-head { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 var(--gutter); }
.sim-head h1 { margin: 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.015em; }

/* Kadın / Erkek seçici — kayan arka plan */
.sim-gender { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 99px; background: var(--paper); box-shadow: 0 3px 12px rgba(27, 21, 21, .07); }
.sim-gender button { position: relative; z-index: 1; min-width: 78px; height: 30px; padding: 0 14px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--muted); transition: color .3s; }
.sim-gender button[aria-checked="true"] { color: #fff; }
.sim-gender__pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 99px; background: var(--ink); transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
.sim-gender[data-active="erkek"] .sim-gender__pill { transform: translateX(100%); }

/* ---------- Carousel alanı (3D sahne bunun ortasına çizilir) ---------- */
.sim-stage { position: relative; z-index: 2; width: 100%; flex: 1; min-height: 220px; cursor: grab; touch-action: pan-y; outline: none; perspective: 1400px; }
.sim-stage.is-dragging { cursor: grabbing; }
.sim-stage:focus-visible::after { content: ""; position: absolute; inset: 8px 18%; border-radius: 20px; box-shadow: inset 0 0 0 2px var(--red); pointer-events: none; }
.sim-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.sim[data-engine="gl"] .sim-track { display: none; }
.sim-step--label .sim-stage { flex: 1; }

/* 2D yedek (WebGL yoksa) */
.sim-item {
  --w: min(416px, 36vw);
  position: absolute; left: 50%; top: 50%; width: var(--w); height: calc(var(--w) * 1.15);
  margin: calc(var(--w) * -.575) 0 0 calc(var(--w) * -.5);
  display: grid; place-items: center; will-change: transform, opacity;
}
.sim-item svg { width: 100%; height: 100%; overflow: visible; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(94, 18, 20, .12)); }
.sim-track.is-intro .sim-item { animation: item-in .9s cubic-bezier(.2, .9, .2, 1) both; animation-delay: calc(var(--k) * 70ms); }
@keyframes item-in { from { opacity: 0; translate: 50vw 0; } }
.sim-track.is-out .sim-item { transition: opacity .28s, scale .28s; opacity: 0 !important; scale: .85; }
.sim-track.is-picking .sim-item:not(.is-center) { transition: opacity .35s, translate .5s var(--ease); opacity: 0 !important; translate: calc(var(--side) * 30vw) 0; }

.sim-arrow {
  position: absolute; top: 50%; z-index: 4; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 6px 20px rgba(27, 21, 21, .1); transition: transform .25s var(--ease), opacity .25s, background .2s, color .2s;
}
.sim-arrow:hover { transform: scale(1.08); background: var(--ink); color: #fff; }
.sim-arrow:disabled { opacity: 0; pointer-events: none; }
.sim-arrow svg { width: 19px; height: 19px; }
.sim-arrow--prev { left: max(var(--gutter), 7vw); }
.sim-arrow--next { right: max(var(--gutter), 7vw); }

.sim-hint {
  position: absolute; left: 50%; bottom: 2%; z-index: 4; display: flex; align-items: center; gap: 8px; transform: translateX(-50%);
  padding: 7px 13px; border-radius: 99px; background: rgba(27, 21, 21, .82); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
  pointer-events: none; transition: opacity .4s;
}
.sim-hint svg { width: 17px; height: 17px; animation: swipe 1.6s ease-in-out infinite; }
.sim-hint.is-gone { opacity: 0; }
@keyframes swipe { 0%, 100% { transform: translateX(-6px) rotate(-8deg); } 50% { transform: translateX(6px) rotate(8deg); } }

/* ---------- Ürün bilgisi ---------- */
.sim-info { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gutter); min-height: 122px; flex: none; }
.sim-count { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.sim-name { margin: 4px 0 6px; font-family: var(--sans); font-weight: 700; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.02em; color: var(--red); transition: opacity .2s, transform .3s var(--ease); }
.sim-name.is-swap { opacity: 0; transform: translateY(8px); }
.sim-meta { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.sim-colors { display: flex; gap: 10px; }
.sim-colors button {
  width: 24px; height: 24px; border-radius: 50%; background: var(--c); overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); transition: transform .2s, box-shadow .2s;
}
.sim-colors button:hover { transform: scale(1.12); }
.sim-colors button[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 3px var(--cream), 0 0 0 4.5px var(--ink); }

/* ---------- Basılan "Seç" butonu (tepeciğin üstünde) ---------- */
.sim-cta { position: relative; z-index: 3; width: 100%; height: 192px; flex: none; display: flex; justify-content: center; align-items: flex-end; }
.sim-hill { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 124px; fill: #fff; filter: drop-shadow(0 -10px 24px rgba(212, 45, 45, .07)); }
.sim-press {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-bottom: calc(34px + env(safe-area-inset-bottom)); padding: 0; -webkit-tap-highlight-color: transparent;
}
.sim-press:focus-visible { outline: none; }
.sim-press:focus-visible .sim-press__base { box-shadow: 0 0 0 4px var(--cream), 0 0 0 6px var(--red); }

.sim-press__bubble {
  position: relative; display: grid; place-items: center; min-width: 96px; height: 54px; padding: 0 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 8px 22px rgba(94, 18, 20, .12);
  font-family: var(--script); font-weight: 400; font-size: 30px; letter-spacing: 0; color: var(--red-deep);
  animation: bubble-bob 2.4s ease-in-out infinite; transition: transform .2s;
}
.sim-press__bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -13px; margin-left: -13px;
  border: 13px solid transparent; border-bottom: 0; border-top: 16px solid #fff;
}
@keyframes bubble-bob { 50% { transform: translateY(-6px); } }

.sim-press__base {
  position: relative; display: block; width: 172px; height: 80px; border-radius: 36px;
  background: linear-gradient(180deg, #fbf6f1 0%, #e9ddd3 100%);
  box-shadow: inset 0 2px 0 #fff, inset 0 -6px 12px rgba(94, 18, 20, .08), 0 14px 22px rgba(94, 18, 20, .14), 0 3px 0 #d8c9bd;
  transition: box-shadow .2s;
}
.sim-press__ring {
  position: absolute; inset: 11px 18px 13px; border-radius: 28px;
  background: linear-gradient(180deg, #3a2f30, #1c1516);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .6);
}
.sim-press__dome {
  position: absolute; inset: 5px 6px 7px; border-radius: 23px; display: block;
  background: radial-gradient(120% 95% at 50% 12%, #ff9a90 0%, #ef4a42 38%, #d42d2d 62%, #a51d21 100%);
  box-shadow: 0 9px 0 #7f1316, inset 0 -10px 14px rgba(80, 0, 0, .3), inset 0 6px 10px rgba(255, 255, 255, .35), 0 0 22px rgba(255, 90, 80, .35);
  transform: translateY(-10px);
  transition: transform .12s ease, box-shadow .12s ease;
  animation: dome-glow 2.4s ease-in-out infinite;
}
.sim-press__dome::before { /* üst parlama */
  content: ""; position: absolute; left: 16%; right: 16%; top: 7%; height: 38%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0));
}
.sim-press__dome::after { /* ışık noktası */
  content: ""; position: absolute; left: 50%; top: 30%; width: 14px; height: 10px; margin-left: -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px 6px rgba(255, 255, 255, .7); opacity: .85;
}
@keyframes dome-glow { 50% { filter: brightness(1.08) saturate(1.05); } }
.sim-press:hover .sim-press__dome { transform: translateY(-12px); }
.sim-press.is-down .sim-press__dome, .sim-press:active .sim-press__dome { transform: translateY(-1px); box-shadow: 0 1px 0 #7f1316, inset 0 -6px 10px rgba(80, 0, 0, .3), inset 0 6px 10px rgba(255, 255, 255, .3), 0 0 30px rgba(255, 90, 80, .5); }
.sim-press.is-down .sim-press__bubble, .sim-press:active .sim-press__bubble { transform: scale(.92) translateY(4px); animation: none; }
.sim-press.is-fired .sim-press__bubble { animation: bubble-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bubble-pop { 40% { transform: scale(1.18) translateY(-8px); } }

/* ---------- Telefon ---------- */
@media (max-width: 760px) {
  .sim-top { grid-template-columns: 40px 1fr 40px; gap: 6px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .sim-top__logo img { height: 34px; }
  .sim-progress { gap: 8px; padding-right: 10px; }
  .sim-progress__ic { width: 32px; height: 32px; }
  .sim-progress__txt { min-width: 0; }
  .sim-progress__txt b { font-size: 12.5px; }
  .sim-progress__bar i { width: 14px; height: 5px; }
  .sim-item { --w: min(340px, 74vw); }
  .sim-step--pick .sim-info { align-items: flex-start; text-align: left; width: 100%; padding: 0 var(--gutter); }
  .sim-arrow { display: none; }
  .sim-name { font-size: 25px; }
  .sim-info { min-height: 112px; }
  .sim-cta { height: 168px; }
  .sim-hill { height: 112px; }
  .sim-press { transform: scale(.86); transform-origin: bottom center; margin-bottom: calc(22px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .sim-progress__bar { display: none; }
}
@media (max-height: 720px) and (min-width: 761px) {
  .sim-cta { height: 170px; }
  .sim-hill { height: 110px; }
  .sim-press { transform: scale(.88); transform-origin: bottom center; margin-bottom: 26px; }
  .sim-name { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .sim-press__bubble, .sim-press__dome { animation: none; }
}


/* ==========================================================================
   Ortak: bağlantı butonu, pasif buton, alt başlık
   ========================================================================== */
.sim-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sim-link:hover { color: var(--red); }
.sim-sub { margin: 0; font-size: 13px; color: var(--muted); }
.sim-press[disabled] { cursor: not-allowed; }
.sim-press[disabled] .sim-press__dome { background: radial-gradient(120% 95% at 50% 12%, #f2e7e2 0%, #d9ccc6 60%, #bfb1aa 100%); box-shadow: 0 9px 0 #a4968f, inset 0 -10px 14px rgba(0, 0, 0, .12), inset 0 6px 10px rgba(255, 255, 255, .5); animation: none; }
.sim-press[disabled] .sim-press__dome::after { opacity: .3; }
.sim-press[disabled] .sim-press__bubble { color: #b7aaa4; animation: none; }
.sim-press--wide .sim-press__bubble { min-width: 160px; font-size: 27px; }

/* ==========================================================================
   Adım 2: etiket bölgesi
   ========================================================================== */
.sim-zone { position: relative; flex: 1; min-height: 0; width: min(1240px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(16px, 3vw, 48px); align-items: center; padding: 0 var(--gutter); }
.sim-zone__stage { position: relative; height: 100%; min-height: 300px; cursor: grab; touch-action: pan-y; }
.sim-zone__stage.is-dragging { cursor: grabbing; }
.sim-zone__stage svg { position: absolute; inset: 6%; width: 88%; height: 88%; overflow: visible; filter: drop-shadow(0 26px 34px rgba(94, 18, 20, .18)); transition: transform .6s var(--ease); }
.sim-zone__stage.is-back svg { transform: scaleX(-1); }
.sim-rotate-hint {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 99px; background: rgba(27, 21, 21, .8); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none;
  transition: opacity .4s;
}
.sim-rotate-hint svg { position: static; width: 18px; height: 18px; filter: none; animation: spin-hint 2.4s ease-in-out infinite; }
.sim-rotate-hint.is-gone { opacity: 0; }
@keyframes spin-hint { 50% { transform: scaleX(-1); } }

.sim-zone__panel { position: relative; z-index: 5; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 16px 40px rgba(94, 18, 20, .08); animation: step-in .6s .15s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(20px); } }
.sim-zone__panel h1 { margin: 0 0 6px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.sim-zone__lead { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.sim-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px; border-radius: 99px; background: var(--cream); font-size: 12px; font-weight: 700; }
.sim-chip i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.sim-sides { display: inline-flex; padding: 3px; margin-bottom: 12px; border-radius: 99px; background: var(--cream); }
.sim-sides button { height: 30px; padding: 0 16px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.sim-sides button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.sim-zones { display: grid; gap: 6px; }
.sim-zone-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px 9px 9px; border-radius: 14px; text-align: left;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, background .2s, transform .2s;
}
.sim-zone-btn:hover { box-shadow: inset 0 0 0 1.5px var(--red); transform: translateX(2px); }
.sim-zone-btn b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--blush); color: var(--red); font-family: var(--sans); font-weight: 700; font-size: 14px; }
.sim-zone-btn span { flex: 1; font-size: 13.5px; font-weight: 600; }
.sim-zone-btn small { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sim-zone-btn[aria-checked="true"] { background: var(--red); box-shadow: none; color: #fff; }
.sim-zone-btn[aria-checked="true"] b { background: #fff; }
.sim-zone-btn[aria-checked="true"] small { color: rgba(255, 255, 255, .8); }

/* Ürün üzerindeki numaralı noktalar */
.sim-markers { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: none; }
.sim[data-step="2"] .sim-markers { display: block; }
.sim-marker {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; padding: 0; pointer-events: auto;
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--red);
  font-family: var(--sans); font-weight: 700; font-size: 18px; line-height: 1;
  box-shadow: 0 0 0 3px var(--red), 0 8px 20px rgba(94, 18, 20, .3);
  transition: opacity .25s, scale .25s cubic-bezier(.3, 1.6, .5, 1), background .2s, color .2s;
  will-change: translate; cursor: pointer;
}
.sim-marker::before { /* nabız halkası: tıklanabilir olduğunu gösterir */
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--red); pointer-events: none;
  animation: marker-pulse 1.8s ease-out infinite;
}
@keyframes marker-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
.sim-marker__label {
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); padding: 5px 10px; border-radius: 99px; white-space: nowrap;
  background: var(--ink); color: #fff; font-family: var(--sans); font-size: 12px; font-weight: 600; pointer-events: none;
  opacity: .9; transition: opacity .2s, transform .2s;
}
.sim-marker:hover { scale: 1.15; }
.sim-marker:hover .sim-marker__label { opacity: 1; }
.sim-marker:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.sim-marker.is-hidden { opacity: 0; scale: .5; pointer-events: none; }
.sim-marker.is-selected { background: var(--red); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--red), 0 10px 24px rgba(212, 45, 45, .4); }
.sim-marker.is-selected::before { animation: none; opacity: 0; }
.sim-marker.is-selected .sim-marker__label { background: var(--red); }

/* ==========================================================================
   Adım 3: etiket kartları (2D yedek)
   ========================================================================== */
.sim-card {
  --w: min(240px, 26vw);
  position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--w); margin: calc(var(--w) * -.5) 0 0 calc(var(--w) * -.5);
  border-radius: 28px; background: var(--c, #fffaf5); will-change: transform, opacity;
  box-shadow: 0 10px 0 rgba(0, 0, 0, .06), 0 24px 40px rgba(94, 18, 20, .14), inset 0 2px 0 rgba(255, 255, 255, .9);
  display: grid; place-items: center;
}
.sim-card::after { content: ""; position: absolute; inset: 14%; border-radius: 18px; border: 2px dashed rgba(212, 45, 45, .25); }
.sim-card span { font-family: var(--sans); font-weight: 700; font-size: 48px; letter-spacing: -.03em; color: rgba(212, 45, 45, .24); }

/* ==========================================================================
   Adım 4: sipariş
   ========================================================================== */
.sim-step--order { overflow-y: auto; overscroll-behavior: contain; }
.sim-step--order .sim-cta { pointer-events: none; }
.sim-step--order .sim-press { pointer-events: auto; } /* sadece buton tıklanır; arkadaki adet/beden erişilebilir kalır */
.sim-step--order .sim-cta { position: sticky; bottom: 0; z-index: 6; background: linear-gradient(to top, rgba(251, 246, 239, .96) 40%, rgba(251, 246, 239, 0)); }
.sim-order { position: relative; flex: 1; width: min(1180px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(16px, 3vw, 48px); align-items: center; padding: 0 var(--gutter); }
.sim-order__product { position: relative; height: 100%; min-height: 300px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
.sim-order__stage { position: relative; height: 100%; min-height: 300px; }
.sim-order__stage svg { position: absolute; inset: 8%; width: 84%; height: 84%; overflow: visible; filter: drop-shadow(0 26px 34px rgba(94, 18, 20, .18)); }

/* "Sana özel tasarım kıyafetin hazır!" */
.sim-ready { position: relative; z-index: 5; padding: 0 10px 0 10px; }
.sim-ready__tag {
  display: inline-flex; align-items: center; padding: 7px 15px; border-radius: 99px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(212, 45, 45, .28);
  transform: rotate(-4deg); animation: ready-pop .7s .2s cubic-bezier(.3, 1.6, .5, 1) both;
}
/* satır kırılmadan iki satır: "tasarım kıyafetin" / "hazır!" — eğik harfler taşmasın diye pay */
.sim-ready__title { margin: 14px 0 0; padding: 4px 6px 10px; font-family: var(--script); font-weight: 400; font-size: clamp(30px, 3.3vw, 50px); line-height: 1.02; color: var(--ink); }
.sim-ready__title span { display: block; white-space: nowrap; animation: ready-in .7s .35s var(--ease) both; }
.sim-ready__title em { display: inline-block; margin-top: .06em; font-style: normal; font-size: 1.3em; color: var(--red); white-space: nowrap; transform: rotate(-3deg); animation: ready-pop .8s .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes ready-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes ready-pop { 0% { opacity: 0; scale: .5; } 100% { opacity: 1; scale: 1; } }

.sim-added {
  display: flex; align-items: center; gap: 6px; margin: -6px 0 14px; padding: 8px 12px; border-radius: 10px;
  background: #e3f3e9; color: #1d6b3f; font-size: 12.5px; font-weight: 600; animation: ready-pop .5s cubic-bezier(.3, 1.6, .5, 1);
}
.sim-added[hidden] { display: none; }
.sim-added a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sim-order__panel { position: relative; z-index: 5; padding: 24px; border-radius: 22px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 16px 40px rgba(94, 18, 20, .08); animation: step-in .6s .15s var(--ease) both; }
.sim-order__panel h1 { margin: 0 0 14px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.sim-summary { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 12px; margin: 0 0 16px; padding: 14px; border-radius: 14px; background: var(--cream); font-size: 13px; align-items: center; }
.sim-summary dt { color: var(--muted); }
.sim-summary dd { margin: 0; font-weight: 600; }
.sim-summary dd i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.sim-summary button { font-size: 12px; font-weight: 600; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.sim-field { margin-bottom: 14px; }
.sim-field__head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.sim-field__head span { color: var(--muted); }
.sim-field.is-error .sim-field__head span { color: var(--red); font-weight: 600; }
.sim-field.is-error .sim-sizes { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.sim-sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 6px; }
.sim-sizes button { height: 40px; border-radius: 10px; font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--paper); transition: background .2s, color .2s, box-shadow .2s; }
.sim-sizes button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.sim-sizes button[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.sim-field--row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.sim-qty { display: inline-flex; align-items: center; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--paper); }
.sim-qty button { width: 38px; height: 38px; border-radius: 50%; font-size: 18px; }
.sim-qty button:hover { background: var(--cream); }
.sim-qty output { min-width: 28px; text-align: center; font-weight: 700; }
.sim-price { display: grid; gap: 6px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; }
.sim-price div { display: flex; justify-content: space-between; }
.sim-price .tot { margin-top: 4px; font-size: 17px; font-weight: 700; }
.sim-price .tot span:last-child { color: var(--red); }
.sim-note { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }

.sim-done {
  position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: radial-gradient(60% 50% at 50% 45%, #fff 0, rgba(251, 246, 239, .97) 70%); animation: step-in .6s var(--ease) both;
}
.sim-done[hidden] { display: none; }
.sim-done img { width: 130px; height: auto; margin-bottom: 14px; animation: pop .7s cubic-bezier(.3, 1.8, .5, 1); }
.sim-done h1 { margin: 0 0 12px; font-family: var(--script); font-weight: 400; font-size: clamp(52px, 6.4vw, 82px); line-height: 1; color: var(--red); }
.sim-done p { max-width: 460px; margin: 0 0 24px; color: var(--muted); }
.sim-done__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sim-confetti { position: fixed; inset: 0; z-index: 9; pointer-events: none; overflow: hidden; }
.sim-confetti img { position: absolute; top: -80px; width: 44px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(115vh) rotate(540deg); } }

@media (max-width: 760px) {
  .sim-zone { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(220px, 1fr) auto; gap: 8px; align-items: stretch; }
  .sim-zone__stage { min-height: 220px; }
  .sim-zone__panel { padding: 14px; border-radius: 16px; }
  .sim-zone__panel h1 { font-size: 19px; }
  .sim-zone__lead { display: none; }
  .sim-zone__panel .sim-chip { margin-bottom: 8px; }
  .sim-sides { position: absolute; top: 12px; right: 12px; margin: 0; }
  .sim-zones { grid-template-columns: 1fr 1fr; }
  .sim-zone-btn { padding: 7px 8px 7px 7px; gap: 8px; }
  .sim-zone-btn b { width: 28px; height: 28px; font-size: 13px; }
  .sim-zone-btn span { font-size: 12.5px; }
  .sim-zone-btn small { display: none; }
  .sim-zone__panel .sim-link { display: none; }
  .sim-marker { width: 40px; height: 40px; margin: -20px 0 0 -20px; font-size: 16px; }
  .sim-marker__label { display: none; }
  .sim-card { --w: min(210px, 52vw); }
  .sim-order { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 8px; }
  .sim-order__product { min-height: 160px; height: 24vh; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .sim-order__stage { min-height: 160px; }
  .sim-ready { padding: 0 4px; }
  .sim-ready__tag { font-size: 9.5px; padding: 5px 11px; }
  .sim-ready__title { font-size: clamp(19px, 5.6vw, 26px); margin-top: 8px; padding: 2px 4px 6px; }
  .sim-step--order .sim-cta { height: 138px; }
  .sim-step--order .sim-hill { height: 92px; }
  .sim-step--order .sim-press { transform: scale(.74); margin-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .sim-order__panel h1 { font-size: 20px; margin-bottom: 10px; }
  .sim-summary { padding: 10px 12px; gap: 6px 10px; }
  .sim-order__panel { padding: 16px; }
}


/* 1. adım: ürün adı ve detayı sol alt köşede (masaüstü) — sahne büyür, ürünler daha büyük görünür */
@media (min-width: 761px) {
  .sim-step--pick .sim-info {
    position: absolute; left: max(var(--gutter), 4vw); bottom: 40px; z-index: 4;
    align-items: flex-start; text-align: left; min-height: 0; max-width: 360px; padding: 0;
  }
  .sim-step--pick .sim-name { margin-top: 2px; }
}


/* ==========================================================================
   Adım 1: ürün görselleri — solda dikey şerit (3'erli sayfa) + büyük görüntüleyici
   ========================================================================== */
.sim-gallery {
  --tw: 68px; --th: 80px; --gap: 8px;
  position: absolute; left: max(var(--gutter), 3vw); top: 50%; z-index: 5; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: default;
  animation: step-in .6s .3s var(--ease) both;
}
.sim-gallery__win { height: calc(3 * var(--th) + 2 * var(--gap)); overflow: hidden; padding: 0 6px; margin: 0 -6px; }
.sim-gallery__track {
  display: grid; gap: var(--gap); padding: 0;
  transform: translateY(calc(var(--page, 0) * -3 * (var(--th) + var(--gap)))); transition: transform .5s var(--ease);
}
.sim-thumb {
  position: relative; width: var(--tw); height: var(--th); padding: 0; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; background: radial-gradient(90% 80% at 50% 40%, #fff 0, #fbf3ee 100%);
  box-shadow: inset 0 0 0 1px rgba(27, 21, 21, .07), 0 4px 12px rgba(94, 18, 20, .06);
  transition: transform .25s var(--ease), box-shadow .2s;
}
.sim-thumb:hover { transform: translateX(3px); box-shadow: inset 0 0 0 1.5px var(--red), 0 6px 16px rgba(94, 18, 20, .1); }
.sim-thumb:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sim-thumb img, .sim-thumb svg { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sim-thumb.is-ready > * { animation: thumb-in .35s var(--ease); }
@keyframes thumb-in { from { opacity: 0; transform: scale(.92); } }
.sim-thumb__ph { width: 44%; height: 44%; border-radius: 50%; background: linear-gradient(90deg, #f3e7e1 0, #fff 50%, #f3e7e1 100%); background-size: 200% 100%; animation: thumb-ph 1.2s linear infinite; }
@keyframes thumb-ph { to { background-position: -200% 0; } }
.sim-gallery__nav {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper);
  box-shadow: 0 4px 12px rgba(27, 21, 21, .1); transition: opacity .25s, visibility .25s, transform .2s, background .2s, color .2s;
}
.sim-gallery__nav:hover { background: var(--ink); color: #fff; }
.sim-gallery__nav svg { width: 16px; height: 16px; }
.sim-gallery__nav.is-off { opacity: 0; visibility: hidden; pointer-events: none; }
.sim-step--pick .sim-arrow--prev { left: calc(max(var(--gutter), 3vw) + 96px); }

.sim-lb {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px;
  background: rgba(251, 246, 239, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: lb-in .3s var(--ease);
}
.sim-lb[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } }
.sim-lb__fig { margin: 0; display: grid; justify-items: center; gap: 14px; animation: step-in .45s var(--ease); }
.sim-lb__img {
  width: min(80vw, calc((100svh - 150px) * 6 / 7), 540px); aspect-ratio: 6 / 7; border-radius: 28px; overflow: hidden;
  display: grid; place-items: center; background: radial-gradient(80% 70% at 50% 42%, #fff 0, #f8ede8 100%);
  box-shadow: 0 30px 80px rgba(94, 18, 20, .14); transition: opacity .2s;
}
.sim-lb__img.is-loading { opacity: .5; }
.sim-lb__img img, .sim-lb__img svg { width: 100%; height: 100%; object-fit: contain; }
.sim-lb figcaption { display: flex; gap: 12px; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.sim-lb figcaption b { padding: 3px 9px; border-radius: 99px; background: var(--paper); color: var(--ink); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.sim-lb__close, .sim-lb__nav {
  position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 6px 20px rgba(27, 21, 21, .1); transition: transform .25s var(--ease), background .2s, color .2s;
}
.sim-lb__close { top: calc(16px + env(safe-area-inset-top)); right: 16px; }
.sim-lb__close:hover { transform: rotate(90deg); background: var(--ink); color: #fff; }
.sim-lb__nav { top: 50%; margin-top: -23px; }
.sim-lb__nav:hover { transform: scale(1.08); background: var(--ink); color: #fff; }
.sim-lb__nav[hidden] { display: none; }
.sim-lb__nav--prev { left: max(16px, 4vw); }
.sim-lb__nav--next { right: max(16px, 4vw); }
.sim-lb svg { width: 18px; height: 18px; }
.sim-lb__img svg { width: 100%; height: 100%; }

@media (max-height: 720px) and (min-width: 761px) {
  .sim-gallery { --tw: 58px; --th: 68px; --gap: 6px; gap: 6px; }
  .sim-gallery__nav { width: 28px; height: 28px; }
}
@media (max-width: 760px) {
  .sim-gallery { --tw: 48px; --th: 56px; --gap: 6px; left: 10px; gap: 6px; }
  .sim-gallery__nav { width: 28px; height: 28px; }
  .sim-thumb { border-radius: 11px; }
  .sim-lb__nav { top: auto; bottom: calc(18px + env(safe-area-inset-bottom)); margin-top: 0; }
  .sim-lb__fig { margin-bottom: 40px; }
}
