
/* BASE BROS 3D-AR-VR TEKNOLOJİLERİ  */
/* Copyright 2025 BASE BROS Bilişim Hizmetleri A.Ş - 
/* Teknopark Istanbul 
/* www.basebros.com - info@basebros.com - arge@basebros.com   */
 
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

button:hover {
  opacity: 0.8;
  
}

#scenePreview {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 240px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  z-index: 9999;
  pointer-events: none;
  opacity: 1;

}

#scenePreview:hover {
  opacity: 1;
}


.pdf-preloader {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999999999;
  transition: opacity 0.5s ease;
  font-family: 'Segoe UI', sans-serif;
}

.pdf-preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.pdf-preloader p {
  margin-top: 22px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.829);
  letter-spacing: 0.5px;
}

.MV-preloader {
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: blur(1px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999999999;
  transition: opacity 0.5s ease;
  font-family: 'Segoe UI', sans-serif;
}

.MV-preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.MV-preloader p {
  margin-top: 22px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.799);
  letter-spacing: 0.5px;
}


.Brick-preloader {
  position: fixed;
  width: calc(100% - 360px);
  height: calc(100% - 120px);
  margin-left: 360px;
  inset: 0;
  background: transparent;
  backdrop-filter: blur(1px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999999;
  transition: opacity 0.5s ease;
  font-family: 'Segoe UI', sans-serif;
}

.Brick-preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.Brick-preloader p {
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.5px;
}

#brickCanvas {
  opacity: 1;
  transition: opacity 0.25s ease-in-out;
}


.brick-grid {
  width: 96px;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 4px;
}

.brick {
  width: 28px;
  height: 12px;
  background: #85301d;
;
  border-radius: 2px;
  animation: brickBlink 1.5s infinite ease-in-out;
}

.brick:nth-child(3n+1) { animation-delay: 0s; }
.brick:nth-child(3n+2) { animation-delay: 0.2s; }
.brick:nth-child(3n+3) { animation-delay: 0.4s; }

@keyframes brickBlink {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}


.scene-dropdown {
  position: fixed;
  right: 10px;
  top: 20px;
  width: 150px;
  z-index: 2000;
}

.scene-dropdown:hover .scene-toggle-btn .arrow {
  transform: rotate(180deg);
}

.scene-toggle-btn {
  width: 100%;
  background: #953c29;
  border-radius: 8px;
  border:solid 1px #ffffff37;
  display: flex;
  align-items: center;
  justify-content: center; /* Merkeze hizalamayı korur */
  
  /* YENİ: İkon ve metin arasına boşluk ekler */
  gap: 8px; /* İhtiyaca göre bu değeri (örneğin 6px, 10px) değiştirebilirsiniz */
  
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding:  12px;
  cursor: pointer;
  transition: 0.25s ease;
}

/* Ok simgesi gizli kalmaya devam etmelidir. */
.scene-toggle-btn .arrow {
  display: none !important;
}

.scene-toggle-btn:hover {
  opacity: 0.7;
}

.scene-toggle-btn i {
  pointer-events: none;
}

.scene-toggle-btn .arrow {
  transition: 0.25s ease;
}


.scene-list {
  position: absolute;
  top: 36px;
  right: 0px;
  background: transparent;
  backdrop-filter: blur(6px);
  padding: 12px;
  margin-top: 6px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  
  /* --- YÜKSEKLİK VE SCROLL AYARLARI --- */
  /* Maksimum yüksekliği view port'un %80'ine ayarla */
  max-height: 70vh; 
  /* İçerik aştığında dikey kaydırma çubuğu çıkar */
  overflow-y: auto; 
  /* --- YENİ AYARLAR SONU --- */
  
  /* Görünürlük kuralları */
  opacity: 1;              
  visibility: visible;     
  transform: translateY(0); 
  pointer-events: auto;     
  
  transition: 0.25s ease;
}

/* ------------------------------------------- */
/* 1. Kaydırma Çubuğunun Genel Boyutunu Tanımla */
/* ------------------------------------------- */
.scene-list::-webkit-scrollbar {
  width: 8px; /* Dikey kaydırma çubuğu genişliği */
  height: 8px; /* Yatay kaydırma çubuğu yüksekliği (gerekirse) */
}

