* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #f5f1e7;
  color: #202024;
  font-family: "Manrope", sans-serif;
}

.ust-menu {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #0b0b0c;
  color: #fff;
  border-bottom: 1px solid #333;
}

.marka {
  display: flex;
  align-items: center;
  gap: 10px;
}

.marka-isaret {
  width: 32px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 3px 16px 16px 3px;
  background: #c5a059;
  font-weight: 800;
}

.menu-linkleri {
  display: flex;
  gap: 24px;
}

.menu-linkleri a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.teklif-buton {
  padding: 10px 20px;
  border: 2px solid #c5a059;
  background: transparent;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.urun-sayfa {
  padding: 24px;
}

.urun-detay {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  height: calc(100vh - 150px);
}

.medya-bolumu {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100%;
}

.ucboyut-alani {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #171717;
  border: 1px solid #333;
  border-radius: 8px;
}

.yukleme-katmani {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  z-index: 10;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.yukleme-katmani.gizli {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.yukleme-karti {
  text-align: center;
  color: #fff;
}

.yukleme-halka {
  width: 50px;
  height: 50px;
  border: 3px solid #c5a059;
  border-top-color: transparent;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.sahne-etiketi {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.95);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  z-index: 5;
}

.sahne-etiketi strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

#ucboyutKanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.sahne-araclari {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

.ikon-buton {
  width: 40px;
  height: 40px;
  border: 1px solid #555;
  background: rgba(50,50,50,0.8);
  color: #c5a059;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.ikon-buton:hover {
  background: rgba(50,50,50,1);
  border-color: #c5a059;
}

.urun-panel {
  overflow-y: auto;
  max-height: 100vh;
  padding: 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding-right: 8px;
}

.urun-panel h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 700;
}

.kontrol-grubu {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.kontrol-grubu h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kontrol-grubu label {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  gap: 6px;
}

.kontrol-grubu span {
  font-size: 0.85rem;
  color: #666;
}

.kontrol-grubu select,
.kontrol-grubu input[type="color"] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.85rem;
  background: #f9f9f9;
}

.kontrol-grubu select:focus {
  outline: none;
  border-color: #c5a059;
}

.checkbox {
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 8px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #c5a059;
}

.parca-etiket {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 6px;
}

.renk-secici {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.renk-ornek {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #ddd;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6);
}

.renk-ornek:hover {
  transform: scale(1.12);
  border-color: #c5a059;
}

.renk-ornek.aktif {
  border-color: #c5a059;
  box-shadow: 0 0 0 3px rgba(197,160,89,0.35), inset 0 0 0 2px rgba(255,255,255,0.6);
}

.malzeme-secici {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.malzeme-ornek {
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #f9f9f9;
  color: #333;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.malzeme-ornek:hover {
  border-color: #c5a059;
  color: #c5a059;
}

.malzeme-ornek.aktif {
  background: #c5a059;
  border-color: #c5a059;
  color: #fff;
  font-weight: 700;
}

.urun-galeri {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.urun-galeri h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.galeri-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.galeri-kart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 2px solid #eee;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.galeri-kart:hover {
  border-color: #c5a059;
  transform: translateY(-2px);
}

.galeri-kart.aktif {
  border-color: #c5a059;
  box-shadow: 0 0 0 2px rgba(197,160,89,0.3);
}

.galeri-onizleme {
  position: relative;
  width: 100%;
  height: 70px;
  border-radius: 4px;
  display: block;
  border: 1px solid rgba(0,0,0,0.15);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.10) 0px,
    rgba(255,255,255,0.10) 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 5px
  );
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}

.galeri-onizleme::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 14px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #d4af37, #f0d886, #d4af37);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.galeri-etiket {
  font-size: 0.75rem;
  color: #555;
  text-align: center;
}

@media (max-width: 1024px) {
  .urun-detay {
    grid-template-columns: 1fr;
    height: auto;
  }

  .medya-bolumu {
    position: static;
    min-height: 500px;
  }

  .urun-panel {
    max-height: 600px;
  }
}
