/* OZY STUDIO — 360° tur ekranı (assets/tur.js). Renkler style.css değişkenlerinden. */

html.tur-acik, html.tur-acik body { overflow: hidden; }
html.tur-acik body::after { display: none; }

.tur {
  position: fixed; inset: 0; z-index: 10000; overflow: hidden;
  background: #07080b; color: #fff;
  height: 100vh; height: 100dvh;
}
.tur:focus { outline: none; }
.tur[hidden] { display: none; }
.tur:fullscreen { width: 100%; height: 100%; }

.tur-sahne { position: absolute; inset: 0; }
.tur-sahne .pnlm-container { background: #07080b; }
.tur-sahne .pnlm-load-box, .tur-sahne .pnlm-load-button, .tur-sahne .pnlm-error-msg, .tur-sahne .pnlm-title-box { display: none !important; }

/* ilk açılışta WebGL hazırlanana kadar kapak */
.tur-perde { position: absolute; inset: 0; background: #07080b; pointer-events: none; transition: opacity .55s ease; }
.tur-perde img { width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.72); transform: scale(1.06); }
.tur-perde.gizli { opacity: 0; }

/* ---------------- üst şerit ---------------- */
.tur-ust {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 16px 18px 40px; pointer-events: none;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(5, 6, 9, .78), rgba(5, 6, 9, 0));
}
.tur-ust > * { pointer-events: auto; }
.tur-dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; min-width: 42px; padding: 0 14px;
  cursor: pointer; color: #fff; font: 700 14px/1 var(--fd);
  background: rgba(14, 16, 22, .82); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  transition: border-color var(--hiz), background var(--hiz);
}
.tur-dugme:hover, .tur-dugme:focus-visible { border-color: rgba(255, 255, 255, .5); background: rgba(24, 27, 36, .92); outline: none; }
.tur-dugme svg { width: 18px; height: 18px; }
.tur-kapat { justify-self: start; padding-left: 9px; }
.tur-tam { padding: 0; }
.tur .tur-ust .tur-baslik {
  display: grid; justify-items: center; gap: 4px; min-width: 0; pointer-events: none; text-align: center;
  padding: 7px 18px; border-radius: 14px; background: rgba(14, 16, 22, .82); border: 1px solid rgba(255, 255, 255, .12);
}
.tur-baslik b { font: 800 16px/1.15 var(--fd); letter-spacing: -.01em; max-width: 44vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tur-rozet { font: 600 10.5px/1 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: .78; }
.tur-sag { justify-self: end; display: flex; align-items: center; gap: 8px; }
.tur-urun { height: 42px; padding: 0 18px; display: inline-flex; align-items: center; white-space: nowrap; }
.tur-urun[hidden] { display: none; }

/* ---------------- sağ üstte ürün kutusu ---------------- */
.tur-mini { color: #fff; background: var(--accent); border-color: var(--accent); font-size: 15px; font-weight: 800; }
.tur-mini:hover, .tur-mini:focus-visible { background: var(--accent-2); border-color: var(--accent-2); }
.tur-mini[hidden] { display: none; }
.tur-kutu {
  position: absolute; right: 18px; top: 72px; top: calc(72px + env(safe-area-inset-top, 0px)); z-index: 3; width: 300px; padding: 16px;
  border-radius: 16px; background: rgba(12, 14, 19, .9); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7);
}
.tur-kutu[hidden] { display: none; }
.tur-kutu-kapat {
  position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; cursor: pointer;
  color: rgba(255, 255, 255, .7); background: none; border: 0; border-radius: 50%; transition: color var(--hiz), background var(--hiz);
}
.tur-kutu-kapat:hover, .tur-kutu-kapat:focus-visible { color: #fff; background: rgba(255, 255, 255, .1); outline: none; }
.tur-kutu-kapat svg { width: 16px; height: 16px; }
.tur-kutu-ad { display: block; padding-right: 26px; font: 800 17px/1.2 var(--fd); letter-spacing: -.01em; color: #fff; }
.tur-kutu-fiyat { margin-top: 8px; }
.tur .tur-kutu .price { margin: 0; }
.tur .tur-kutu .price .now { font: 800 26px/1.1 var(--fd); color: #fff; }
.tur .tur-kutu .kupon-ipucu { margin: 8px 0 0; }
.tur .tur-kutu .tur-kutu-ozet { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.tur-kutu-ozet[hidden] { display: none; }
.cs .tur .tur-kutu .tur-urun { display: flex; justify-content: center; width: 100%; height: 44px; margin-top: 13px; font-size: 14.5px; }
.cs .tur .tur-kutu .tur-urun[hidden] { display: none; }

/* ---------------- yerdeki işaretler ---------------- */
.tur-nokta { width: 72px; height: 72px; cursor: pointer; visibility: visible; }
.tur-nokta-halka {
  position: absolute; inset: 6px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: rgba(10, 12, 18, .5);
  border: 3px solid #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .15);
  transform: perspective(240px) rotateX(52deg); transition: transform var(--hiz), background var(--hiz), border-color var(--hiz);
}
.tur-nokta-halka svg { width: 34px; height: 34px; display: block; }
.tur-nokta-halka::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid #fff; opacity: 0;
  animation: tur-nabiz 2.4s ease-out infinite !important;
}
@keyframes tur-nabiz {
  0% { opacity: .7; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.55); }
}
@media (prefers-reduced-motion: reduce) { .tur-nokta-halka::after { animation: none !important; } }
.tur-nokta:hover .tur-nokta-halka, .tur-nokta:focus-visible .tur-nokta-halka {
  background: var(--accent); border-color: #fff; transform: perspective(240px) rotateX(52deg) scale(1.14);
}
.tur-nokta-ad {
  position: absolute; left: 50%; bottom: 100%; margin-bottom: -2px; transform: translateX(-50%);
  padding: 6px 11px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font: 700 13px/1 var(--fd); color: #fff; background: rgba(8, 9, 13, .84); border: 1px solid rgba(255, 255, 255, .16);
}

/* ---------------- durum yazıları ---------------- */
.tur-yukleniyor {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  font: 700 14px/1 var(--fd); background: rgba(8, 9, 13, .86); border: 1px solid rgba(255, 255, 255, .14); pointer-events: none;
}
.tur-yukleniyor[hidden] { display: none; }
.tur-yukleniyor i {
  width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff;
  animation: tur-don .8s linear infinite !important;
}
@keyframes tur-don { to { transform: rotate(360deg); } }
.tur-ipucu {
  position: absolute; left: 50%; bottom: 158px; z-index: 2; margin: 0; transform: translateX(-50%);
  padding: 9px 15px; border-radius: 999px; pointer-events: none; white-space: nowrap;
  font: 600 13.5px/1 var(--fd); background: rgba(8, 9, 13, .78); transition: opacity .4s ease;
}
.tur-ipucu.gizli { opacity: 0; }
.tur-hata {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); width: min(420px, calc(100% - 40px));
  padding: 22px; border-radius: 16px; text-align: center; background: #12141b; border: 1px solid rgba(255, 255, 255, .14);
}
.tur-hata[hidden] { display: none; }
.tur-hata b { font: 800 18px/1.2 var(--fd); }
.tur-hata p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .72); }