/* ------------------------------------------- */
/* 2. Kaydırma Çubuğu Yolu (Track) Stili */
/* ------------------------------------------- */
.scene-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1); /* Hafif şeffaf arka plan */
  border-radius: 10px;
}

/* ------------------------------------------- */
/* 3. Kaydırma Çubuğu Tutma Yeri (Thumb) Stili */
/* ------------------------------------------- */
.scene-list::-webkit-scrollbar-thumb {
  background: #c2c2c2; /* Ana renginiz */
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1); /* Hafif çerçeve */
}

/* 4. Mouse üzerine gelindiğinde rengini değiştir (İsteğe bağlı) */
.scene-list::-webkit-scrollbar-thumb:hover {
  background: #666666; /* Ana renginiz */
}
.scene-thumb {
  width: 120px;
  height: 70px;
  
  /* YENİ KRİTİK KURAL */
  flex-shrink: 0; 
  /* Bu kural, Flex kapsayıcı (scene-list) altındaki bu öğenin 
     küçülmesini (shrink) engeller ve sabit boyutta kalmasını sağlar. */
  
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.75);
  cursor: pointer;
  transition: 0.2s ease;
}

.scene-thumb:hover {
  transform: scale(1.05);
}

.scene-thumb.active {
  border-color: #953c29 !important;
  opacity: 0.9;
}


model-viewer {
  position: absolute;
  top: 0;
  left: 360px;
  bottom: 120px;
  width: calc(100% - 360px);
  height: calc(100% - 120px);
  background: #fff;
  z-index: 5;
  border: none;
  transition: all 0.3s ease-in-out;
  display: none;
}

model-viewer.active {
  display: block;
}

.model-fullscreen-button {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(255,255,255,0.85);
  color: #000;
  font-size: 24px;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  user-select: none;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}
.main-area {
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 360px;
  width: calc(100% - 360px);
  background: #fff;
}


canvas {
  background: transparent;
  display: block;
  width: 100%;
  height: 100%;
}


.hidden {
  display: none !important;
}



body.blend-mode-on.blend-collapsed .product-card {
    pointer-events: none !important;
    opacity: 1 !important;
}

body.blend-mode-on.blend-collapsed .product-card .blend-add {
    pointer-events: none !important;
}

body.blend-mode-on .product-card {
  position: relative;
  pointer-events: none;
}

.product-card .blend-add {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}

body.blend-mode-on .product-card .blend-add {
  display: flex;
}

body.blend-mode-on .product-card .blend-add::after {
  content: "+";
}

body.blend-mode-on .product-card.in-blend .blend-add {
  background: #22c55e;
  color: #fff;
}

body.blend-mode-on .product-card.in-blend .blend-add::after {
  content: "✓";
}

#blendSidebarContent {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

#blendSidebarContent.hidden {
  display: none;
}

.blend-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blend-back-btn {
  background: #953c29;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease;
}


.blend-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px ;
  background: #953c29;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.3s ease;
}



.blend-icon {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  transform: translateY(1px);
}

#blendSelectedList {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blend-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.blend-item-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}
.blend-thumb {
  width: 160px;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  z-index: 2;
}

.blend-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex: 1;
  z-index: 2;
}

.blend-title {
  position: relative;
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

.blend-sub {
  opacity: 0.7;
  font-size: 12px;
  line-height: 1.2;
}

.blend-slider {
   position: relative;
  left: 0px;
  right: 0px;
  top: 0px;
  width: auto;
  appearance: none;
  height: 6px;
  background: #ccc;
  border-radius: 4px;
  outline: none;
  transition: background 0.2s ease;

}

.blend-slider:hover {
  background: #aaa;
}
.blend-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #953c29;
  cursor: pointer;
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
}

.blend-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #953c29;
  cursor: pointer;
}

