:root{
  --bg1:#0b1020;
  --bg2:#0e1836;
  --card:#0f172a;
  --card2:#111c33;
  --text:#e8eefc;
  --muted: rgba(232,238,252,.72);
  --border: rgba(255,255,255,.10);
  --accent:#6ee7ff;
  --accent2:#7c3aed;
}

body{
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(110,231,255,.10), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(124,58,237,.12), transparent 55%),
    linear-gradient(180deg, #f7f9ff 0%, #f3f6ff 30%, #eef2ff 100%);
}

.topbar{
  background: linear-gradient(90deg, var(--bg1), var(--bg2));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-mark{
  width: 34px; height: 34px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 10px;
  background: rgba(110,231,255,.14);
  border: 1px solid rgba(110,231,255,.28);
}

.searchbar .input-group-text,
.searchbar .form-control,
.searchbar .form-select{
  border-color: rgba(255,255,255,.15);
}

.searchbar .input-group-text{
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
}

.searchbar .form-control{
  background: rgba(255,255,255,.08);
  color: #fff;
}

.searchbar .form-control::placeholder{
  color: rgba(255,255,255,.65);
}

.searchbar .form-select{
  background: rgba(255,255,255,.08);
  color: #fff;
}

.btn-accent{
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border: 0;
  color: #061018;
  font-weight: 700;
}

.sidebar-card{
  border: 1px solid rgba(16,24,40,.08);
  box-shadow: 0 10px 30px rgba(2,6,23,.08);
  position: sticky;
  top: 92px;
}

.breadcrumb-soft{
  margin-bottom: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(2,6,23,.06);
  backdrop-filter: blur(8px);
}

.breadcrumb-soft a{
  text-decoration: none;
}

.hero{
  border: 1px solid rgba(2,6,23,.06);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(2,6,23,.06);
}

.pill{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2,6,23,.06);
  border: 1px solid rgba(2,6,23,.06);
}

.nav-card{
  border-radius: 18px;
  border: 1px solid rgba(2,6,23,.06);
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 30px rgba(2,6,23,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}

.nav-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(2,6,23,.08);
}

.product-card{
  border-radius: 18px;
  border: 1px solid rgba(2,6,23,.06);
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 30px rgba(2,6,23,.05);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.product-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(2,6,23,.08);
}

.product-media{
  background: linear-gradient(135deg, rgba(2,6,23,.05), rgba(2,6,23,.01));
}

.product-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.empty-state{
  border-radius: 18px;
  border: 1px dashed rgba(2,6,23,.20);
  background: rgba(255,255,255,.72);
}

.pagination-soft .page-link{
  border-radius: 12px !important;
  margin: 0 3px;
  border: 1px solid rgba(2,6,23,.08);
}

.list-group-item{
  border-color: rgba(2,6,23,.06);
}

.list-group-item.active{
  background: linear-gradient(90deg, #111827, #1f2937);
  border-color: rgba(255,255,255,.10);
}
.zoom-trigger{
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.zoom-trigger:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(110,231,255,.25);
  border-radius: 18px;
}

.image-modal{
  border-radius: 18px;
  overflow: hidden;
}

.panzoom-stage{
  width: 100%;
  height: min(78vh, 820px);
  background: radial-gradient(800px 400px at 20% 0%, rgba(110,231,255,.10), transparent 60%),
              radial-gradient(700px 380px at 80% 10%, rgba(124,58,237,.12), transparent 55%),
              #0b1020;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow: hidden;
}

.panzoom-stage img{
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}

.panzoom-stage img:active{
  cursor: grabbing;
}
.zoom-pill{
  min-width: 56px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2,6,23,.06);
  border: 1px solid rgba(2,6,23,.10);
  color: rgba(2,6,23,.75);
}

.panzoom-stage{
  touch-action: none; /* mobil pinch + pan çakışmalarını azaltır */
}

/* Fullscreen olunca stage daha iyi otursun */
.image-modal:fullscreen{
  width: 100vw;
  height: 100vh;
}

.image-modal:fullscreen .panzoom-stage{
  height: calc(100vh - 64px); /* header yüksekliği kadar düş */
}
.tree{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tree-row{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 6px 6px;
  border-radius: 12px;
  transition: background .12s ease;
}

.tree-row:hover{
  background: rgba(2,6,23,.04);
}

.tree-children{
  margin-left: 14px;
  padding-left: 12px;
  border-left: 1px solid rgba(2,6,23,.10);
}

.tree-toggle{
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: rgba(2,6,23,.55);
  border-radius: 10px;
}

.tree-toggle:hover{
  background: rgba(2,6,23,.06);
}


.tree-spacer{
  width: 28px;
  height: 28px;
  display:inline-block;
}

.tree-link{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-decoration:none;
  color: inherit;
  min-width: 0;
}

.tree-text{
  min-width: 0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-link.active .tree-text{
  font-weight: 800;
}

/* Tree +/- sign (single glyph like desktop file explorer) */
.tree-toggle{
  font-weight: 900;
  font-size: 14px;
}
.tree-sign{
  width: 18px;
  height: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height: 1;
  border-radius: 6px;
  border: 1px solid rgba(2,6,23,.10);
  background: rgba(255,255,255,.70);
}

/* Sidebar desktop sticky only on lg+ */
@media (max-width: 991.98px){
  .sidebar-card{ position: static; top: auto; }
}

/* Mobile Categories floating icon (always visible, opens offcanvas) */
.cat-fab{
  position: fixed;
  left: 2px;
  top: 17%;
  transform: translateY(-50%);
  z-index: 1030; /* under modal (1055), above content */
  border: 0;
  padding: 0;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 30px rgba(2,6,23,.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cat-fab img{
  width: 50px;
  height: 50px;
  object-fit: contain;
  display:block;
  border-radius: 10px;
}
.cat-fab.open::after{
  content: "×";
  position:absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 30px;
  font-weight: 900;
  color: rgba(2,6,23,.82);
  background: rgba(255,255,255,.72);
  border-radius: 16px;
}
@media (min-width: 992px){
  .cat-fab{ display:none; }
}
/* Offcanvas look */
.offcanvas.catalog-offcanvas{
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}
.offcanvas.catalog-offcanvas .offcanvas-header{
  border-bottom: 1px solid rgba(2,6,23,.06);
}
