/* === CATALOG LIST === */

.card.obiect {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card.obiect:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Image inside catalog cards */
.card-img-top-wrapper {
  height: 320px;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card.obiect:hover .card-img-top {
  transform: scale(1.04);
}

.img-placeholder {
  opacity: 0.6;
  filter: grayscale(40%);
}

/* Card texts */
.card-title {
  font-weight: 600;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
}

.card-text {
  text-align: justify;
  color: var(--muted);
}

/* Button accent */
.btn-outline-accent {
  --bs-btn-color: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-border-color: var(--accent);
  --bs-btn-hover-color: #fff;
}

/* 3D Badge */
.badge-3d {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #28a745;
  font-size: 0.7rem;
  padding: 4px 6px;
  border-radius: 4px;
}

/* === TREE FILTER NAVIGATION === */
.tree-nav {
  padding-left: 0;
  font-size: 0.95rem;
}

.tree-nav li {
  list-style: none;
  margin: 4px 0;
  display: block;
}

.tree-nav li .node-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tree-nav .label {
  cursor: pointer;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
}

.tree-nav .label.active {
  font-weight: 700;
  color: var(--bs-primary);
  background-color: rgba(0, 123, 255, .12);
}

.tree-nav ul {
  margin-left: 14px;
  border-left: 1px solid #e0e0e0;
  padding-left: 10px;
}

@media(max-width: 768px) {
  .tree-nav {
    margin-bottom: 15px;
  }
}
