/* Jant deneme sayfası */
.demo-studio-rig { position: relative; width: 100%; aspect-ratio: 1419 / 560; transform: translateX(var(--demo-pan, 0%)) scale(var(--demo-zoom, 1)); transform-origin: var(--demo-focus-x, 50%) var(--demo-focus-y, 76%); transition: transform .35s ease, transform-origin .35s ease; }
.studio-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 22px; border-block: 1px solid #ffffff16; background: linear-gradient(125deg, #24272c, #1b1e23); }
.studio-tools button { min-width: 126px; min-height: 44px; border: 1px solid #ff6877; border-radius: 7px; color: white; background: #b9102b; font: inherit; font-weight: 750; cursor: pointer; }
.studio-tools button[aria-pressed="true"] { background: #35383e; border-color: #8c939f; }
.studio-tools button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.studio-tools label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .8rem; }
.studio-tools input[type="range"] { width: 110px; min-height: 28px; accent-color: #ef4c63; cursor: pointer; }
.studio-tools output { min-width: 8ch; font-variant-numeric: tabular-nums; }
.demo-stage-header { position: absolute; z-index: 3; inset: 18px 18px auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.demo-stage-header > * { pointer-events: auto; }
.demo-focus-controls button { border: 0; background: transparent; color: #c7cbd1; padding: 7px 12px; border-radius: 6px; font: inherit; font-size: .76rem; font-weight: 650; cursor: pointer; }
.demo-focus-controls { display: flex; gap: 3px; }
.demo-focus-controls button { min-width: 0; min-height: 36px; border: 1px solid #ffffff23; font-size: .72rem; }
.demo-focus-controls button[aria-pressed="true"] { background: #ffffff16; color: #fff; }
.demo-main { background: var(--metallic-red); padding-block: clamp(30px, 5vw, 65px); }
.demo-intro { margin-bottom: 24px; color: #fff; }
.demo-intro .eyebrow { color: var(--red-highlight); }
.demo-intro h1 { font-size: clamp(2.35rem, 5.8vw, 4.6rem); margin-block: 8px 13px; }
.demo-intro > p:last-child { color: #f2d9de; }
.demo-note { color: var(--muted); }
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px; }
.demo-preview { position: sticky; top: 20px; min-width: 0; overflow: hidden; border: 1px solid #ffffff20; border-radius: 18px; background: #181b20; color: #fff; box-shadow: 0 18px 48px #09070b45; }
.demo-stage {
  /* Passat görselindeki iki jantın merkezi ve çapı. */
  --front-x: 20.895%;
  --front-y: 77.6786%;
  --rear-x: 76.1804%;
  --rear-y: 77.6786%;
  --front-width: 11.3989%;
  --rear-width: 11.5531%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(#8c9095, #b4b6b7 66%, #8e9295);
}
.demo-car { width: 100%; height: 100%; object-fit: contain; }
.demo-car-layered { visibility: hidden; }
.demo-body-scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.demo-body-lifted {
  background: transparent;
}
.demo-body-scene:not(.demo-body-lifted) > :is(ellipse, use, #demo-moving-bays),
.demo-body-scene:not(.demo-body-lifted) .demo-stance-base { display: none; }
.demo-badge { padding: 7px 11px; border: 1px solid #ffffff35; border-radius: 6px; background: #23272dc9; color: #f5f3f0; font-size: .62rem; font-weight: 750; letter-spacing: .15em; }
.demo-rim {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  aspect-ratio: 1;
  height: auto;
  overflow: hidden;
  /* Fren diski ve kaliper jantın açık kollarının arkasında kalır. */
  background: radial-gradient(circle at 45% 35%, #3d3f42, #25272a 75%);
  box-shadow: 0 0 0 1px #090a0b, inset 0 0 3px 1px #0009;
}
.demo-rim:has(img:not([hidden])) { background: #17181a url("demo-brake.svg") center / cover no-repeat; }
.demo-rim::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 1px 2px #ffffff30, inset 0 -2px 3px #0008; pointer-events: none; }
.demo-rim-front { left: var(--front-x); top: var(--front-y); width: var(--front-width); }
.demo-rim-rear { left: var(--rear-x); top: var(--rear-y); width: var(--rear-width); }
.demo-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.demo-caption h2 { margin: 4px 0 0; font-size: clamp(1.2rem, 3vw, 1.75rem); }
.demo-caption .eyebrow { color: #ff7380; }
.demo-vehicle-caption { margin-top: 8px; color: #ded4d7; font-size: .84rem; }
.demo-vehicle-search { display: grid; gap: 6px; margin-bottom: 16px; }
.demo-vehicle-search label { font-size: .88rem; font-weight: 800; }
.demo-vehicle-search input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #a8a6a2; border-radius: 6px; font: inherit; font-size: .9rem; color: var(--ink); background: #fff; }
#demo-search-count { color: var(--muted); font-size: .82rem; }
.demo-arrows { display: flex; gap: 8px; }
.demo-arrows button { width: 46px; height: 46px; border: 1px solid #ffffff72; border-radius: 50%; background: transparent; color: #fff; font: inherit; font-size: 1.25rem; cursor: pointer; }
.demo-arrows button:hover { background: var(--red); border-color: var(--red); }
.demo-controls { padding: 20px; border: 1px solid #ffffff55; border-radius: 18px; background: #f7f6f3; box-shadow: 0 12px 35px #12070d26; }
.demo-controls > label, .demo-controls legend { font-size: .88rem; font-weight: 800; }
.demo-controls select { display: block; width: 100%; min-height: 44px; margin-top: 5px; padding: 7px; border: 1px solid #a8a6a2; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: .88rem; }
.demo-controls fieldset { min-width: 0; margin: 16px 0; padding: 0; border: 0; }
.demo-custom { display: grid; gap: 5px; }
.demo-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-block: 8px 9px; }
.demo-swatches label { display: grid; justify-items: center; gap: 3px; font-size: .64rem; font-weight: 700; cursor: pointer; }
.demo-swatches input { appearance: none; width: 30px; height: 30px; margin: 0; border: 1px solid #0003; border-radius: 50%; background: linear-gradient(145deg, #fff9, transparent 45%, #0005), var(--swatch); box-shadow: inset 0 1px 3px #fff7, 0 2px 4px #0002; cursor: pointer; }
.demo-swatches input:checked { outline: 2px solid var(--red); outline-offset: 2px; }
.demo-swatches input:focus-visible { outline: 2px solid #2d83d9; outline-offset: 3px; }
.demo-slider, .demo-slider-scale { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.demo-slider { margin-top: 5px; font-size: .81rem; font-weight: 700; }
.demo-slider output { min-width: 29px; text-align: right; font-variant-numeric: tabular-nums; }
.demo-custom input[type="range"] { width: 100%; min-height: 26px; margin: 0; accent-color: var(--red); }
.demo-slider-scale { color: var(--muted); font-size: .71rem; }
.demo-reset { justify-self: start; margin-top: 6px; padding: 4px 0; border: 0; background: none; color: #a80c1e; font: inherit; font-size: .78rem; font-weight: 750; cursor: pointer; }
.demo-reset:hover { text-decoration: underline; }
.demo-option { display: flex; align-items: center; gap: 8px; min-height: 54px; margin-top: 7px; padding: 5px; border: 1px solid var(--line); border-radius: 7px; font-size: .84rem; font-weight: 700; cursor: pointer; }
.demo-option:has(:checked) { border-color: var(--red); background: #fff2f3; }
.demo-option input { flex: 0 0 auto; accent-color: var(--red); }
.demo-option img { clip-path: circle(50%); }
.demo-controls .button { width: 100%; font-size: .85rem; }
.demo-note { margin-top: 12px; font-size: .8rem; }
#demo-vehicle-status { margin-top: 8px; color: var(--muted); font-size: .82rem; }
#demo-vehicle-status:empty { margin: 0; }
@media (max-width: 790px) {
  .demo-layout { grid-template-columns: 1fr; }
  .demo-preview { position: relative; top: auto; }
  .studio-tools { gap: 10px 16px; padding: 15px; }
  .demo-controls { padding: 18px; }
  .demo-stage-header { inset: 12px 12px auto; }
}
@media (max-width: 480px) {
  .demo-main .wrap { width: calc(100% - 24px); }
  .demo-stage { padding-top: 35px; }
  .demo-badge { font-size: .5rem; padding: 6px 7px; }
  .studio-tools label { font-size: .74rem; }
  .studio-tools input[type="range"] { width: 95px; }
  .demo-caption { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-studio-rig { transition: none; }
}