.blend-bottom-row {
  display: flex;
    align-items: center;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.blend-percent {
  font-weight: 700;
  font-size: 13px;
  color: #222;
}

.blend-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blend-actions button {
  background: #953c29;
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}



.blend-actions .locked {
  background: #16a34a;
}

.blend-actions .trash {
  background: #ef4444;
}

/* Sidebar Başlık ve Kategori Düzenlemesi */

/* 1. Ürün adı ve kategori adını içeren grubu alt alta yığ */
.sidebar .title-group {
    display: flex;
    flex-direction: column; /* Öğeleri dikey hizala */
    margin-left: 10px; /* Logo ile arasına boşluk koy (isteğe bağlı) */
    /* Dikey ortalamayı iptal etmek için */
    align-items: flex-start;
    justify-content: center;
}

/* 2. Ürün adının stilini ayarla */
.sidebar .title {
    font-size: 1.3em; /* Ürün adını daha belirgin yap */
    font-weight: 600;
    margin: 0; /* Tarayıcının varsayılan margin'lerini sıfırla */
    line-height: 1.1;
}

/* 3. Kategori adının stilini ayarla */
.sidebar .product-category-label {
    font-size: 0.9em;
    font-weight: 400;
    color: #666; /* Daha soluk bir renk */
    margin-top: 2px; /* Başlıkla arasında küçük boşluk */
    white-space: nowrap; /* Tek satırda kalmasını sağla */
}

/* Logo ve title grubunun hizalanması (Eğer logo-title flex ise) */
.sidebar .logo-title {
    display: flex;
    align-items: center; /* Logo ve title grubunu dikey ortala */
    padding-bottom: 10px; /* Altına boşluk bırak */
}


.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  height: 100%;
  background: #ffffff;
  padding: 24px;
  border-right: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  z-index: 2;
}

.sidebar::-webkit-scrollbar {
  width: 5px;

}
.sidebar::-webkit-scrollbar-thumb {
  background-color: #dfdfdf;
  border-radius: 4px;

}
.sidebar::-webkit-scrollbar-track {
  background-color: transparent;

}

.logo-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.logo {
  width: 70px;
  margin: 0;
}

.title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  text-align: left;
  margin-left: 10px;
  opacity: 0.8;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0px;
  margin-top: 0px;

}



hr {
  border: none;
  border-top: 1px solid #c2c0bf;
  margin: 4px 0;
}

.variation-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.variation-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px;
  border: 3px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  width: 90px;
}

.variation-icon:hover {
  border: 3px solid #953d2959;
}

.variation-icon img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom:0px;
  opacity: 0.8;
}

.variation-icon span {
  font-size: 12px;
  color: #333;
}

.variation-icon.selected {
  border-color: #953c29;
  background: #fff;
}

.variation-icon.selected img {
  opacity: 1;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-group button {
  padding: 12px 14px;
  font-size: 13px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6000px;
  cursor: pointer;
  width: 140px;
}

.button-group button:hover {
  border: 1px solid #953c29;
}
.button-group button.selected {
  background: #953c29;
  color: #fff;
  border-color: #953c29;
}

.variation-set {
  display: none;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.variation-set.active {
  display: flex;
}

.color-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.color-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
  justify-items: center;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: #333;
}

.color-item button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #aaa;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  background: #ccc;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.color-item button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.color-item button:hover {
  transform: scale(1.05);
  border-color: #666;
}





.color-item button.selected {
  outline: 3px solid #953c29;
  outline-offset: 4px;
}

.color-item span {
  margin-top: 10px;
}




.section-title-slider {
font-size: 14px;
font-weight: 600;
margin-left: 0px;
line-height: 30px;
}


.sidebar-close-btn {
  display: none;
}
.product-slider-header {
position: absolute;
left: 360px;
bottom: 120px;
height: 60px;
width: calc(100% - 360px);
background: #fff;

display: flex;
align-items: center;
justify-content: space-between;
padding: 0 8px;
z-index: 999999;
transition: all 0.3s ease-in-out;
}


.slider-fullscreen-button {
  width: 26px;
  height: 26px;
  padding: 0;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  line-height: 1;
}



.slider-search-box {
  position: relative;
  width: 100px;
  height: 34px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  margin: 0 12px;
}

.slider-search-box input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 8px;
  font-size: 15px;
  outline: none;
}

.slider-search-box button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0 6px;
  color: #666;
  display: none;
}


.product-slider {
position: absolute;
left: 360px;
bottom: 0;
height: 120px;
width: calc(100% - 360px);
background: #fff;

padding: 10px;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
gap: 4px;
overflow-x: auto;
overflow-y: hidden;
z-index: 999999;

transition: all 0.3s ease-in-out;
}


