:root {
  --glass-border: rgba(185, 198, 255, 0.3);
  --glass-bg-1: rgba(124, 113, 255, 0.18);
  --glass-bg-2: rgba(76, 201, 240, 0.14);
  --glass-grad: radial-gradient(
      100% 140% at 0% 0%,
      var(--glass-bg-1),
      transparent 60%
    ),
    radial-gradient(120% 100% at 100% 0%, var(--glass-bg-2), transparent 60%),
    linear-gradient(180deg, rgba(16, 20, 36, 0.92), rgba(10, 12, 24, 0.96));
}

.site-stok {
  color: #fff;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial;
  background: url(../img/background-one.png) center / cover no-repeat;
}

.site-products .s-dosyadan-ekle {
  margin-top: 26px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Sadece div değil, TÜM doğrudan çocukları kart yap */
.site-products .s-dosyadan-ekle > * {
  border-radius: 14px;
  border: 1px solid rgba(185, 198, 255, 0.26);
  background: linear-gradient(180deg, rgba(22,26,48,.6), rgba(12,16,28,.6));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  padding: clamp(10px, 2vw, 16px);
  min-width: 0; /* taşma koruması */
}

/* Kart içindeki “çıplak metin”lerin okunaklı görünmesi için */
.site-products .s-dosyadan-ekle > * p,
.site-products .s-dosyadan-ekle > * li,
.site-products .s-dosyadan-ekle > * span {
  font-size: 14px;
  line-height: 1.4;
  color: #eaf0ff;
}

/* Tablo varsa: mobilde taşmadan yatay scroll */
.site-products .table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(185, 198, 255, 0.22);
  background: rgba(10, 12, 20, 0.6);
}
.site-products table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

/* Küçük ekran boşluk ayarı */
@media (max-width: 720px) {
  .site-products .s-dosyadan-ekle { gap: 12px; }
}
@media (max-width: 380px) {
  .site-products .s-dosyadan-ekle { grid-template-columns: 1fr; }
}

/* Sayfa konteyner */
.site-stok .page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px clamp(12px, 3vw, 26px) 28px;
}

/* ======================================
   Üst seçenekler (Manuel / QR)
   ====================================== */
.site-stok .hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
}

@media (max-width: 720px) {
  .site-stok .hero-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Kart tabanı */
.site-stok .tile {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  min-height: 86px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-grad);
  backdrop-filter: blur(10px) saturate(1.05);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, background 0.18s ease, filter 0.18s ease;
}
.site-stok .tile:hover,
.site-stok .tile:focus {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.62);
  background: radial-gradient(
      100% 140% at 0% 0%,
      rgba(124, 113, 255, 0.26),
      transparent 60%
    ),
    radial-gradient(
      120% 100% at 100% 0%,
      rgba(76, 201, 240, 0.2),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(24, 28, 52, 0.95), rgba(14, 18, 32, 0.98));
  box-shadow: 0 28px 56px rgba(80, 110, 220, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  outline: none;
}
.site-stok .tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: 0 0 30px rgba(120, 130, 255, 0.15) inset;
}

/* Başlık yazıları ve ikon */
.site-stok .tile .title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 0 16px rgba(124, 113, 255, 0.25);
}
.site-stok .tile .icon {
  width: 28px;
  height: 28px;
  justify-self: end;
  filter: drop-shadow(0 0 8px rgba(120, 130, 255, 0.4));
  opacity: 0.95;
}

/* ======================================
   KAMERA PANELİ (header’ın hemen altında)
   ====================================== */
.site-stok .camera-panel {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.frame{
  display: flex;
  justify-content: space-around;
}

#toggleContainer_260 .text-wrapper, .text-wrapper-2, .text-wrapper-3, .text-wrapper-4 { 
background-color: rgb(33, 27, 102);
border: 1px solid black;
padding: 5px;
border-radius: 5px;
margin-bottom: 3px;
}

/* Seçim çubuğu ————▶︎  TOGGLE-CONTAINER GÜNCELLEMESİ  */
.site-stok.camera-select-wrap {
  display: flex;                 /* eklendi */
  align-items: center;           /* eklendi */
  gap: 8px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(
    180deg,
    rgba(26, 30, 48, 0.85),
    rgba(16, 20, 36, 0.85)
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 8px 10px;
  max-width: 720px;              /* eklendi */
  margin: 0 auto;                /* eklendi */
}
.site-stok .camera-label {
  font-size: 14px;
  color: #e9ecff;
}
.site-stok #cameraSelect {
  min-width: 260px;
  max-width: 92vw;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  color: #f5f7ff;
  background: transparent;
  border: 1px solid rgba(185, 198, 255, 0.35);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}
.site-stok #cameraSelect:hover,
.site-stok #cameraSelect:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 22px rgba(80, 110, 220, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* QR alanı */
.site-stok #qr-reader {
  width: min(680px, 100%);
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-grad);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  padding: 12px;
}

