/* ===============================
   Collapsible category tree (EDIT PRODUCT)
================================ */
.cat-tree{
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px;
  background:#fafafa;
  max-height:340px;
  overflow:auto;
}

.cat-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:7px 10px;
  border-radius:10px;
  border:1px solid transparent;
  background:#fff;
  margin-bottom:6px;
}

.cat-row:hover{ background:#f6f7fb; border-color:#eef1ff; }

.cat-row input[type="radio"]{ margin:0; transform:scale(1.05); }

.cat-row .name{ font-size:13px; font-weight:700; }

.cat-row .meta{
  margin-left:auto;
  font-size:11px;
  opacity:.65;
  border:1px solid rgba(0,0,0,.10);
  padding:2px 8px;
  border-radius:999px;
}

.cat-toggle{
  width:26px;
  height:26px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  border-radius:8px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  opacity:.85;
}

.cat-toggle:hover{ opacity:1; }

.cat-children{
  margin: 2px 0 10px 34px;
  display:none; /* IMPORTANT */
}
.cat-children.open{ display:block; }
/* Compact image grid (Edit Product) */
.img-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(120px, 1fr));
  gap:8px;
}

.img-card{
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:6px;
  background:#fff;
}

.img-card img{
  width:100%;
  height:80px;              /* 🔽 smaller height */
  object-fit:cover;
  border-radius:8px;
  display:block;
}
.btn-wa{
  background:#25D366;
  color:#fff;
  border-color:transparent;
  font-weight:800;
}
.btn-wa:hover{ filter: brightness(.95); }
.btn-wa .wa-dot{ margin-right:8px; font-size:18px; line-height:1; }


.img-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.img-card-compact img{
  height: 120px !important;  /* smaller */
  object-fit: contain !important;
}