/* ---------------- alttaki oda şeridi ---------------- */
.tur-alt {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none;
  padding: 44px 18px 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, rgba(5, 6, 9, .84), rgba(5, 6, 9, 0));
}
.tur-sayac { display: flex; align-items: baseline; justify-content: center; gap: 9px; margin: 0 0 10px; font: 800 16px/1.2 var(--fd); text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.tur-sira { font: 600 12px/1 var(--fm); letter-spacing: .06em; opacity: .75; }
.tur-serit {
  display: flex; justify-content: safe center; gap: 8px; overflow-x: auto; pointer-events: auto;
  scrollbar-width: none; padding: 3px; margin: -3px;
}
.tur-serit::-webkit-scrollbar { display: none; }
.tur-kart {
  position: relative; flex: 0 0 auto; width: 128px; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; cursor: pointer;
  border: 0; border-radius: 10px; background: #15171e; color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
  transition: box-shadow var(--hiz);
}
.tur-kart img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity var(--hiz); }
.tur-kart > span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 7px 6px; text-align: left;
  font: 700 12px/1.15 var(--fd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(0deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, 0));
}
.tur-kart:hover img, .tur-kart:focus-visible img, .tur-kart.secili img { opacity: 1; }
.tur-kart:hover, .tur-kart:focus-visible { box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); outline: none; }
.tur-kart.secili { box-shadow: 0 0 0 2px var(--accent), 0 0 0 3px rgba(255, 255, 255, .85); }

@media (max-width: 720px) {
  .tur-ust { grid-template-columns: auto 1fr auto; padding: 10px 10px 34px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); gap: 8px; }
  .tur-kapat { padding-right: 9px; }
  .tur-kapat > span { display: none !important; }
  .tur .tur-ust .tur-baslik { justify-items: start; justify-self: start; text-align: left; padding: 5px 10px; border-radius: 10px; }
  .tur-baslik b { font-size: 14px; max-width: 100%; }
  .tur-rozet { font-size: 9.5px; }
  .tur-urun { height: 40px; padding: 0 13px; font-size: 13px; }
  .tur-dugme { height: 40px; min-width: 40px; }
  .tur-tam { display: none; }
  .tur-kutu { left: 10px; right: 10px; width: auto; top: 64px; top: calc(64px + env(safe-area-inset-top, 0px)); }
  .tur-alt { padding: 34px 10px 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .tur-sayac { font-size: 14px; margin-bottom: 8px; }
  .tur-serit { justify-content: flex-start; }
  .tur-kart { width: 98px; }
  .tur-kart > span { font-size: 11px; }
  .tur-ipucu { bottom: 128px; font-size: 12.5px; }
  .tur-nokta-ad { font-size: 12px; padding: 5px 9px; }
}