.site-stok #qr-reader video{
      width: -webkit-fill-available!important;

}

.site-stok #qr-reader div{
  border-width: 0!important;
}

/* ======================================
   ÜRÜN LİSTESİ
   ====================================== */
.site-products {
  padding: 16px clamp(10px, 2.8vw, 24px) 28px;
  margin-top: clamp(20px, 4vw, 32px);
  min-height: 50vh;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.site-products .text {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 0 16px rgba(124, 113, 255, 0.25);
  margin: 6px 0 10px;
}

/* Legend */
.site-products .products-legend {
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass-grad);
  backdrop-filter: blur(10px) saturate(1.05);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  padding: clamp(14px, 2.2vw, 18px);
}
.site-products .legend-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #f2f4ff;
}
.site-products .legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(20px, 4vw, 34px);
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}
.site-products .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e8ecff;
  font-size: 14px;
}
.site-products .legend-item strong {
  color: #fff;
  font-weight: 700;
}
.site-products .legend-dot {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 6px rgba(120, 130, 255, 0.35));
}

/* Liste grid */
.site-products .s-dosyadan-ekle {
  margin-top: 26px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Parçanın bastığı blokları kart yap ————▶︎ PRODUCTS-CONTAINER GÜNCELLEMESİ */
.site-products .s-dosyadan-ekle > * {
  border-radius: 14px;
  border: 1px solid rgba(185, 198, 255, 0.26);
  background: linear-gradient(
    180deg,
    rgba(22, 26, 48, 0.6),
    rgba(12, 16, 28, 0.6)
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  padding: clamp(10px, 2vw, 16px);
  min-width: 0;
}

/* (isteğe bağlı okunaklık) kart içindeki çıplak metinler */
.site-products .s-dosyadan-ekle > * p,
.site-products .s-dosyadan-ekle > * li,
.site-products .s-dosyadan-ekle > * span {
  font-size: 14px;
  line-height: 1.4;
  color: #eaf0ff;
}

/* Tablo wrapper (otomatik wrap JS kullanıyorsan sınıf hazır) */
.site-products .table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(185, 198, 255, 0.22);
  background: rgba(10, 12, 20, 0.6);
}
.site-products .table-wrap::before,
.site-products .table-wrap::after {
  content: "";
  position: sticky;
  top: 0;
  width: 24px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.site-products .table-wrap::before {
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 12, 20, 0.85),
    rgba(10, 12, 20, 0)
  );
}
.site-products .table-wrap::after {
  right: 0;
  background: linear-gradient(
    -90deg,
    rgba(10, 12, 20, 0.85),
    rgba(10, 12, 20, 0)
  );
}

.site-products table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.site-products thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25px;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(28, 32, 56, 0.95),
    rgba(20, 24, 44, 0.95)
  );
  padding: 10px 12px;
  border-bottom: 1px solid rgba(185, 198, 255, 0.22);
}
.site-products tbody td {
  font-size: 13.5px;
  color: #e6e9f8;
  padding: 10px 12px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(185, 198, 255, 0.14);
}
.site-products tbody tr:hover {
  background: linear-gradient(
    180deg,
    rgba(28, 32, 56, 0.42),
    rgba(20, 24, 44, 0.42)
  );
}

/* Empty state */
.site-products .empty-state {
  margin: 0;
  padding: 14px 12px;
  color: #dfe4ff;
  font-size: 14px;
  border-radius: 12px;
  border: 1px dashed rgba(185, 198, 255, 0.32);
  background: linear-gradient(
    180deg,
    rgba(18, 22, 42, 0.5),
    rgba(12, 16, 28, 0.5)
  );
}

/* Load more */
.site-products #loadMoreBtn,
.site-products .loadMoreBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 10px 16px;
  min-height: 44px;
  width: fit-content;
  border-radius: 12px;
  border: 1px solid rgba(200, 210, 255, 0.55);
  background: linear-gradient(
      180deg,
      rgba(114, 132, 255, 0.35),
      rgba(114, 132, 255, 0.15)
    ),
    linear-gradient(180deg, rgba(18, 24, 42, 0.95), rgba(14, 18, 32, 0.95));
  color: #f2f4ff;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(80, 110, 220, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease, background 0.18s ease;
}
.site-products #loadMoreBtn:hover,
.site-products .loadMoreBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(220, 230, 255, 0.9);
}
.site-products .btn-icon {
  display: inline-block;
  margin-left: 2px;
  opacity: 0.95;
}

@media (max-width: 720px) {
  .site-products {
    padding: 10px 12px 18px;
  }
  .site-products .s-dosyadan-ekle {
    gap: 12px;
  }
  .site-products #loadMoreBtn,
  .site-products .loadMoreBtn {
    width: 100%;
  }

  .site-stok #qr-reader{
    width: 300px;
  }
}

@media (max-width: 380px) {
  .site-products .s-dosyadan-ekle {
    grid-template-columns: 1fr;
  }
}