.product-slider.fullscreen {
height: 60vh !important;
flex-wrap: wrap;
flex-direction: row;
overflow-x: hidden;
overflow-y: auto;
align-content: flex-start;
}


.product-slider-header.fullscreen {
bottom: 60vh !important;
}



.slider-float-btn {
  position: absolute;
  bottom: 60px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  opacity: 0.7;
  z-index:99999999;
  transition: all 0.25s ease-in-out;
}
.slider-float-btn:hover {
  opacity: 1;

}


.slider-float-btn svg {
  width: 38px;
  height: 38px;
  transform: translateX(-0.5px) translateY(0.5px);
}

.slider-float-btn.left {
  left: 390px;
  transform: translateX(-50%);
}

.slider-float-btn.right {
  right: 24px;
  transform: translateX(50%);
}


.product-slider.fullscreen ~ .slider-float-btn {
  display: none !important;
}

.product-card {
flex: 0 0 auto;
width: 140px;
background: white;
border: solid 1px black;
border-radius: 12px;
padding: 8px;
cursor: pointer;
border: 3px solid transparent;
text-align: center;
scroll-snap-align: start;
height: 100px;
box-sizing: border-box;
}

.product-slider::-webkit-scrollbar {
  height: 8px;
}
.product-slider::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}
.product-slider::-webkit-scrollbar-track {
  background-color: transparent;
}


.product-card img {
  width: 120px;
  border-radius: 0px;
}

.product-card h2 {
  font-size: 13px;
  margin-top: 1px;
  font-weight:600;

  color:#333 ;
}


.product-card.active {
  border-color: #953c29;
}



.download-btn {
    position: absolute;
  right: 170px;
  top: 20px;
  margin-top: auto;
  background: #953c29;
  color: white;
  padding: 10px;
 
  border:solid 1px #ffffff37;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  z-index:10;
    transition: 0.25s ease;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.download-btn:hover {
  opacity: 0.8;
}

.gesture-icon {
  position: absolute;
  left: 386px;
  top: 20px;
  display: none !important;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  color: #000;

  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 6px;
  padding: 10px 14px 14px 14px;

  transition: opacity 0.2s ease;
}

.gesture-icon:hover {
  opacity: 1;
}

.gesture-close {
  position: absolute;
  top: 4px;
  right: 4px;
  background: none;
  border: none;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}
.gesture-close:hover {
  opacity: 1;
}

.zoom-controls {
  position: absolute;
  right: 305px;
  top: 20px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  z-index: 10;
}
.zoom-controls button {
  width: 44px;
  padding: 0px;
  height: 40px;
  font-size: 32px;
  background: #953c29;
  color: white;
  border:solid 1px #ffffff37;
  border-radius: 6px;
    transition: 0.25s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);

}

.zoom-controls button:hover {
  opacity: 0.8;
}




.zoom-controls-mv {
  position: absolute;
  right: 186px;
  top: 20px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  z-index: 10;
  display: none;
}
.zoom-controls-mv button {
  width: 44px;
  height: 44px;
  font-size: 32px;
  background: #ffffff;
  color: #5f5f5f;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: background 0.2s;
}

.zoom-controls-mv button:hover {
  opacity: 0.8;
}


.mobile-coming-soon {
  position: fixed;
  inset: 0;
  background: white;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 9999999999999999999;
  padding: 40px;
}

.mobile-coming-soon img {
  width: 140px;
  height: auto;
  margin-bottom: 24px;
}

.mobile-coming-soon h1 {
  font-family: "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #953c29;
  letter-spacing: 0.5px;
  margin: 0;
}

@media (max-width: 1024px) {
  .mobile-coming-soon {
    display: flex !important;
  }



}







.cat-hero-search {
  position: relative;
  width: 320px;
  height: 44px;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  background:#ffffff7d;

  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}

.cat-hero-search .cat-search-icon {
  position: absolute;
  left: 14px;
  color: #999;
  font-size: 14px;
  pointer-events: none;
  z-index: 10;
}

.cat-hero-search input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 8px 0 38px;
  font-size: 15px;
  outline: none;
}

.cat-hero-search button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 0 10px;
  color: #2a2a2a;
  line-height: 1;
  display: none;
}

