/* ===============================
   GENEL
=============================== */
body {
  margin: 0;
  background: #eaeaea;
  font-family: Poppins, sans-serif;
}

/* ===============================
   ANA WRAPPER
=============================== */
.landscape-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 32px;

  max-width: 1600px;
  margin: 0 auto;
  padding-top: 30px; /* üstten 30px */
}

/* ===============================
   SOL TARAF
=============================== */
.left-col {
  flex: 1;
  min-width: 0; /* 🔥 flex taşmasını engeller */
}

/* CANVAS */
#canvas {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;

  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

/* ===============================
   KONTROLLER (CANVAS GENİŞLİĞİNDE)
=============================== */
.kontroller {
  max-width: 1000px;          /* 🔥 canvas ile birebir */
  margin-top: 18px;

  background: #fff;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.kontroller label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.kontroller input[type="color"],
.kontroller select {
  height: 38px;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 6px 8px;
  background: #fafafa;
}

/* SIFIRLA */
#sifirla {
  grid-column: span 2;
  height: 42px;
  background: #e63946;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ===============================
   ALT BUTONLAR
=============================== */
.tasarla-actions {
  max-width: 1000px;          /* 🔥 canvas ile birebir */
  margin-top: 14px;
  display: flex;
  gap: 12px;
}

.btn-primary {
  flex: 1;
  background: #111;
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
}

.btn-secondary {
  flex: 1;
  background: #f5f5f5;
  color: #111;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

/* ===============================
   SAĞ TARAF (KATEGORİ)
=============================== */
.right-col {
  width: 460px;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* BAŞLIK */
.right-title {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.right-col h3 {
  margin: 10px 0;
  font-size: 18px;
}

/* SELECT */
.right-col select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fafafa;
  margin-bottom: 16px;
}

/* ===============================
   ÜRÜN GRID
=============================== */
.panel-urunler {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mini-urun {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Görsel */
.mini-urun img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 10px;
}

.mini-urun span {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: #222;
}

.bos {
  grid-column: span 2;
  text-align: center;
  opacity: .6;
}

/* ===============================
   MOBİL
=============================== */
@media (max-width: 1024px) {
  .landscape-wrapper {
    flex-direction: column;
  }

  .right-col {
    width: 100%;
  }

  .panel-urunler {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .kontroller,
  .tasarla-actions {
    max-width: 100%;
  }

  .panel-urunler {
    grid-template-columns: repeat(2, 1fr);
  }
}
.panel-urunler {
  height: 420px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}

.urun-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: urunKaydir 25s linear infinite;
}

.panel-urunler:hover .urun-track {
  animation-play-state: paused;
}

@keyframes urunKaydir {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.panel-urunler {
  height: 420px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}

/* 🔥 ÜRÜN AKIŞI */
.urun-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 🖥️ MASAÜSTÜ: 2’li */
  gap: 12px;
  animation: urunKaydir 30s linear infinite;
}

.panel-urunler:hover .urun-track {
  animation-play-state: paused;
}

/* 📱 MOBİL: TEK TEK AKSIN */
@media (max-width: 768px) {
  .urun-track {
    grid-template-columns: 1fr; /* 📱 tek sütun */
    animation-duration: 20s;   /* mobilde biraz daha hızlı */
  }
}

@keyframes urunKaydir {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}
@media (max-width: 768px) {
  .mini-urun {
    padding: 10px;
  }

  .mini-urun img {
    width: 80px;
    height: 80px;
  }

  .mini-urun span {
    font-size: 13px;
  }
}
/* MOBİLDE İÇERİĞİ ORTALA */
@media (max-width: 768px) {
  .mini-urun {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mini-urun img {
    margin: 0 auto;
  }

  .mini-urun span {
    text-align: center;
  }
  
}
/* 📱 MOBİLDE PANEL İÇERİĞİNİ GERÇEKTEN ORTALA */
@media (max-width: 768px) {
  .panel-urunler {
    display: flex;
    justify-content: center;
  }

  .urun-track {
    width: 100%;
    max-width: 320px; /* 🔥 kartların merkezde durması için */
  }
}
.panel-urunler {
  height: 420px;
  overflow-y: auto;   /* 🔥 kaydırma açık */
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* scrollbar gizli ama çalışır */
.panel-urunler::-webkit-scrollbar {
  width: 0;
}
.mini-urun {
  cursor: pointer;
}

.mini-urun.active {
  outline: 3px solid #111;
  border-radius: 8px;
}
.secili-urun-kart{
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:12px;
  padding:12px 14px;
  margin:12px 0;
  font-size:14px;
  box-shadow:0 4px 12px rgba(0,0,0,0.06);
}

.secili-urun-kart strong{
  display:block;
  font-size:15px;
  margin-bottom:6px;
}

.secili-urun-kart a{
  color:#b79d83;
  font-weight:600;
  text-decoration:none;
}
.toast{
 position:fixed;
 bottom:24px;
 left:50%;
 transform:translateX(-50%);
 background:#222;
 color:#fff;
 padding:12px 18px;
 border-radius:10px;
 font-size:14px;
 opacity:0;
 transition:all .3s ease;
 z-index:9999;
}

.toast.show{
 opacity:1;
 bottom:40px;
}
.toast{
  max-width:90%;
  text-align:center;
}

.cift-overlay.show{
  display: block;
}


.cift-overlay.show{
 display:flex;
}

.cevir-btn{

  margin-top: 10px;
  padding: 10px 18px;

  background: #fff;
  color: #000;

  border: none;
  border-radius: 8px;

  font-weight: 600;
  cursor: pointer;

  transition: .2s;
}

.cevir-btn:hover{
  background: #f2f2f2;
  transform: scale(1.05);
}
.canvas-wrap{
  width:100%;
  max-width:1000px;
}

/* KONTROLLER BOŞLUĞU AZALT */
.kontroller{
  margin-top:6px;  /* 18 → 6 yaptık */
}


/* ===============================
   ÇİFT PANEL — BEJ PREMIUM
=============================== */
.cift-panel{

  width:100%;
  max-width:1000px;

  display:none;
  justify-content:space-between;
  align-items:center;

  margin-top:8px;
  margin-bottom:8px;

  padding:16px 20px;

  /* Bej premium zemin */
  background: linear-gradient(135deg,#f5efe6,#efe6da);

  border:1px solid #e6dccf;
  border-radius:18px;

  box-shadow:
    0 10px 28px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.7);

  transition: all .25s ease;
}

/* Hafif hover lift */
.cift-panel:hover{
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.cift-uyari{

  font-size:14px;
  font-weight:500;
  color:#5f5244;
  line-height:1.4;

  display:flex;
  flex-direction:column;
}

/* Premium badge */
.cift-uyari::before{

  content:"ÇİFT TARAFLI";

  font-size:11px;
  font-weight:600;

  color:#8b7355;
  background:#fff;

  border:1px solid #e2d6c8;

  padding:3px 10px;
  border-radius:30px;

  width:max-content;
  margin-bottom:6px;

  letter-spacing:.4px;
}
.cevir-btn{

  display:flex;
  align-items:center;
  gap:8px;

  padding:11px 20px;

  /* Bej gold gradient */
  background: linear-gradient(135deg,#c7b299,#a89072);

  color:#fff;

  border:none;
  border-radius:12px;

  font-weight:600;
  font-size:14px;

  cursor:pointer;

  box-shadow:
    0 6px 18px rgba(0,0,0,0.18);

  transition: all .25s ease;
}

/* Hover premium glow */
.cevir-btn:hover{

  background: linear-gradient(135deg,#bfa789,#967b5c);

  transform: translateY(-2px) scale(1.03);

  box-shadow:
    0 12px 26px rgba(0,0,0,0.22);
}

/* Click press */
.cevir-btn:active{
  transform: scale(.96);
}

.cevir-btn::before{
  content:"↻";
  font-size:16px;
  transition: transform .4s ease;
}

.cevir-btn:hover::before{
  transform: rotate(180deg);
}
/* ===============================
   MOBİL — ÇİFT PANEL
=============================== */
@media (max-width:768px){

  .cift-panel{

    flex-direction:column;   /* alt alta */
    align-items:center;
    text-align:center;

    gap:10px;

    padding:14px 12px;

    border-radius:14px;
  }

  /* UYARI */
  .cift-uyari{

    font-size:13px;
    line-height:1.4;
    color:#6b5c4f;
  }

  /* Badge küçült */
  .cift-uyari::before{

    font-size:10px;
    padding:2px 8px;
    margin-bottom:4px;
  }

  /* BUTON */
  .cevir-btn{

    width:100%;          /* tam genişlik */
    justify-content:center;

    padding:12px 0;
    font-size:14px;

    border-radius:10px;
  }

}
/* =========================
   EBAT – TOOLBAR BOX
========================= */

.ai-ebat-box{

  display:flex;
  flex-direction:column;
  align-items:flex-start;

  gap:2px;
  margin-left:6px;
}

/* ÜST YAZI */

.ai-ebat-box span{

  font-size:11px;
  font-weight:600;
  color:#6b5a47;

  line-height:1;
}

/* SELECT */

#aiEbatSelect{

  padding:5px 8px;

  border-radius:7px;
  border:1px solid #c7b8a4;

  background:#fff;

  font-size:12px;
  font-weight:600;
  color:#4a3f35;

  cursor:pointer;

  min-width:90px;
  max-width:120px;

  transition:.2s;
}

#aiEbatSelect:hover{
  border-color:#a08467;
}

#aiEbatSelect:focus{

  outline:none;
  border-color:#8a6d52;

  box-shadow:0 0 0 1px rgba(160,132,103,.15);
}
/* =========================
   ROTATE WARNING — BEJ SHOWROOM
========================= */

.rotate-warning{
  position:fixed;
  inset:0;

  /* 🔥 Premium Bej Arka Plan */
  background: linear-gradient(135deg, #efe6d6, #e4d6bf);

  /* Hafif cam hissi */
  backdrop-filter: blur(4px);

  /* Yazı rengi showroom uyumlu */
  color:#3e3a33;

  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  z-index:9999;
  padding:20px;
}

/* İç kutu (opsiyonel premium görünüm) */
.rotate-box{
  background: rgba(255,255,255,0.35);
  padding:28px 26px;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
  max-width:320px;
}

/* İkon */
.rotate-box i{
  font-size:42px;
  margin-bottom:18px;
  color:#8a7a5c;

  /* Döndürme animasyonu */
  animation:spinPhone 2.2s infinite ease-in-out;
}

/* Başlık */
.rotate-box h2{
  font-size:18px;
  font-weight:600;
  margin-bottom:10px;
  line-height:1.4;
  color:#3e3a33;
}

/* Alt açıklama */
.rotate-box p{
  font-size:14px;
  opacity:0.85;
  color:#6b6253;
  line-height:1.5;
}

/* Animasyon */
@keyframes spinPhone{
  0%{ transform:rotate(0deg); }
  40%{ transform:rotate(90deg); }
  60%{ transform:rotate(90deg); }
  100%{ transform:rotate(0deg); }
}

/* =========================
   MOBİL SHOWROOM WRAPPER
========================= */

.showroom-wrapper{
  position: fixed;
  top: 0;
  left: 0;
    inset: 0;
  height: 100dvh; /* 🔥 gerçek mobil viewport */
  width: 100vw;


  background: #f5f1e8;
  z-index: 999;

  display: none; /* JS açacak */
}

/* Flex bölünme */
.showroom-wrapper.active{
  display: flex;
}

.showroom-canvas-area{
  width: 70%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Panel %30 */
.showroom-side-panel{
  width: 30%;
  height: 100%;
  background: #fff;
  border-left: 1px solid #e5e0d6;
}
.showroom-canvas-area canvas{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
.showroom-canvas-area{
  width: 70%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
/* Başlık */
.panel-title{
  font-weight:600;
  font-size:14px;
  margin-bottom:12px;
  color:#3e3a33;
}

/* Ürün listesi */
.panel-urunler-mobile{
  flex:1;
  overflow-y:auto;
}

/* CTA */
.panel-cta{
  margin-top:10px;
}

.sepete-ekle-btn{
  width:100%;
  padding:14px;
  border:none;
  border-radius:12px;
  background:#ff7a00;
  color:#fff;
  font-weight:600;
}
/* Mobil showroom aktifken navbar gizle */
.showroom-active nav,
.showroom-active .navbar,
.showroom-active header {
  display: none !important;
}
.showroom-active{
  overflow: hidden;
}
.mobil-ebat-container{
  background:#fafafa;
  padding:10px;
  border-bottom:1px solid #eee;
}