/* Agata 3D Showroom — arayüz
   Palet koleksiyonun kendi renklerinden: çam yeşili döşeme, krem duvar,
   mat siyah metal, bronz vurgular. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yesil: #3d5a4c;
  --yesil-acik: #5b8270;
  --krem: #ece7dd;
  --bronz: #b9a184;
  --koyu: #14161a;
  --koyu-cam: rgba(18, 20, 23, 0.82);
  --metin: #f4f1eb;
  --sonuk: #a49c90;
  --cizgi: rgba(255, 255, 255, 0.09);
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--koyu);
  color: var(--metin);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#sahne {
  width: 100%; height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}

.gizli { display: none !important; }

/* ---------- Nişangâh ---------- */
#nisangah {
  position: fixed; top: 50%; left: 50%;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
  display: none;
  z-index: 5;
}
#nisangah.hedefte {
  transform: scale(2.1);
  border-color: var(--bronz);
  background: rgba(185, 161, 132, 0.25);
}

/* ---------- Bakış ipucu ---------- */
#bakisIpucu {
  position: fixed; bottom: 16%; left: 50%;
  transform: translateX(-50%);
  background: var(--koyu-cam);
  backdrop-filter: blur(8px);
  border: 1px solid var(--cizgi);
  border-radius: 14px;
  padding: 11px 20px;
  text-align: center;
  pointer-events: none;
  z-index: 6;
  animation: yumusakGir .16s ease;
}
#bakisIpucu span { display: block; font-weight: 600; letter-spacing: .2px; font-size: 15px; }
#bakisIpucu small { color: var(--sonuk); font-size: 11.5px; letter-spacing: .4px; }
@keyframes yumusakGir { from { opacity: 0; transform: translate(-50%, 6px); } }

/* ---------- Giriş ekranı ---------- */
#girisEkrani {
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 520px at 50% 28%, #22282a, #0d0f11 72%);
  display: flex; align-items: center; justify-content: center;
  z-index: 20;
  padding: 24px;
}
.giris-kart { text-align: center; max-width: 480px; width: 100%; }

.marka {
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 300;
  letter-spacing: 8px;
  color: var(--krem);
}
.marka span {
  display: block;
  font-size: 11px; letter-spacing: 5px;
  color: var(--bronz);
  margin-top: 8px;
  font-weight: 500;
}
.giris-aciklama {
  margin: 24px auto 28px;
  color: var(--sonuk);
  line-height: 1.65;
  font-size: 14.5px;
  max-width: 380px;
}

#yuklemeCubugu {
  width: 210px; height: 2px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 auto 22px;
  border-radius: 2px;
  overflow: hidden;
}
#yuklemeDolgu {
  display: block; height: 100%; width: 0%;
  background: var(--bronz);
  transition: width .25s ease;
}

#girisBtn {
  background: var(--yesil);
  color: var(--krem);
  border: 1px solid var(--yesil-acik);
  font-size: 15px; font-weight: 600; letter-spacing: .3px;
  padding: 14px 40px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
}
#girisBtn:disabled { opacity: .45; cursor: default; }
#girisBtn:not(:disabled):hover {
  background: var(--yesil-acik);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(61, 90, 76, .5);
}

.kontrol-ipuclari {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  justify-content: center;
  color: var(--sonuk); font-size: 12.5px;
}
kbd {
  display: inline-block;
  background: #212528; border: 1px solid #32383c;
  border-radius: 5px; padding: 2px 7px; margin: 0 1px;
  font-family: inherit; font-size: 11.5px; color: var(--metin);
}

/* ---------- Mobil kumanda ---------- */
#kumanda {
  position: fixed; left: 22px; bottom: 26px;
  z-index: 8;
  touch-action: none;
}
#kumandaTaban {
  width: 118px; height: 118px;
  border-radius: 50%;
  background: rgba(20, 22, 26, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  position: relative;
}
#kumandaBasi {
  position: absolute; top: 50%; left: 50%;
  width: 50px; height: 50px;
  margin: -25px 0 0 -25px;
  border-radius: 50%;
  background: rgba(236, 231, 221, 0.82);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .4);
  transition: transform .05s linear;
}

/* ---------- Ürün paneli ---------- */
#urunPaneli {
  position: fixed; inset: 0;
  background: rgba(8, 9, 11, 0.5);
  backdrop-filter: blur(2px);
  display: flex; align-items: stretch; justify-content: flex-end;
  z-index: 30;
  animation: solma .16s ease;
}
@keyframes solma { from { opacity: 0; } }