#catSearchResults {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 30px auto;
  padding: 0 20px;
  animation: fadeIn .4s ease;
}

#catSearchResults .cat-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
  #catSearchResults .cat-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.cat-search-grid-layout {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 1050px) {
  .cat-search-grid-layout {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .cat-search-grid-layout {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
   
.cat-root-overlay {
  position: fixed;
  inset: 0;
  background: rgb(255 255 255 / 20%);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  z-index: 999999999999;
  overflow-y: auto;
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;

  animation: catOverlayFade .35s ease;
}

@keyframes catOverlayFade {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to   { opacity: 1; backdrop-filter: blur(12px); }
}

.cat-hero {
  text-align: center;
  margin-bottom: 20px;
  animation: fadeIn .5s ease;
}

.cat-hero-logo {
  width: 120px;
  opacity: 0.95;
  margin-bottom: 14px;
}

.cat-hero-title {
  font-size: 28px;
  color: #953c29;
  font-weight: 700;
  margin: 0;
}

.cat-hero-sub {
  margin-top: 6px;
  font-size: 16px;
  color: #383838;
  font-weight: bold;
}

.cat-section {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 48px;
}

.cat-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 18px;
}

.cat-section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .cat-section-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cat-section-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}


.cat-card {
background: #ffffff7d;
  padding: 0;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  border: 2px solid #eee;
  cursor: pointer;
  transition: .25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cat-card:hover {

  border-color: #953c29;

}

.cat-card-img {
  width: auto;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cat-card-title {
  padding: 24px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.25;
  text-align: center;
}





.cat-products-view {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  animation: fadeIn .4s ease;
}

.cat-products-title {
  font-size: 24px;
  font-weight: 700;
  color: #953c29;
  margin-bottom: 30px;
  text-align: left;
}

/* Örnek CSS: style.css dosyanıza eklenmeli */
.cat-product-title {
    font-weight: 600; /* Başlık kalın olsun */
    font-size: 1em;
    padding-top: 5px;
    color: #222;
}

.cat-product-category {
    font-size: 0.8em;
    color: #666; /* Kategori adı daha silik olsun */
    margin-top: 2px;
    padding-bottom: 5px;
}

@media (max-width: 900px) {
  .cat-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cat-products-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.cat-product-thumb {
  width: 100%;
  height:160px; 
  border-radius: 14px;
  background-size: contain;
  background-position: center;
  margin-bottom: 10px;
}
.cat-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.cat-product-card {
  background: #ffffff82;
  border-radius: 14px;
  padding: 14px;
  border: 2px solid #e5e5e5;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  transition: .3s ease;
}

.cat-product-card img {
  width: 100%;
  border-radius: 12px;
}
.cat-product-card:hover {

  border-color: #953c29;

}


.cat-product-title {
  font-size: 16px;
  margin-top: 26px;
  font-weight: 600;
  color: #333;
}




.cat-search-grid-layout .cat-product-card .cat-product-thumb {
    height: 130px;
}
.cat-back-btn {
  background: #953c29;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 16px;
  cursor: pointer;
  transition: .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.cat-back-btn:hover {
  opacity: 0.8;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CSS/style.css dosyanıza ekleyin */

.cat-search-result-card .cat-product-title {
    /* Ürün adı: Biraz daha kalın ve büyük */
    font-weight: 500;
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 2px;
}

.cat-search-result-card .cat-product-category {
    /* Kategori adı: Daha küçük ve soluk */
    font-size: 11px;
    color: #888;
    line-height: 1.2;
    margin-top: -2px; /* Başlıkla arası azalsın */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-card.empty-category {
  opacity: 0.4;
  cursor: default;
  filter: grayscale(40%);
  display: none;
}

.cat-card.empty-category:hover {
  transform: none;
  box-shadow: none;
  border-color: #eee;
}

.cat-close-btn {
  position: fixed;
  top: 22px;
  right: 28px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  font-weight: bold;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  color: black;
  cursor: pointer;
  z-index: 99999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s ease;
}

.cat-close-btn:hover {
  background: #ffffff;
  transform: scale(1.08);
}

.slider-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-header-btn {
  background: #953c29;
  color: white;
  border: none;
  padding: 12px 26px;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;

  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}




.current-category {

  color: #333;
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;


}


 .modal-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 999999;
        }
        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 8px;
            width: 300px;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            animation: fadeIn 0.3s ease-out;
        }
        .modal-title {
            margin-top: 0;
            font-size: 1.5em;
            color: #333;
        }
        #modalMessage {
            margin: 15px 0;
            font-size: 1.1em;
            color: #555;
        }
        .modal-button {
            background: #953c29;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s;
        }
        .modal-button:hover {
            opacity: 0.7;
        }
        .hidden {
            display: none !important;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* --- MOBİL İÇERİK YÖNETİMİ İÇİN YENİ KURALLAR --- */

        /* =========================================================
   IŞIKLAR TUĞLA — MOBİL ARAYÜZ
   - 1024px ve altı için modern mobil düzen
   - Alt bar navigasyon, Ayarlar drawer, Katalog overlay uyarlamaları
   - "coming soon" kilidini kaldırır
   ========================================================= */


   /* =========================================================
   IŞIKLAR TUĞLA — MOBİL DÜZEN (max-width: 1024px)
   Bu blok style.css'in EN ALTINA eklenmelidir.
   ========================================================= */

/* Varsayılan: desktop'ta alttaki nav görünmesin */
#mobileNav {
  display: none;
}

/* Tablet + telefon */
@media (max-width: 1024px) {

  /* Eski "Mobil deneyim çok yakında" overlay'ini kapat */
  .mobile-coming-soon {
    display: none !important;
  }

  html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: #f5f3f0;
  }

  /* Ana ekran konteynerini tam ekrana yay */
  #panelScreen.screen {
    position: relative;
    width: 100%;
    height: 100%;
  }

  /* -------------------------------------------------
     SIDEBAR  →  TAM EKRAN DRAWER (AYARLAR MODU)
     ------------------------------------------------- */
  .sidebar {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 18px 18px 80px;
    border-right: none;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    z-index: 99990;
    background: #ffffff;
    display: none;              /* varsayılan: gizli (canvas açık) */
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  /* JS tarafında body'ye "mobile-mode-settings" eklersen
     ayarlar drawer'ı bu şekilde açılır */
  body.mobile-mode-settings .sidebar {
    display: flex;
    transform: translateX(0);
  }

  .logo-title {
    padding-right: 40px;
    margin-bottom: 8px;
  }

  .logo {
    width: 60px;
  }

  .title {
    font-size: 15px;
  }

  .sidebar-close-btn:hover {
    background: #ececec;
  }

  /* -------------------------------------------------
     KANVAS / MODEL-VIEWER ALANI
     ------------------------------------------------- */

  /* Sol 360px boşluğu kaldır, alanı tam genişlik yap */
  .main-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 180px; /* slider-header + slider yüksekliği */
    width: 100%;
    height: auto;
    background: #e6e3df;
  }

  #brickCanvas {
    width: 100%;
    height: 100%;
  }

  /* Model‑viewer da aynı çalışma alanını kullansın */
  model-viewer {
    left: 0;
    width: 100%;
    top: 0;
    bottom: 180px;
    height: auto;
  }

  /* Brick preload ekranını sol boşluktan kurtar */
  .Brick-preloader {
    position: absolute;
    inset: 0;
    width: 100%;
    height: calc(100% - 180px);
    margin-left: 0;
  }

  /* -------------------------------------------------
     ÜRÜN SLIDER HEADER + SLIDER  (EKRANIN ALTINA SABİT)
     ------------------------------------------------- */
  .product-slider-header {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 176px;
    height: 52px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0);
    backdrop-filter:none;
    border-top: none;
    box-shadow:none;
    z-index: 99993;
  }

  .slider-header-actions {
    width: 100%;
    gap: 8px;
  }

  .slider-header-btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  /* Kategori adını header içinde göstermeyelim, kalabalık yapıyor */
  .current-category {
    display: none;
  }

  .slider-search-box {
    flex: 1;
    max-width: none;
    height: 32px;
    margin: 0;
    background: #f3f3f3;
    border-radius: 6px;
    padding-right: 4px;
  }

  .slider-search-box input {
    font-size: 13px;
  }

  .slider-search-box button {
    display: block;
    position: absolute;
    right: 0px;
  }

  /* Ürün slider: mobilde tam genişlik, nav barın üstünde */
  .product-slider {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 60px;         /* mobil alt menü yüksekliği */
    width: 100%;
    height: 116px;
    padding: 8px 8px 10px;
    background: linear-gradient(to top, #ffffff, #f8f7f5);
    box-shadow: 0 -8px 20px rgba(0,0,0,0.12);
    z-index: 99992;
  }

  .product-card {
    width: 120px;
    min-width: 120px;
    height: 100%;
    border-radius: 10px;
    padding: 6px;
    border-width: 2px;
  }

  .product-card img {
    width: 100%;
    max-height: 68px;
    object-fit: contain;
  }



.blend-toggle-btn {
  display: none;
}

  .product-card h2 {
    font-size: 11px;
    margin-top: 4px;
  }

  /* Slider ok butonları mobilde gereksiz */
  .slider-float-btn {
    display: none !important;
  }

  /* -------------------------------------------------
     ÜST SAĞ KONTROLLER (İNDİR / ZOOM / SAHNE)
     ------------------------------------------------- */

  .download-btn {
    top: 12px;
    right: 12px;
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 99991;
  }

  .zoom-controls {
    top: 12px;
    right: 12px;
    transform: translateY(48px);
    flex-direction: row;
    gap: 8px;
  }

  .zoom-controls button {
    width: 38px;
    height: 36px;
    font-size: 24px;
  }

  .zoom-controls-mv {
    top: 12px;
    right: 12px;
    transform: translateY(48px);
  }

  .scene-dropdown {
    top: 12px;
    left: 12px;
    right: auto;
    width: 150px;
  }

  .scene-list {
    right: auto;
    left: 0;
    max-height: 52vh;
  }

  /* Gesture ikonunu mobilde göstermeye gerek yok */
  .gesture-icon {
    display: none !important;
  }

  /* -------------------------------------------------
     MOBİL ALT NAVİGASYON BAR  (Kanvas / Ayarlar / Kategoriler)
     ------------------------------------------------- */

  #mobileNav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0,0,0,0.06);
    z-index: 99995;
  }

  #mobileNav .nav-btn {
    flex: 1;
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    color: #717171;
    position: relative;
  }

  #mobileNav .nav-btn i {
    font-size: 18px;
  }

  #mobileNav .nav-btn span {
    line-height: 1.1;
  }

  #mobileNav .nav-btn.active {
    color: #953c29;
    font-weight: 600;
  }

  #mobileNav .nav-btn.active::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: #953c29;
  }

  /* -------------------------------------------------
     GÖRÜNÜM MODLARI
     - Varsayılan: Canvas modu (hiç sınıf yokken)
     - .mobile-mode-settings: Ayarlar drawer açık
     ------------------------------------------------- */

  /* Varsayılan canvas modu: sidebar kapalı */
  body:not(.mobile-mode-settings) .sidebar {
    display: none;
  }

  /* Ayarlar modunda kanvas + slider'ı kapatmak istersen: */
  body.mobile-mode-settings .main-area,
  body.mobile-mode-settings model-viewer,
  body.mobile-mode-settings .product-slider,
  body.mobile-mode-settings .product-slider-header {
    display: none;
  }

  /* -------------------------------------------------
     KATEGORİ OVERLAY (catRoot) MOBİL DÜZEN
     ------------------------------------------------- */

  .cat-root-overlay {
    padding: 16px 14px 24px;
    align-items: stretch;
  }

  .cat-hero-logo {
    width: 100px;
  }

  .cat-section {
    margin-bottom: 32px;
  }

  .cat-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #catSearchResults .cat-products-grid,
  .cat-products-grid,
  .cat-search-grid-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;
  }

  .cat-product-thumb {
    height: 80px;
  }

  .cat-card,
  .cat-product-card {
    border-radius: 12px;
    padding: 12px;
  }

  .cat-close-btn {
    top: 14px;
    right: 16px;
  }

  .cat-back-btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  /* PDF & MV preload overlay'leri alt barla çakışmasın */
  .pdf-preloader {
    padding-bottom: 60px;
  }

  .MV-preloader {
    padding-bottom: 60px;
  }
}

