/* Ortak iskelet. Renk ve yazı tipleri stil.css içindeki :root değişkenlerinden gelir. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--zemin); color: var(--yazi); font: 16px/1.55 var(--govde-yazi); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.sar { width: min(1240px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--vurgu); outline-offset: 3px; }
.yer { opacity: .6; }
[hidden] { display: none !important; }

/* 3B sahne */
.sahne { position: relative; }
.sahne canvas { position: absolute; inset: 0; }
.sahne.yedek { display: grid; place-items: center; }
.sahne.yedek img { max-height: 80%; width: auto; mix-blend-mode: multiply; }

/* Parça listesi iskeleti; görünüm her taslakta ayrı */
.p-liste { list-style: none; margin: 0; padding: 0; }
.p-liste li { display: flex; align-items: stretch; }
.p-ad { flex: 1; display: flex; align-items: baseline; gap: 10px; text-align: left; background: none; border: 0; }
.p-ad b { font-weight: inherit; }
.p-sok { background: none; border: 0; }
.durum { opacity: 0; transition: opacity .3s; }
.don { position: absolute; left: 50%; top: 84px; translate: -50% 0; z-index: 7; height: 40px; padding: 0 16px; border: 0; border-radius: var(--kose, 0);
  background: var(--yazi); color: var(--zemin); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.yon b { font-weight: 600; }
.yon span { opacity: .65; }
.durum.acik { opacity: 1; }

/* Çalıştır düğmesi */
.tetik { user-select: none; -webkit-user-select: none; touch-action: none; -webkit-tap-highlight-color: transparent; }

/* Ürün künyesi penceresi */
.ayrinti { width: min(1040px, 100% - 24px); max-height: min(90dvh, 860px); padding: 0; border: 1px solid var(--cizgi); border-radius: var(--kose, 0);
  background: var(--zemin); color: var(--yazi); overflow: auto; }
.ayrinti[open] { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.ayrinti::backdrop { background: rgb(8 9 10 / .72); backdrop-filter: blur(6px); }
.ayrinti-g { background: #fff; padding: 20px; display: grid; place-items: center; }
.ayrinti-g img { max-height: 78dvh; width: auto; }
.ayrinti-b { padding: 44px 36px 36px; display: grid; gap: 18px; align-content: start; }
.ayrinti-fiyat { font: 600 clamp(22px, 2.4vw, 28px)/1 var(--baslik-yazi); font-variant-numeric: tabular-nums; }
.u-fiyat { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ayrinti-kod { font-size: 13px; color: var(--vurgu); }
.ayrinti-b h2 { font: var(--baslik-kalin, 600) clamp(24px, 3vw, 34px)/1.12 var(--baslik-yazi); }
.ayrinti-kapat { position: sticky; top: 10px; justify-self: end; grid-column: 1 / -1; margin: 10px 10px -54px 0; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--cizgi); background: var(--zemin); font-size: 24px; line-height: 1; }
.kunye { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.kunye th, .kunye td { text-align: left; vertical-align: top; padding: 10px 0; border-top: 1px solid var(--cizgi); }
.kunye th { width: 38%; font-weight: 500; opacity: .62; padding-right: 14px; }
.kunye ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
@media (max-width: 760px) {
  .ayrinti[open] { grid-template-columns: 1fr; }
  .ayrinti-g img { max-height: 46dvh; }
  .ayrinti-b { padding: 24px 20px 28px; }
}

/* Yumuşak girişler: kısa mesafe, tek eğri; dikkat çekmez */
:root { --egri: cubic-bezier(.22, .68, .22, 1); }
.gir { opacity: 0; translate: 0 8px; transition: opacity .45s var(--egri) var(--gec, 0ms), translate .5s var(--egri) var(--gec, 0ms); }
.gir.gorundu { opacity: 1; translate: 0 0; }
.liste.yenile > * { animation: belir .45s var(--egri) both; }
@keyframes belir { from { opacity: 0; translate: 0 6px; } }
.ayrinti[open] { animation: pencere .22s var(--egri); }
.ayrinti[open]::backdrop { animation: perde .22s ease-out; }
@keyframes pencere { from { opacity: 0; translate: 0 8px; } }
@keyframes perde { from { opacity: 0; } }
.ust { transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease; }
.ust nav a { position: relative; transition: color .25s, opacity .25s; }
.ust nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--vurgu); scale: 0 1; transform-origin: left; transition: scale .35s var(--egri); }
.ust nav a[aria-current]::after, .ust nav a:hover::after { scale: 1 1; }
section[id], main { scroll-margin-top: 72px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