.panel-kart {
  width: 420px; max-width: 100%;
  background: #16191c;
  border-left: 1px solid var(--cizgi);
  box-shadow: -34px 0 90px rgba(0, 0, 0, .55);
  position: relative;
  overflow-y: auto;
  animation: kaydir .24s cubic-bezier(.2, .75, .3, 1);
}
@keyframes kaydir { from { transform: translateX(46px); opacity: .3; } }

.panel-kapat {
  position: absolute; top: 12px; right: 14px;
  background: rgba(0, 0, 0, .35); border: none;
  color: var(--metin);
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 24px; line-height: 1; cursor: pointer;
  z-index: 2;
  transition: background .15s ease;
}
.panel-kapat:hover { background: rgba(0, 0, 0, .6); }

.panel-yukleniyor {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 15px; height: 100%; color: var(--sonuk); text-align: center;
  font-size: 13.5px;
}
.donen {
  width: 30px; height: 30px;
  border: 2px solid #2b3033; border-top-color: var(--bronz);
  border-radius: 50%;
  animation: don .75s linear infinite;
}
@keyframes don { to { transform: rotate(360deg); } }

.panel-gorsel {
  width: 100%; aspect-ratio: 3 / 2;
  background: #1c2023;
  overflow: hidden;
}
.panel-gorsel img { width: 100%; height: 100%; object-fit: cover; display: block; }

.panel-icerik { padding: 26px 28px 32px; }

.panel-etiket {
  display: inline-block;
  font-size: 10px; letter-spacing: 2.2px;
  color: var(--bronz);
  border: 1px solid rgba(185, 161, 132, .35);
  padding: 3px 10px; border-radius: 999px;
  margin-bottom: 14px;
}
#pAd { font-size: 23px; font-weight: 500; line-height: 1.25; margin-bottom: 10px; }
.panel-aciklama { color: var(--sonuk); font-size: 13.5px; line-height: 1.6; margin-bottom: 22px; }

.fiyat-satiri { display: flex; align-items: baseline; gap: 11px; }
.fiyat { font-size: 28px; font-weight: 600; color: #fff; letter-spacing: -.5px; }
.fiyat-eski { color: var(--sonuk); text-decoration: line-through; font-size: 15px; }
.taksit { margin-top: 5px; font-size: 13px; color: var(--yesil-acik); }

.veri-etiketi {
  margin: 14px 0 24px;
  font-size: 11px; color: #8b8578;
  background: rgba(255, 255, 255, .035);
  border-left: 2px solid rgba(185, 161, 132, .5);
  padding: 8px 11px;
  line-height: 1.45;
}

.secenek-blok { margin-bottom: 24px; }
.secenek-baslik {
  font-size: 11px; letter-spacing: 1.4px; color: var(--sonuk);
  margin-bottom: 11px; text-transform: uppercase;
}
.secenek-not { margin-top: 9px; font-size: 11px; color: #7d776c; line-height: 1.4; }

.renkler { display: flex; gap: 11px; flex-wrap: wrap; }
.renk {
  width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  outline: 1px solid #2f3437; outline-offset: 2px;
  transition: transform .12s ease, outline-color .12s ease;
  position: relative;
}
.renk:hover { transform: scale(1.1); }
.renk.secili { border-color: #fff; outline-color: var(--bronz); }
.renk.tahmini::after {
  content: ""; position: absolute; right: -1px; bottom: -1px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #6f6a60; border: 1.5px solid #16191c;
}

.secimler { display: flex; gap: 8px; flex-wrap: wrap; }
.secim {
  border: 1px solid #32383c; background: #1c2023;
  color: var(--metin); border-radius: 7px;
  padding: 8px 15px; font-size: 12.5px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.secim:hover { border-color: var(--bronz); }
.secim.secili { background: var(--yesil); border-color: var(--yesil-acik); font-weight: 600; }

.panel-cta {
  width: 100%; margin-top: 6px;
  background: transparent;
  color: var(--krem);
  border: 1px solid #3a4145;
  padding: 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.panel-cta:hover:not(:disabled) { border-color: var(--bronz); background: rgba(185, 161, 132, .08); }
.panel-cta:disabled { opacity: .4; cursor: default; }

/* ---------- Köşe rozeti ---------- */
#kose {
  position: fixed; top: 16px; left: 18px;
  font-size: 10.5px; letter-spacing: 2.4px;
  color: rgba(255, 255, 255, .32);
  z-index: 5; pointer-events: none;
}

@media (max-width: 620px) {
  .panel-kart { width: 100%; border-left: none; }
  #bakisIpucu { bottom: 24%; }
  #kose { display: none; }
}