/* -------------------------------------------------
   DAHA KÜÇÜK TELEFONLAR İÇİN EK AYARLAR
   ------------------------------------------------- */
@media (max-width: 640px) {

  .product-slider {
    height: 130px;
  }

  .product-slider-header {
    bottom: 190px;
  }

  .main-area,
  model-viewer,
  .Brick-preloader {
    bottom: 190px;
  }

  .scene-dropdown {
    width: 140px;
  }

  #mobileNav {
    height: 58px;
  }

  #mobileNav .nav-btn span {
    font-size: 10px;
  }
}

/* =========================================================
   MOBİL AYARLAR PANELİ (FULL SCREEN)
   - HTML'e dokunmadan, sadece CSS ile çalışır
   - #mobileNav içindeki .nav-btn.active durumunu :has() ile okuyor
   ========================================================= */
@media (max-width: 1024px) {

  /* --- Sidebar'ı mobilde tam ekran sheet'e çevir, default'ta kapalı --- */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 64px;                 /* alt mobil bar yüksekliği kadar boşluk */
    width: 100%;
    max-width: none;
    background: #ffffff;
    border-right: none;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.18);

    /* animasyonlu aç/kapa */
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .28s ease, opacity .28s ease;

    z-index: 2500;                /* slider / canvas'ın üstünde,
                                     kategori overlay'den (cat-root) düşük */
    padding: 18px 16px 24px;

    display: flex;
    flex-direction: column;
    gap: 18px;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }



.cat-card-title {
  padding: 14px;
}

.cat-card-img {
  height: 100px;
}

  /* --- Ayarlar sekmesi aktifken sidebar'ı aç --- */
  body:has(#mobileNav .nav-btn[data-target="sidebar"].active) .sidebar {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Kanvas veya Kategoriler seçiliyken sidebar kapalı kalsın */
  body:has(#mobileNav .nav-btn[data-target="canvas"].active) .sidebar,
  body:has(#mobileNav .nav-btn[data-target="category"].active) .sidebar {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }

  /* --- Ayarlar açıkken alttaki ürün slider'ını ve header'ını gizle --- */
  body:has(#mobileNav .nav-btn[data-target="sidebar"].active) .product-slider,
  body:has(#mobileNav .nav-btn[data-target="sidebar"].active) .product-slider-header {
    opacity: 0;
    pointer-events: none;
  }

  /* --- Ayarlar açıkken üstteki sahne/zoom/download butonlarını da kapat --- */
  body:has(#mobileNav .nav-btn[data-target="sidebar"].active) .scene-dropdown,
  body:has(#mobileNav .nav-btn[data-target="sidebar"].active) .download-btn,
  body:has(#mobileNav .nav-btn[data-target="sidebar"].active) .zoom-controls {
    opacity: 0;
    pointer-events: none;
  }



.slider-fullscreen-button {
 display: none;
}
  /* --- Sidebar içindeki X butonunu mobilde görünür yap --- */
  .sidebar-close-btn {
    display: none;

  }

  /* Başlık / logo mobilde biraz sıkışsın */
  .logo-title {
    gap: 10px;
  }

  .logo {
    width: 54px;
  }

  .title {
    font-size: 15px;
  }

  /* --- Alt mobil navigasyon her zaman üstte kalsın --- */
  #mobileNav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
  }

  /* Canvas alanı nav'ın altına taşmasın */
  #panelScreen {
    padding-bottom: 64px; /* #mobileNav yüksekliği ile aynı olmalı */
  }
}

/* style.css içindeki @media (max-width: 1024px) bloğuna ekle */

/* --- Ayarlar butonu aktifken sidebar'ı aç --- */
/* JS ile eklenen 'mobile-show-sidebar' sınıfını kullan */
body.mobile-show-sidebar .sidebar {
    /* Eski :has kuralının yerine, bu kuralın tetiklenmesi gerekir. */
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: flex !important; /* display: none'ı ezmek için */
}

/* Sidebar açıkken canvas ve slider'ı gizle */
body.mobile-show-sidebar .main-area,
body.mobile-show-sidebar model-viewer,
body.mobile-show-sidebar .product-slider,
body.mobile-show-sidebar .product-slider-header,
body.mobile-show-sidebar .scene-dropdown,
body.mobile-show-sidebar .download-btn,
body.mobile-show-sidebar .zoom-controls {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}